/* Timeline  */
.timeline {
  display: flex;
  flex-direction: column;
  /* width: 50vw; */
  margin: 5% auto;
}

.timeline__event {
  /* background: #fff; */
  /* margin-bottom: 20px; */
  position: relative;
  display: flex;
  margin: 5px 0;
  border-radius: 8px;
  /* box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.25),
    0 18px 36px -18px rgba(0, 0, 0, 0.3), 0 -12px 36px -8px rgba(0, 0, 0, 0.025); */
}

.timeline__event__title {
  font-family: League Spartan;
  text-transform: uppercase;
  font-size: 32px;
  font-style: normal;
  font-weight: 300;
  line-height: 120%;
  color: #181818;
}

.timeline__event__content {
  padding: 20px;
}

.timeline__event__date {
  color: #f6a4ec;
  font-size: 1.5rem;
  font-weight: 600;
  white-space: nowrap;
}

.timeline__event__icon {
  border-radius: 8px 0 0 8px;
  background: #9251ac;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-basis: 40%;
  font-size: 2rem;
  color: #9251ac;
  padding: 20px;
}

.timeline__event__icon i {
  position: absolute;
  top: 50%;
  left: -65px;
  font-size: 2.5rem;
  transform: translateY(-50%);
}

.timeline__event__description {
  color: #181818;
  font-size: 28px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
  /* 38.4px */
  opacity: 0.5;
  margin-top: 6px;
}

.timeline__event:after {
  content: "";
  width: 1.1px;
  height: 100%;
  background: #ebebeb;
  position: absolute;
  top: 52%;
  left: -1.5rem;
  z-index: -1;
}

.timeline__event--type3:before {
  /* background: #f10c46; */
  /* -webkit-text-stroke: 5px white; */
  /* border-color: #f10c46; */
}

/* .timeline__event--type3 .timeline__event__description {
  opacity: 1;
  font-weight: 500;
} */

.timeline__event:last-child:after {
  content: none;
}

@keyframes moveDotVertical {
  0% {
    --bg-1: #f10c46;
    --bg-2: #fff;
    --bg-3: #fff;
    --bg-4: #fff;
    --color-1: #fff;
    --color-2: #000;
    --color-3: #000;
    --color-4: #000;
    --opacity-1: 1;
    --opacity-2: 0.5;
    --opacity-3: 0.5;
    --opacity-4: 0.5;
  }

  25% {
    --bg-2: #f10c46;
    --bg-1: #fff;
    --bg-3: #fff;
    --bg-4: #fff;
    --color-2: #fff;
    --color-1: #000;
    --color-3: #000;
    --color-4: #000;
    --opacity-2: 1;
    --opacity-1: 0.5;
    --opacity-3: 0.5;
    --opacity-4: 0.5;
  }

  75% {
    --bg-3: #f10c46;
    --bg-2: #fff;
    --bg-1: #fff;
    --bg-4: #fff;
    --color-3: #fff;
    --color-1: #000;
    --color-2: #000;
    --color-4: #000;
    --opacity-3: 1;
    --opacity-2: 0.5;
    --opacity-1: 0.5;
    --opacity-4: 0.5;
  }

  100% {
    --bg-4: #f10c46;
    --bg-2: #fff;
    --bg-3: #fff;
    --bg-1: #fff;
    --color-4: #fff;
    --color-2: #000;
    --color-3: #000;
    --color-1: #000;
    --opacity-4: 1;
    --opacity-2: 0.5;
    --opacity-1: 0.5;
    --opacity-3: 0.5;
  }
}

.timeline__event__description {
  color: #181818;
  font-size: 28px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
  opacity: 0.5;
  margin-top: 6px;
  animation: moveDotVertical 10s linear infinite;
}

/* Update the styles for .timeline__event:before to include vertical animation properties */
.timeline__event:before {
  content: ".";
  width: 50px;
  height: 50px;
  position: absolute;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 100%;
  left: -3.1rem;
  top: 45%;
  transform: translateY(-50%);
  text-align: center;
  font-weight: 1000;
  font-size: 25px;
  -webkit-text-stroke: 5px black;
  animation: moveDotVertical 10s linear infinite;
}

