
@media only screen and (max-width: 700px) {
    html {
        scroll-behavior: smooth;
      }
      body {
        font-family: Verdana, Geneva, Tahoma, sans-serif;
        margin: 0%;
      }
      body h1, h2, p {
        padding-left: 5%;
        padding-right: 5%;
      }
    #header {
        height: 60px;
        width: 100%;
        left: 0;
        top: 0;
        box-sizing: border-box;
        position: fixed;
        z-index: 5;
      }
      #home {
        z-index: 4;
        padding-left: 1%;
        background-color: white;
      }
      #home img {
        height: 45px;
        width: 50px;
        z-index: 4;
      }
      
      
      

      ul {
        margin: 0px;
        padding: 0px;
        text-align: right;
        font-weight: 500;
      }
      
      a {
        color: black;
        text-decoration: none;
        font-family: sans-serif;
      }
      
      a:hover {
        background: rgba(0, 0, 0, 0.05);
      }
      
      
      
      #header {
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: white;
        border-bottom: 1px solid lightgray;
      }
      
      #menu {
        display: flex;
        list-style: none;
        gap: 0.5rem;
        border-left: 1px solid lightgray;
      }
      
      #menu a {
        display: block;
        padding: 0.5rem;
      }
      
      #btn-mobile {
        display: none;
        font-weight: 500;
      }
      
        #menu {
          display: block;
          position: absolute;
          width: 50%;
          top: 60px;
          right: 0px;
          background: white;
          transition: 0.5s;
          z-index: 1000;
          height: 0px;
          visibility: hidden;
          overflow-y: hidden;
        }
        #nav.active #menu {
          height: calc(58.7vh - 60px);
          width: 50%;
          visibility: visible;
          overflow-y: auto;
        }
        #menu a {
          padding: 1rem 0;
          margin: 0 1rem;
          border-bottom: 2px solid rgba(0, 0, 0, 0.05);
        }
        #btn-mobile {
          display: flex;
          padding: 0.5rem 1rem;
          font-size: 1rem;
          border: none;
          background: none;
          cursor: pointer;
          gap: 0.5rem;
        }
        #hamburger {
          border-top: 2px solid;
          width: 20px;
        }
        #hamburger::after, #hamburger::before {
          content: '';
          display: block;
          width: 20px;
          height: 2px;
          background: currentColor;
          margin-top: 5px;
          transition: 0.3s;
          position: relative;
        }
        #nav.active #hamburger {
          border-top-color: transparent;
        }
        #nav.active #hamburger::before {
          transform: rotate(135deg);
        }
        #nav.active #hamburger::after {
          transform: rotate(-135deg);
          top: -7px;
        }

    /*karusel přepínání obrázků*/
    @keyframes slider {
  
    0% {
      left: 0;
    }
    
    15% {
      left: 0;
    }
    
    20% {
      left: -100%;
    }
    
    35% {
      left: -100%;
    }
    
    40% {
      left: -200%;
    }
    
    55% {
      left: -200%;
    }
    
    60% {
      left: -300%;
    }
    
    75% {
      left: -300%;
    }
    
    80% {
      left: -400%;
    }
  
    95% {
      left: -400%;
    }
  
    100% {
      left: 0;
    }
  }
  
  /*karusel*/
#karusel_mb {
    width: 100%;
  }
  #slider_mb {
    overflow: hidden;
    margin-top: auto;
    width: 100%;
  }
  #slider_mb figure {
    position: relative;
    width: 500%;
    margin: 0;
    left: 0;
    animation: 30s slider infinite linear;
  }
  #slider_mb figure img {
    width: 20%;
    height: 50%;
    float: left;
  }

  /*nápis přes karusel*/
