html,
body {
  margin: 0;
  padding: 0;
  height: 500vh;
  /* Increased height for more scroll room */
  background-color: #000407;
  overflow-x: hidden;
  font-family: 'Roboto', sans-serif;
  color: #E0E0E0;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

body::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari and Opera */
}

canvas {
  display: block;
}

#globe-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.text-container {
  position: fixed;
  width: 90%;
  left: 5%;
  top: 30%;
  z-index: 1;
  text-align: center;
  opacity: 0;
}

h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 52px;
  color: #E0E0E0;
  margin: 0;
  font-weight: 500;
}

p {
  font-size: 24px;
  color: #0280C8;
  margin: 10px 0 0;
  font-family: 'Space Grotesk', sans-serif;
}

/* Phase 2 Styles */
#phase-2-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15%;
  box-sizing: border-box;
  pointer-events: none;
}

.indicator {
  width: 250px;
}

.indicator h1 {
  font-size: 48px;
}

.indicator p {
  font-size: 18px;
  color: #0280C8;
}

#passenger-indicator {
  text-align: left;
}

#flight-indicator {
  text-align: right;
}

#timeline-container {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  z-index: 2;
  pointer-events: auto;
}

#slider-wrapper {
  position: relative;
  padding-bottom: 20px;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 2px;
  background: #444;
  outline: none;
  opacity: 0.9;
  -webkit-transition: .2s;
  transition: opacity .2s;
  margin: 0;
  padding: 0;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #E0E0E0;
  cursor: pointer;
  border-radius: 50%;
}

.slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: #E0E0E0;
  cursor: pointer;
  border-radius: 50%;
}

.slider-labels,
.slider-labels-mobile {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  color: #888;
  font-size: 14px;
  font-family: 'Space Grotesk', sans-serif;
}

.slider-labels span,
.slider-labels-mobile span {
  position: relative;
  display: inline-block;
  text-align: center;
  width: 40px;
}

.slider-labels span::before,
.slider-labels-mobile span::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 8px;
  background-color: #888;
}

#slider-label-text {
  text-align: center;
  font-size: 16px;
  color: #E0E0E0;
  margin-top: 25px;
  font-family: 'Space Grotesk', sans-serif;
}

.slider-labels-mobile {
  display: none;
}

/* Phase 3 Styles */
#text-container-2 {
  text-align: left;
  width: 45%;
  left: 5%;
  top: 15%;
  /* Shifted up from 25% */
}

#text-container-2 p {
  margin-bottom: 20px;
}

#additional-text {
  margin-top: 40px;
  position: relative;
}

/* Accordion Styles */
.accordion-item {
  margin-top: 20px;
}

.accordion-header {
  font-size: 20px;
  color: #E0E0E0;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
  font-family: 'Space Grotesk', sans-serif;
}

.indicator-line {
  color: #555;
  /* Inactive indicator color */
  margin-right: 15px;
  font-weight: bold;
  transition: color 0.3s ease;
}

.accordion-item.active .accordion-header {
  color: #0280C8;
  /* Active text color */
}

.accordion-item.active .indicator-line {
  color: #0280C8;
  /* Active indicator color */
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
  opacity: 0;
  padding-left: 20px;
  /* Indent the content slightly from the header line */
}

.accordion-item.active .accordion-content {
  opacity: 1;
  /* max-height is set in JS for smooth animation */
}

.accordion-content p {
  font-size: 16px;
  /* Smaller than header */
  color: #AAA;
  line-height: 1.5;
  margin-top: 10px;
  font-family: 'Roboto', sans-serif;
}

/* Responsive Styles */
@media (min-width: 1512px) {
  .text-container {
    left: 100px;
    right: 100px;
    width: auto;
  }

  #phase-2-container {
    padding: 0 100px;
  }

  #text-container-2 {
    left: 100px;
    right: auto;
    /* Override .text-container */
    width: 45%;
  }
}

@media (max-width: 1512px) {
  h1 {
    font-size: 48px;
  }

  p {
    font-size: 22px;
  }

  .indicator h1 {
    font-size: 44px;
  }
}

@media (max-width: 1200px) {
  h1 {
    font-size: 42px;
  }

  p {
    font-size: 20px;
  }

  .indicator {
    width: 200px;
  }

  .indicator h1 {
    font-size: 38px;
  }

  .indicator p {
    font-size: 16px;
  }

  #timeline-container {
    width: 70%;
  }

  .text-container {
    left: 82px;
    right: 82px;
    width: auto;
  }

  #phase-2-container {
    padding: 0 82px;
  }

  #text-container-2 {
    left: 82px;
    right: auto;
    /* Override .text-container */
    width: 45%;
  }
}

@media (max-width: 810px) {
  h1 {
    font-size: 36px;
  }

  p {
    font-size: 18px;
  }

  #phase-2-container {
    flex-direction: column;
    justify-content: center;
    padding: 0 80px;
  }

  .indicator {
    width: 100%;
    text-align: center !important;
    margin-bottom: 40px;
  }

  #timeline-container {
    width: 80%;
    bottom: 10%;
  }

  #text-container-2,
  .text-container {
    width: auto;
    left: 80px;
    right: 80px;
  }
}

@media (max-width: 480px) {

  #text-container-2,
  .text-container {
    width: auto;
    left: 30px;
    right: 30px;
  }

  #phase-2-container {
    padding: 0 30px;
    justify-content: space-evenly;
    /* Added to distribute items vertically */
  }

  .indicator {
    margin-bottom: 0;
    /* Remove existing margin-bottom from parent media query */
  }

  #timeline-container {
    margin-top: 20px;
    /* Add space around timeline */
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 28px;
  }

  p {
    font-size: 16px;
  }

  .indicator h1 {
    font-size: 32px;
  }

  .slider-labels {
    display: none;
  }

  .slider-labels-mobile {
    display: flex;
    font-size: 12px;
  }

  #slider-label-text {
    font-size: 14px;
  }

  .accordion-header {
    font-size: 16px;
  }

  .accordion-content p {
    font-size: 14px;
  }
}