@media (max-width: 1200px) {
  .timeline__event__title {
    font-size: 27px;
  }

  .timeline__event__description p {
    font-size: 22px;
  }
}

@media (max-width: 786px) {
  .timeline__event {
    flex-direction: column;
  }

  .timeline__event__icon {
    border-radius: 4px 4px 0 0;
  }

  .timeline__event__content {
    padding: 15px;
  }

  .timeline__event__title {
    font-size: 18px;
  }

  .timeline__event__description p {
    font-size: 21px;
  }
}

@media (max-width: 576px) {
  .timeline__event__content {
    padding: 10px;
  }

  .timeline__event__title {
    font-size: 14px;
  }

  .timeline__event__description p {
    font-size: 18px;
  }

  .timeline__event:after {
    left: -1.5rem;
  }

  .timeline__event:before {
    width: 27px;
    height: 27px;
    left: -2.3rem;
    top: 38%;
    font-size: 13px;
    /* -webkit-text-stroke: 5px white !important; */
    /* color: white; */
  }

  /* .timeline__event--type3:before {
    color: white;
    border: none;
    -webkit-text-stroke: 5px white;
  } */
}

.slidingVertical span {
  animation: topToBottom 10s linear infinite 0s;
  -ms-animation: topToBottom 10s linear infinite 0s;
  -webkit-animation: topToBottom 10s linear infinite 0s;
  color: #1f2937;
  opacity: 0;
  overflow: hidden;
  position: absolute;
}

.slidingVertical span:nth-child(1) {
  animation-delay: 1s;
  -ms-animation-delay: 1s;
  -webkit-animation-delay: 1s;
}

.slidingVertical span:nth-child(2) {
  animation-delay: 5s;
  -ms-animation-delay: 5s;
  -webkit-animation-delay: 5s;
}

.slidingVertical span:nth-child(3) {
  animation-delay: 8s;
  -ms-animation-delay: 8s;
  -webkit-animation-delay: 8s;
}

/*topToBottom Animation*/
@-moz-keyframes topToBottom {
  0% {
    opacity: 0;
  }

  5% {
    opacity: 0;
    -moz-transform: translateY(-50px);
  }

  10% {
    opacity: 1;
    -moz-transform: translateY(0px);
  }

  25% {
    opacity: 1;
    -moz-transform: translateY(0px);
  }

  30% {
    opacity: 0;
    -moz-transform: translateY(46px);
  }

  80% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@-webkit-keyframes topToBottom {
  0% {
    opacity: 0;
  }

  5% {
    opacity: 0;
    -webkit-transform: translateY(-50px);
  }

  10% {
    opacity: 1;
    -webkit-transform: translateY(0px);
  }

  25% {
    opacity: 1;
    -webkit-transform: translateY(0px);
  }

  30% {
    opacity: 0;
    -webkit-transform: translateY(46px);
  }

  80% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@-ms-keyframes topToBottom {
  0% {
    opacity: 0;
  }

  5% {
    opacity: 0;
    -ms-transform: translateY(-50px);
  }

  10% {
    opacity: 1;
    -ms-transform: translateY(0px);
  }

  25% {
    opacity: 1;
    -ms-transform: translateY(0px);
  }

  30% {
    opacity: 0;
    -ms-transform: translateY(46px);
  }

  80% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}


.timeline__event--type1 .timeline__event__description {
  opacity: var(--opacity-1);
}

.timeline__event--type2 .timeline__event__description {
  opacity: var(--opacity-2);
}

.timeline__event--type3 .timeline__event__description {
  opacity: var(--opacity-3);
}

.timeline__event--type4 .timeline__event__description {
  opacity: var(--opacity-4);
}

.timeline__event--type1:before {
  background: var(--bg-1);
  -webkit-text-stroke: 5px var(--color-1);
  color: var(--color-1);
}

.timeline__event--type2:before {
  background: var(--bg-2);
  -webkit-text-stroke: 5px var(--color-2);
  color: var(--color-2);
}

.timeline__event--type3:before {
  background: var(--bg-3);
  -webkit-text-stroke: 5px var(--color-3);
  color: var(--color-3);
}

.timeline__event--type4:before {
  background: var(--bg-4);
  -webkit-text-stroke: 5px var(--color-4);
  color: var(--color-4);
}