@font-face {
  font-family: "poppins";
  src: url("../fonts/poppins.regular.ttf");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "poppins";
  src: url("../fonts/poppins.bold.ttf");
  font-weight: bold;
  font-style: normal;
}

:root {
  /* colours */
  --clr-bg-footer: #343434;
  --clr-bg-form: #B1B2B5;
  --clr-bg-primary: white;
  --clr-accent: #d9403b;
  --clr-primary-dark: #41568b;
  --clr-primary-light: #253568;
  --clr-secondary: #afc2f2;
  --clr-font-primary: black;
  --clr-font-secondary: white;
  --clr-bg-secondary: var(--clr-primary-dark);

  /* fonts */
  --ff-primary: "poppins", sans-serif;

  --fw-regular: 400;
  --fw-bold: 700;

  /* font sizes */
  --fs-900: 100px;
  --fs-800: 56px;
  /*--fs-700: 45px;*/
  --fs-600: 36px;
  /*--fs-500: 26px;*/
  --fs-400: 24px;
  --fs-300: 20px;
  --fs-200: 16px;

  /* section text & timeline card text */
  --fs-title: var(--fs-600);
  --fs-body: var(--fs-400);
  --fs-timeline: var(--fs-400);

  /* o menu card text */
  --fs-card-title: var(--fs-400);
  --fs-card-body: var(--fs-200);

  /* cenik items & terapije card text footer */
  --fs-card-body-sm: var(--fs-200);

  /* border radius */
  --br-600: 40px;
  --br-500: 30px;
  --br-400: 25px;
  --br-300: 15px;
}


.fs-900 {
  font-size: var(--fs-900);
}
.fs-800 {
  font-size: var(--fs-800);
}
.fs-600 {
  font-size: var(--fs-600);
}
.fs-400 {
  font-size: var(--fs-400);
}
.fs-300 {
  font-size: var(--fs-300);
}
.fs-200 {
  font-size: var(--fs-200);
}
.fs-title {
  font-size: var(--fs-title);
}
.fs-body {
  font-size: var(--fs-body);
}

.fw-regular {
  font-weight: var(--fw-regular);
}
.fw-bold {
  font-weight: var(--fw-bold);
}



body {
  font-family: var(--ff-primary);
}

main {
  width: 100vw;
}



header {
  position: sticky;
  top: 0;
  /*margin-top: -9.3em;*/
  background-color: transparent;
  z-index: 10000;



  .nav-container {
    position: relative;
    top: 1em;
    left: 5%;
    display: flex;
    justify-content: space-between;
    width: 90%;
    border-radius: var(--br-400);
    background-color: var(--clr-bg-primary);
    padding: 1em 0;
    box-shadow: 0 0 30px 5px #00000080;

    .logo {
      font-family: var(--ff-primary);
      /*font-size: 100px;*/
      font-size: var(--fs-title);
      font-weight: bolder;
      align-self: center;
      margin-left: 1em;
    }

    nav {
      position: absolute;
      top: 100%;
      display: grid;
      justify-content: center;
      width: 100%;

      ul {
        background-color: white;
        padding: 1em 3em;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 0 30px 5px #00000060;
        z-index: -1;

        li {
          text-align: center;
          font-size: var(--fs-400);
          padding: 1em 2em;

          a {
            text-decoration: 0;
            color: var(--clr-font-primary);
          }
        }
      }
    }

    button {
      border: none;
      background-color: transparent;
    }

    .mobile-menu {
      cursor: pointer;
      margin-right: 2.5em;
      display: grid;
    }

    .mobile-menu > img {
      /*width: 150px;*/
      /*font-size: var(--fs-title);*/
      width: var(--fs-title);
      align-self: center;
    }
  }
}



header > .open > nav {
    display: default;
}

header > .closed > nav {
    display: none;
}

header > .closed > .mobile-menu > img:nth-child(3),
header > .open > .mobile-menu > img:nth-child(2) {
  display: none;
}



