/* Style for the loading screen */
#loading-screen {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #0d0b09 20%, #000000 70%);
  background-color: black; /* fallback */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  text-align: center;
}

/* Loading text - fade in effect for both sentences */
#loading-text-top,
#loading-text-bottom {
  font-family: "Courier New", Courier, monospace;
  color: white;
  font-size: 32px;
  opacity: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

#loading-text-top {
  margin-bottom: 20px;
  animation: fadeInText 1.5s ease-in-out forwards;
}

#loading-text-bottom {
  margin-top: 20px;
  animation: fadeInText 2s ease-in-out forwards;
  animation-delay: 2s;
}

@keyframes fadeInText {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Loading wheel container */
#loading-wheel {
  width: 110px;
  height: 110px;
  border: 6px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  position: relative;
  z-index: 10000;
}

/* Red dot (robot eye) */
#robot-eye {
  width: 50px;
  height: 50px;
  background-color: #600000;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  animation: eye-move 3s ease-in-out infinite;
  overflow: hidden;
}

/* Second robot eye with separate styling */
#robot-eye2 {
  width: 55px;
  height: 55px;
  background-color: #400000; /* Different color */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  animation: eye-move 3s ease-in-out infinite;
  overflow: hidden;
}

/* Crescent reflection inside the eye */
#crescent {
  width: 25px; /* Larger size for crescent reflection */
  height: 25px;
  background-color: black;
  position: absolute;
  top: 25%; /* Adjust this to position the crescent */
  left: 25%;
  border-radius: 50%;
}

/* Crescent reflection inside the second eye */
#crescent2 {
  width: 3px;
  height: 3px;
  background-color: white;
  position: absolute;
  top: 22px;
  left: 28px;
  border-radius: 50%;
}

/* Animation for the eye movement */
@keyframes eye-move {
  0% {
    transform: translate(-50%, -20%) translateX(-25px);
  }
  20% {
    transform: translate(-20%, -50%) translateX(-25px);
  }
  30% {
    transform: translate(-50%, -20%) translate(-15px, -15px);
  }
  40% {
    transform: translate(-50%, -50%) translate(-15px, -15px);
  }
  50% {
    transform: translate(-50%, -50%) translateY(25px);
  }
  60% {
    transform: translate(-50%, -60%) translateY(25px);
  }
  80% {
    transform: translate(-50%, -50%) translateX(25px);
  }
  100% {
    transform: translate(-50%, -60%) translateX(25px);
  }
}

/* Keyframe animation for raining symbols */
@keyframes rain {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* Individual symbol styles */
.symbol {
  position: absolute;
  top: 0;
  width: 1px;
  height: 3px;
  background-color: rgba(242, 197, 124, 0.1); /* spice-sand tone */
  border-radius: 50%;
  animation: sand-blow linear infinite;
  opacity: 0;
  filter: blur(0.5px);
}

/* Keyframe for fade-out effect when artwork renders */
@keyframes sand-blow {
  0% {
    transform: translate(-10vw, -10vh);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translate(100vw, 100vh);
    opacity: 0;
  }
}


#dune-orbit {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 40px auto;
  z-index: 1000;
}

#planet {
  width: 100px;
  height: 100px;
  background: radial-gradient(circle at 30% 30%, #d46a00, #4b1d06);
  border-radius: 50%;
  position: absolute;
  top: 30px;
  left: 30px;
  box-shadow: 0 0 12px rgba(255, 200, 100, 0.4);
}

.moon-orbit {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  animation: rotateOrbit 6s linear infinite;
  transform-origin: center center;
}

.moon-orbit.moon2 {
  animation-duration: 10s;
  transform: scale(1.4); /* farther moon */
}

.moon {
  width: 10px;
  height: 10px;
  background-color: #cfcfcf;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 4px rgba(255,255,255,0.4);
}

@keyframes rotateOrbit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
