*{
    padding: 0;
    margin: 0;
}


.game{
    width: 400px;
    height: 200px;
    border: 1px solid black;
    background: linear-gradient(to right, orange, red);
}

.animate{
    animation: jump 500ms;
}

#score {
    font-family: sans-serif;
    font-size: 65px;
}

#char {
    width: 20px;
    height: 40px;
    background-color: red; 
    position: relative;
    top: 159px;
    border: 1px solid black;
}
@keyframes jump{
    0%{top: 159px;}
    30%{top: 120px;}
    70%{top: 120px;}
    100%{top: 159px;}
}

@keyframes block{
    1%{ left: 380px;}
    100%{ left: -20px;}
}
#block {
    position: relative;
    display: block;
    animation: block 1s infinite linear;
    width: 20px;
    height: 20px;
    background-color: blue;
    top: 137px;
    left: 378px;
    border: 1px solid black;

}