main {
  margin-top: -4.25em;
}



#hero {
  height: 100vh;
  /*width: 100vw;*/
  background-color: var(--clr-bg-secondary);
  color: var(--clr-font-secondary);
  box-shadow: 0 0 30px 0px #00000060;
}

.container {
  display: grid;
  grid-auto-rows: 1fr 1fr;
  grid-auto-flow: row;
}

#hero .container {
  padding-top: 4em;
  grid-auto-columns: auto auto;
}

.first-section,
.second-section {
  display: grid;
  justify-content: center;
  align-items: center;
}

/*#hero .first-section {*/
.first-section {
  padding-top: 2em;
}


#hero .content {
  size: min-content;
  display: flex;
  flex-direction: column;
  gap: 2em;
  align-items: center;
}

#hero .content {
  text-align: center;
}


#hero .img-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

#hero img {
  /*width: min(40vh, 50%);*/
  width: 40vh;
}

.btn-secondary {
  cursor: pointer;
  padding: 2em 3.5em;
  background-color: var(--clr-accent);
  border: none;
  color: white;
  border-radius: var(--br-300);
  box-shadow: 0 0 30px 0px #00000060;
  a {
    color: white;
    text-decoration: none;
  }
}




#o_meni{
  width: 100vw;
  overflow: hidden;

  .slider {
    width: min-content;
    display: flex;
    position: relative;
    left: 0;
    transition: left ease 1s;
    /*left: -200vw;*/

    .container {
      grid-auto-rows: auto auto 1fr;
      width: 100vw;
      overflow: hidden;

      .first-section {
        padding: 0;
        /*height: 30vh;*/

        .timeline-cards-wrapper {
          height: 100%;
          width: 100vw;
          overflow: hidden;

          .timeline-cards {
            height: 100%;
            position: relative;
            width: min-content;
            display: flex;

            .timeline-card-wrapper {
              width: 100vw;
              display: grid;
              justify-content: center;
              align-items: center;

              .timeline-card {
                padding: 1em;
                margin: 2em;
                width: min-content;
                background-color: var(--clr-bg-primary);
                border-radius: var(--br-300);
                font-size: var(--fs-timeline);
                font-weight: var(--fw-bold);
                text-align: center;
                box-shadow: 0 0 30px 0 #00000060;

                div {
                  height: 100%;
                  width: 100%;
                }
              }
            }
          }
        }
      }
      .button-section {
        .timeline-btns {
          display: flex;
          gap: 2em;
          justify-content: center;
          position: relative;

          .timeline-btn {
            cursor: pointer;
            border: none;
            background-color: var(--clr-accent);
            width: 50px;
            height: 50px;
            border-radius: var(--br-600);
            box-shadow: 0 0 30px 0px #00000060;
          }
          .selected {
            border-radius: 0 var(--br-600) var(--br-600) var(--br-600);
            transform: rotateZ(45deg);
          }
        }
        .timeline-btns:before {
          content: "";
          position: absolute;
          width: 200vw;
          height: 10px;
          background-color: var(--clr-primary-dark);
          z-index: -1;
          top: 50%;
          transform: translateY(-50%);
          /*box-shadow: 0 0 30px 0px #00000060;*/
        }
      }
      .second-section {
        padding: 2em 0;

        .personal-card {
          position: relative;
          padding: 2em;
          min-height: 20em;
          border-radius: var(--br-400);
          background-color: var(--clr-secondary);
          box-shadow: 0 0 30px 5px #00000060;

          .img-wrapper {
            width: 100%;
            display: grid;
            justify-content: center;

            img {
              width: 200px;
            }
          }

          .text {
            display: grid;
            background-color: var(--clr-bg-primary);
            padding: 1em;
            border-radius: var(--br-300);
            text-align: center;
            gap: 1em;
            box-shadow: 0 0 20px 0px #00000060 inset;
            max-width: 200px;
          }

          .slider-btn {
            cursor: pointer;
            position: absolute;
            top: 20px;
            /*right: 0;*/
            border: none;
            background-color: var(--clr-bg-primary);

            font-weight: var(--fw-bold);
            font-size: var(--fs-200);
            padding: .5em;
            color: var(--clr-primary-dark);
            border-radius: 50%;
            box-shadow: 0 0 10px 0px #00000060 inset;

            img {
              width: 40px;
              height: 40px;
            }
          }
          .slider-btn-1 {
            right: 20px;
            /*right: 52%;*/
            transform: rotateZ(45deg);
          }
          .slider-btn-2 {
            /*left: 20px;*/
            right: 20px;
            transform: rotateZ(45deg);
          }
          .slider-btn-3 {
            left: 20px;
            /*right: 2%;*/
            transform: rotateZ(-135deg);
          }
        }
      }
    }
  }
}








