/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #00ff00;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Game container */
.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    width: 100%;
    padding: 20px;
}

/* Game header */
.game-header {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.game-header h1 {
    font-size: 2.5rem;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.game-info {
    display: flex;
    justify-content: space-around;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #00ffff;
    border-radius: 10px;
    padding: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.label {
    font-size: 0.9rem;
    color: #00ffff;
    font-weight: bold;
}

#score, #level, #lives {
    font-size: 1.5rem;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    font-weight: bold;
}

/* Canvas container */
.canvas-container {
    position: relative;
    border: 3px solid #00ffff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    background: #000;
    overflow: hidden;
}

#gameCanvas {
    display: block;
    background: #000;
}

/* Overlay screens */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.overlay.hidden {
    display: none;
}

.overlay-content {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #00ffff;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    max-width: 400px;
    width: 90%;
}

.overlay-content h2 {
    font-size: 2rem;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.overlay-content p {
    font-size: 1.1rem;
    color: #00ff00;
    margin-bottom: 10px;
    line-height: 1.4;
}

.instructions {
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    border-radius: 8px;
}

.instructions p {
    margin-bottom: 8px;
}

.instructions strong {
    color: #00ffff;
}

/* Game button */
.game-btn {
    background: linear-gradient(135deg, #00ff00, #00cc00);
    color: #000;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.game-btn:hover {
    background: linear-gradient(135deg, #00ffff, #00cccc);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.7);
    transform: translateY(-2px);
}

.game-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* Controls info */
.controls-info {
    margin-top: 15px;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

.audio-controls {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.audio-btn {
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    border: 1px solid #00ffff;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.audio-btn:hover {
    background: rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.audio-btn.disabled {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4444;
    border-color: #ff4444;
}

.audio-btn.disabled:hover {
    background: rgba(255, 0, 0, 0.4);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* Responsive design */
@media (max-width: 900px) {
    .game-container {
        padding: 10px;
    }
    
    .game-header h1 {
        font-size: 2rem;
    }
    
    #gameCanvas {
        width: 100%;
        height: auto;
        max-width: 800px;
    }
    
    .game-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .info-item {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .game-header h1 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .overlay-content {
        padding: 20px;
    }
    
    .overlay-content h2 {
        font-size: 1.5rem;
    }
    
    .game-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* Animation classes for visual effects */
.flash {
    animation: flash 0.1s ease-in-out;
}

@keyframes flash {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.shake {
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
