* {
  box-sizing: border-box;
}

/* The timeline wrapper */
.timeline {
  position: relative;
  
  margin: 0 auto;
}

/* Vertical line (center) */
.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: white;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  z-index: 0; /* stays below content */
}

/* Timeline container (animated part) */
.container1 {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  opacity: 0;
  transition: all 0.8s ease-out;
  z-index: 2;
}

/* Start positions */
.left {
  left: 0;
  transform: translateX(-100px);
}
.right {
  left: 50%;
  transform: translateX(100px);
}

/* When visible */
.container1.show {
  opacity: 1;
  transform: translateX(0);
}

/* Circles (static) */
.container1::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: #0f4d7f;
  border: 4px solid #fff;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
  transition: none; /* disables animation */
  opacity: 1; /* always visible */
  transform: none; /* no motion */
}

/* Arrows */
.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 white;
}

.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 white transparent transparent;
}

/* Adjust circle for right side */
.right::after {
  left: -16px;
}

/* Content box */
.content {
  padding: 20px 30px;
  background-color: white;
  position: relative;
  border-radius: 6px;
	box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

/* Responsive layout for mobile */
@media screen and (max-width: 600px) {
  .timeline::after {
    left: 31px;
  }
  
  .container1 {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
    transform: translateX(-100px); /* all slide from left */
  }

  .container1.show {
    transform: translateX(0);
  }

  .container1::before {
    left: 60px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
  }

  .left::after, .right::after {
    left: 15px;
  }

  .right {
    left: 0;
  }
}