.timeline {
  width: 100%;
  height: 100%;
  background-color: var(--background-color);
  display: flex;
  justify-content: center;
}
.history-container {
  width: 100%;
  height: 100%;
  max-width: 144rem;
  min-width: var(--min-width);
  padding: 18.5rem clamp(1.6rem, 5vw, 4rem) 14rem;
}

.history-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  padding: 25.8rem 0 12.9rem;
}
.timeline-item {
  position: relative;
  width: 50%;
  /* padding: 0 clamp(1.8rem, 2vw, 3.5rem); */
}
.timeline-item:nth-child(2n) {
  padding-right: clamp(1.8rem, 2vw, 3.5rem);
}
.timeline-item:nth-child(2n + 1) {
  padding-left: clamp(1.8rem, 2vw, 3.5rem);
}
.timeline-item::before {
  content: "";
  position: absolute;
  top: 5rem;
  display: block;
  width: 0.789rem;
  height: 0.789rem;
  background: var(--sub-font-color);
  box-shadow: 0px 0px 12.2059px var(--main-font-color),
    0px 0px 6.97482px var(--main-font-color),
    0px 0px 4.06865px var(--main-font-color),
    0px 0px 2.03432px var(--main-font-color),
    0px 0px 0.581235px var(--main-font-color),
    0px 0px 0.290618px var(--main-font-color);
  transform: rotate(36.55deg);
}

.timeline-item::after {
  content: "";
  position: absolute;
  top: 58%;
  width: 0.07rem;
  height: 9rem;
  background: var(--main-font-color);
  z-index: 1;
}
.timeline-item:nth-child(1) {
  padding-top: 2.5rem;
}
.timeline-item:nth-child(1)::after {
  height: 18.9rem;
}

.timeline-item:nth-child(2) {
  margin-top: 12rem;
}
.timeline-item:nth-child(2)::before {
  top: 30%;
}
.timeline-item:nth-child(2)::after {
  top: 55%;
  height: 11.4rem;
}
.timeline-item:nth-child(3) {
  margin-top: 5rem;
}
.timeline-item:nth-child(3)::before {
  top: 25%;
}
.timeline-item:nth-child(3)::after {
  top: 45%;
  height: 15.5rem;
}

.timeline-item:nth-child(4) {
  margin-top: 7rem;
}
.timeline-item:nth-child(4)::before {
  top: 27%;
}
.timeline-item:nth-child(4)::after {
  top: 55%;
  height: 11.9rem;
}
.timeline-item:nth-child(5) {
  margin-top: 6rem;
}
.timeline-item:nth-child(5)::before {
  top: 38%;
}
.timeline-item:nth-child(5)::after {
  top: 73%;
  height: 9rem;
}
.timeline-item:nth-child(6),
.timeline-item:nth-child(7),
.timeline-item:nth-child(8) {
  margin-top: 5rem;
}
.timeline-item:nth-child(6)::before,
.timeline-item:nth-child(7)::before,
.timeline-item:nth-child(8)::before {
  top: 38%;
}
.timeline-item:nth-child(6)::after,
.timeline-item:nth-child(7)::after,
.timeline-item:nth-child(8)::after {
  top: 70%;
  height: 9rem;
}
.timeline-item.left {
  left: 0;
  text-align: right;
}
.timeline-item.right {
  left: 50%;
  text-align: left;
}
.timeline-item.left::before {
  right: -0.5rem;
}

.timeline-item.left::after {
  right: -0.1rem;
}

.timeline-item.right::before {
  left: -0.3rem;
}
.timeline-item.right::after {
  left: 0rem;
}

.year {
  font-family: "Modern No. 20", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(5.6rem, 5vw, 6.4rem);
  line-height: 6.8rem;
}
.work li {
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 100;
  font-size: clamp(1.4rem, 1vw, 1.6rem);
  line-height: 1.9rem;
  list-style-type: none;
}
.work li br {
  display: none;
}

.timeline-item.left .work li::after {
  content: "•";
  padding-left: 0.3rem;
}
.timeline-item.right .work li::before {
  content: "•";
  padding-left: 0.3rem;
}

@media (max-width: 768px) {
  .history-container {
    padding-top: 0;
  }
  .history-content {
    padding-top: 5rem;
  }

  .work li br {
    display: block;
  }
}
