
/*
 *
 * Timeline
 *
 *
 */

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

.timeline img {
	width: 100%;
}

/* The circles on the timeline */
.date {
  position: absolute;
  width: 60px;
  height: 80px;
  right: -28px;
  padding: 10px;
  text-align: center;
  background-color: white;
  border: 3px solid #F5F5F5;
  top: 15px;
  z-index: 1;
  left: 3px;
}

.date .day {
  font-weight: bold;
}

.container {
  padding: 10px 50px;
}

/* The actual content */
.content {
  padding: 10px 20px;
  background-color: #F5F5F5;
  position: relative;
  border-radius: 6px;
}

/******* MOBILE *******/

  /* Place the timelime to the left */
  .timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: grey;
    top: 0;
    bottom: 0;
    margin-left: -3px;
    left: 31px;
  }

  /* Full-width containers */
  .container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
    position: relative;
  }

    /* Make sure that all arrows are pointing leftwards */
  .container::before {
    left: 60px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
  }

  /* Make all right containers behave like the left ones */
  .right {
    left: 0%;
  } 
/*
  .right .date {
    left: 0%;
  }*/




@media only screen and (min-width: 600px) {

/* Container around content */
.container {
  position: relative;
  background-color: inherit;
  width: 50%;
  padding-right: 50px;
  padding-left: 50px;
}

/* Make sure that all arrows are pointing leftwards */
.container::before {
  left: auto;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent #F5F5F5 transparent transparent;
}

/* The actual timeline (the vertical ruler) */
.timeline::after {
  left: 50%;
}

.date {
  left: auto;
}

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

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

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

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

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


}
