/*-------------------------------

    Custom stylesheet (custom.css)

    Project: Eight Template
    Version: 1.0
    Author: By Themanoid
    Last change: 31 July 2016

    --

    This stylesheet is meant for
    your own custom styles, on
    top of The Eight Template

    Happy styling!
    - Themanoid

----------------------------*/
/*==----------History-Timeline-------==*/



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

/* The actual timeline (the vertical ruler) */
.history  .timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: #000;
  top: 0;
  bottom: 0;
  left: 60px;
  border-radius: 6px;
 
}

/* timeline-container around content */
.history  .timeline-container {
  padding: 0 40px;
  position: relative;
  background-color: inherit;
  width: 100%;
}

/* The circles on the timeline */
.history  .timeline-container::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: auto;
  left: -17px;
  background-color: #fff;
  border: 4px solid #000;
  top: 5px;
  border-radius: 50%;
  z-index: 1;
}

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

/* Place the timeline-container to the right */
.history  .right {
  left: -13px;
}

/* Add arrows to the left timeline-container (pointing right) */
.history  .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;
}

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

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

/* The actual content */
.history .content {
  padding: 0 30px;
  background-color: #fff;
  position: relative;
  border-radius: 6px;
}

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

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

/* Make sure that all arrows are pointing leftwards */
.history .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 */
.history .left::after, .right::after {
    left: 15px;
  }

/* Make all right timeline-containers behave like the left ones */
.history .right {
    left: 0%;
  }
}
@media screen and (max-width: 768px) {
  .history  .timeline::after {
    left: 20px;
   
  }
  .history .right::after {
    left: 10px;
  }
  .history .content {
    padding: 0 5px;
    
  }
  .history  .timeline-container {
    padding-right: 0;
    padding-left: 50px;
    
  }
  
}
