@media screen and (max-width: 950px) {
    .tela-jogo {
        height: 70% !important;
    }

    .tubo {
        width: 30px !important;
    }

    .mario {
        width: 180px !important;
        padding-left: 100px !important;
    }

    .gameover {
        width: 18% !important;
    }

    .score {
        font-size: 1rem !important;
    }

    .btInicio {
        padding: 5px !important;
        border-radius: 4px !important;
    }

    .F5 {
        font-size: 0.7rem !important;
        width: 100px !important;
    }
}

@media screen and (max-width: 100vh) {

    .tela-jogo,
    .placar,
    .fundo {
        display: none !important;
    }

    .divVire {
        display: block !important;
    }

    .vire {
        height: 160px;
        width: 160px;
        background-image: url('../imagens/vire.gif');
        background-size: 100%;
        background-position: center;
        background-repeat: no-repeat;
    }
    html {
        background: linear-gradient(#87CEEB, #E0F6FF);
        display: flex;
        justify-content: center;
        padding-top: 20% !important;
      }

}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    height: 100%;
}

.tela-jogo {
    width: 100%;
    height: 80%;
    border-bottom: 15px solid #047c28;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    display: block;
    background: linear-gradient(#87CEEB, #E0F6FF);
}

.fundo {
    width: 100%;
    height: 100%;
    background-image: url(../imagens/fundo.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    text-align: center;
}

.select {
    margin-top: 10%;
    padding: 10px;
    color: #000;
    text-align: center;
    border-radius: 8px;
}

.inicio {
    width: 100%;
    height: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.perdeu {
    width: 100%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gameover {
    width: 25%;
    z-index: 3;
}

.btInicio {
    padding: 10px;
    background-color: rgb(123, 187, 123);
    color: #fff;
    border-radius: 8px;
}

.placar {
    display: flex;
    text-align: center;
    justify-content: center;
}

.score {
    color: orange;
    font-weight: bold;
    font-size: 2rem;
    border: 2px solid green;
    padding-left: 10px;
    padding-right: 10px;
}

.F5 {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 150px;
    border: 1px solid rgba(0, 0, 0, 0.548);
    color: white;
    background-color: #60abd471;
    padding: 5px;
    border-radius: 5px 0 0 0;
}

.tubo {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    animation: pipe-animation 30s infinite linear;
}

.mario {
    width: 350px;
    position: absolute;
    padding-left: 200px;
    bottom: 0;
    z-index: 2;
}

.puloPC {
    animation: jump 800ms ease-out;
}

.puloMO {
    animation: jumpMO 1000ms ease-out;
}

.nuvens {
    position: absolute;
    width: 45%;
    animation: cloud-animation 15s infinite linear;
    z-index: 1;
}

#mensagem {
    font-size: 2.5vw;
    width: 100%;
    text-align: center;
}

@keyframes cloud-animation {
    from {
        right: -45%;
    }

    to {
        right: 100%;
    }
}

@keyframes pipe-animation {
    from {
        right: -80px;
    }

    to {
        right: 100%;
    }
}

/* Jump para quando for executado num PC */
@keyframes jump {
    0% {
        bottom: 0
    }

    ;

    40% {
        bottom: 180px;
    }

    50% {
        bottom: 180px;
    }

    60% {
        bottom: 90px;
    }

    100% {
        bottom: 0;
    }
}

/* Jump para quando for executado num equipamento mobile */
@keyframes jumpMO {
    0% {
        bottom: 0
    }

    ;

    40% {
        bottom: 90px;
    }

    50% {
        bottom: 90px;
    }

    60% {
        bottom: 45px;
    }

    100% {
        bottom: 0;
    }
}