/* Impostazioni generali per la pagina */
body {
    margin: 0;
    font-family: sans-serif;
    background-color: #111;
    color: #fff;
    overflow: hidden;
    height: 100vh;
}

/* Stile del contenitore di gioco a schermo intero */
#game-container {
    width: 100vw;
    height: 100vh;
    background-color: #000;
    position: relative;
    overflow: hidden;
}

/* Stile della barretta */
#paddle {
    position: absolute;
    /* MODIFICATO: Alzata la racchetta */
    bottom: 100px;
    left: 0;
    width: 80px;
    height: 20px;
    background-color: #0095DD;
}

/* Stile della pallina */
#ball {
    position: absolute;
    left: 390px;
    top: 300px;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
}

/* Stile del pannello informazioni */
#info-board {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 14px;
}

#info-board span {
    margin-right: 10px;
}

#info-board input[type="range"] {
    vertical-align: middle;
    margin: 0 5px;
    width: 80px;
}

/* Classe per nascondere elementi */
.hidden {
    display: none;
}

/* Stile per la schermata di Game Over */
#game-over {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#game-over h1 {
    font-size: 3em;
    color: #ff4136;
}

#game-over button {
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
}

/* Stile per i mattoncini */
.brick {
    position: absolute;
    background-color: #f94144;
    border: 1px solid #000;
    border-radius: 3px;
}

/* Stile per la schermata di Vittoria */
#you-win {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #90be6d;
}

#you-win h1 {
    font-size: 3em;
}

#you-win button {
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
}

/* Stile per il messaggio di avvio */
#start-message {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 2px 2px 4px #000;
    pointer-events: none;
    text-align: center;
}