* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Estilização do quadro do jogo */
.game-board {
    width: 80%;
    height: 500px;
    border-bottom: 15px solid rgb(3, 160, 35);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: linear-gradient(#87ceeb, #e0f6ff);
}
/* Configuração do obstáculo */
.pipe {
    position: absolute;
    bottom: 0;
    width: 80px;
    animation: pipe-animation 2s infinite linear;
}
/* Configuração do obstáculo */
.mario {
    width: 150px;
    position: absolute;
    bottom: 0;
   
}
/* Classe adicionada via JS para fazer o Mario pular */
.jump {
     animation: jump 500ms ease-out;
}
/* Configuração das nuvens */
.clouds {
    position: absolute;
    width: 550px;
    animation: clouds-animation 20s infinite linear;
}
/* Movimento do cano: da direita para a esquerda */
@keyframes pipe-animation {
    from{
        right: -80px;
    }

    to {
        right: 100%;

    }
}
/* Movimento do pulo: sobe e volta ao chão */
@keyframes jump {

    0% {
        bottom: 0;
    }

    40% {
         bottom: 180px;
    }

    50% {
        bottom: 180px;
    }

    60% {
         bottom: 180px;
    }

    100% {
        bottom: 0;
    }

}
/* Movimento lento das nuvens para dar profundidade */
@keyframes clouds-animation {
     from{
        right: -100px;
    }

    to {
        right: 100%;

    }
}

/* ========================================== */
/* --- Estilos da Interface de Usuário --- */
/* ========================================== */


/* Placar de pontos no topo esquerdo */
#score {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: #222;
    background: rgba(255, 255, 255, 0.7);
    padding: 5px 15px;
    border-radius: 8px;
}
/* Painel central de Game Over */
#game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 30px 50px;
    border-radius: 12px;
    text-align: center;
    font-family: Arial, sans-serif;
}

#game-over h1 {
    font-size: 36px;
    margin-bottom: 20px;
}
/* Botão de reiniciar */
#game-over button {
    background: #ff0000;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

#game-over button:hover {
    background: #cc0000;
}
/* Classe utilitária para esconder elementos */
.hidden {
    display: none;
}