body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #000000; /* Light, neutral background */
  color: #333; /* Darker text for readability */
}

#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Ensure canvas is behind the HUD */
}

#hud {
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #fff;
  background: rgba(0, 0, 0, 0.7); /* Subtle dark background with opacity */
  padding: 20px 25px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
  max-width: 320px;
  width: auto;
  z-index: 10; /* Ensure the HUD stays above the canvas */
  transition: all 0.3s ease; /* Smooth transition on hover or changes */
}

#hud:hover {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2); /* Slightly more pronounced shadow on hover */
}

#timeScale {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #ddd; /* Slightly muted text */
}

#controls ul {
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.4;
}

#controls li {
  margin-bottom: 12px;
}

#controls li:last-child {
  margin-bottom: 0;
}

#planetDescription, #planetDescriptionBox {
  margin-top: 10px;
  font-size: 20px;
  line-height: 1.6;
  color: #ddd;
  max-width: 100%;
}

h2 {
  font-size: 30px;
  margin-top: 0px;
  margin-bottom: 12px;
  font-weight: 600;
  color: #fff;
}

h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #ddd;
}

#planetDescription {
  font-size: 18px;
  color: #1B1B1B;
  font-weight: 400;
}

#planetDescriptionBox {
  font-size: 14px;
  color: #2F2A2A;
  font-weight: 400;
}

.box {
  padding: 10px;
  background-color: #5BEB61D6;
  border-radius: 10px;
  margin-top: 10px;
}

/* Styling for Time Scale and Controls Box */
#timeScale, #controls {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  padding: 12px 15px;
  margin-bottom: 15px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#timeScale:hover, #controls:hover {
  background-color: rgba(0, 0, 0, 0.6); /* Slightly darker on hover */
}

#planetDescriptionBox {
  font-size: 14px;
  color: #1F1B1B;
  line-height: 1.6;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  #hud {
    max-width: 260px;
    padding: 15px;
  }

  #timeScale, #controls {
    padding: 10px 12px;
  }
}
