/* IE FIXES */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  #timeline.hoverclick .tl-item {
    max-width: 7000px!important;
  }
  .tl-item.hoverclick {
    max-width: 5440px!important;
  }
}



/* Media queries */
@media screen and (max-width: 1000px) {
    .tl-item.hoverclick .tl-year {
        top: 247px!important;
    }

    .tl-item.hoverclick .tl-content {
        top: 270px!important;
        margin: 20px 30px 0 0;
    }
    .tl-item.hoverclick .tl-content ul {
      margin-top: 0px;
    }
}


@media (max-width:1000px) and (min-width:800px){
  .tl-item.hoverclick {
    max-width:500px;
  }
  .tl-item.hoverclick .tl-bg {
    width:500px;
    height:230px;
  }
  .tl-item.hoverclick .tl-year,
  .tl-item.hoverclick .tl-content{
    top: 300px!important;
  }
  .tl-year{
    top:55%!important;
  }
}

@media (max-width:800px) {
  #timeline {
    width:100%;
    display: block;
  }
  .tl-item {
    height: 10%;
    width: 100%;
    min-height: 200px;
    transition: min-height .5s;
    -webkit-transition: min-height .5s;
    //background:none;
  }

  body {
    overflow: scroll;
    width:100%!important;
    overflow-x:hidden;
    cursor: grab;
    cursor : -o-grab;
    cursor : -moz-grab;
    cursor : -webkit-grab;
  }

  .tl-item.hoverclick {
    width: 100%!important;
    min-height: 600px;
  }

  .tl-content p {
    height: 200px;
  }

  .tl-content p img {
    width: 100%;
    height: auto;
  }

  .tl-bg {
    width: 100%;
    height: 100%;
    top: 0%;
    left: -30%;
    border-radius: 0;
    box-shadow: 0 0 90px #000;
   }

   .tl-year {
     left: 85%;
   }

   .tl-item:after {
     background:none;
   }

   .hoverclick .tl-bg {
     width:100%!important;
     height:30%;
     z-index:10;
   }

   .hoverclick .tl-item {
      width: 100%;
      height: 500px!important;
    }

    .hoverclick .tl-year {
      left:50%;
      top: 250px!important;
    }

    .hoverclick .tl-content {
        top: 230px!important;
        margin-top: 60px;
    }
    .textbox img {
      width: 60%;
    }
    .textbox h2 {
      line-height: 30px;
      font-size:25px;
    }
    .textbox {
      max-height: 500px;
      overflow: scroll;
      overflow-x: hidden;
      margin-left:-10px;
   }

  .textbox p {
      font-size: 16px;
  }
   i {
     display:none;
   }

}

@media screen only (min-height:1000px){
   .hoverclick .tl-item,
   .hoverclick .tl-year {
     top:400px!important;
   }
}

@media (min-height:500px) {
   .tl-year {
     top:50%!important;
   }
}

@media (min-height:500px) and (min-width:1200px){
   .tl-year {
     top:50%!important;
   }
}

/* Will this show scroll on mac */
@media (min-width: 1200px){
  .tl-content p::-webkit-scrollbar {
      -webkit-appearance: none;
  }

  .tl-content p::-webkit-scrollbar:vertical {
      width: 11px;
  }

  .tl-content p::-webkit-scrollbar:horizontal {
      height: 11px;
  }

  .tl-content p::-webkit-scrollbar-thumb {
      border-radius: 8px;
      border: 2px solid white; /* should match background, can't be transparent */
      background-color: rgba(0, 0, 0, .5);
  }

  .tl-content p::-webkit-scrollbar-track {
      background-color: #fff;
      border-radius: 8px;
  }
}
