/* Navigation links for the unstyled section */
nav a {
  color: #0066cc;
  text-decoration: none;
  font-weight: bold;
}

/* Styled section background and body */
.styled-body {
  background: radial-gradient(circle at center, #1b1235 0%, #090613 100%);
  color: #e2e8f0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  padding: 60px 20px;
  text-align: center;
  min-height: 100vh;
}

/* Header */
.styled-header {
  margin-bottom: 50px;
}

/* Main title */
.main-title {
  font-size: 2.8rem;
  color: #a5b4fc;
  text-shadow: 0 0 15px rgba(165, 180, 252, 0.6);
  margin: 0 0 10px 0;
}

/* Navigation menu */
.styled-nav {
  margin-bottom: 20px;
}

.styled-nav a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: bold;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.styled-nav a:hover {
  color: #a5b4fc;
  text-shadow: 0 0 8px rgba(165, 180, 252, 0.5);
}

/* Subtitle */
.subtitle {
  font-size: 1.15rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
}

/* Planet cards */
.planet-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px;
  margin: 40px auto;
  max-width: 800px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Planet titles */
.planet-title {
  font-size: 2rem;
  color: #38bdf8;
  font-variant: small-caps;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* Planet text */
.planet-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 30px;
}

/* Planet images wrapper */
.image-container {
  display: inline-block;
  margin-bottom: 10px;
}

/* Planet images */
.planet-image {
  border: 3px solid rgba(165, 180, 252, 0.3);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(165, 180, 252, 0.2);
  display: block;
  margin: 0 auto;
}

/* Styled credit text beneath the images */
.image-credit {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 10px;
  font-style: italic;
  text-align: center;
}

/* CSS effects section */
.effects-demo-card {
  background: rgba(165, 180, 252, 0.05);
  border: 2px dashed #a5b4fc;
  border-radius: 20px;
  padding: 40px;
  margin: 60px auto 40px auto;
  max-width: 900px;
  text-align: center;
}

/* Section heading */
.effects-heading {
  font-size: 1.8rem;
  color: #c084fc;
  font-variant: small-caps;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(192, 132, 252, 0.4);
}

/* Intro text */
.effects-intro {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 40px;
}

/* Holds the three stars */
.stars-container {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  flex-wrap: wrap;
}

/* Each star card */
.star-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 25px;
  width: 240px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Star icon */
.star-icon {
  display: inline-block;
  font-size: 3.5rem;
  color: #e2e8f0;
  margin-bottom: 15px;
}

.star-title {
  font-size: 1.2rem;
  color: #a5b4fc;
  margin: 10px 0;
}

.star-text {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* Transform effect */
.transform-star {
  transition: transform 0.3s ease;
}

.transform-star:hover {
  transform: scale(1.4) rotate(45deg);
  color: #f59e0b;
}

/* Transition effect */
.transition-star {
  transition: color 0.8s ease-in-out;
}

.transition-star:hover {
  color: #ec4899;
}

/* Animation effect */
.animation-star {
  color: #38bdf8;
  animation: starPulse 2.5s infinite ease-in-out;
}

/* Star animation */
@keyframes starPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.8);
  }

  100% {
    transform: scale(1);
    opacity: 0.6;
  }
}

/* Footer */
.styled-footer {
  margin-top: 60px;
}

/* Back to top button */
.back-to-top {
  display: inline-block;
  color: #a5b4fc;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 10px 25px;
  border: 2px solid #a5b4fc;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background-color: #a5b4fc;
  color: #090613;
  box-shadow: 0 0 15px rgba(165, 180, 252, 0.5);
}