/*======= Timeline v sekci O společnosti */

 .flex-parent {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 160px;
  margin-bottom: 50px;
}

.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;
}

.input_timeline {
  width: 25px;
  height: 25px;
  background-color: #ea592c;
  position: relative;
  border-radius: 50%;
  display: block;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.input_timeline:focus {
  outline: none;
}
.input_timeline::before, .input_timeline::after {
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ea592c;
  width: 4vw;
  height: 5px;
  max-width: 50px;
}
.input_timeline::before {
  left: calc(-4vw + 12.5px);
}
.input_timeline::after {
  right: calc(-4vw + 12.5px);
}
.input_timeline:checked {
  background-color: #ea592c;

}
.input_timeline:checked::before {
  background-color: #ea592c;

}
.input_timeline:checked::after {
  background-color: #AEB6BF;

}
.input_timeline:checked ~ .input_timeline, .input_timeline:checked ~ .input_timeline::before, .input_timeline:checked ~ .input_timeline::after {
  background-color: #AEB6BF;
  
}
.input_timeline:checked + .dot-info span {
  font-size: 13px;
  font-weight: bold;
  
}

.dot-info {
  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;
  font-size: 12px;
}
.dot-info span.year {
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
}
.dot-info span.label {
  top: -90px;
  left: 0;
  transform: rotateZ(-45deg);
  width: 160px;
  text-indent: -10px;
}

#timeline-descriptions-wrapper {
  width: 100%;
  margin-top: 70px;
  font-size: 16px;
  font-weight: 400;
  margin-left: calc((-80vw - 25px) / 20);
}
#timeline-descriptions-wrapper p {
  margin-top: 0;
  display: none;
}

.input_timeline[data-description="1999"]:checked ~ #timeline-descriptions-wrapper p[data-description="1999"] {
  display: block;
}

.input_timeline[data-description="2002"]:checked ~ #timeline-descriptions-wrapper p[data-description="2002"] {
  display: block;
}

.input_timeline[data-description="2003"]:checked ~ #timeline-descriptions-wrapper p[data-description="2003"] {
  display: block;
}

.input_timeline[data-description="2004"]:checked ~ #timeline-descriptions-wrapper p[data-description="2004"] {
  display: block;
}

.input_timeline[data-description="2009"]:checked ~ #timeline-descriptions-wrapper p[data-description="2009"] {
  display: block;
}

.input_timeline[data-description="2012"]:checked ~ #timeline-descriptions-wrapper p[data-description="2012"] {
  display: block;
}

.input_timeline[data-description="2014"]:checked ~ #timeline-descriptions-wrapper p[data-description="2014"] {
  display: block;
}

.input_timeline[data-description="2018"]:checked ~ #timeline-descriptions-wrapper p[data-description="2018"] {
  display: block;
}

.input_timeline[data-description="2019"]:checked ~ #timeline-descriptions-wrapper p[data-description="2019"] {
  display: block;
}

.input_timeline[data-description="2021"]:checked ~ #timeline-descriptions-wrapper p[data-description="2021"] {
  display: block;
}

.input_timeline:not(:checked), .input_timeline:checked {
    position: relative;
    left: 0px;
margin: 0px;
border: 0px;
}

@media (min-width: 1250px) {
  .input-flex-container {

  }

  .input_timeline::before {
    left: -37.5px;
  }
  .input_timeline::after {
    right: -37.5px;
  }

  .dot-info {
    left: calc((((1000px - 25px) / 20) * -1) - 1px);
  }

  #timeline-descriptions-wrapper {
    margin-left: -37.5px;
  }
}
@media (max-width: 630px) {
  .flex-parent {
    justify-content: initial;
  }

  .input-flex-container {
    flex-wrap: wrap;
    justify-content: center;
    width: 450px;
    height: auto;
    margin-left: 0;
    padding-bottom: 30px;
  }

  .input_timeline, .dot-info {
    width: 60px;
    height: 60px;
    margin: 0 10px 50px;
  }

  .input_timeline {
    background-color: transparent !important;
    z-index: 1;
  }
  .input_timeline::before, .input_timeline::after {
    content: none;
  }
  .input_timeline:checked + .dot-info {
    background-color: #ea592c;
  }
  .input_timeline:checked + .dot-info span.year {
    font-size: 14px;
  }
  .input_timeline: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: 90px;

  }

  #timeline-descriptions-wrapper {
    margin-top: 30px;
    margin-left: 0;
    text-align: center;
  }

.input_timeline:not(:checked), .input_timeline:checked {

    width: 60px;
    height: 120px;
    margin: 0 15px 50px;
  
}


}
@media (max-width: 480px) {
  .input-flex-container {
    width: 340px;
  }
}
@media (max-width: 400px) {
  .input-flex-container {
    width: 300px;
  }
}