#terapije {
  background-color: var(--clr-bg-secondary);
  box-shadow: 0 0 30px 0px #00000060;

  .container {
    grid-auto-rows: .3fr 1fr;
    gap: 1em;

    .first-section {
      height: min-content;

      .section-container {
        /*height: 100%;*/
        display: flex;
        gap: 2em;
        flex-direction: column;
        justify-content: space-evenly;

        h1 {
          color: white;
          width: 100%;
          text-align: center;
        }

        .terapije {
          width: 100vw;
          overflow: scroll;
          display: flex;
          flex-direction: row;
          gap: 2em;

          .terapija {
            border: none;
            cursor: pointer;
            background-color: var(--clr-bg-primary);
            border-radius: var(--br-300);
            padding: .5em 1em;
            display: grid;
            justify-content: center;
            align-items: center;
            text-align: center;
            font-weight: var(--fw-bold);
            font-size: var(--fs-card-body);
            color: var(--clr-primary-dark);
            box-shadow: 0 0 10px 5px #00000060 inset;
            position: relative;
          }

          .terapija:first-child {
            margin-left: 1em;
          }
          .terapija:last-child {
            margin-right: 1em;
          }

          .selected {
            color: var(--clr-accent);
          }
        }
      }
    }
    .second-section {
      width: 100vw;
      display: initial;
      overflow: hidden;
      height: min-content;

      .content {
        display: flex;
        width: min-content;
        height: 100%;
        position: relative;
        padding: 2em 0;
        /*left: -100vw;*/

        .content-text-wrapper {
          width: 100vw;
          height: 100%;
          display: grid;
          justify-content: center;
          align-items: center;

          .content-text-card {
            width: 100%;

            background-color: var(--clr-bg-primary);
            border-radius: var(--br-300);
            height: min-content;
            width: 80vw;
            padding: 1em;
            box-shadow: 0 0 30px 5px #00000060 inset;

            display: grid;
            gap: 1em;
            grid-auto-flow: row;
            grid-auto-rows: auto;

            .terapija-image-left,
            .terapija-image-right {
              width: 200px;
              justify-self: center;
              border-radius: var(--br-300);
            }

            .content-text {
              text-align: justify;
              span {
                color: var(--clr-primary-dark);
              }

              ul {
                li {
                  text-indent: 20px;
                  position: relative;
                }
                li:before {
                  content: "";
                  position: absolute;
                  left: 0;
                  top: 0;
                  width: 20px;
                  height: 20px;
                  background-image: url("../images/navigation/syringe.svg");
                  background-size: contain;
                }
              }
            }
          }
        }
      }
    }
  }
}






#cenik .cenik-wrapper {
  display: grid;
  gap: 1em;
  padding: 0 1em;
}

#cenik .cenik-wrapper h1 {
  text-align: center;
}

#cenik .first-section {
  display: auto;
  /*margin-bottom: 2em;*/
  box-shadow: 0 0 30px 0px #00000060;
}

