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

body {
  background: #000;
  overflow: hidden;
}

/* Scene container to hold the rocket and stars */
.scene {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #01070a;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Styling the stars, dynamically generated in JS */
.scene i {
  position: absolute;
  top: -250px; /* Start position off-screen */
  background: rgba(255, 255, 255, 0.5);
  animation: stars linear infinite;
}

@keyframes stars {
  0% {
    /* Start at the top */
    transform: translateY(0px);
  }

  100% {
    /* Move to the bottom */
    transform: translateY(200vh);
  }
}

.rocket {
  position: relative;
  animation: rocket 0.2s ease infinite;
}

@keyframes rocket {
  0%,
  100% {
    transform: translateY(-2px); /* Move slightly up */
    filter: brightness(1); /* Normal brightness */
  }

  50% {
    transform: translateY(2px); /* Move slightly down */
    filter: brightness(2); /* Increase brightness */
  }
}

.rocket::before {
  content: "";
  position: absolute;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 200px;
  /* Blue flame gradient */
  background: linear-gradient(#00d0ff, transparent);
  animation: flame-flicker 0.5s infinite alternate;
}

@keyframes flame-flicker {
  0% {
    /* Start with slight blur */
    filter: blur(5px);
  }

  100% {
    /* Increase blur for flicker effect */
    filter: blur(15px);
  }
}

.rocket_body {
  width: 150px;
  height: 300px;
  /* Gradient for the rocket */
  background: linear-gradient(135deg, #e91e63, #ff9800);

  clip-path: polygon(
    /* Create rocket shape using polygon points */ 50% 0%,
    /* Top nose */ 60% 10%,
    /* Upper body right */ 60% 70%,
    /* Right body */ 75% 80%,
    /* Right fin upper */ 75% 100%,
    /* Right fin lower */ 50% 90%,
    /* Bottom */ 25% 100%,
    /* Left fin lower */ 25% 80%,
    /* Left fin upper */ 40% 70%,
    /* Left body */ 40% 10% /* Upper body left */
  );

  position: relative;
  margin: 50px auto; /* Center the rocket head */
}

.rocket_body span {
  width: 40px;
  height: 10px;
  background: radial-gradient(circle, #9cf, #37f);
  border-radius: 50%;
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(0, 0, 255, 0.5);
}

.rocket_body span:nth-child(2) {
  top: 30%;
}

.rocket_body span:nth-child(3) {
  top: 45%;
}
