/* The actual timeline (the vertical ruler) */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  transform-origin: top;
  padding-top: 20px;
  z-index: 1;
}

/* The actual timeline (the vertical ruler) */
.timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background-color: var(--accent-grey);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  z-index: 1;
}

/* Container around content */
.timeline_container {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

/* The circles on the timeline */
.timeline_container::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: var(--accent-grey);
  border: 4px solid var(--accent-grey);
  top: 15px;
  border-radius: 50%;
  z-index: 10;
  transform: scale(0.5);
  transform-origin: center;
}

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

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

/* Add arrows to the left container (pointing right) */
.timeline_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 var(--accent-grey);
}

/* Add arrows to the right container (pointing left) */
.timeline_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 var(--accent-grey) transparent transparent;
}

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

/* The actual content */
.timeline_content {
  padding: 12px 25px;
  background-color: white;
  position: relative;
  border: 2px solid var(--accent-grey);
  /* border-radius: 6px; */
  box-sizing: border-box;
  transition: 0.4s background-color ease;
}

.timeline_content:hover {
  background-color: var(--accent-grey);
}

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

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

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

  /* Make sure all circles are at the same spot */
  .timeline_left::after,
  .timeline_right::after {
    left: 15px;
  }

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

/* Work History */

.work-history-container {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
}

.work-history-img {
  height: 80px;
  width: 80px;
  object-fit: cover;
  border-radius: 3px;
}

.work-history-text {
  display: flex;
  flex-flow: column;
  padding-left: 10px;
}

.work-history-text > h5 {
  margin: 0px 0px;
  line-height: 18px;
}

.work-history-text > span {
  font-family: var(--secondary-font);
}

.work-history-jobtitle {
  font-size: 14px;
  font-weight: 600;
}

.work-history-dates {
  font-size: 14px;
  font-weight: 400;
}

.work-history-hrtype {
  font-size: 14px;
  font-weight: 400;
  font-style: italic;
}

.fade_no_show {
  opacity: 0;
}