#cenik .first-section li {
  display: grid;
  grid-auto-flow: column;
  gap: 1em;
  grid-auto-rows: 1fr 1fr;
  justify-content: space-between;
  position: relative;
  margin-bottom: 2em;
  /*font-size: var(--fs-card-body);*/
  font-size: var(--fs-card-body-sm);

  div {
    display: grid;
    gap: 1em;
    /*flex-direction: column;*/
  }
}

#cenik .first-section li:before {
  content: "";
  position: absolute;
  bottom: -10px;
  background-color: var(--clr-primary-dark);
  height: 5px;
  width: 100%;
}


#cenik .second-section .carousel-wrapper {
  width: 100vw;
  overflow: hidden;
  height: 100%;
}

#cenik .second-section .carousel {
  transition: left ease .5s;
  display: flex;
  width: min-content;
  height: 100%;
  position: relative;
  /*left: -100vw;*/
}

#cenik .second-section .img-wrapper {
  width: 100vw;
  height: 100%;
  display: grid;
  justify-content: center;
  align-items: center;
}
#cenik .second-section .img-wrapper img {
  width: min(40vh, 70vw);
  border-radius: var(--br-300);
  box-shadow: 0 0 30px 5px #00000060;
  margin: 2.5em;
}

#cenik .second-section {
  padding-bottom: 2em;
}





.kontakt {
  background-color: var(--clr-bg-footer);
  color: var(--clr-font-secondary);

  a {
    text-decoration: none;
    color: var(--clr-font-secondary);
  }
}

.kontakt {
  .content {
    display: grid;
    gap: 2em;
    padding: 0 1em;

    #kontakt {
      ul {
        display: grid;
        gap: 1em;
      }
    }

    form {
      background-color: var(--clr-bg-primary);
      color: var(--clr-font-primary);
      display: grid;
      gap: 1em;
      padding: 2em;
      border-radius: var(--br-300);
      font-size: var(--fs-card-body);
      box-shadow: 0 0 30px 5px #00000060 inset;

      div {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: .5fr 1fr;
        justify-content: center;
        align-items: center;

        textarea,
        input {
          border: none;
          background-color: var(--clr-bg-form);
          width: 100%;
          padding: .5em;
          box-shadow: 0 0 30px 0px #00000060 inset;
        }

        textarea {
          resize: vertical;
          overflow: auto;
          height: 10em;
        }
      }
    }
  }
}

.kontakt .social {
  display: flex;
  width: 100%;
  justify-content: space-evenly;
  gap: 2em;
   a{
     img{
     width: 50px;
     color: var(--clr-font-secondary);
     }
   }
}

footer .container {
  padding: 2em 0;
  grid-auto-rows: auto;
  gap: 2em;
}

footer .first-section {
  padding: 0;
}

footer .links {
  padding: 0 1em;
  display: grid;
  gap: 1em;
}

footer .zavarovalnice-wrapper p {
  margin-bottom: 1em;
}

footer .zavarovalnice {
  padding: 2em;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background-color: var(--clr-bg-primary);
  align-items: center;
  border-radius: var(--br-300);
  box-shadow: 0 0 30px 5px #00000080 inset;
}

footer .zavarovalnice a,
footer .zavarovalnice img
{
  width: 100%;
}

footer .map {
  iframe {
    width: 100%;
  }
}




@media screen and (min-width: 420px) {
  :root {
    --fs-timeline: var(--fs-600);
  }



  #hero .content {
    margin: 0 56px;
  }



  #terapije {
    .container {
      .second-section {
        .content {
          .content-text-wrapper {
            .content-text-card {
              .terapija-image-left,
              .terapija-image-right {
                align-self: center;
              }

            }
          }
        }
      }
    }
  }


  #cenik .cenik-wrapper {
    padding: 0 56px;
  }
}


