@media screen and (max-width: 1178px) {



  .paras {
    margin-left: 204px;
    margin-top: 19px;
  }

  #onas {
    margin-top: 35px;
  }

  #picture {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
  }

  .logo>img:nth-child(1) {
    height: 9vh;
  }

  #picture>img:nth-child(1) {
    margin: 38px 114px;

    width: 353px;
    height: 353px;
  }

  /* #zakres {
    height: 100vh;
  } */

  .onas {
    line-height: 1.4rem;
  }

  #picture h5 {

    margin-top: 0px;

    font-size: 15px;
    line-height: 0.8rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
  }

  #picture h5 li {
    line-height: 22px;
    width: 53vw;

    text-align: center;
    justify-content: center;
    align-content: center;
  }

  .overlay>h1 {
    font-size: 3rem;

  }

  #zakres h1 {
    margin-right: 37px;

    justify-content: center;

  }

  #contact {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-content: center;

  }

  .item {
    width: 33.9vw;

    border: 1px solid black;
    text-align: center;
    height: 34vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

  }
}

@media screen and (max-width: 656px) {

.mobile-nav{
    display: flex;
    padding-right: 1rem;
}

.mobile-nav > .mobile-nav-icon{
    font-size: 1.5rem;
    cursor: pointer;
} 

.pages{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;

    align-items: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: 0.5s all linear;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.pages a{
  font-size: 16px;
  
}
/* Applying Active Class  */

.active .pages{
    transform:translateY(0%);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.active #hamburger-icon{
    display: none;
}

#cross{
    display: none;
}

.active #cross{
    display: block;
    color: var(--white);
}

  .paras {
    margin-top: 19px;

    width: 57vw;
    margin-left: 147px;
  }

  .logo img {
    height: 6vh;
  }

  #picture {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
  }


  .onas {
    font-size: 16px;
    line-height: 1.5rem;
  }

  #onas h1 {

    font-size: 2rem;
  }

  .overlay>h1 {
    font-size: 2rem;
    letter-spacing: 4px;
    line-height: 3rem;
  }

  #picture>img:nth-child(1) {
    margin: 66px 133px;


    width: 340px;
    height: 340px;
  }

  #picture h5 {
    font-size: 14px;
    line-height: 1rem;

    margin-top: 19px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;

  }

  #picture h5 li {
    line-height: 18px;
    width: 70vw;
    margin-top: 3px;


    text-align: center;
    justify-content: center;
    align-content: center;
  }

  .pages {
    margin-right: 11px;
  }

  /* #zakres {
    height: 145vh;
  } */

  #zakres h1 {
    justify-content: center;
    margin-right: 19px;
  }

  #contact {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-content: center;

  }

  .item {
    width: 33.9vw;
    border: 1px solid black;
    text-align: center;
    height: 30vh;
    padding-top: 53px;
  }
}

@media screen and (max-width: 521px) {
  .paras {
    margin-top: 21px;
    width: 62vw;
    margin-left: 95px;
  }
  #picture>img:nth-child(1) {
    /* margin: 66px 133px; */
    box-shadow: 0px 0px 0 0 #000; 

}
  .overlay>h1 {
    font-size: 1rem;
    letter-spacing: 3px;
    line-height: 2.5rem;
  }

  .logo>img:nth-child(1) {
    height: 6vh;
  }

  #picture {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
  }

 

  .onas {
    font-size: 15px;
    line-height: 1.3rem;
  }

  #onas h1 {
    margin-top: 25px;
    font-size: 2rem;
  }

  #picture>img:nth-child(1) {
    margin: 66px 133px;
    width: 340px;
    height: 340px;
  }

  #picture h5 {
    font-size: 14px;
    line-height: 1rem;
    margin-top: 19px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;

  }

  #picture h5 li {
    line-height: 18px;
    width: 70vw;
    margin-top: 3px;
    text-align: center;
    justify-content: center;
    align-content: center;
  }

  .pages {
    margin-right: 12px;
    font-size: 11px;
  }

  /* #zakres {
    height: 150vh;
  } */

  #zakres h1 {
    justify-content: center;
    margin-right: 19px;
  }

  #contact {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-content: center;
    align-items: center;
    height: 69vh;
  }
  .item {
    width: 100vw;
height: 70vh;
padding-top: 0px;
  
    border: 1px solid black;
    text-align: center;
 
  }

  .md {
    font-size: 30px;
    margin-top: 22px;
    
  }
  .elo{
    /* margin-bottom: 80px;  */
    border-bottom: 2px solid black;
  }
  .item h1 {
    font-size: 18px;
    margin-top: 8px;
  }

  .item p {
    margin-top: 5px;
  }
}