* {
  margin: 0;
  padding: 0;
}

body {
  background-color: red;
  overflow: hidden;
}

.gameContainer {
  background-image: url(bg.png.jpg);
  background-repeat: no-repeat;
  background-size: 100vw 100vh;
  width: 100%;
  height: 100vh;
  position: relative;
}

.dino {
  background-image: url(dino.jpg.png);
  background-repeat: no-repeat;
  background-size: cover;
  width: 230px;
  height: 115px;
  position: absolute;
  bottom: 0;
  left: 52px;
}

.obstacle {
  width: 160px;
  height: 150px;
  background-image: url(dragon.jpg.png);
  background-size: cover;
  position: absolute;
  bottom: 0;
  left: 44vw;
}

.animateDino {
  animation: dino 0.8s linear;
}

.obstacleAni {
  animation: obstacleAni 3s linear infinite;
}

.gameOver {
  visibility: hidden;
  font-size: 50px;
  color: white;
  text-align: center;
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ✅ Restart button */
#restartBtn {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #00bcd4;
  border: none;
  color: white;
  padding: 15px 30px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
#restartBtn:hover {
  background-color: #0097a7;
}

/* Jump Animation */
@keyframes dino {
  0% {
    bottom: 0;
  }
  50% {
    bottom: 422px;
  }
  100% {
    bottom: 0;
  }
}

/* Obstacle Animation */
@keyframes obstacleAni {
  0% {
    left: 100vw;
  }
  100% {
    left: -10vw;
  }
}
