
/* =================== Fonts ===================== */

@font-face{
  font-family: font_bold;
  src: url(../fonts/GothamBold.ttf);
}

/*=================== Common Variables ===================*/

:root{
  --bg-white: #f7f7f7;
  --theme-white: #f7f7f7;
  --theme-yellow: #f7ce0f;
  --theme-light-blue: #3b65b0;
  --theme-dark-blue: #1e3565;
  --theme-black: #262626;
  --theme-red: linear-gradient(to right, #00474D, #29994B);
  --dark-border: rgba(38,38,38,0.2);
  --uiTimelineMainColor: #222;
  --uiTimelineSecondaryColor: #fff;
  
}

 /*=================== Timeline styles ====================*/
.timeline{
  position: relative;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.timeline:before{
  content: "";
  width: 4px;
  height: 107%;
  background-color: var(--theme-yellow);

  position: absolute;
  top: 0;
}

.timeline__group{
  position: relative;
}

.timeline__group:not(:first-of-type){
  margin-top: 4rem;
}

.timeline__year{
  font-size: 0.95rem;
  padding: .5rem 1rem;
  color: var(--theme-black);
  background-color: var(--theme-yellow);

  position: absolute;
  left: 0;
  top: 0;
}

.timeline__box{
  position: relative;
}

.timeline__box:not(:last-of-type){
  margin-bottom: 30px;
}

.timeline__box:before{
  content: "";
  width: 100%;
  height: 3px;
  background-color: var(--theme-light-blue);

  position: absolute;
  left: 0;
  z-index: -1;
}

.timeline__date{
  min-width: 65px;
  position: absolute;
  left: 0;

  box-sizing: border-box;
  padding: .3rem 1rem;
  text-align: center;

  background-color: var(--theme-light-blue);
  color: var(--theme-white);
}

.timeline__day{
  font-size: 1.4rem;
  font-weight: 700;
  display: block;
}

.timeline__month{
  display: block;
  font-size: .8em;
  text-transform: uppercase;
}

.timeline__post{
  padding: 1rem 2rem;
  border-radius: 2px;
  border-left: 4px solid var(--theme-light-blue);
  box-shadow: 0 1px 3px 0 rgba(70, 2, 2, 0.12), 0 1px 2px 0 rgba(70, 3, 3, 0.24);
  background-color: var(--uiTimelineSecondaryColor);
}

@media screen and (min-width: 641px){

  .timeline:before{
    left: 32px;
  }

  .timeline__group{
    padding-top: 55px;
  }

  .timeline__box{
    padding-left: 80px;
  }

  .timeline__box:before{
    top: 50%;
    transform: translateY(-50%);  
  }  

  .timeline__date{
    top: 50%;
    margin-top: -27px;
  }
}

@media screen and (max-width: 640px){

  .timeline:before{
    left: 0;
    height: 101% !important;
  }

  .timeline__group{
    padding-top: 40px;
  }

  .timeline__box{
    padding-left: 20px;
    padding-top: 70px;
  }

  .timeline__box:before{
    top: 90px;
  }    

  .timeline__date{
    top: 0;
  }
  #last-timeline.timeline__box:before{
    position: absolute;
    top: 140px;
  }
  #last-timeline .timeline__post{
    position: relative;
    top: 50px;
  }
}

.timeline{
  --timelineMainColor: var(--theme-light-blue);
  font-size: 16px;
  margin: 0 10px;
}

/*@media (min-width: 768px){

  html{
    font-size: 62.5%;
  }
}

@media (max-width: 767px){

  html{
    font-size: 55%;
  }
}*/

.timeline__content p{
  margin-top: 0;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  font-family: font_bold;
  color: #777;
}

.timeline__content p:last-child{
  margin-bottom: 0;
}

.page{
  font-size: 62.5%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  order: 1;
}