/* Horizontal Timeline */

.htl-flex-parent {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 100px;
  margin-top: 120px;
  margin-bottom: 0px;
  padding-bottom: 0px;
}

.input-flex-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  width: 80vw;
  max-width: 1000px;
  position: relative;
  z-index: 0;
  margin-left: calc((80vw - 25px) / 20);
}

input.htl {
  appearance: initial !important;
  float: none !important;
  margin-right: 0px !important;
  opacity: initial !important;
  width: initial !important;
  z-index: 50 !important;
  width: 25px !important;
  height: 25px;
  background-color: #2C3E50;
  position: relative;
  border-radius: 50%;
  display: block;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
input.htl:focus {
  outline: none;
}
input.htl::before, input.htl::after {
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  top: 50%;
  transform: translateY(-50%);
  background-color: #2C3E50;
  width: 4vw;
  height: 5px;
  max-width: 50px;
}
input.htl::before {
  left: calc(-4vw + 0px);
}
input.htl::after {
  right: calc(-4vw + 0px);
}
input.htl:checked {
  background-color: #2C3E50;
}
input.htl:checked::before {
  background-color: #2C3E50;
}
input.htl:checked::after {
  background-color: #AEB6BF;
}
input.htl:checked ~ input, input.htl:checked ~ input::before, input.htl:checked ~ input::after {
  background-color: #AEB6BF;
}
input.htl:checked + .dot-info span {
  /*font-size: 13px;*/
  color: #990909;
}
input.htl:checked + .dot-info span.year {
  font-weight: bold;
}

.dot-info {
  font-family: "Quicksand", sans-serif;
  font-size: 0.9em;
  width: 25px;
  height: 25px;
  display: block;
  visibility: hidden;
  position: relative;
  z-index: -1;
  left: calc((((80vw - 25px) / 20) * -1) - 1px);
}
.dot-info span {
  visibility: visible;
  position: absolute;
}
.dot-info span.year {
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
}
.dot-info span.label {
  top: -75px;
  left: 0;
  transform: rotateZ(-45deg);
  width: 100px;
  text-indent: -10px;
  line-height: 1em;
}

#timeline-descriptions-wrapper {
  width: 100%;
  margin-top: 80px;
  font-size: 1.2em;
  margin-left: calc((-80vw - 25px) / 20);
}
#timeline-descriptions-wrapper p {
  margin-top: 0;
  display: none;
  min-height: 5em;
}

input[data-description="1517"].htl:checked ~ #timeline-descriptions-wrapper p[data-description="1517"] {
  display: block;
}

input[data-description="1520"].htl:checked ~ #timeline-descriptions-wrapper p[data-description="1520"] {
  display: block;
}

input[data-description="1521"].htl:checked ~ #timeline-descriptions-wrapper p[data-description="1521"] {
  display: block;
}

input[data-description="1526"].htl:checked ~ #timeline-descriptions-wrapper p[data-description="1526"] {
  display: block;
}

input[data-description="1530"].htl:checked ~ #timeline-descriptions-wrapper p[data-description="1530"] {
  display: block;
}

input[data-description="1534"].htl:checked ~ #timeline-descriptions-wrapper p[data-description="1534"] {
  display: block;
}

input[data-description="1536"].htl:checked ~ #timeline-descriptions-wrapper p[data-description="1536"] {
  display: block;
}

input[data-description="1545"].htl:checked ~ #timeline-descriptions-wrapper p[data-description="1545"] {
  display: block;
}

input[data-description="1555"].htl:checked ~ #timeline-descriptions-wrapper p[data-description="1555"] {
  display: block;
}

input[data-description="1560"].htl:checked ~ #timeline-descriptions-wrapper p[data-description="1560"] {
  display: block;
}

@media (min-width: 1250px) {
  .input-flex-container {
    margin-left: 62.5px;
  }

  input.htl::before {
    left: -37.5px;
  }
  input.htl::after {
    right: -50px;
  }

  .dot-info {
    left: calc((((1000px - 25px) / 20) * -1) - 1px);
  }

  .dot-info span.label {
    top: -80px;
    width: 100px;
  }

  #timeline-descriptions-wrapper {
    margin-left: -37.5px;
  }
}
@media (max-width: 736px) {
  .htl-flex-parent {
    justify-content: initial;
    margin-top: 0px;
    padding-top: 0px;
  }

  .input-flex-container {
    flex-wrap: wrap;
    justify-content: center;
    width: 400px;
    height: auto;
    /*margin-top: 15vh;*/
    margin-top: 20px;
    margin-left: 0;
    /*padding-bottom: 30px;*/
  }

  input.htl, .dot-info {
    width: 60px !important;
    height: 60px;
    margin: 0 10px 50px;
  }

  input.htl {
    background-color: transparent !important;
    z-index: 1;
  }
  input.htl::before, input.htl::after {
    content: none;
  }
  input.htl:checked + .dot-info {
    background-color: #2C3E50;
  }
  input.htl:checked + .dot-info span.year {
    font-weight: bold;
    color: white;
  }
  input.htl:checked + .dot-info span.label {
    /*font-size: 12px;*/
  }

  .dot-info {
    visibility: visible;
    border-radius: 50%;
    z-index: 0;
    left: 0;
    margin-left: -70px;
    background-color: #AEB6BF;
  }
  .dot-info span.year {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ECF0F1;
  }
  .dot-info span.label {
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    text-indent: 0;
    text-align: center;
    width: 70px;
  }

  #timeline-descriptions-wrapper {
    margin-top: 30px;
    margin-left: 0;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .input-flex-container {
    width: 340px;
  }
}
@media (max-width: 400px) {
  .input-flex-container {
    width: 300px;
  }
}

