body {
  background-color: Midnightblue;
  overflow: hidden;
  font-family: Arial;
  text-align: center;
}
h1 {
  color: lavender;
}

p{
  color:white;
}

h2{
  color:white; 
}

#gameArea {
  width: 800px;
  height: 300px;
  border: 8px double white;
  margin: auto;
  position: relative;
  overflow: hidden;
  background-image: url("background.jpg");
  background-size: cover;
}
#player {
  width: 100px;
  position: absolute;
  bottom: 0;
  left: 50px;
  
}
#obstacle {
  width: 50px;
  position: absolute;
  bottom: 0;
  left: 700px;
  animation: moveObstacle 3s linear infinite;
  
 

  
}
@keyframes moveObstacle {

  from {
    left: 800px;
  }
  to {
    left: -100px;
  }
}
