* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: white;
}

.game-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

.title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    flex: 1;
}

.score-display,
.life-display {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    min-width: 150px;
}

.score-display {
    justify-content: flex-start;
}

.life-display {
    justify-content: flex-end;
}

.label {
    font-weight: bold;
    color: #ffd700;
}

#score {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    color: #00ff00;
}

#lives {
    font-size: 20px;
    color: #ff6b6b;
}

#gameCanvas {
    display: block;
    background: #0a1628;
    border: 3px solid #4a90e2;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
}

.game-info {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

.controls h3 {
    margin-bottom: 10px;
    color: #ffd700;
    font-size: 16px;
}

.controls p {
    margin: 5px 0;
    font-size: 14px;
}

.controls strong {
    color: #4a90e2;
    background: rgba(74, 144, 226, 0.2);
    padding: 2px 6px;
    border-radius: 3px;
}

.game-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.game-message.hidden {
    display: none;
}

.message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 60px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#messageTitle {
    font-size: 36px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#messageText {
    font-size: 18px;
    color: #f0f0f0;
}
