body {
  font-family: monospace;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  background: #f7f7f7;
}

#game {
  position: relative;
  width: 800px;
  height: 300px;
  background-color: #eee;
  border: 2px solid #333;
  overflow: hidden;
  margin-top: 50px;
}

#dino {
  position: absolute;
  bottom: 0;
  left: 50px;
  width: 50px;
  height: 50px;
  background-color: transparent;
  background-image: url('dino.png'); /* your PNG file path */
  background-size: contain; /* scales image to fit */
  background-repeat: no-repeat; /* prevents tiling */
  background-position: center; /* centers the image */
  clip-path: polygon(50% 100%, 0 20%, 100% 0, 75% 100%); /*custom shape*/
}


.cactus {
  position: absolute;
  bottom: 0;
  width: 30px;
  height: 50px;
  background-color: transparent;
  left: 800px;
  border-radius: 10%;
}

#score {
  margin-top: 20px;
  font-size: 20px;
}

#game-over {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 24px;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 10;
}

#game-over button {
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 18px;
  cursor: pointer;
}

