*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.game-board{
    width: 100%;
    height: 500px;
    border-bottom: 15px solid #00b533;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: linear-gradient(#87CEEB, #c4e8f7);
}

.pipe{
    position: absolute;
    bottom: -35px;
    width: 130px;
    animation: pipe-animation 1.5s forwards linear;
} 

.shanly{
    width: 200px;
    position: absolute;
    bottom: -15px;
}

.jump{
    animation: jump 500ms ease-out;
}

.clouds{
    position: absolute;
    width: 550px;
    animation: clouds-animation 20s infinite linear;
}

.flying-obstacle {
    position: absolute;
    width: 80px;
    bottom: 180px;
    height: 80px;
    animation: flying-obstacle-animation 1.5s linear infinite; /* velocidade ajustável */
}

@keyframes flying-obstacle-animation {
    from {
        right: -130px;
    }
    to {
        right: 100%;
    }
}


@keyframes pipe-animation{
    from{
        right: -80px;
    }
    to{
        right: 100%;
    }
}

@keyframes jump{
    0%{
        bottom: 0;
    }
    40%{
        bottom: 180px;
    }
    60%{
        bottom: 180px;
    }
    100%{
        bottom: 0;
    }
}

@keyframes clouds-animation{
    from{
        right: -550px;
    }
    to{
        right: 100%;
    }
}

#restartBtn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 30px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    background-color: red;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: none; /* Oculto até o jogo acabar */
    transition: 0.3s;
}

#restartBtn:hover {
    background-color: darkred;
}

#score {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 28px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 5px #000;
}
