{
  box-sizing: border-box;
}


/* The actual timeline (the vertical ruler) */
.tl_timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;

}

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

/* Container around content */
.tl_container {
  padding: 15px 20px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

/* The circles on the timeline */
.tl_container::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -12px;
  background-color: #fdf5e6;
  border: 4px solid darkred;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

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

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

/* Add arrows to the left container (pointing right) */
.tl_left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 18px;
  width: 0;
  z-index: 1;
  right: 14px;
  border: medium solid white;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent #fdf5e6;
}

/* Add arrows to the right container (pointing left) */
.tl_right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 18px;
  width: 0;
  z-index: 1;
  left: 14px;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent #fdf5e6 transparent transparent;
}

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

/* The actual content */
.tl_content {
  padding: 1px 10px;
  background-color: #fdf5e6;
  position: relative;
  border-radius: 10px;
  box-shadow:0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
}



/* to make videos resize in proportion */
.video-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}

/* Then style the iframe to fit in the container div with full height and width */
.responsive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}





/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 1000px) {
  /* Place the timelime to the left */
  .tl_timeline::after {
  left: 31px;
  }
  
  /* Full-width containers */
  .tl_container {
  width: 100%;
  padding-left: 50px;
  padding-right: 25px;
  }
  
  /* Make sure that all arrows are pointing leftwards */
  .tl_container::before {
  left: 43px;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent #fdf5e6 transparent transparent;
  }

  /* Make sure all circles are at the same spot */
  .tl_left::after, .tl_right::after {
  left: 17px;
  }
  
  /* Make all right containers behave like the left ones */
  .tl_right {
  left: 0%;
  }
}
