
/* -------------------------------- 

Modules - reusable parts of our design

-------------------------------- */
.cd-container {
  width: 90%;
  max-width: 1170px;
  margin: 0 auto;
}
.cd-container::after {
  /* clearfix */
  content: '';
  display: table;
  clear: both;
}

/* -------------------------------- 

Main components 

-------------------------------- */



#cd-timeline {
  position: relative;
  padding: 2em 0;
  margin-top: 2em;
  padding-bottom: 200px;
}
#cd-timeline::before {
  /* this is the vertical line */
  content: '';
  position: absolute;
  top: 0;
  left: 18px;
  height: 100%;
  width: 2px;
  background: #666666;
}
@media only screen and (min-width: 1170px) {
  #cd-timeline {
    margin-top: 3em;
    margin-bottom: 3em;
  }
  #cd-timeline::before {
    left: 50%;
    margin-left: -2px;
  }
}
@media only screen and (max-width: 400px) {
  #cd-timeline::before {
    display: none;
  }
}

.cd-timeline-block {
  position: relative;
  /*margin: 2em 0;*/ line-height:1.2em;
}
.cd-timeline-block:after {
  content: "";
  display: table;
  clear: both;
}
.cd-timeline-block:first-child {
  margin-top: 0;
}
.cd-timeline-block:last-child {
  margin-bottom: 0;
}
@media only screen and (min-width: 1170px) {
  .cd-timeline-block {
    margin: 4em 0;
  }
  .cd-timeline-block:first-child {
    margin-top: 0;
  }
  .cd-timeline-block:last-child {
    margin-bottom: 0;
  }
}

.cd-timeline-content .cd-date { 
    color:#FFF; font-size:1.3em;
}

.cd-timeline-number {
  position: absolute;
  top: 40px;
  left: 12px;
  width: 15px;
  height: 15px;
  border-radius: 50%; background: #fff;
  /*box-shadow: 0 0 0 4px white, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);*/
}
.cd-timeline-number.inview {
    -webkit-animation: fadeInOutBig 0.6s forwards;
    -moz-animation: fadeInOutBig 0.6s forwards;
    animation: fadeInOutBig 1.3s forwards;
}
.cd-timeline-number span {
  display: block; text-align:center; color:#000; text-shadow:2px 2px 2px rgba(0, 0, 0, 0.05); font-size:20px; line-height:24px;
  width: 24px;
  height: 24px;
  position: relative;
  left: 50%;
  top: 50%;
  margin-left: -12px;
  margin-top: -12px; counter-increment: numbers-counter;
}
.cd-timeline-number span:before { 
    content: counter(numbers-counter); 
}

@media only screen and (min-width: 1170px) {
  .cd-timeline-number {
    width: 15px;
    height: 15px;
    left: 50%;
    margin-left: -9px;
    /* Force Hardware Acceleration in WebKit */
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
  }
  .cd-timeline-number span {
	  width: 36px; font-size:25px; line-height:34px;
	  height: 36px;
	  margin-left: -17px;
	  margin-top: -17px;
	}
}
@media only screen and (max-width: 400px) {
  .cd-timeline-number {
    display: none;
  }
}


.cd-timeline-content {
  position: relative;
  margin-left: 60px;
  padding: 11px 6px;
}
@media only screen and (max-width: 400px) {
  .cd-timeline-content {
    margin: 0;
  }
}

.cd-timeline-content:after {
  content: "";
  display: table;
  clear: both;
}

.cd-timeline-content-header { 
    padding: 6px 0 0; text-align: left; 
}
@media only screen and (min-width: 480px) {
    .cd-timeline-content-header { 
        padding: 6px 20px 0;
    }
}


.cd-timeline-content-header.inview { 
  -webkit-animation: slideInRightFadeIn 0.6s .3s forwards;
  -moz-animation: slideInRightFadeIn 0.6s .3s forwards;
  animation: slideInRightFadeIn 1.5s .3s forwards;
}

.cd-timeline-content h2 { color: #fff; text-transform: uppercase; margin:0 0 20px 0; font-size: 20px; }
.cd-timeline-content p { font-size: 17px; margin: 0 0 30px 0; line-height: 24px; }
.cd-timeline-content img { display:block; margin:0 0 30px 0; box-shadow: 5px 5px 12px rgba(0,0,0,0.4); }

.cd-timeline-content .cd-date { padding: 6px 12px 0 0; display:block; }

@media only screen and (max-width: 1170px) {
	.cd-timeline-content .cd-date { 
        text-align: left; font-size: 35px; margin: 20px;
    }
    .cd-timeline-content .cd-date.inview {
        -webkit-animation: fadeInOutBig 0.6s forwards;
        -moz-animation: fadeInOutBig 0.6s forwards;
        animation: fadeInOutBig 1.3s forwards; transform-origin: left bottom;
    }
}
@media only screen and (max-width: 480px) {
    .cd-timeline-content .cd-date { 
        margin: 20px 0;
    }
}

@media only screen and (min-width: 768px) {
  .cd-timeline-content h2 {
    font-size: 20px;
  }
  .cd-timeline-content p {
    font-size: 17px;
  }
}
@media only screen and (min-width: 1170px) {
  
    .cd-timeline-content {
    margin-left: 0;
    /*padding: 1.6em;*/
    width: 45%;
  }
    
  .cd-timeline-content-header { 
      padding:14px 80px 0; 
  }
    
  .cd-timeline-content-header.inview { 
      -webkit-animation: slideInLeftFadeIn 0.6s .3s forwards;
      -moz-animation: slideInLeftFadeIn 0.6s .3s forwards;
      animation: slideInLeftFadeIn 1.5s .3s forwards;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content .cd-timeline-content-header.inview {
    -webkit-animation: slideInRightFadeIn 0.6s .3s forwards;
    -moz-animation: slideInRightFadeIn 0.6s .3s forwards;
    animation: slideInRightFadeIn 1.3s forwards;
  }
  

  .cd-timeline-content .cd-date {
    position: absolute;
    width: 100%;
    left: 132%;
    top: 0;
    font-size: 79px; padding: 35px 0 35px 20px;
  }
  .cd-timeline-content .cd-date.inview {
    -webkit-animation: slideInRightFadeIn 0.6s .3s forwards;
    -moz-animation: slideInRightFadeIn 0.6s .3s forwards;
    animation: slideInRightFadeIn 1.5s .3s forwards;
  }
    
  .cd-timeline-content .cd-date { 
      padding-left:0; 
  }

  .cd-timeline-block:nth-child(even) .cd-timeline-content {
    float: right;
  }

  .cd-timeline-block:nth-child(even) .cd-timeline-content .cd-date {
    left: auto;
    right: 132%;
    text-align: right;
  }
  .cd-timeline-block:nth-child(even) .cd-timeline-content .cd-date.inview {
    -webkit-animation: slideInLeftFadeIn 0.6s .3s forwards;
    -moz-animation: slideInLeftFadeIn 0.6s .3s forwards;
    animation: slideInLeftFadeIn 1.5s .3s forwards;
  }
    

}


