.lifespan-selected{
  border: 1px solid;
  border-radius:0.5rem;
}

.timeline-year-selected{
  border: 1px solid;
  border-radius:0.5rem;
}

.lifespan-highlight{
  border: 1px solid;
  border-radius:0.5rem;
  border-color: var(--color-grey-dark-3);
}

.timeline-year-highlight{
  border: 1px solid;
  border-radius:0.5rem;
  border-color: var(--color-grey-dark-3);
}

.timeline, .scroll-indicator {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* The actual timeline (the vertical ruler) */
.timeline::after, .scroll-indicator::after {
  content: '';
  position: absolute;
  width: 6px;
  /* background-color: white; */
  background-color: var(--selection-background);
  top: 0;
  bottom: 0;
  left: 2.5%;
  margin-left: -3px;
  height: var(--selection-height);
}

/* Container around content */
.timeline-scroller-container, .background-scroller-container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

/* The circles on the timeline */
.timeline-scroller-container::after,.background-scroller-container::after  {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  right: -15px;
  background-color: white;
  border: 4px solid #FF9F55;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
  font-family: "Material Symbols Outlined";
  content: "calendar_month";
  font-size: 15px;
}

/* Place the timeline-scroller-container to the left */
.left {
  left: 0;
}

/* Place the timeline-scroller-container to the right */
.right {
  left: 50%;
}

/* Add arrows to the left timeline-scroller-container (pointing right) */
.left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid white;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent white;
}

/* Add arrows to the right timeline-scroller-container (pointing left) */
.right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent white transparent transparent;
}

/* Fix the circle for timeline-scroller-containers on the right side */
.right::after {
  left: -16px;
}

/* The actual content */
.content {
  padding: 20px 30px;
  position: relative;
  border-radius: 6px;
}

@media screen and (max-width: 600px) {
  /* Place the timelime to the left */
  .timeline::after {
  left: 31px;
  }
  
  /* Full-width timeline-scroller-containers */
  .timeline-scroller-container, .background-scroller-container {
  width: 100%;
  padding-left: 70px;
  padding-right: 25px;
  }
  
  /* Make sure that all arrows are pointing leftwards */
  .timeline-scroller-container::before, .background-scroller-container::before {
  left: 60px;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent white transparent transparent;
  }

  /* Make sure all circles are at the same spot */
  .left::after, .right::after {
  left: 15px;
  }
  
  /* Make all right timeline-scroller-containers behave like the left ones */
  .right {
  left: 0%;
  }
}

.timeline-lifespan-selected{
  color:var(--color-gray-800);
}

.timeline-lifespan-nonselected{
  color:var(--color-gray-200);
}