/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

body {
    font-family: "Roboto", sans-serif;
    background: #000;
    color: #fff;
    overflow: hidden;
    height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
  /* Top Menu */
  #top-menu {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0,0,0,0.8);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    z-index: 20;
  }
  #top-menu h1 {
    font-family: "Orbitron", sans-serif;
    font-size: 32px;
  }
  #top-menu nav {
    display: flex;
    gap: 10px;
  }
  #top-menu button {
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(50,50,50,0.9), rgba(20,20,20,0.9));
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
  }
  #top-menu button:hover {
    background: linear-gradient(135deg, rgba(80,80,80,0.9), rgba(40,40,40,0.9));
    box-shadow: 0 4px 8px rgba(0,0,0,0.7);
    transform: translateY(-2px);
  }
  /* Image Container and Background Image */
  #image-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    cursor: default;
  }
  #pale-blue-dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease;
    opacity: 1;
  }
  /* Quote Section at Bottom (Main Screen) */
  #quote {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    color: #fff;
    z-index: 10;
  }
  #quote blockquote {
    margin-bottom: 10px;
  }
  #quote strong {
    background: #fff;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 5px #fff, 0 0 15px #fff;
  }
  #quote figcaption {
    font-size: 14px;
    font-style: italic;
  }
  /* Side Menus */
  #about-earth-section,
  #full-quote-section {
    position: fixed;
    top: 60px;
    right: -400px;
    width: 400px;
    height: calc(100vh - 60px);
    background: rgba(0,0,0,0.9);
    padding: 25px;
    transition: right 0.5s ease;
    z-index: 15;
    overflow-y: auto;
  }
  #about-earth-section.open,
  #full-quote-section.open {
    right: 0;
  }
  #about-earth-section h2,
  #full-quote-section h2 {
    font-family: "Orbitron", sans-serif;
    margin-bottom: 20px;
  }
  #about-earth-section ul {
    list-style: none;
    padding-left: 0;
    font-size: 18px;
    line-height: 1.8;
  }
  #about-earth-section li {
    margin-bottom: 10px;
  }
  #full-quote-section {
    line-height: 2;
  }
  #full-quote-section p {
    margin-bottom: 15px;
  }
  /* Voyager Pop-Out Modal */
  #voyager-popout {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 30;
  }
  .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000;
    padding: 20px;
    border-radius: 8px;
    width: 800px;
    height: 600px;
    max-height: 80vh;
    overflow-y: auto;
    color: #fff;
  }
  .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
  }
  .tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 20px;
  }
  .tab-link {
    background: none;
    border: none;
    color: #fff;
    padding: 10px;
    cursor: pointer;
    font-family: "Orbitron", sans-serif;
  }
  .tab-link.active {
    border-bottom: 2px solid #00f;
  }
  .tab-content {
    display: none;
    height: 500px;
    overflow-y: auto;
  }
  .tab-content.active {
    display: block;
  }
  .tab-content img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin: 10px 0;
  }
  .tab-content h3 {
    font-family: "Orbitron", sans-serif;
    margin-bottom: 15px;
  }
  .tab-content p {
    line-height: 1.6;
    margin-bottom: 10px;
  }
  /* Voyager Video */
  .voyager-overlay {
    position: fixed;
    top: 60px;
    left: 0;
    width: 300px;
    height: 170px;
    z-index: 15;
  }
  .voyager-overlay iframe {
    pointer-events: none;
  }
  .voyager-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, black, transparent);
    pointer-events: none;
    z-index: 2;
  }
  .voyager-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to top, black, transparent);
    pointer-events: none;
    z-index: 2;
  }
  .voyager-overlay .fade-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 100%;
    background: linear-gradient(to right, black, transparent);
    pointer-events: none;
    z-index: 2;
  }
  .voyager-overlay .fade-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 100%;
    background: linear-gradient(to left, black, transparent);
    pointer-events: none;
    z-index: 2;
  }
  .voyager-overlay .video-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  /* Hide the audio element */
  #music-audio {
    display: none;
  }
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    #top-menu h1 {
      font-size: 24px;
    }
    #quote {
      font-size: 14px;
      width: 90%;
    }
    #about-earth-section,
    #full-quote-section {
      width: 90%;
      right: -100%;
      padding: 15px;
    }
    .modal-content {
      width: 90%;
      height: 500px;
      max-height: 70vh;
    }
    .tab-content {
      height: 400px;
    }
    .tab-content img {
      height: 200px;
    }
    .voyager-overlay {
      top: 50px;
      left: 0;
      width: 250px;
      height: 141px;
    }
  }