.game {
    width: 600px;
    height: 200px;
    border: 1px solid #000;
    margin: auto;
}
#dino {
width: 70px;
height: 150px;
background-image: url(img/скаби.png);
background-size: 70px 150px;
position: relative ;
top: 50px;

}

#cactus {
    width: 50px;
    height: 50px;
    background-image: url(img/пц.png);
    background-size: 50px 50px;
    position: relative;
    top: 0px;
    left: 500px;
    animation: cactusMov 1.7s infinite linear;
}
@keyframes cactusMov {
    0% {
        left: 600px;
    }
    100% {
        left: -20px;
    }
}

.jump {
    animation: jump 0.5s linear;
}
@keyframes jump {
    0% {
        top: 50px;
    }
    20%{
        top: 15px;
    }
    40%{
        top: -15px;
    }
    60%{
        top: -15px;
    }
    80%{
        top: 15px;
    }
    100% {
        top: 50px;
    }
}
