:root {
  --c1: #0f172a;
  /* azul noite */
  --c2: #312e81;
  /* roxo escuro */
  --c3: #0f766e;
  /* verde petróleo */
  --c4: #1e293b;
  /* azul ardósia */
  --text: #e2e8f0;
  /* cinza claro */
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  padding: 40px 20px 0;
  background: linear-gradient(
    135deg,
    var(--c1),
    var(--c2),
    var(--c3),
    var(--c4)
  );
  background-size: 400% 400%;
  animation: bgShift 18s ease infinite;
  color: var(--text);
  font-family: Montserrat, "Segoe UI", Roboto, Ubuntu,
    "Helvetica Neue", Arial, sans-serif;
  width: 100%;
  max-width: 100vw;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

h1 {
  margin: 0;
  text-align: center;
  text-transform: lowercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  font-size: clamp(24px, 4vw, 48px);
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.35));
}

/* Container to center content and control spacing */
.container {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 14px;
  z-index: 100;
}

@keyframes bgShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.main-icon {
  height: 65px;
  filter: brightness(0) invert(1);
}

/* Solar System Styles */
.solar-system {
  position: relative;
  width: min(600px, 90vw);
  height: min(600px, 90vw);
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Sun in the center */
.sun {
  position: absolute;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, #ffd700, #ff8c00);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.8), 0 0 80px rgba(255, 140, 0, 0.4);
  z-index: 10;
}

/* Orbit rings */
.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: rotate linear infinite;
}

/* Planet */
.planet {
  position: absolute;
  border-radius: 50%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Individual orbits and planets */
.orbit1 {
  width: 100px;
  height: 100px;
  animation-duration: 3s;
}

.planet1 {
  width: 8px;
  height: 8px;
  background: #8b7355;
}

/* Mercury */

.orbit2 {
  width: 140px;
  height: 140px;
  animation-duration: 5s;
}

.planet2 {
  width: 12px;
  height: 12px;
  background: #ffd700;
}

/* Venus */

.orbit3 {
  width: 180px;
  height: 180px;
  animation-duration: 8s;
}

.planet3 {
  width: 14px;
  height: 14px;
  background: #4169e1;
}

/* Earth */

.orbit4 {
  width: 220px;
  height: 220px;
  animation-duration: 12s;
}

.planet4 {
  width: 10px;
  height: 10px;
  background: #cd5c5c;
}

/* Mars */

.orbit5 {
  width: 300px;
  height: 300px;
  animation-duration: 18s;
}

.planet5 {
  width: 28px;
  height: 28px;
  background: #daa520;
}

/* Jupiter */

.orbit6 {
  width: 380px;
  height: 380px;
  animation-duration: 24s;
}

.planet6 {
  width: 24px;
  height: 24px;
  background: #f4a460;
}

/* Saturn */

.orbit7 {
  width: 460px;
  height: 460px;
  animation-duration: 30s;
}

.planet7 {
  width: 18px;
  height: 18px;
  background: #40e0d0;
}

/* Uranus */

.orbit8 {
  width: 540px;
  height: 540px;
  animation-duration: 36s;
}

.planet8 {
  width: 16px;
  height: 16px;
  background: #4169e1;
}

/* Neptune */

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body {
    padding: 20px 10px 0;
  }

  .solar-system {
    margin-top: 150px;
    width: min(500px, 80vw);
    height: min(500px, 80vw);
  }

  .main-icon {
    height: 60px;
  }

  h1 {
    font-size: clamp(26px, 7vw, 42px);
  }

  .container {
    gap: 10px;
    padding: 12px;
  }
}

/* Footer Styles */
.footer {
  width: 100%;
  padding: 2rem 1rem;
  text-align: center;
  color: rgba(226, 232, 240, 0.6);
  font-size: 0.875rem;
  margin-top: auto;
}

.footer span {
  display: block;
}
