.timeline {
  position: relative;
  max-width: 1290px;
  margin: 100px auto;

  overflow: hidden;

  font-family: 'Montserrat', sans-serif;
  visibility: hidden;
}
.timeline::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 100%;
  background: #fefefe;
  top: 0;
  left: calc(50% - 10px);
  animation: moveline 11s linear forwards;
  z-index: -1;
}

@keyframes moveline {
  0% {
    height: 0px;
  }
  100% {
    height: 100%;
  }
}

.timeline-container {
  padding: 10px 45px;
  position: relative;
  width: 50%;
  animation: movedown 100ms linear forwards;
  opacity: 0;
  margin-bottom: 20px;
}
@keyframes movedown {
  0% {
    opacity: 1;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}
.left-container {
  /*  left: 0; */
  float: left;
}
.right-container {
  float: right;
}
.timeline-container:nth-child(1) {
  /*  animation-delay: 0s; */
  top: 0;
}
.timeline-container:nth-child(2) {
  /*  animation-delay: 1s; */

  margin-top: 40px;
}
.timeline-container:nth-child(12),
.timeline-container:nth-child(22) {
  clear: right;
}

/* Try javascript */

/*  End of Try */

.timeline-text-box {
  padding: 20px 40px 20px 40px;
  position: relative;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0px 0px 5px #44546a26;
}

.timeline-text-box h2 {
  font-size: 34px;
  font-weight: 600;
  font-weight: 600;
  color: #44546a;
  font-size: 34px;
  text-align: left;
  border-bottom: 1px solid rgba(68, 84, 106, 0.2);
  padding-bottom: 10px;
  margin-bottom: 0;
  margin-top: 0;
}

.timeline-text-box-content {
  /*  padding-top: 25px; */
}

.timeline-text-box-content h3 {
  color: #44546a;
  font-size: 30px;
  line-height: 40px;
  font-weight: 500;
  padding-bottom: 0;
}
.timeline-text-box-content p {
  color: #44546a;
  font-size: 20px;
  line-height: 30px;
}
.timeline-container:nth-child(1) .timeline-text-box-content {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-end;
}

.timeline-container:nth-child(1) .timeline-text-box-content h3 {
  font-size: 32px;
}

.timeline-container:nth-child(1) .timeline-text-box-content-img {
  max-width: 100px;
  margin-right: 25px;
}

.timeline-text-box-content-img {
  max-width: 200px;
  margin-bottom: 15px;
}
.timeline-text-box-content-img img {
  width: 100%;
}

.circle {
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0px 0px 5px #44546a26;
  z-index: 3;
  top: 45px;
}

.right-container .circle {
  position: absolute;
  left: -10px;
  z-index: 2;
}
.left-container .circle {
  position: absolute;
  right: -10px;
  z-index: 2;
}
.right-container-arrow {
  height: 0;
  width: 0;
  position: absolute;
  top: 28px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-right: 25px solid #fff;
  left: -25px;
}
.right-container-arrow::before {
  content: '';
  height: 0;
  width: 0;
  position: absolute;
  top: -20px;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-right: 29px solid #44546a26;
  left: 0px;
  z-index: -1;
}
.left-container-arrow {
  height: 0;
  width: 0;
  position: absolute;
  top: 28px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 25px solid #fff;
  right: -25px;
}
.left-container-arrow::before {
  content: '';
  height: 0;
  width: 0;
  position: absolute;
  top: -20px;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 29px solid #44546a26;
  right: 0px;
  z-index: -1;
}
@media screen and (max-width: 600px) {
  .timeline {
    margin: 40px auto;
    display: flex;
    flex-direction: column;
  }
  .timeline::after {
    animation: moveline 20s linear forwards;
  }
  .timeline-container {
    width: 100%;
    padding-left: 1px;
    padding-right: 1px;
    margin-top: 0px !important;
    margin-bottom: 60px;
  }
  .timeline-text-box {
    padding: 10px 20px 10px 20px;
  }
  .timeline-text-box-content h3 {
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 24px;
    line-height: 32px;
  }
  .timeline-container:nth-child(1) .timeline-text-box-content h3 {
    font-size: 28px;
    line-height: 34px;
  }
  .timeline-container:nth-child(1) .timeline-text-box-content-img {
    margin-top: 15px;
  }
  .timeline-text-box-content p {
    color: #44546a;
    font-size: 16px;
    line-height: 24px;
  }
  .left-container-arrow,
  .right-container-arrow {
    height: 0;
    width: 0;
    position: absolute;
    top: auto;
    bottom: -40px !important;
    border-left: 17px solid transparent;
    border-right: 17px solid transparent;
    border-top: 25px solid #fff !important;
    /* border-top: 25px solid red !important; */
    left: 50%;
    margin-left: -17px;
  }

  .left-container-arrow::before {
    content: '';
    height: 0;
    width: 0;
    position: absolute;
    top: auto;
    bottom: -21px !important;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 29px solid #44546a26;
    right: 50%;
    margin-right: -20px;
    /*  transform: translateX(50%); */
    z-index: -1;
  }
  .right-container-arrow::before {
    content: '';
    height: 0;
    width: 0;
    position: absolute;
    top: auto;
    bottom: -21px !important;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 29px solid #44546a26;
    left: 50%;
    margin-left: -20px;
    /*  transform: translateX(50%); */
    z-index: -1;
  }
  .left-container .circle {
    position: absolute;
    right: 50%;
    top: auto;
    z-index: 2;
    bottom: -40px;
    transform: translateX(50%);
  }
  .right-container .circle {
    position: absolute;
    left: 50%;
    top: auto;
    z-index: 2;
    bottom: -40px;
    transform: translateX(-50%);
  }
}

@media screen and (min-width: 600px) and (max-width: 1200px) {
  .timeline {
    margin: 50px auto;
    display: flex;
    flex-direction: column;
  }

  .timeline::after {
    left: 31px;
  }
  .timeline-container {
    width: 100%;
    padding-left: 80px;
    padding-right: 25px;
    margin-top: 0px !important;
    margin-bottom: 20px;
  }
  .right-container {
    margin-bottom: 20px;
  }
  .timeline-container:nth-child(2) {
    margin-top: 0px;
  }
  .left-container .circle,
  .right-container .circle {
    left: 31px;
  }
  .left-container-arrow,
  .left-container-arrow {
    transform: rotate(180deg);
    left: -25px;
    transform-style: preserve-3d;
  }
  .left-container-arrow::before {
    display: none;
  }
  .left-container-arrow::after {
    content: '';
    height: 0;
    width: 0;
    position: absolute;
    top: -17px;
    border-top: 17px solid transparent;
    border-bottom: 17px solid transparent;
    border-left: 25px solid #44546a26;
    right: 0px;
    z-index: -1;
    transform: translateZ(-1px);
  }
}
@media screen and (min-width: 1495px) {
  .timeline-container:nth-child(1) .timeline-text-box-content-img {
    margin-top: 15px;
  }
}
