/* Timeline */

#timeline ul {
    list-style: none;
    margin-top: 50px;
  }
  
  /* Central Line */
  #timeline ul li {
    position: relative;
    width: 0;
    border-left: 5px dotted #afafaf;
    margin: 0 auto;
  }
  
  /* Dots */
  #timeline ul li:before {
    content: "";
    position: absolute;
    top: 0;
    left: -15px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #afafaf;
    transition: background 1s ease-in-out;
  }
  
  /* Year */
  #timeline ul h3 {
    font-size: 1.5rem;
    text-align: center;
    margin: 30px 0 10px;
  }
  #timeline ul h2 {
    font-size: 3rem;
    text-align: center;
    font-family: "Visby CF Bold", sans-serif;
    color: #fff;
    margin: auto;
  }
  
  /* Boxes &  Bottom Text */
  #timeline ul li > div {
    width: 350px;
    margin-bottom: 5px;
    text-align: center;
    position: relative;
    opacity: 0;
    visibility: hidden;
    transition: all 1s ease-in-out;
  }
  #timeline ul li > div p {
    padding-top: 10px;
    font-family: "Visby CF Bold", sans-serif;
    color: #336ea3;
  }
  #timeline ul li:nth-child(2n + 0) > div {
    margin-left: 70px;
    transform: translateX(60px);
  }
  #timeline ul li:nth-child(4n + 0) > div {
    margin-left: -414px;
    transform: translateX(-60px);
  }
  #timeline ul li > div > div {
    position: relative;
    top: -14px;
    background: #336ea3;
    width: 350px;
    padding: 5px 10px;
  }
  /* Top boxes arrows */
  #timeline ul li > div:before {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    top: 0;
    border-style: solid;
  }
  #timeline ul li:nth-child(2n + 0) > div:before {
    left: -15px;
    border-width: 8px 16px 8px 0;
    border-color: transparent #336ea3 transparent transparent;
  }
  #timeline ul li:nth-child(4n + 0) > div:before {
    transform: translateX(365px);
    border-width: 8px 0 8px 16px;
    border-color: transparent transparent transparent #336ea3;
  }
  
  /* Show Boxes */
  #timeline ul li.show > div {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }
  
  #timeline ul li.show:before {
    background: radial-gradient(
      circle,
      rgba(0, 149, 212, 1) 0%,
      rgba(23, 96, 150, 1) 63%
    );
  }
  
  @media (max-width: 900px) {
    #timeline ul li > div,
    #timeline ul li > div > div {
      width: 200px;
    }
    #timeline ul li:nth-child(4n + 0) > div {
      margin-left: -264px;
    }
    #timeline ul li:nth-child(4n + 0) > div:before {
      transform: translateX(215px);
    }
  }
  @media (max-width: 600px) {
    #timeline ul li {
      margin: 0 25px;
    }
    #timeline ul li > div,
    #timeline ul li > div > div {
      width: calc(100vw - 170px);
    }
    #timeline ul h3 {
      text-align: unset;
      padding-left: 12px;
      color: #afafaf;
      font-family: "Visby CF Bold", sans-serif;
    }
    #timeline ul li:nth-child(4n + 0) > div {
      margin-left: 70px;
      transform: translateX(60px);
    }
    #timeline ul li:nth-child(4n + 0) > div:before {
      transform: translateX(0);
      border-width: 8px 16px 8px 0;
      border-color: transparent #336ea3 transparent transparent;
    }
    #timeline ul li.show > div {
      transform: none;
    }
  }
  /* Timeline */
  