#napis_mb {
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: absolute;
    top: 15%;
    left: 8.5%;
    height: 50%;
  }
  #napis_mb h1 {
    color: white;
    font-weight: 500;
    font-size: 28px;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
  }
  #napis_mb h2 {
    color: white;
    font-weight: 500;
    font-size: 20px;
    justify-content: center;
    align-items: center;
    text-align: center;
    top: 1;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
  }
  #napis_mb {
    overflow: hidden;
    width: 100%;
    height: 60%;
    margin-top: -4.5%;
    left: 0;
  }
  #napis_mb figure {
    position: relative;
    width: 500%;
    margin: 0;
    left: 0;
    animation: 30s slider infinite linear;
  }
  #napis_mb figure div {
    width: 20%;
    height: 70%;
    float: left;
  }
  
  /*karusel přepínání textů přes obrázky*/
  @keyframes napis_mb {
    
    0% {
      left: 0;
    }
    
    15% {
      left: 0;
    }
    
    20% {
      left: -100%;
    }
    
    35% {
      left: -100%;
    }
    
    40% {
      left: -200%;
    }
    
    55% {
      left: -200%;
    }
    
    60% {
      left: -300%;
    }
    
    75% {
      left: -300%;
    }
    
    80% {
      left: -400%;
    }
  
    95% {
      left: -400%;
    }
  
    100% {
      left: 0;
    }
  }
  
  /*tmavší obrázky v karuseli*/
  #slider_mb {
    filter: brightness(75%);
  }

  #main_img img {
    height: 35%;
    width: 100%;
    justify-content: center;
    align-items: center;
  }
  #main_img iframe {
    height: 35%;
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  #div1 {
    background-color: white;
  }
  #div2 {
    background-color: lightgray;
  }
  section {
    margin-top: 10%;
    padding-top: 15%;
  }
  #karusel_mb {
    margin-top: 2%;
  }


  /*SEKCE O MNE*/

    section {
        justify-content: center;

    }
  
    /*text*/
    #text_obsah {
        text-align: center;
    }
    #text_obsah h2 {
        font-size: 15px;
    }
    
  
    /*----*/
    section h1 {
      text-align: center;
      font-weight: 600;
      font-size: 20px;
    }
    section h2 {
      text-align: center;
      font-weight: 500;
    }
    section p {
        margin-top: 0;
        padding-top: 0;
        text-align: center;
    }
    #preklady_mb, #cenik_mb, #kontakt_mb {
        background-color: rgb(235, 235, 235);
    }

    #container_mb {
        width: 100%;
        height: 250px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        padding-top: 0;
      }
      
      #nadpis_form_mb {
        text-align: center;
        font-size: 25px;
        font-family: Verdana, Geneva, Tahoma, sans-serif;
        padding-top: 0;
        height: 8%;
        width: 100%;
      }
      
      #udaje_mb {
        height: 200px;
        width: 50%;
        box-sizing: border-box;
        float: left;
        padding-top: 15px;
        left: 0;
        bottom: 0;
        margin-left: 3%;
      }
      #udaje_mb input {
        border: none;
        font-family: Verdana, Geneva, Tahoma, sans-serif;
        height: 35px;
        margin-top: 0px;
        margin-bottom: 10px;
        width: 90%;
        left: 0;
        font-size: 15px;
        border: 1px solid lightgray;
      }
      
      #zprava_mb {
        height: 100%;
        width: 50%;
        margin-right: 3%;
      }
      #zprava_mb textarea {
        margin-top: 15px;
        width: 100%;
        font-family: Verdana, Geneva, Tahoma, sans-serif;
        border: 1px solid lightgray;
        height: 50%;
        font-size: 15px;
      }
      #zprava_mb button {
        border: 1px solid lightgray;
        background-color: white;
        margin-top: 10%;
        padding: 5px 0px 5px 0px;
        text-align: center;
        width: 70%;
        height: 15%;
        font-family: Verdana, Geneva, Tahoma, sans-serif;
        margin-left: 30%;
      }
      #zprava_mb button:hover {
        background-color: lightgray;
      }
      #top_btn_mb {
        width: 50px;
        height: 50px;
        padding-top: 5%;
        padding-bottom: 5%;
        right: 10;
        position: absolute;
      }
      /*gdpr odkaz dole*/
      #gdprodkaz_mb {
        background-color: lightgray;
        width: 100%;
        height: 18px;
        text-align: center;
        position: relative;
        bottom: 0;
      }
      #gdprodkaz_mb a {
        color: black;
        font-size: 15px;
        font-family: Verdana, Geneva, Tahoma, sans-serif;
        text-decoration: none;
      }

