body {
  background-color: #000;
  color: #0f0; /* Retro green text */
  font-family: 'Courier New', monospace;
  margin: 0;
  overflow: hidden; /* Prevent scrollbars */
}

/* Container for the sprite effect */
.sprite-container {
  position: relative;
  width: 100%;
  height: 100vh;
}

/* Logo styling */
.logo {
  display: block;
  margin: 40px auto 0 auto; /* Add space above and below */
  max-width: 600px; /* Doubled size */
  height: auto;
  animation: fade-in 2s ease-in-out;
}

/* Fixed line styling (below the logo) */
.sprite-fixed {
  font-size: 2em;
  text-shadow: 0 0 10px #0f0, 0 0 20px #0f0; /* Glow effect */
  position: relative; /* Stays below the logo */
  margin-top: 20px; /* Space between logo and text */
  text-align: center; /* Center the fixed text */
}

/* Animated sprite */
.sprite {
  font-size: 2em;
  text-shadow: 0 0 10px #0f0, 0 0 20px #0f0; /* Glow effect */
  position: absolute;
  white-space: nowrap;
  animation: move-left-right 5s linear infinite alternate, jump 1s ease-in-out infinite;
}

/* Position second and third lines to avoid logo and static text */
.sprite:nth-child(3) {
  top: 70%; /* Below static text */
}

.sprite:nth-child(4) {
  top: 85%; /* Further down */
}

/* Left-to-right animation */
@keyframes move-left-right {
  0% {
    left: -50%; /* Start outside the left of the screen */
  }
  100% {
    left: 100%; /* Move completely off-screen to the right */
  }
}

/* Jumping animation (tripled height) */
@keyframes jump {
  0%, 100% {
    transform: translateY(0); /* Base position */
  }
  50% {
    transform: translateY(-90px); /* Jump up (3x higher) */
  }
}

/* Fade-in animation for the logo */
@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
