body{
    padding : 0;
    margin : 0;
}

#game
{
    width: 400px;
    height: 500px;
    border: 1px solid black;
    margin: auto;
    overflow: hidden;
}

#block
{
    width: 50px;
    height: 500px;
    background-color : black;
    position: relative;
    left: 400px;
    animation: block 2s infinite linear;

}

@keyframes block
{
    0% {left: 400px}
    100% {left: -50px}
    /* do not add ; at the end as it stops the animation */
}

#hole
{
    width: 50px;
    height: 150px;
    background-color:red;
    left: 400px;
    top: -500px;
    position: relative;
    animation: block 2s infinite linear;
}

#character
{
    width: 20px;
    height: 20px;
    background-color: blue;
    position: absolute;
    top: 100px;
    border-radius: 50%;
}

.text{
    display: block;
    margin-top: 300px;
    margin-left: 100px;
}