body {
  margin: 0;
  overflow: hidden;
  font-family: sans-serif;
  background: blanchedalmond;
}

#startScreen {
  position: absolute;
  width: 100vw;
  height: 100vh;
  background-color: blanchedalmond;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.eye {
  animation: blink 4s infinite;
}

@keyframes blink {
  0%, 96%, 100% {
    opacity: 1;
  }
  97%, 98% {
    opacity: 0;
  }
  99% {
    opacity: 1;
  }
}

#hedgehogStart {
  margin-bottom: 30px;
}

#startScreen h1 {
  font-size: 400%;
  font-family: 'Wide Latin', sans-serif;
  color: black;
  margin-bottom: 40px;
}

#startScreen button {
  padding: 15px 30px;
  font-size: 150%;
  background-color: sienna;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#startScreen button:hover {
  background-color: peru;
}

#game {
  width: 100vw;
  height: 100vh;
  position: relative;
  display: none;
}

#jumphint {
  position: absolute;
  top: 10px;
  left: 10px;
  color: black;
  background-color: ivory;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 90%;
  z-index: 10000;
  opacity: 1;
  transition: opacity 3s ease;
  pointer-events: none;
}

#starhint {
  position: absolute;
  top: 50px;
  left: 10px;
  color: black;
  background-color: ivory;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 90%;
  z-index: 10000;
  opacity: 1;
  transition: opacity 3s ease;
  pointer-events: none;
}

#jumphint.hidden,
#starhint.hidden {
  opacity: 0;
}

#audioToggle {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 8px 12px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  background-color: sienna;
  color: white;
  cursor: pointer;
  z-index: 10000;
}

#audioToggle:hover {
  background-color: peru;
}

#hedgehog {
  position: absolute;
  left: 100px;
  top: 200px;
  width: 60px;
  height: 60px;
}

.pipe {
  position: absolute;
  width: 60px;
  background-color: darkgoldenrod;
}

#score {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 120%;
  background-color: ivory;
  padding: 10px 20px;
  border-radius: 10px;
  z-index: 1000;
}

.star {
  position: absolute;
  width: 30px;
  height: 30px;
  background: gold;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  z-index: 1000;
}

#gameOver {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 350%;
  color: darkred;
  background: ivory;
  padding: 20px 40px;
  border-radius: 10px;
  display: none;
  text-align: center;
  z-index: 1000;
}

#finalScore {
  color: black;
  font-size: 40%;
}

#restartBtn {
  padding: 15px 30px;
  font-size: 50%;
  background-color: sienna;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
}

