@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Work+Sans:wght@400;600;700&display=swap&subset=latin-ext");
@import url('https://fonts.googleapis.com/css2?family=Bungee&display=swap');

* {
  font-family: "Poppins", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
#kontaktni-formular {
  scroll-margin-top: 120px;
}
main {
  padding-top: 0;
}

.container-fluid {
  padding: 0 80px;
}

.center {
  text-align: center;
}

h1, h2, h3, h4, h5 {
  font-weight: 500;
  font-family: 'Bungee', sans-serif;
}

h1.line:before, h2.line:before, h3.line:before, h4.line:before, h5.line:before {
  content: "";
  width: 60px;
  height: 2px;
  background-color: #7F7E7E;
  display: block;
}

h1.line:before, h2.line:before {
  margin-bottom: 30px;
}

h3.line:before {
  margin-bottom: 25px;
}

h4.line:before, h5.line:before {
  margin-bottom: 20px;
}

h1.line-60:before, h2.line-60:before, h3.line-60:before, h4.line-60:before, h5.line-60:before {
  width: 60px;
}

h1.line-center, h2.line-center, h3.line-center, h4.line-center, h5.line-center {
  text-align: center;
}


h1.line-center:before, h2.line-center:before, h3.line-center:before, h4.line-center:before, h5.line-center:before {
  margin: auto;
}

h1.line-center:before, h2.line-center:before {
  margin-bottom: 30px;
}

h3.line-center:before {
  margin-bottom: 25px;
}

h4.line-center:before, h5.line-center:before {
  margin-bottom: 20px;
}

.nadpis-h1 {
  padding-top: 80px;
}
.banner.subpage .breadcrumbs {
  text-align: center !important;
  margin-bottom: 0 !important;
}
.breadcrumbs {
  font-size: 0.8em;
  color: #7F7E7E;
  margin-top: 25px;
  margin-bottom: -44px;
  text-align: right;
}

.breadcrumbs>a {
  color: #7F7E7E;
}

.breadcrumbs>a:hover {
  text-decoration: none;
}

.breadcrumbs>i {
  padding: 0 5px 0 5px;
}

a, button {
  transition: all 0.3s;
  -moz-transition: all 0.3s;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
}

html, body {
  overflow-x: hidden;
}

.bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: all 0.8s;
  -moz-transition: all 0.8s;
  -webkit-transition: all 0.8s;
  -o-transition: all 0.8s;
}

@media (min-width: 1500px) {
  .container {
    max-width: 1460px;
  }
}

@media (max-width: 1400px) {
  main {
    padding-top: 0;
  }
}

@media (max-width: 991px) {
  .container-fluid {
    padding: 0 20px;
  }

  .container {
    /*padding: 0 20px;*/
    padding-left: 20px;
    padding-right: 20px;
  }

  .breadcrumbs {
    text-align: center;
  }
}

.btn-my {
  display: inline-block;
  font-size: 20px;
  font-weight: 500;
  text-decoration: none !important;
  border-radius: 8px;
  background-color: transparent;
  font-family: 'Bungee', sans-serif;
  padding: 0 40px;
  text-align: center;
}

.btn-my:hover {
  text-decoration: none !important;
}

.btn-my.lh-60 {
  line-height: 60px;
}

.btn-my.lh-50 {
  line-height: 50px;
}

.btn-my.lh-40 {
  line-height: 40px;
}

.btn-my.w-160 {
  width: 160px;
}

.btn-my.w-270 {
  width: 270px;
}

.btn-my.w-240 {
  width: 240px;
}

.btn-my-blue {
  background-color: #000000;
  color: #FFFFFF;
}

.btn-my-blue:hover {
  background-color: #7F7E7E;
  color: #FFFFFF;
}

.btn-my-dark {
  color: #000;
  background-color: transparent;
  border: solid 2px #7F7E7E;
}

.btn-my-dark:hover {
  background-color: #7F7E7E;
  color: #fff;
}

.error label {
  color: red !important;
}

