
#loading-page {
  position: fixed; 
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(
    circle at center,
    #1a1a1a 0%,
    #000000 100%
  ); 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 20; 
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1); 
}


#main-content {
  display: none; 
  width: 100%;
  height: 100%;
  background-color: #f0f0f0; 
  color: #333;
  font-size: 2.5rem;
  font-weight: 700;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1); 
  flex-direction: column; 
  padding: 2rem;
  gap: 1.5rem;
}


.solar-emblem {
  position: relative;
  width: 15rem;
  height: 15rem;
  margin-bottom: 3rem;
  animation: rotateEmblem 20s linear infinite; 
}

.solar-core {
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    #ffd700 0%,
    #ffa500 70%
  );
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(255, 165, 0, 0.7), 0 0 80px rgba(255, 215, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.solar-flare {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0;
  animation: flarePulse 3s infinite alternate ease-in-out;
}

.solar-flare:nth-child(1) {
  width: 30%;
  height: 30%;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}
.solar-flare:nth-child(2) {
  width: 25%;
  height: 25%;
  bottom: 15%;
  right: 10%;
  animation-delay: 1s;
}
.solar-flare:nth-child(3) {
  width: 20%;
  height: 20%;
  top: 20%;
  right: 25%;
  animation-delay: 0.5s;
}
.solar-flare:nth-child(4) {
  width: 35%;
  height: 35%;
  bottom: 5%;
  left: 20%;
  animation-delay: 1.5s;
}


.progress-text {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #ffd700; 
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}


.loading-message {
  font-size: 1.2rem;
  font-weight: 400;
  color: #aaaaaa;
  min-height: 1.5em;
  margin-bottom: 2.5rem;
  opacity: 0; 
  animation: fadeInMessage 0.8s forwards; /
}


.progress-bar-container {
  width: 80%;
  max-width: 400px;
  height: 10px;
  background-color: #333;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.6);
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    #ffa500 0%,
    #ffd700 100%
  );
  border-radius: 5px;
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth progress */
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  animation: shine 2s infinite linear;
}


.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.8;
}

.particle {
  position: absolute;
  background: rgba(255, 215, 0, 0.6); 
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
  animation: particleFloat 6s infinite ease-out;
}

@keyframes rotateEmblem {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes flarePulse {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
}

@keyframes shine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes fadeInMessage {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes particleFloat {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) scale(0.5);
    opacity: 0;
  }
}


.solar-fact-section {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 90%;
  margin-top: 2rem;
  color: #333;
}

.solar-fact-section h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #ffa500;
  margin-bottom: 1rem;
  text-shadow: 0 0 5px rgba(255, 165, 0, 0.2);
}

.solar-fact-button {
  background: linear-gradient(90deg, #ffa500 0%, #ffd700 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.8rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(255, 165, 0, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.solar-fact-button:hover {
  box-shadow: 0 8px 20px rgba(255, 165, 0, 0.6);
  transform: translateY(-2px);
}

.solar-fact-display {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  margin-top: 1.5rem;
  min-height: 5rem; 
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.solar-fact-display.loading::before {
  content: "Loading fact...";
  color: #888;
  font-style: italic;
  animation: pulseText 1.5s infinite alternate;
}

@keyframes pulseText {
  0% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}


@media (max-width: 768px) {
  .solar-emblem {
    width: 120px;
    height: 120px;
  }
  .progress-text {
    font-size: 2rem;
  }
  .loading-message {
    font-size: 1rem;
  }
  #main-content {
    font-size: 1.8rem;
  }
  .solar-fact-section h3 {
    font-size: 1.5rem;
  }
  .solar-fact-button {
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
  }
  .solar-fact-display {
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .solar-emblem {
    width: 100px;
    height: 100px;
  }
  .progress-text {
    font-size: 1.8rem;
  }
  .loading-message {
    font-size: 0.9rem;
  }
  .progress-bar-container {
    width: 90%;
  }
  #main-content {
    font-size: 1.5rem;
  }
  .solar-fact-section {
    padding: 1.5rem;
  }
  .solar-fact-button {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }
  .solar-fact-display {
    font-size: 0.95rem;
  }
}