@media screen and (min-width: 500px) {
  #terapije {
    .container {
      .second-section {
        .content {
          .content-text-wrapper {
            .content-text-card {
              width: 80vw;
              grid-auto-flow: column;
              grid-auto-columns: auto;

              .terapija-image-left {
                grid-column-start: 1;
                grid-column-end: 2;
              }
              .terapija-image-right {
                grid-column-start: 2;
                grid-column-end: 3;
              }
            }
          }
        }
      }
    }
  }
}


@media screen and (min-width: 900px) {
  :root {
    --fs-title: var(--fs-800);
    --fs-body: var(--fs-600);

    --fs-card-title: var(--fs-600);
    --fs-card-body: var(--fs-400);
    --fs-card-body-sm: var(--fs-300);
  }



  header {

    .open > nav,
    .closed > nav {
      display: grid;
      justify-content: end;
      position: static;
    }

    .nav-container {
      padding: 0;

      nav {
        ul {
          display: flex;
          background-color: transparent;
          box-shadow: none;
          z-index: 10;
          padding: 0;
        }
      }

      .mobile-menu {
        img {
          display: none;
        }
        display: none;
      }
    }
  }




  main {
    margin-top: -4.5em;
  }



  .container {
    grid-auto-flow: column;
    grid-auto-columns: 1fr 1fr;
  }



  #hero .container {
    padding-top: 0;
    height: 100%;
  }

  #hero .content {
    margin: 0 0 0 56px;
  }

  #hero img {
    width: 100%;
  }



  #o_meni {
    .slider {
      .container {
        grid-auto-columns: 1fr 1fr;
        grid-auto-rows: 1.5fr .5fr;

        .first-section {
          height: 100%;
          grid-column-start: 1;
          grid-column-end: 2;

          .timeline-cards-wrapper {
            width: 50vw;

            .timeline-cards {
              .timeline-card-wrapper {
                width:50vw;
              }
            }
          }
        }
        .button-section {
          grid-column-start: 1;
          grid-column-end: 2;
        }
        .second-section {
          grid-column-start: 2;
          grid-column-end: 3;
          grid-row-start: 1;
          grid-row-end: 3;
        }
      }
    }
  }



  #terapije {
    .container {
      padding-bottom: 2em;
      /*grid-auto-rows: 1fr 1fr;*/
      grid-auto-rows: auto;
      grid-auto-columns: auto;

      .first-section {
        height: 100%;

        .section-container {
          height: 100%;
          justify-content: space-evenly;

          .terapije {
            width: 100%;
            flex-direction: column;
            overflow: initial;
            padding-bottom:1em;

            .terapija:first-child {
              margin-left: 0;
            }
            .terapija:last-child {
              margin-right: 0;
            }
          }
        }
      }
      .second-section {
        width: 50vw;
        /*height: min-content;*/
        height: 100%;

        .content {
          .content-text-wrapper {
            width: 50vw;
            height: 100%;
            justify-content: center;

            .content-text-card {
              padding: 2em;
              justify-self: center;
              width: 40vw;


              grid-auto-flow: row;


              .terapija-image-left {
                grid-column-start: 1;
                grid-column-end: 2;
              }
              .terapija-image-right {
                grid-column-start: 1;
                grid-column-end: 2;
              }
            }
          }
        }
      }
    }
  }




  #cenik .second-section .carousel-wrapper {
    width: 50vw;
  }
  #cenik .second-section .img-wrapper {
    width: 50vw;
  }

  #cenik .second-section {
    padding-top: 8em;
  }



  footer .container {
    gap: 0;
  }

  .kontakt {
    .content {
      form {
        div {
          grid-auto-columns: .7fr 1fr;
        }
      }
    }
  }
}

@media screen and (min-width: 1100px) {
  #terapije {
    .container {
      .second-section {
        .content {
          .content-text-wrapper {
            .content-text-card {
              grid-auto-flow: column;


              .terapija-image-left {
                grid-column-start: 1;
                grid-column-end: 2;
              }
              .terapija-image-right {
                grid-column-start: 2;
                grid-column-end: 3;
              }
            }
          }
        }
      }
    }
  }
}
