html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", serif;
}

[x-cloak] {
  display: none;
}

.callus {
  -webkit-animation: breathing 3s ease-out infinite normal;
  animation: breathing 3s ease-out infinite normal;
}

.mailus {
  -webkit-animation: breathing2 3s ease-out infinite normal;
  animation: breathing2 3s ease-out infinite normal;
}

@-webkit-keyframes breathing {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }

  50% {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
  }

  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

@keyframes breathing {
  0% {
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
  }

  50% {
    -webkit-transform: scale(1.2);
    -ms-transform: scale(1.2);
    transform: scale(1.2);
  }

  100% {
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
  }
}

@-webkit-keyframes breathing2 {
  0% {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
  }

  50% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }

  100% {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
  }
}

@keyframes breathing2 {
  0% {
    -webkit-transform: scale(1.2);
    -ms-transform: scale(1.2);
    transform: scale(1.2);
  }

  50% {
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
  }

  100% {
    -webkit-transform: scale(1.2);
    -ms-transform: scale(1.2);
    transform: scale(1.2);
  }
}

.swiper {
  overflow: hidden;
  width: 100%;
  height: 100%;
}

/* TImeline */
.timelineSwiper {
  position: relative;
  margin-top: 3rem;
  padding: 5rem 0;
  padding-bottom: 0;
}

@media only screen and (max-width: 767.99px) {
  .swiper,
  .container {
    overflow: hidden !important;
  }

  .mySwiper .swiper-slide {
    height: 25rem;
  }
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 5rem;
  width: 100%;
  height: 25rem;
}

@media only screen and (max-width: 767.99px) {
  .timeline-item {
    padding: 3rem 2rem;
    height: auto;
  }
}

/* Styl kruhů (datumů) */
.timeline-item .circle {
  width: auto;
  height: 40px;
  border-radius: 9999px;
  border: #000 2px solid;
  background-color: #f9fafb;
  display: flex;
  padding: 15px 30px;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  color: #000;
  z-index: 3;
  position: relative;
  top: 0;
  left: 0;
}

/* Bílý background a oranžový border pro aktivní kartičky */
.swiper-slide-active .timeline-item {
  border-radius: 2rem;
  background-color: white !important;
  transition: background-color 0.3s ease;
}

/* Oranžový border kolem ročníků u aktivních slide */
.swiper-slide-active .timeline-item .circle {
  border-width: 3px;
  background-color: #fff;
  border-color: #3eb8f8;
  color: #3eb8f8;
}

/* Styl čáry propojující kruhy (timeline items) */
.timeline-item:before {
  content: "";
  position: absolute;
  top: 98px;
  left: -10px;
  width: calc(100% + 100px);
  height: 2px;
  background-color: #000;
  z-index: 0;
}

.swiper-slide-active .timeline-item:before {
  background-color: #3eb8f8;
  transition: background-color 0.3s ease;
}

/* Odstranění čáry vlevo u první buňky */
.swiper-slide:first-child .timeline-item:before {
  left: 30%;
  width: 80%;
}

/* Odstranění čáry vpravo u poslední buňky */
.swiper-slide:last-child .timeline-item:before {
  width: 30%;
}

@media only screen and (max-width: 767.99px) {
  .timeline-item:before {
    top: 65px;
    left: -50px;
    width: calc(100% + 100px);
  }

  .swiper-slide:last-child .timeline-item:before {
    width: 50%;
  }
}

.timeline-item .content {
  padding-top: 2rem;
}

.timeline-item h4 {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.timeline-item p {
  font-size: 1.125rem;
  color: #6b7280;
}

/* Styling pro konečné tlačítko na časové ose */
#timeline-end-button {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f9fafb;
  border: 2px solid #000;
  color: #000;
  cursor: pointer !important;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  position: absolute;
  right: 0;
  top: 78px;
  transition: background-color 0.3s ease, color 0.3s ease;
  /* Zarovná tlačítko s buňkami */
  z-index: 1;
}

#timeline-end-button:hover {
  background-color: #fff;
  border-color: #3eb8f8;
  color: #3eb8f8;
}

#timeline-end-button.hidden {
  display: none;
}

/* #timeline-end-button:after {
  content: '';
  position: absolute;
  top: 50%;
  left: -260px;
  width: 260px;
  height: 2px;
  background-color: #9ca3af;
  z-index: -1;
} */

@media only screen and (max-width: 767.99px) {
  #timeline-end-button {
    top: 45px;
  }

  #timeline-end-button:after {
    left: -30px;
    width: 30px;
  }
}

#timeline-end-button svg {
  width: 24px;
  height: 25px;
}

#timeline-prev-button {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f9fafb;
  border: 2px solid #000;
  color: #000;
  cursor: pointer !important;
  height: 40px;
  width: 40px;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 78px;
  z-index: 2;
}

#timeline-prev-button:hover {
  background-color: #fff;
  border-color: #3eb8f8;
  color: #3eb8f8;
}

#timeline-prev-button.hidden {
  display: none;
}

#timeline-prev-button svg {
  width: 24px;
  height: 25px;
}

@media only screen and (max-width: 767.99px) {
  #timeline-prev-button {
    top: 45px;
    left: -20px;
  }

  .swiper {
    overflow: visible !important;
  }
}
