/* Base styles */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
    margin: 0;
    padding: 0;
    background-color: #111;
    font-family: 'Press Start 2P', monospace;
    overflow: hidden;
    color: #0f0;
}

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

/* Canvas styling */
#gameCanvas {
    background-color: #222;
    border: 2px solid #0f0;
    box-shadow: 0 0 10px #0f0, 0 0 20px #0f0;
}

/* UI Elements */
.game-ui {
    width: 800px;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    color: #0f0;
    text-shadow: 0 0 5px #0f0;
    font-size: 1.2em;
    margin-bottom: 10px;
}

/* Screen styling */
.screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #0f0;
    text-shadow: 0 0 10px #0f0;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border: 2px solid #0f0;
    box-shadow: 0 0 15px #0f0;
    z-index: 10;
}

.hidden {
    display: none;
}

button {
    background-color: #000;
    color: #0f0;
    border: 2px solid #0f0;
    padding: 10px 20px;
    font-family: 'Press Start 2P', monospace;
    font-size: 1em;
    margin-top: 20px;
    cursor: pointer;
    text-shadow: 0 0 5px #0f0;
    box-shadow: 0 0 10px #0f0;
    transition: all 0.3s;
}

button:hover {
    background-color: #0f0;
    color: #000;
}

/* Animation for neon flicker effect */
@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 0 0 5px #0f0, 0 0 10px #0f0, 0 0 20px #0f0;
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

h1 {
    animation: neonFlicker 2s infinite alternate;
}

/* Game elements */
.lives-display {
    display: flex;
    align-items: center;
}

.lives-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #0f0;
    margin-right: 10px;
    box-shadow: 0 0 5px #0f0;
}

/* Responsive adjustments */
@media (max-width: 850px) {
    .game-ui {
        width: 90vw;
        font-size: 0.9em;
    }
    
    #gameCanvas {
        width: 90vw;
        height: auto;
    }
}