/*jazyky*/
.jazyky_mb {
  position: relative;
  z-index: 100;
  width: 150px;
  height: 80px;
  display:block;
  font-weight: 300;
  font-size: 15px;
  display: flex;
  flex-direction: row;
  justify-content: left;
  align-items: center;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.jazyky_mb a {
  margin: 5px;
  text-decoration: none;
  color: black;
}


#active {
  color: red;
}
#jazyky_div_linka {
  border-right: 1.5px solid gray;
}
#btn-mobile {
 color: black;
}
}
















@media only screen and (min-width: 700px) {
  html {
    scroll-behavior: smooth;
  }
  body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    margin: 0%;
  }
  body h1, h2, p {
    padding-left: 5%;
    padding-right: 5%;
  }
#header {
    height: 60px;
    width: 100%;
    left: 0;
    top: 0;
    box-sizing: border-box;
    position: fixed;
    z-index: 5;
  }
  #home {
    z-index: 4;
    padding-left: 1%;
    background-color: white;
  }
  #home img {
    height: 45px;
    width: 50px;
    z-index: 4;
  }
  
  
  

  ul {
    margin: 0px;
    padding: 0px;
    text-align: right;
    font-weight: 500;
  }
  
  a {
    color: black;
    text-decoration: none;
    font-family: sans-serif;
  }
  
  a:hover {
    background: rgba(0, 0, 0, 0.05);
  }
  
  
  
  #header {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-bottom: 1px solid lightgray;
  }
  
  #menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    border-left: 1px solid lightgray;
  }
  
  #menu a {
    display: block;
    padding: 0.5rem;
  }
  
  #btn-mobile {
    display: none;
    font-weight: 500;
  }
  
    #menu {
      display: block;
      position: absolute;
      width: 20%;
      top: 60px;
      right: 0px;
      background: white;
      transition: 0.5s;
      z-index: 1000;
      height: 0px;
      visibility: hidden;
      overflow-y: hidden;
    }
    #nav.active #menu {
      height: calc(58.7vh + 73px);
      width: 20%;
      visibility: visible;
      overflow-y: auto;
    }
    #menu a {
      padding: 1rem 0;
      margin: 0 1rem;
      border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    }
    #btn-mobile {
      display: flex;
      padding: 0.5rem 1rem;
      font-size: 1.1rem;
      border: none;
      background: none;
      cursor: pointer;
      gap: 0.5rem;
    }
    #hamburger {
      border-top: 2px solid;
      width: 20px;
    }
    #hamburger::after, #hamburger::before {
      content: '';
      display: block;
      width: 20px;
      height: 2px;
      background: currentColor;
      margin-top: 5px;
      transition: 0.3s;
      position: relative;
    }
    #nav.active #hamburger {
      border-top-color: transparent;
    }
    #nav.active #hamburger::before {
      transform: rotate(135deg);
    }
    #nav.active #hamburger::after {
      transform: rotate(-135deg);
      top: -7px;
    }

/*karusel přepínání obrázků*/
@keyframes slider {

0% {
  left: 0;
}

15% {
  left: 0;
}

20% {
  left: -100%;
}

35% {
  left: -100%;
}

40% {
  left: -200%;
}

55% {
  left: -200%;
}

60% {
  left: -300%;
}

75% {
  left: -300%;
}

80% {
  left: -400%;
}

95% {
  left: -400%;
}

100% {
  left: 0;
}
}

/*karusel*/
#karusel_mb {
width: 100%;
padding-top: 0;
}
#slider_mb {
overflow: hidden;
margin-top: auto;
width: 100%;
}
#slider_mb figure {
position: relative;
width: 500%;
margin: 0;
left: 0;
animation: 30s slider infinite linear;
}
#slider_mb figure img {
width: 20%;
height: 110%;
float: left;
}

