
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Press Start 2P', cursive;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.game-board {
  width: 100vw;
  height: 100vh;
  border-bottom: 15px solid rgb(0, 110, 24);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: linear-gradient(#3c6f1c, #e0f6ff);
}

.pipe {
  position: absolute;
  bottom: 0;
  width: 80px;
  animation: pipe-animation 2s infinite linear;
}

.mario {
  width: 150px;
  position: absolute;
  bottom: 0;
  left: 80px;
}

.jump {
  animation: jump 500ms ease-out;
}

.clouds {
  position: absolute;
  top: 50px;
  animation: clouds-animation 30s infinite linear;
  opacity: 0.8;
}

/* Specific styles for each cloud to make them smaller and placed differently */
.cloud1 {
  width: 100px;
  top: 20px;
  left: -250px;
  animation-delay: 0s;
}

.cloud2 {
  width: 120px;
  top: 80px;
  left: -300px;
  animation-delay: 10s;
}

.cloud3 {
  width: 150px;
  top: 140px;
  left: -200px;
  animation-delay: 20s;
}

.game_over {
  color: #01e310;
  -webkit-text-stroke: 5px #000;
  text-align: center;
  position: absolute;
  left: 30%;
  top: 40%;
  font-size: 4rem;
  font-family: 'Press Start 2P', cursive; /* Retro game style font */
}


@keyframes pipe-animation {
  from {
    right: -80px;
  }
  to {
    right: 100%;
  }
}

@keyframes clouds-animation {
  from {
    left: -300px;
  }
  to {
    left: 100%;
  }
}

@keyframes jump {
  0% {
    bottom: 0;
  }
  40% {
    bottom: 180px;
  }
  50% {
    bottom: 180px;
  }
  60% {
    bottom: 180px;
  }
  100% {
    bottom: 0;
  }
}

@keyframes clouds-animation {
  from {
    right: -550px;
  }
  to {
    right: 100%;
  }
}

.restart-btn {
  display: none;
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1rem;
  padding: 15px 25px;
  background-color: #e41212;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  z-index: 10;
}
