/* TIMELINE
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.timeline { 
    overflow: hidden;
}

.timeline ul {
    padding-left:0px;
}

.timeline ul li {
  list-style-type: none;
  position: relative;
  border-left: 4px solid black;
  margin: 0 auto;
  /*margin-left:200px;*/
  width:1px;

}

.timeline ul li:last-child {
  margin-bottom: 20px;

}

.timeline ul li div.timeline-view { 
  position: relative;
}

.timeline ul li div.timeline-container {
  position: relative;
  padding: 15px;
  background-color: rgba(255,255,255,.8);  
  width: 400px;
  box-sizing: border-box;
  box-shadow: 0 0 10px 0 rgb(0 0 0 / 23%);
}

.timeline ul li:nth-child(odd) div.timeline-container {
  left: 45px;
}
.timeline ul li:nth-child(even) div.timeline-container {
  left: -445px;
}

.timeline ul li div.timeline-date {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  position: absolute;
  top:50%;
  transform: translateY(-50%) !important;
}

.timeline ul li:nth-child(odd) div.timeline-date {
  left:-285px;
}

.timeline ul li:nth-child(even) div.timeline-date {
  right:-285px;
}


/* ICONS
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.timeline ul li::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: black;
  z-index: 1;
}
/*
.timeline ul li::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -2px;
  transform: translate(-50%,-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 32px 18px 0px 18px;
  border-color: black transparent transparent transparent;
  z-index: 1;
  visibility: visible !important;
}

.timeline ul li:last-child::after {
  content: none;
  background-color: red;
}
*/

.timeline ul li:nth-child(odd) div.timeline-container::before,
.timeline ul li:nth-child(even) div.timeline-container::after
 {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
}
.timeline ul li:nth-child(odd) div.timeline-container::before {
  left: -16px;
  border-width: 8px 16px 8px 0;
  border-color: transparent black transparent transparent;
}
.timeline ul li:nth-child(even) div.timeline-container::after {
  right: -16px;
  border-width: 8px 0 8px 16px;
  border-color: transparent transparent transparent black;
}


/* EFFECTS
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.timeline ul li::after {
  transition: background 0.5s ease-in-out;
}

.timeline ul li  div  {
  visibility: visible;

  transition: all 0.5s ease-in-out;
}

/*
.timeline ul li div.timeline-container {
  transform: translate3d(200px, 0, 0);
}
*/

.timeline ul li:nth-child(odd) div.timeline-container {
  transform: translate3d(125px, 0, 0);
}

.timeline ul li:nth-child(even) div.timeline-container {
  transform: translate3d(-145px, 0, 0);
}

.timeline ul li.in-view,
.timeline ul li.in-view div, 
.timeline ul li.in-view div div, 
.timeline ul li.in-view div div.timeline-container{
  transform: none;
  
  opacity: 1;
}


/* GENERAL MEDIA QUERIES
–––––––––––––––––––––––––––––––––––––––––––––––––– */

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

    .timeline ul { 
        padding-left: 5px;
    }

    .timeline ul li {
      margin-left: 40px;
    }

    .timeline ul li:first-child::before {
        margin-top: 40px !important;
    }

    .timeline ul li::before {
        margin-top: 60px;
    }

    .timeline ul li div.timeline-container {
      left: 40px;
      padding: initial;
      width: 75vw;
    }

    .timeline ul li:nth-child(odd) div.timeline-container {
      left: 45px;
    }
    .timeline ul li:nth-child(even) div.timeline-container {
      left: 45px;
    }

    .timeline ul li:nth-child(odd) div.timeline-container {
      transform: translate3d(100px, 0, 0);
    }
    
    .timeline ul li:nth-child(even) div.timeline-container {
      transform: translate3d(100px, 0, 0);
    }

    .timeline ul li:nth-child(even) div.timeline-container::after {
      left: -16px;
      border-width: 8px 16px 8px 0;
      border-color: transparent black transparent transparent;
    }

    .timeline ul li:nth-child(odd) div.timeline-date {
        left:0px
    }
    .timeline ul li:nth-child(even) div.timeline-date {
        left:0px;
    }

    .timeline ul li:first-child div.timeline-date h3 {
        padding-top:0px;
    }


    .timeline ul li div.timeline-date {
        display: block;
        font-size: 1.2rem;
        font-weight: bold;
        position: relative;
        width: 75vw;
        transform: translateY(0%) !important;
        margin-left:40px;
        
    }
    .timeline ul li div.timeline-date h3 {
        margin-top: 0px;
        padding-top: 35px;
        margin-bottom: 35px;
    }

    .timeline ul li div.timeline-date::before {
      content: "";
      position: absolute;
      left: -42px;
      top: 50%;
      transform: translate(-50%,-50%);
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: black;
      z-index: 1;
      margin-top: 24px;
    }

    .timeline ul li:first-child div.timeline-date::before {
      margin-top:0px;
    }


}

@media screen and (max-width: 600px) {
    .timeline ul { 
        padding-left: 5px;
    }

    .timeline ul li {
        margin-left: 10px;
        border-left: 3px solid black;
    }

    .timeline ul li::before {
        content: "";
        position: absolute;
        left: -2px;
        top: 50%;
        transform: translate(-50%,-50%);
        width: 15px;
        height: 15px;
        border-radius: 50%;
        background: black;
        z-index: 1;
    }

    .timeline ul li:first-child::before {
        margin-top: 28px !important;
    }

    .timeline ul li::before {
        margin-top: 50px;
    }

    .timeline ul li div.timeline-container {
      width: 80vw;
    }

    .timeline ul li:nth-child(odd) div.timeline-container {
        left: 35px;
    }
    .timeline ul li:nth-child(even) div.timeline-container {
        left: 35px;
    }

    .timeline ul li:nth-child(odd) div.timeline-container {
        transform: translate3d(50px, 0, 0);
    }
    
    .timeline ul li:nth-child(even) div.timeline-container {
        transform: translate3d(50px, 0, 0);
    }

    .timeline ul li div.timeline-date::before {
        content: "";
        position: absolute;
        left: -37px;
        top: 50%;
        transform: translate(-50%,-50%);
        width: 15px;
        height: 15px;
        border-radius: 50%;
        background: black;
        z-index: 1;
        margin-top: 24px;
    }

    .timeline ul li div.timeline-date {
        margin-left:35px;
    }



}