@keyframes slideright {
    from {
        background-position-x: 20000vw;
    }
    to {
        background-position-x: 0;
    }
}

body {
    margin: 0;
    overflow-x: hidden; 
    overflow-y: hidden; 
}

.deserto {
    background: url("../img/fundo.png") bottom/ auto 100%;
    height: 100vh;
    width: auto;
    animation: slideright 800s infinite linear;
    display: flex;
    align-items: end; 
    position: relative;
    overflow: hidden;
}

.stop {
    background: url('../img/fundo.png') bottom/ auto 100%;
    height: 100vh;
    width: auto;
    display: flex;
    align-items: end; 
    animation-play-state: paused;
}

.dinoVivo {
    background-image: url('../img/dinoVivo.png');
    background-size: contain;
    background-repeat: no-repeat;
    height: 15vw;
    width: 15vw;
    position: absolute;
    bottom: 0;
    left: 50px;
}

.dinoMorto {
    background-image: url('../img/dinoMorto.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 15vw;
    height: 15vw;   
    margin-bottom: -20px;
    transform: translateX(-60px);
    z-index: 10;
}

.obstacle {
    background-image: url('../img/cactu.png');
    width: 150px;
    height: 150px;
    position: absolute;
    bottom: 50px;
    z-index: 5;
}