* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-image: url('back.png');
  background-size: cover;
}

.game-container {
  position: relative;
  width: 800px;
  height: 200px;
  border: 2px solid white; /* Changed to white */
  border-radius: 15px;
  overflow: hidden;
  background-color: lightblue;
}

.grass {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 20px;
  background-color: green;
}

.player {
  position: absolute;
  bottom: 20px;
  width: 50px;
  height: 50px;
  background-image: url('simba.png');
  background-size: cover;
}

.obstacle {
  position: absolute;
  bottom: 20px;
  width: 0;
  height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-bottom: 50px solid orange;
  left: 800px;
  animation: moveObstacle 2s linear infinite;
}

@keyframes moveObstacle {
  from {
      left: 800px;
  }
  to {
      left: -50px;
  }
}

.jump {
  animation: jump 0.6s ease-out;
}

@keyframes jump {
  0% {
      bottom: 20px;
  }
  25% {
      bottom: 70px;
  }
  50% {
      bottom: 150px;
  }
  75% {
      bottom: 70px;
  }
  100% {
      bottom: 20px;
  }
}

.score {
  font-size: 24px;
  position: absolute;
  top: 10px;
  left: 20px;
  color: black;
  z-index: 10;
}
