* {
  box-sizing: border-box;
}

/* Set a background color */
body {
  background-color: #fff;
  font-family: Montserrat, sans-serif;
}

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

/* The actual timeline (the vertical ruler) */
.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: rgba(227,213,198,0.6);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

/* Container around content */
.container {
  padding: 16px 56px;
  position: relative;
  background-color: inherit;
  width: 49.7%;
}

/* The circles on the timeline */
.container::after {
  content: "";
  position: absolute;
  width: 96px;
  height: 96px;
  right: -52px;
  background-color: white;
  border: 2px solid rgba(227,213,198,0.6);
  top: 16px;
  border-radius: 50%;
  z-index: 1;
}

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

.container1::after {
  background-image: url("../photos/start.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 70%;
}

.container2::after {
  background-image: url("../photos/workshop1.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 70%;
}

.container3::after {
  background-image: url("../photos/workshop2.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 70%;
}

.container4::after {
  background-image: url("../photos/workshop3.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 70%;
}

.container5::after {
  background-image: url("../photos/end.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 70%;
}

.container6::after {
  background-image: url("../photos/judging.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 70%;
}

.container7::after {
  background-image: url("../photos/winners.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 70%;
}

.container8::after {
  background-image: url("../photos/exhibition.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 70%;
}

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

/* Place the container to the right */
.right {
  margin-right: 0px;
}

/* Add arrows to the left container (pointing right) */
.left::before {
  content: "";
  height: 0;
  position: absolute;
  top: 52px;
  width: 0;
  z-index: 1;
  right: 46px;
  border: medium solid black;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent rgba(227,213,198,0.6);
}

/* Add arrows to the right container (pointing left) */
.right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 52px;
  width: 0;
  z-index: 1;
  left: 46px;
  border: medium solid black;
  border-width: 10px 10px 10px 0;
  border-color: transparent rgba(227,213,198,0.6) transparent transparent;
}

/* The actual content */
.content {
  padding: 20px 30px;
  background-color: rgba(227,213,198,0.6);
  position: relative;
  border-radius: 6px;
}

@media screen and (max-width: 980px) {

  .timeline::after {
    width: 2px;
  }

  /* Add arrows to the left container (pointing right) */
  .left::before {
    top: 40px;
    right: 38px;
  }

  /* Add arrows to the right container (pointing left) */
  .right::before {
    top: 40px;
    left: 38px;
  }

  /* Container around content */
  .container {
    padding: 10px 48px;
  }

  /* The circles on the timeline */
  .container::after {
    width: 72px;
    height: 72px;
    right: -38px;
  }

  .right::after {
    left: -40px;
  }

}

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

  /* Full-width containers */
  .container {
    width: 45%;
    padding-left: 120px;
    padding-right: 0px;
  }

  /* Make sure that all arrows are pointing leftwards */
  .container::before {
    left: 110px;
    border: medium solid black;
    border-width: 10px 10px 10px 0;
    border-color: transparent rgba(227,213,198,0.6) transparent transparent;
  }

  /* Make sure all circles are at the same spot */
  .left::after, .right::after {
    left: 32px !important;
  }

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