@font-face {
    font-family: 'Retro';
    src: url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
}

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

/* Stili specifici per Space Invaders - adattati alla nuova struttura */
body {
    background-color: #000;
    color: #00FF00;
    font-family: 'Retro', 'Press Start 2P', monospace;
}

.game-container {
    position: relative;
    margin: 20px auto;
    overflow: visible !important; /* Non tagliare il canvas */
}

/* .game-info rimosso - ora usiamo scoreboard standardizzata */

#gameCanvas {
    background-color: #000;
    border: 2px solid #00FF00;
    box-shadow: 0 0 10px #00FF00;
    display: block;
    margin: 0 auto;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    /* Non forzare dimensioni CSS - usa solo attributi HTML width/height */
}

/* Controlli audio rimossi - ora usiamo pulsanti standardizzati nella scoreboard */

/* Schermata iniziale */
.start-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border: 2px solid #00FF00;
}

.start-screen h1 {
    font-size: 40px;
    color: #00FF00;
    margin: 0 auto 30px;
    text-align: center;
    text-shadow: 0 0 10px #00FF00;
    animation: blink 1.5s infinite;
    width: 100%;
}

.play-button {
    background-color: #000;
    color: #00FF00;
    border: 2px solid #00FF00;
    padding: 15px 40px;
    font-family: 'Retro', 'Press Start 2P', monospace;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.play-button:hover {
    background-color: #00FF00;
    color: #000;
    box-shadow: 0 0 20px #00FF00;
}

/* Schermata di pausa */
.pause-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    display: none;
}

.pause-screen h2 {
    font-size: 40px;
    color: #FFFF00;
    margin-bottom: 20px;
}

.pause-screen p {
    font-size: 18px;
    color: #FFFFFF;
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border: 2px solid #00FF00;
    text-align: center;
    display: none;
    z-index: 10;
}

.game-over h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #FF0000;
}

.game-over p {
    margin-bottom: 20px;
}

#restartButton {
    background-color: #000;
    color: #00FF00;
    border: 2px solid #00FF00;
    padding: 10px 20px;
    font-family: 'Retro', 'Press Start 2P', monospace;
    cursor: pointer;
    font-size: 16px;
}

#restartButton:hover {
    background-color: #00FF00;
    color: #000;
}

.controls-info {
    margin-top: 20px;
    font-size: 14px;
}

/* Animazione per effetto lampeggiante */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
} 