/*nápis přes karusel*/
#napis_mb {
align-items: center;
justify-content: center;
z-index: 2;
position: absolute;
top: 35%;
left: 8.5%;
height: 50%;
}
#napis_mb h1 {
color: white;
font-weight: 500;
font-size: 38px;
justify-content: center;
align-items: center;
text-align: center;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
#napis_mb h2 {
color: white;
font-weight: 500;
font-size: 30px;
justify-content: center;
align-items: center;
text-align: center;
top: 1;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
#napis_mb {
overflow: hidden;
width: 100%;
height: 60%;
margin-top: -4.5%;
left: 0;
}
#napis_mb figure {
position: relative;
width: 500%;
margin: 0;
left: 0;
animation: 30s slider infinite linear;
}
#napis_mb figure div {
width: 20%;
height: 80%;
float: left;
}

/*karusel přepínání textů přes obrázky*/
@keyframes napis_mb {

0% {
  left: 0;
}

15% {
  left: 0;
}

20% {
  left: -100%;
}

35% {
  left: -100%;
}

40% {
  left: -200%;
}

55% {
  left: -200%;
}

60% {
  left: -300%;
}

75% {
  left: -300%;
}

80% {
  left: -400%;
}

95% {
  left: -400%;
}

100% {
  left: 0;
}
}

/*tmavší obrázky v karuseli*/
#slider_mb {
filter: brightness(75%);
}
#main_img {
  display: block;
  justify-content: center;
  align-items: center;
}
#main_img img {
height: 95%;
width: 80%;
justify-content: center;
align-items: center;
margin-left: 10%;
}
#main_img iframe {
height: 95%;
width: 80%;
justify-content: center;
align-items: center;
margin-left: 10%;
}

#div1 {
background-color: white;
}
#div2 {
background-color: lightgray;
}
section {
margin-top: 6%;
padding-top: 15%;
}
#karusel_mb {
margin-top: 2%;
}


/*SEKCE O MNE*/

section {
    justify-content: center;
}

/*text*/
#text_obsah {
    text-align: center;
    display: block;
    width: 70%;
    height: auto;
    margin-left: 15%;
}
#text_obsah h2 {
    font-size: 15px;
}


/*----*/
section h1 {
  text-align: center;
  font-weight: 600;
  font-size: 20px;
}
section h2 {
  text-align: center;
  font-weight: 500;
  font-size: 17px;
}
section p {
    margin-top: 0;
    padding-top: 0;
    text-align: center;
    font-size: 16px;
}
#preklady_mb, #cenik_mb, #kontakt_mb {
    background-color: rgb(235, 235, 235);
}

#container_mb {
    width: 100%;
    height: 250px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding-top: 0;
  }
  
  #nadpis_form_mb {
    text-align: center;
    font-size: 20px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    padding-top: 0;
    height: 8%;
    width: 100%;
  }
  
  #udaje_mb {
    height: 200px;
    width: 50%;
    box-sizing: border-box;
    float: left;
    padding-top: 15px;
    left: 0;
    bottom: 0;
    margin-left: 3%;
  }
  #udaje_mb input {
    border: none;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    height: 35px;
    margin-top: 0px;
    margin-bottom: 10px;
    width: 90%;
    left: 0;
    font-size: 15px;
    border: 1px solid lightgray;
  }
  
  #zprava_mb {
    height: 100%;
    width: 50%;
    margin-right: 3%;
  }
  #zprava_mb textarea {
    margin-top: 15px;
    width: 100%;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    border: 1px solid lightgray;
    height: 50%;
    font-size: 15px;
  }
  #zprava_mb button {
    border: 1px solid lightgray;
    background-color: white;
    margin-top: 10%;
    padding: 5px 0px 5px 0px;
    text-align: center;
    width: 70%;
    height: 15%;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    margin-left: 30%;
  }
  #zprava_mb button:hover {
    background-color: lightgray;
  }
  #top_btn_mb {
    width: 50px;
    height: 50px;
    padding-top: 5%;
    padding-bottom: 5%;
    margin-right: 5%;
    right: 10;
    position: absolute;
  }
  /*gdpr odkaz dole*/
  #gdprodkaz_mb {
    background-color: lightgray;
    width: 100%;
    height: 18px;
    text-align: center;
    position: relative;
    bottom: 0;
  }
  #gdprodkaz_mb a {
    color: black;
    font-size: 16px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-decoration: none;
  }

