.game {
    width: 600px;
    height: 200px;
    border-bottom: 1px solid #000;
    margin: auto;
}
#dino {
    width: 50px;
    height: 50px;
    background-image: url(img/dino.png);
    background-size: 50px 50px;
    position: relative;
    top: 150px;
}
#cactus {
    width: 30px;
    height: 40px;
    background-image: url(img/cactus2.png);
    background-size: 30px 40px;
    position: relative;
    top: 110px;
    left: 580px;
    animation: cactusMov 1.5s infinite linear;
}
@keyframes cactusMov {
    0% {
        left: 580px;
    }
    100% {
        left: -20px;
    }
}

.jump {
    animation: jump 1.5s linear;
}
@keyframes jump {
    0% {
        top: 150px;
    }
    10% {
        top: 120px;
    }
    20% {
        top: 80px;
    }
    30% {
        top: 50px;
    }
    40% {
        top: 30px;
    }
    50% {
        top: 10px;
    }
    60% {
        top: 30px;
    }
    70% {
        top: 50px;
    }
    80% {
        top: 80px;
    }
    90% {
        top: 120px;
    }
    100% {
        top: 150%;
    }
}