////////////////////////////////

@import url("https://fonts.googleapis.com/css?family=Open+Sans");

$color-red:         #d81e05;
$color-dark:        rgb(52, 52, 52);
$color-grey:        #dedede;

////////////////////////////////

h2 { color: $color-dark; font-size: 32px; margin: 0 0 10px 0;}
h3 { color: $color-red; font-size: 16px; margin: 0 0 5px 0;}
p { color: $color-dark;  font-size: 20px; margin: 0 0 20px 0;}
body, html { background-color: rgb(244, 244, 244); }

.section.timeline-section {
    background: #231F20;
}

.timeline *, .timeline *:before, .timeline *:after{
  box-sizing: border-box; 
  font-family: "Open Sans", sans-serif;
  padding: 0;
  margin: 0;
}

.timeline{
  display: flex;
  flex-direction: column-reverse;
  overflow: hidden;
  margin: 0px auto 60px;
  max-width: 820px;
  position: relative;
  overflow-y: visible !important;
}

.timeline:after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  margin-top: 299px;
  height: 2px;
  border: 2px solid $color-grey;
}

.timeline-container{
  display: flex;
  transition: .3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin-bottom: 60px;
}

.timeline-card {
    flex: 0 0 auto;
    position: relative;
    padding: 20px;
    width: 320px;
    margin-top: 80px;
    color: #fff;
}

.timeline-card:not(:first-child) {
    margin-left: 40px;
}

.timeline-card p {
    margin-top: 20px;
    font-size: 16px;
}

.timeline-card-svg path{
  fill: $color-grey;
}

.timeline-card-svg:nth-of-type(odd),
.timeline-card-svg:nth-of-type(even) {
  position: absolute;
  width: 13px;
  height: 49px;
  left: 50%;
  bottom: -63px;
  
  transform: translate(-50%);
}

.timeline-card:nth-of-type(even) .timeline-card-svg {
  top: -12px;
  margin-top: -49px;
  transform: scaleY(-1) translate(-50%);
}

.timeline-section h2 {
    color: #fff;
}

.timeline-fade {
  /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#ffffff+0,ffffff+100&0+0,1+97 */
background: -moz-linear-gradient(left,  rgba(35,31,32,0) 0%, rgba(35,31,32,1) 97%, rgba(35,31,32,1) 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(left,  rgba(35,31,32,0) 0%,rgba(35,31,32,1) 97%,rgba(35,31,32,1) 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to right,  rgba(35,31,32,0) 0%,rgba(35,31,32,1) 97%,rgba(35,31,32,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#231F20',GradientType=1 ); /* IE6-9 */
position: absolute;
right: 0;
width: 100px;
height: 100%;

}
.timeline-nav {
    margin: -40px auto 40px;
    z-index: 10;
    width: calc(100% - 30px);
    max-width: 820px;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    width: 100%;
    flex-grow: 1;
    flex-shrink: 0;
}

.timeline-nav-button {
    position: absolute;
    width: 48px;
    height: 48px;
    cursor: pointer;
    opacity: 1;
    border-radius: 100%;
    transform: translate(-50%, -50%);
    transform-origin: center;
    transition: 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #fff;
    padding: 20px !important;
}

.timeline-nav-button:hover{
  width:60px;
  height:60px;
}

.timeline-nav-button:after{
  content: "";
  position:absolute;
  
  height: 2px;
  width: 10px;
  
  background:$color-red;
}

.timeline-nav-button:before{
  content: "";
  position:absolute;
  
  margin-left:-1px;
  height: 8px;
  width: 8px;
  border-style: solid;
  border-color: #fff;
  border-width: 0px 4px 4px 0px;
  
  transform: rotate(135deg);
}


.timeline-card h3 {
    background: #d30000;
    color: #fff;
    padding: 10px;
    border-radius: 7px;
    display: inline-block;
    font-weight: 800;
    font-size: 30px;
    margin-bottom: 14px;
}