body {
    overflow: hidden;
}

#floor {
    width: 100%;
    height: 100px;
    background: linear-gradient(orange, red);
    position: absolute;
    bottom: 0;
    left: 0;
}

#player {
    width: 150px;
    height: 150px;
    position: absolute;
    bottom: 100px;
    left: 140px;
}

.jump {
    animation-name: jump;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes jump {
    0% {
        bottom: 100px;
    }
    50% {
        bottom: 450px;
    }
    100% {
        bottom: 100px;
    }
}

#enemy {
    width: 200px;
    height: 70px;
    position: absolute;
    bottom: 100px;
    right: 0;
    transform: translateX(100%);
    animation-name: drive;
    animation-duration: 1.5s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes drive {
    0% {
        right: 0;
        transform: translateX(100%);
    }
    100% {
        right: 100%;
        transform: translateX(-100%);
    }
}
