
section {
    padding: 60px 0 0;
}
h2 {
  text-align: center;
      font-weight: 800;
}

.timeline {
  display: flex;
  flex-direction: column;
  margin: 20px auto;
  position: relative;
}
.timeline__event {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  margin: 20px 0;
  border-radius: 6px;
  align-self: center;
  width: 50vw;
}
.timeline__event:nth-child(2n + 1) {
  flex-direction: row-reverse;
}
.timeline__event:nth-child(2n + 1) .timeline__event__date {
  border-radius: 0 6px 6px 0;
}
.timeline__event:nth-child(2n + 1) .timeline__event__content {
	width: 100%;
  border-radius: 6px 0 0 6px;
}
.timeline__event:nth-child(2n + 1) .timeline__event__icon:before {
  content: "";
  width: 2px;
  height: 100%;
  background: #ea5e4d;
  position: absolute;
  top: 0%;
  left: 50%;
  right: auto;
  z-index: -1;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  -webkit-animation: fillTop 2s forwards 4s ease-in-out;
          animation: fillTop 2s forwards 4s ease-in-out;
}
.timeline__event:nth-child(2n + 1) .timeline__event__icon:after {
  content: "";
  width: 100%;
  height: 2px;
  background: #ea5e4d;
  position: absolute;
  right: 0;
  z-index: -1;
  top: 50%;
  left: auto;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  -webkit-animation: fillLeft 2s forwards 4s ease-in-out;
          animation: fillLeft 2s forwards 4s ease-in-out;
}
.timeline__event__title {
  font-size: 1.2rem;
  line-height: 1.4;
  text-transform: uppercase;
  font-weight: 600;
  color: #9251ac;
  letter-spacing: 1.5px;
}
.timeline__event__content {
  padding: 20px;
  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);
  background: #fff;
  border-radius: 0 6px 6px 0;
  width:100%;
}
.timeline__event__date {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  background: #eb5e4d ;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0 20px;
  border-radius: 6px 0 0 6px;
}
.timeline__event__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9251ac;
  padding: 20px;
  align-self: center;
  margin: 0 20px;
  background: #eb5e4d;
  border-radius: 100%;
  width: 40px;
  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);
  padding: 40px;
  height: 40px;
  position: relative;
}
.timeline__event__icon i {
  font-size: 32px;
}
.timeline__event__icon:before {
  content: "";
  width: 2px;
  height: 100%;
  background: #f6a4ec;
  position: absolute;
  top: 0%;
  z-index: -1;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  -webkit-animation: fillTop 2s forwards 4s ease-in-out;
          animation: fillTop 2s forwards 4s ease-in-out;
}
.timeline__event__icon:after {
  content: "";
  width: 100%;
  height: 2px;
  background: #f6a4ec;
  position: absolute;
  left: 0%;
  z-index: -1;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  -webkit-animation: fillLeftOdd 2s forwards 4s ease-in-out;
          animation: fillLeftOdd 2s forwards 4s ease-in-out;
}
.timeline__event__description {
  flex-basis: 60%;
}
.timeline__event--type2:after {
  background: #555ac0;
}
.timeline__event--type2 .timeline__event__date {
  color: #ffffff;
  background: #f6793b;
}
.timeline__event--type2:nth-child(2n + 1) .timeline__event__icon:before, .timeline__event--type2:nth-child(2n + 1) .timeline__event__icon:after {
  background: #87bbfe;
}
.timeline__event--type2 .timeline__event__icon {
  background: #f6793b;
  color: #555ac0;
}
.timeline__event--type2 .timeline__event__icon:before, .timeline__event--type2 .timeline__event__icon:after {
  background: #f6793b;
}
.timeline__event--type2 .timeline__event__title {
  color: #555ac0;
}

.timeline__event--type3:after {
  background: #555ac0;
}
.timeline__event--type3 .timeline__event__date {
  color: #ffffff;
  background: #00afc4;
}
.timeline__event--type3:nth-child(2n + 1) .timeline__event__icon:before, .timeline__event--type3:nth-child(2n + 1) .timeline__event__icon:after {
  background: #01adc3;
}
.timeline__event--type3 .timeline__event__icon {
  background: #00afc4;
  color: #555ac0;
}
.timeline__event--type3 .timeline__event__icon:before, .timeline__event--type3 .timeline__event__icon:after {
  background: #87bbfe;
}
.timeline__event--type3 .timeline__event__title {
  color: #555ac0;
}