/*jazyky*/
.jazyky_mb {
position: relative;
z-index: 100;
width: 150px;
height: 80px;
display:block;
font-weight: 300;
font-size: 18px;
display: flex;
flex-direction: row;
justify-content: left;
align-items: center;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.jazyky_mb a {
margin: 5px;
text-decoration: none;
color: black;
}


#active {
color: red;
}
#jazyky_div_linka {
border-right: 1.5px solid gray;
}
#btn-mobile {
  color: black;
 }
}










@media only screen and (min-width: 1000px) {

  /*nápis přes karusel*/
  #napis_mb h1 {
  font-size: 78px;
  }
  #napis_mb h2 {
  font-size: 55px;
  }
  section {
    padding-top: 7%;
  }
  #text_obsah h1 {
    font-size: 35px;
  }
  #main_img {
    height: 450px;
    width: 900px;
  }


  section h2 {
    font-size: 30px;
  }
  section p {
    font-size: 25px;
  }
  #header {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-bottom: 1px solid lightgray;
  }
  

  
    #menu {
      width: 18%;
    }
    #nav.active #menu {
      height: 316px;
      width: 18%;
    }
    
    section {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
    }
    #left {
      height: 450px;
      width: 900px;
      background-color: blue;
      text-align: center;
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-start;
      align-items: flex-start;
      left: 0;
    }
    #right {
      height: 450px;
      width: 900px;
      text-align: center;
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      align-items: flex-end;
      background-color: aquamarine;
    }
    #text_obsah {
      width: 45%;
      height: auto;
      margin-left: 0;
  }
    #karusel_mb {
      height: 100%;
    }
    #container_mb {
      width: 100%;
      height: 250px;
      display: flex;
      flex-direction: row;
      justify-content: center;
      padding-top: 0;
    }
    
    #nadpis_form_mb h1 {
      text-align: center;
      font-size: 38px;
      font-family: Verdana, Geneva, Tahoma, sans-serif;
   
    }
    
    #udaje_mb {
      height: 200px;
      width: 50%;
      box-sizing: border-box;
      float: left;
      padding-top: 15px;
      left: 0;
      bottom: 0;
      margin-left: 3%;
    }
    #udaje_mb input {
      border: none;
      font-family: Verdana, Geneva, Tahoma, sans-serif;
      height: 40px;
      margin-top: 0px;
      margin-bottom: 10px;
      width: 90%;
      left: 0;
      font-size: 17px;
      border: 1px solid lightgray;
    }
    
    #zprava_mb {
      height: 100%;
      width: 50%;
      margin-right: 3%;
    }
    #zprava_mb textarea {
      margin-top: 15px;
      width: 100%;
      font-family: Verdana, Geneva, Tahoma, sans-serif;
      border: 1px solid lightgray;
      height: 55%;
      font-size: 17px;
    }
    #zprava_mb button {
      border: 1px solid lightgray;
      background-color: white;
      margin-top: 10%;
      padding: 5px 0px 5px 0px;
      text-align: center;
      width: 70%;
      height: 15%;
      font-family: Verdana, Geneva, Tahoma, sans-serif;
      margin-left: 30%;
    }
    #zprava_mb button:hover {
      background-color: lightgray;
    }
    #top_btn_mb {
      width: 50px;
      height: 50px;
      right: 0;
      margin-top: 70px;
      position: absolute;
      display: flex;
      justify-content: flex-end;
      align-items: flex-end;
    }
}