*{
  padding: 0;
  margin: 0;
}


#game{
  width: 500px;
  height: 200px;
  border: 1px solid white;
}

#character{
  width: 100px;
  height: 100px;
  position: relative;
  background-color: red;
  top: 50px;
}

#block{
  background-color: yellow;
  top: 10px;
  left: 50px;
  width: 100px;
  height: 200px;
  position: relative;
  animation: block 1s infinite linear;
}

@keyframes block {
  0%{left: 200px;}
  100%{left: -400px;}
}


body {
background-color: black;
}


p1 {
  position: absolute;
  top: 10vw;
  left: 10vw;
}
