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

body {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    background-color: #87CEEB;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.game-container {
    position: relative;
    width: 800px;
    height: 480px;
    border: 4px solid #333;
    background-color: #6B8CFF;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#gameCanvas {
    width: 100%;
    height: 100%;
    background-color: #6B8CFF;
}

.hud {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 20px;
    color: white;
    font-size: 14px;
    text-shadow: 2px 2px 0 #000;
    z-index: 10;
}

.menu, .game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    gap: 20px;
    z-index: 20;
}

.game-over {
    display: none;
}

button {
    background-color: #E52521;
    color: white;
    border: none;
    padding: 10px 20px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 5px 0 #8C1F1A;
    transition: transform 0.1s;
}

button:active {
    transform: translateY(5px);
    box-shadow: none;
}

.controls {
    position: absolute;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 10;
    display: none; /* Hidden on desktop */
}

@media (max-width: 800px) {
    .game-container {
        width: 100%;
        height: 100vh;
        border: none;
    }
    
    .controls {
        display: flex; /* Show on mobile */
    }
    
    .controls button {
        padding: 15px 30px;
        font-size: 24px;
    }
}
