.timeline-carousel-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.timeline-carousel-wrapper {
  width: 90vw;
  height: 60vh;
  max-width: 800px;
  max-height: 400px;
  padding: 20px 0;
  overflow: hidden;
  position: relative;
}

.timeline-carousel {
  display: flex;
  padding: 0 3.5%;
  transition: transform 0.4s ease-in-out;
}

.timeline-carousel .card {
  flex: 60% 0 0;
  margin: 0 1.66%;
  background: white;
  color: inherit;
  border-radius: 12px;
  height: min-content;
  max-height: 55vh;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 10px 25px;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.timeline-carousel .card h3 {
  font-weight: 500;
  text-align: left;
  font-size: 1.3em;
  margin: 0;
}

.timeline-carousel .card p {
  font-size: 0.8em;
  font-weight: 400;
  text-align: left;
  overflow-y: auto;
  flex: 1 1 auto;
  cursor: text;
}

.timeline-carousel .card p.year {
  font-weight: 400;
  text-align: left;
  font-size: 0.9em;
  overflow-y: auto;
  margin: 0;
  flex: none;
}

.timeline-carousel .card p b {
  font-weight: 600;
}

@media (max-width: 768px) {
  .timeline-carousel .card {
    flex: 0 0 98%;
    margin: 0 1%;
  }
}


/* buttons */
.timeline-carousel-button {
  background: none;
  border: none;
  padding: 8px 12px;
  font-size: 32px;
  font-weight: 400;
  color: #333;
  text-shadow: #fff 1px 0 10px;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s ease, color 0.2s ease;
}

.timeline-carousel-button:hover {
  transform: scale(1.2);
  color: #000;
}

.timeline-carousel-button:active {
  transform: scale(1);
  color: #666;
}

.timeline-carousel-button.left {
  margin-right: -40px;
}

.timeline-carousel-button.right {
  margin-left: -40px;
}

/* Dots */
/*.timeline-progress-dots {
text-align: center;
margin-top: 16px;
}

.timeline-progress-dots span {
display: inline-block;
width: 12px;
height: 12px;
margin: 0 6px;
background-color: #ccc;
border-radius: 50%;
transition: background-color 0.3s;
}

.timeline-progress-dots .active {
background-color: #333;
}*/

/* timeline */
/*.timeline-progress {
display: flex;
justify-content: center;
margin-top: 100px;
gap: 1px;
padding: 0 13.3%;
}*/

/* timeline slider */
.timeline-slider-wrapper {
  display: flex;
  justify-content: center;
  margin: 10px 0 10px 0;
  height: 20px;
}

.timeline-slider-track {
  width: 80vw;
  max-width: 800px;
  position: relative;
  height: 6px;
  background: transparent; /* normal slider: #ccc */
  border-radius: 3px;
  margin: 0 0;
}

.timeline-slider-thumb {
  width: 80px; /* normal slider: 16px */
  height: 30px; /* normal slider: 16px */
  background-color: transparent; /* normal slider: #333 */
  position: absolute;
  top: -10px;
  transform: translateX(-50%);
  transition: left 0.01s ease;
  cursor: pointer;
  z-index: 20;
  pointer-events: auto; /* ensure it captures mouse events */
  -moz-user-select: none;
  user-select: none;
}

.timeline-slider-ticks { /* just for timeline slider */
  width: 100%;
  display: flex;
  justify-content: space-evenly;
}

.timeline-slider-ticks div {
height: 6px;
border-radius: 3px;
margin-bottom: 4px;
margin: 0px 1px;
transition: background-color 0.3s;
}
.timeline-slider-ticks div div {
    font-size: 0.7em;
}
@media (max-width: 900px) {
  .timeline-slider-track {
    width: 92vw;
  }
  .timeline-slider-thumb {
    display: none;
  }
}