.timeline__event--type4:after {
  background: #555ac0;
}
.timeline__event--type4 .timeline__event__date {
  color: #ffffff;
  background: #a972a9;
}
.timeline__event--type4:nth-child(2n + 1) .timeline__event__icon:before, .timeline__event--type4:nth-child(2n + 1) .timeline__event__icon:after {
  background: #87bbfe;
}
.timeline__event--type4 .timeline__event__icon {
  background: #a872a8;
  color: #555ac0;
}
.timeline__event--type4 .timeline__event__icon:before, .timeline__event--type4 .timeline__event__icon:after {
  background: #a871a8;
}
.timeline__event--type4 .timeline__event__title {
  color: #555ac0;
}



.timeline__event--type5:after {
  background: #555ac0;
}
.timeline__event--type5 .timeline__event__date {
  color: #ffffff;
  background: #fda629;
}
.timeline__event--type5:nth-child(2n + 1) .timeline__event__icon:before, .timeline__event--type5:nth-child(2n + 1) .timeline__event__icon:after {
  background: #fda629;
}
.timeline__event--type5 .timeline__event__icon {
  background: #fca629;
  color: #555ac0;
}
.timeline__event--type5 .timeline__event__icon:before, .timeline__event--type5 .timeline__event__icon:after {
  background: #87bbfe;
}
.timeline__event--type5 .timeline__event__title {
  color: #555ac0;
}

.timeline__event--type6:after {
  background: #555ac0;
}
.timeline__event--type6 .timeline__event__date {
  color: #ffffff;
  background: #95c229;
}
.timeline__event--type6:nth-child(2n + 1) .timeline__event__icon:before, .timeline__event--type6:nth-child(2n + 1) .timeline__event__icon:after {
  background: #87bbfe;
}
.timeline__event--type6 .timeline__event__icon {
  background: #95c229;
  color: #555ac0;
}
.timeline__event--type6 .timeline__event__icon:before, .timeline__event--type6 .timeline__event__icon:after {
  background: #95c229;
}
.timeline__event--type6 .timeline__event__title {
  color: #555ac0;
}


.timeline__event--type7:after {
  background: #24b47e;
}
.timeline__event--type7 .timeline__event__date {
  color: #ffffff;
  background-color: #5d9dd3;
}
.timeline__event--type7:nth-child(2n + 1) .timeline__event__icon:before, .timeline__event--type7:nth-child(2n + 1) .timeline__event__icon:after {
  background: #5d9dd3;
}
.timeline__event--type7 .timeline__event__icon {
  background: #5d9dd3;
  color: #24b47e;
}
.timeline__event--type7 .timeline__event__icon:before, .timeline__event--type7 .timeline__event__icon:after {
  background: #aff1b6;
}
.timeline__event--type7 .timeline__event__title {
  color: #24b47e;
}
.timeline__event:last-child .timeline__event__icon:before {
  content: none;
}
img.timeline-images-left {
    width: 50px;
}

@media (max-width: 786px) {
	.timeline {
    padding: 15px;
    }
  .timeline__event {
  	width:100%;
    flex-direction: column;
    align-self: center;
  }
  .timeline__event__content {
    width: 100%;
  }
  .timeline__event__icon {
    border-radius: 6px 6px 0 0;
    width: 100%;
    margin: 0;
    box-shadow: none;
  }
  .timeline__event__icon:before, .timeline__event__icon:after {
    display: none;
  }
  .timeline__event__date {
    border-radius: 0;
    padding: 20px;
  }
  .timeline__event:nth-child(2n + 1) {
	width:100%;
    flex-direction: column;
    align-self: center;
  }
  .timeline__event:nth-child(2n + 1) .timeline__event__date {
  	
    border-radius: 0;
    padding: 20px;
  }
  .timeline__event:nth-child(2n + 1) .timeline__event__icon {
    border-radius: 6px 6px 0 0;
    margin: 0;
  }
}
@-webkit-keyframes fillLeft {
  100% {
    right: 100%;
  }
}
@keyframes fillLeft {
  100% {
    right: 100%;
  }
}
@-webkit-keyframes fillTop {
  100% {
    top: 100%;
  }
}
@keyframes fillTop {
  100% {
    top: 100%;
  }
}
@-webkit-keyframes fillLeftOdd {
  100% {
    left: 100%;
  }
}
@keyframes fillLeftOdd {
  100% {
    left: 100%;
  }
}
