/* =========================================================
   STYLESHEET FOR CANOPUS GALAXY VIEW
   ========================================================= */
.verse-top {
  position: absolute;
  top: 75px; /* Distance from the top of the screen */
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  letter-spacing: 1px;
  line-height: 1.8; /* Adds breathing room between the two lines */
  text-shadow: 0 0 10px rgba(150, 180, 255, 0.5);
  pointer-events: none;
  animation: fadeIn 2.5s ease-out;
  z-index: 5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #030308; /* Deep cosmic midnight black */
  font-family: 'Segoe UI', Arial, sans-serif;
}

/* Deep-space radial gradient background */
body {
  background: radial-gradient(ellipse at 30% 40%, #1a0b3d 0%, #0b0620 40%, #000000 100%);
}

/* Interactive galaxy canvas viewport */
canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  cursor: default;
}

/* Header Title */
.title {
  position: absolute;
  top: 30px;
  width: 100%;
  text-align: center;
  color: #ffffff;
  letter-spacing: 6px;
  text-transform: uppercase;
  font-size: 26px;
  font-weight: 300;
  text-shadow: 0 0 20px rgba(150, 180, 255, 0.8);
  pointer-events: none;
  animation: fadeIn 2s ease-out;
}

/* Subtitle / Footer Verse Link Styling */
.subtitle {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  font-size: 11px;
  letter-spacing: 1px;
  line-height: 1.5;
  padding: 0 10px;
  animation: fadeIn 3s ease-out;
  z-index: 5;
  pointer-events: auto; /* Enables clicking on footer links */
}

.subtitle a.footer-link {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.subtitle a.footer-link:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(150, 180, 255, 0.8);
  text-decoration: underline;
}

/* Tooltip label shown on hover */
#label {
  position: absolute;
  transform: translate(-50%, -180%);
  background: rgba(15, 17, 26, 0.85);
  color: #fffdf2;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.15s ease-out;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 248, 224, 0.15);
  z-index: 10;
}

/* Warp transition screen flash overlay */
#flash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.1, 0.8, 0.3, 1);
  z-index: 9999;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.side-verse {
  position: absolute;
  bottom: 10%;
  left: 0;
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  letter-spacing: 1px;
  line-height: 1.6;
  pointer-events: none;
  animation: fadeIn 3s ease-out;
  z-index: 5;
}

/* Optional mobile adjustment so it stacks neatly on small phone screens */
@media screen and (max-width: 768px) {
  .side-verse {
    font-size: 9px;
    bottom: 75px;
  }
}