.error input[type='text'], .error input[type='email'], .error textarea {
  border: 1px solid red !important;
}

.nav-item.poptavka .count{
  color: white;
  display: inline-block;
  background-color: #002f4c;
  border-radius: 50%;
  width: 30px;
  line-height: 30px;
  text-align: center;
  color: white;
  font-weight: bold;
  margin-left: 10px;
}

.banner.subpage {
  color: #fff;
  background-size: cover;
  min-height: 400px;
  max-width: 100%;
  width: 100%;
  padding: 0;
  margin-right: auto;
  margin-left: auto;
  background-image: url("/template/img/sekce-6/konzultace.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  margin-bottom: 0;
  position: relative;
}
.banner.subpage::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 1;
  background: linear-gradient(0deg,rgba(238, 230, 222, 0.7) 0%, rgba(238, 230, 222, 1) 100%);
}
.banner.subpage::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 80px;
  background-image: url("/template/img/sekce-6/zuby-top.svg");
  background-repeat: no-repeat;
  background-size: cover;
  bottom: 0;
  left: 0;
  z-index: 9;
  transform: scaleY(1) rotate(180deg);
}
.banner.subpage h1 {
  color: #000;
  font-weight: 500;
  font-size: 44px;
  text-transform: uppercase;
}

.banner.subpage .content {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90vw;
}
@media (max-width: 575px) {
  .btn-my {
    font-size: 18px;
  }
}

.book {
  position: relative;
  width: 700px;
  aspect-ratio: 700 / 462;
  margin: auto;
  transition: transform 0.5s;
  transform-style: preserve-3d;
}

.book-container {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.paper {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  transform-style: preserve-3d;
  transform-origin: left;
  transition: transform 0.8s ease-in-out;
  backface-visibility: hidden;
}

.paper img {
  backface-visibility: hidden;
}

/* Přední a zadní strana stránky */
.front,
.back {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
}

.front {
  z-index: 2;
  border-left: 3px solid #000;
}

.back {
  transform: rotateY(180deg);
}

/* Otočená stránka */
.paper.flipped {
  transform: rotateY(-180deg);
}

/* Tlačítka pro listování */
.fotokniha {
  position: relative;
  margin-bottom: 40px !important;
  justify-content: center;
  align-items: center;
  width: 90%;
  margin: auto;
}
.fotokniha .tlacitka {
  width: fit-content;
  margin: auto;
}
.fotokniha button {
  border: none;
  background-color: transparent;
  cursor: pointer;
  z-index: 99;
  margin: 10px;
  transition: transform 0.5s;
}

.fotokniha button:hover i {
  color: #636363;
}

.fotokniha i {
  font-size: 50px;
  color: gray;
}

.fotokniha .sekce-14button:focus {
  outline: none;
}

.paper{
  z-index: 0;
}
.front-content img,
.back-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
@media (max-width: 600px) {
  .fotokniha i {
    font-size: 30px;
  }

  .fotokniha button {
    margin: 5px;
  }

  .fotokniha {
    flex-direction: column;
  }

  .book {
    width: 100%;
    max-width: 90vw;
  }


}
@media (max-width: 600px) {
  .fotokniha {
    flex-direction: column;
  }

  #prev-btn, #next-btn {
    order: 2;
  }

  #book {
    order: 1;
  }
}
@media (max-width: 1400px) {
  .book-wrapper {
    transform: scale(calc(100vw / 1400));
    transform-origin: top center;
  }
}

@media (min-width: 1200px) and (max-width: 1600px) {
  .book {
    width: 500px;
  }
}
@media (min-width: 991px) and (max-width: 1200px) {
  .book {
    width: 450px;
  }
}
@media (min-width: 767px) and (max-width: 991px) {
  .book {
    width: 350px;
  }
}
@media (min-width: 575px) and (max-width: 767px) {
  .book {
    width: 250px;
  }
}
@media (max-width: 575px) {
  .book {
    width: 180px;
  }
}
.paper {
  will-change: transform;
}
