:root {
  --timeline-footer-height: 6.9rem;
}

#timeline {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  padding: 0.75rem 3rem 0.1rem 3rem;
  background-color: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(59, 59, 59, 0.18);
  backdrop-filter: blur(2px);
}

#timeline:empty {
  display: none;
}

body.has-fixed-timeline main {
  padding-bottom: calc(var(--timeline-footer-height) + 1rem);
}

.timeline-container {
  position: relative;
  min-height: 6rem;
}

.timeline-step-markers {
  position: absolute;
  left: 0;
  right: 0;
  top: 0.7rem;
}

.timeline-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 3.2rem;
  height: 2px;
  background-color: #3b3b3b;
}

.timeline-step-marker {
  position: absolute;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #1f1f1f;
  opacity: 0;
  transition: opacity 240ms ease-in-out;
}

.timeline-step-marker.is-active {
  opacity: 1;
}

.timeline-step-label {
  font-family: "Josefin Sans", sans-serif;
  margin-bottom: 0.1rem;
  white-space: nowrap;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 0 0.2rem;
  border-radius: 0.2rem;
}

.timeline-step-caret {
  width: 0;
  height: 0;
  border-left: 0.3rem solid transparent;
  border-right: 0.3rem solid transparent;
  border-top: 0.46rem solid #3b3b3b;
}

.timeline-step-marker.is-active .timeline-step-caret {
  border-top-color: #000;
}

.timeline-tick {
  position: absolute;
  top: 3rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.timeline-tick-mark {
  width: 2px;
  height: 0.85rem;
  background-color: #3b3b3b;
  margin-bottom: 0.45rem;
}

.timeline-tick-label {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
}

@media only screen and (max-width: 768px) {
  :root {
    --timeline-footer-height: 7rem;
  }

  #timeline {
    padding: 1rem 1rem 1.5rem 1rem;
  }

  .timeline-container {
    min-height: 4.5rem;
  }

  .timeline-track {
    top: 3rem;
  }

  .timeline-step-label {
    font-size: 0.7rem;
  }

  .timeline-tick-label {
    font-size: 0.78rem;
  }

  body.has-fixed-timeline main {
    padding-bottom: calc(var(--timeline-footer-height) + 1.5rem);
  }
}
