/* Reseta margens e preenchimentos padrão, e define o box-sizing para border-box */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilo do contêiner do jogo */
.jogo {
    width: 100%;
    height: 100vh;
    border-bottom: 30px solid #6bc26b;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: linear-gradient(#87cee8, #e0f6ff);
}

.logo{
    width: 550px;
    position: absolute;
    top: 0;
    left: 500px;
    margin: 10px;
    display: block;
    z-index: 10;
}
.pipe{
    position: absolute;
    bottom: 0;
    max-width:200px;
    max-height:150px;
    width: auto;
    height: auto;
    animation: pipe-animation 2s infinite linear;
}


button{
    background: #a6d2a6;
    color: aliceblue;
    font-weight: bold;
    border: none;
    padding: 1rem;
    position: absolute;
    right: 40vw;
    top: 50vh;
    cursor: pointer;
    z-index: 1;
    position: absolute;
    left: 635px;
}

button:hover{
    border:  2px solid #0f0f0f;
    background: none;
    color: #101010;
    position: absolute;
    left: 635px;
}

.game-over {
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.322);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
}
.game-over h1 {
    font-size: 3rem;
    color: rgb(18, 18, 18);
    text-align: center;
    margin-top: 15rem;
    position: absolute;
    left: 635px;
}


.mario{
    width: 150px;
    position: absolute;
    bottom: 0;
}

.nuvem {
    width: 550px;
    position: absolute;
    top: 0;
    animation: clouds-animation 20s infinite linear;
    z-index: 5;
}

@keyframes clouds-animation {
    from {
        right: -550px;
    }
    to {
        right: 100%;
    }
}


@keyframes pipe-animation {
    from {
        right: -80px;
    }

    to {
        right: 100%;
    }
}

pipe-animation {
    animation: pipe-animation 2s infinite linear;
}

@keyframes pipe-animation {
    from {
        right: -80px;
    }

    to {
        right: 100%;
    }
}

.jump {
    animation: jump 800ms ease-out;
}

@keyframes jump {
    0% {
        bottom:0;
    }

    40% {
        bottom: 200px;
    }

    50% {
        bottom: 200px;
    }

    60% {
        bottom: 200px;
    }

    100% {
        bottom: 0;
    }
}