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

body {
    font-family: 'Courier New', monospace;
    background: #000;
    color: #fff;
    overflow: hidden;
}

.game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#gameCanvas {
    display: block;
    background: #87CEEB;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    border: 2px solid #333;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.hidden {
    display: none !important;
}

.game-title {
    font-size: 4rem;
    color: #ff6b6b;
    text-shadow: 4px 4px 0px #000;
    margin-bottom: 2rem;
    letter-spacing: 4px;
}

.instructions {
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8;
}

.instructions p {
    margin-bottom: 0.5rem;
    color: #fff;
}

.instructions strong {
    color: #4ecdc4;
    font-weight: bold;
}

.game-button {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 1rem 2rem;
    background: #4ecdc4;
    color: #000;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.2s ease;
    border: 3px solid #4ecdc4;
}

.game-button:hover {
    background: #000;
    color: #4ecdc4;
    box-shadow: 0 0 20px #4ecdc4;
}

.game-button:active {
    transform: scale(0.95);
}

#gameUI {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 5;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 0px #000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.score {
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 5px;
    border: 2px solid #4ecdc4;
}

#pauseScreen h2,
#gameOverScreen h2 {
    font-size: 3rem;
    color: #ff6b6b;
    text-shadow: 3px 3px 0px #000;
    margin-bottom: 2rem;
}

#finalScore {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #4ecdc4;
}

#gameOverScreen .game-button {
    margin-bottom: 1rem;
}

/* Responsive design for iframe embedding */
@media (max-width: 1200px) {
    .game-title {
        font-size: 3rem;
    }
    
    .game-button {
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 800px) {
    .game-title {
        font-size: 2.5rem;
    }
    
    .instructions {
        font-size: 1rem;
    }
    
    .game-button {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }
    
    #gameUI {
        font-size: 1.2rem;
    }
}

.mute-button {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #4ecdc4;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    width: fit-content;
    min-width: 40px;
    text-align: center;
}

.mute-button:hover {
    background: #4ecdc4;
    color: #000;
}

@media (max-width: 600px) {
    .game-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .instructions {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .game-button {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
}
