.main {
  margin: 5%;
}

.stops{
  text-decoration: none;
  color: inherit;
}

.timeline {
  position: relative;
  width: min(1100px, 94%);
  margin: 0 auto;
  padding: 40px 0;
}

.timeline-track,
.timeline-progress {
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  transform: translateX(-50%);
  border-radius: 10px;
}

.timeline-track {
  height: 100%;
  background: var(--card-bg);
}

.timeline-progress {
  height: 0;
  background: var(--accent);
  z-index: 2;
}

/* Timeline Stop Unit */
.timeline-stop {
  position: relative;
  width: 100%;
  height: 500px;
}

/* Journey Stop Card */
.journey-card {
  position: absolute;
  top: 50%;
  width: 370px;
  min-height: 180px;
  transform: translateY(-50%);
  padding: 28px;
  text-align: left;
  border: 2px solid var(--heading-color);
  border-radius: 0;
  background: var(--card-bg);
  color: var(--paragraph-color);
  cursor: pointer;
  z-index: 5;
  font: inherit;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.journey-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  margin-top: 5px;
}

.timeline-stop.left .journey-card {
  right: calc(50% + 84px);
}

.timeline-stop.right .journey-card {
  left: calc(50% + 84px);
}

.journey-card:hover {
  background: var(--feedback-bg);
  box-shadow: 8px 8px 0 var(--shadow-color);
}

.timeline-stop.left .journey-card:hover {
  transform: translateY(-50%) translateX(-6px);
}

.timeline-stop.right .journey-card:hover {
  transform: translateY(-50%) translateX(6px);
}

.card-year {
  display: block;
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 13px;
}

.journey-card h2 {
  font-size: 30px;
  letter-spacing: -1.5px;
  margin-bottom: 10px;
}

.journey-card p {
  color: var(--paragraph-color);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.card-link {
  font-size: 12px;
  font-weight: 800;
}

/* Timeline Connector Line */
.connector {
  position: absolute;
  top: 50%;
  height: 3px;
  width: 84px;
  background: var(--heading-color);
  z-index: 3;
}

.timeline-stop.left .connector {
  right: 50%;
}

.timeline-stop.right .connector {
  left: 50%;
}

/* Timeline Node Dot */
.stop-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 25px;
  height: 25px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--card-bg);
  border: 3px solid var(--card-bg);
  z-index: 6;
  transition: .25s ease;
}

/* Reached Stop State */
.timeline-stop.reached .stop-dot {
  background: var(--heading-color);
  border-color: var(--heading-color);
  transform: translate(-50%, -50%) scale(1.08);
}

.timeline-stop.reached .connector {
  background: var(--heading-color);
}

.timeline-stop.reached .journey-card {
  background: var(--feedback-color);
  box-shadow: 8px 8px 0 var(--shadow-color);
}
