.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* The actual timeline (the vertical ruler) */
.timeline::after {
  content: "";
  position: absolute;
  width: 3px;
  background-color: #ff517e;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

/* Container around content */
.timeline-container {
  margin-top: 2em;
  padding: 10px 40px;
  position: relative;
  background-color: inhrederit;
  width: 43.3%;
}

/* The circles on the timeline */
.timeline-container::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: white;
  border: 4px solid #ffc455;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

/* Place the container to the left */
.left {
  left: 0;
}

/* Place the container to the right */
.right {
  left: 50%;
}

/* Add arrows to the left 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 #ffc455;
}

/* Add arrows to the right 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 #ff517e transparent transparent;
}

/* Fix the circle for containers on the right side */
.right::after {
  left: -16px;
}

/* The actual content */
.timeline-content {
  padding: 10px 30px;
  background-color: white;
  position: relative;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.timeline-content:hover {
  transform: translateY(-5px);
}

.timeline-container.left .timeline-content h2 {
  border: none;
  line-height: normal;
  border-radius: 20px;
  padding: 10px 20px 5px 20px;
  background-color: #ff517e;
  color: white;
  font-weight: bold;
}

.timeline-container.right .timeline-content h2 {
  border: none;
  line-height: normal;
  border-radius: 20px;
  padding: 10px 20px 5px 20px;
  background-color: #ffc455;
  color: #ffffff;
  font-weight: bold;
}

.timeline-content h3 {
  margin-top: 0;
  font-size: 24px;
}

.timeline-content p {
  margin-top: 0;
  font-size: 18px;
  color: #777777;
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 768px) {
  /* Place the timelime to the left */
  .timeline::after {
    left: 31px;
  }

  /* Full-width containers */
  .timeline-container {
    width: 75%;
    padding-left: 70px;
    padding-right: 25px;
  }

  /* Make sure that all arrows are pointing leftwards */
  .timeline-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 containers behave like the left ones */
  .right {
    left: 0%;
  }
}
