@media (max-width: 767px) {
    .navbar-nav {
      margin-top: 1.5rem;
    }
    .navbar-nav .nav-link {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100%;
    }
  }
  

/*(Sekcja Home) dla tla i text,po zmniejszeniu,podmiana zdjecia na mniejsze*/
@media (max-width: 767px) {
  .jumbotron h1, 
  .jumbotron p.lead {
    color: #ffffff; /* zmiana koloru tekstu na biały */
  }
}

  
@media screen and (max-width: 767px) {
    #home {
      background-image: url('img/tlo/kitchenmid.webp');
    }

    .jumbotron h1 {
      font-size: rem;
      text-align: center;
      
    }
    
    .jumbotron p.lead {
      font-size: 1rem;
      text-align: center;
    }
    
    .jumbotron button {
      display: block;
      margin: 0 auto;
    }
  }
  

  
/*(Sekcja Home-1) text*/  
  @media (max-width: 1200px) {
    #id-container-1 {
      height: auto;
      padding: 10px;
    }
    
    #id-title-1 {
      font-size: 28px;
      margin-bottom: 10px;
    }
    
    #id-text-1 {
      font-size: 16px;
      line-height: 1.2;
      margin: 0;
    }
  }
  
  
  /*(Sekcja Home-2) text*/ 
  
  @media (max-width: 767px) {
    #id-home-2 ul li {
    text-align: center;
    }
    }
  @media screen and (max-width: 768px) {
    h5 {
      margin-top: 3rem;
    }
  }

  












/*(Sekcja service) txt z tlem pod zdjeciem*/
@media screen and (max-width: 767px) {
  .service-text {
    position: relative;
    top: -300px;
    margin-right: 2rem;
    transform: translate(-50%, -50%);
    max-width: 100%;
  }
}

@media screen and (max-width: 767px) {
  .service-text p {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

@media screen and (min-width: 768px) and (max-width: 1200px) {
  .service-text {
    margin-top: 0;
    position: relative;
    top: -300px;
    margin-right: 10rem;
    transform: translate(-50%, -50%);
    max-width: 100%;
  }
}

/*(Sekcja service)*/




@media (min-width: 767px) {
  #service1 .row {
    margin-left: -15px;
    margin-right: -15px;
  }

  #service1 .col-md-6 {
    margin-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }

  #service1 .card {
    height: 100%;
  }

  #service1 .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    height: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1200px) {
  #service1 .card {
    border-radius: 20px;
    margin-top: 0.9rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  }
}

  

  /*(Sekcja service2) text*/
  @media (max-width: 768px) {
    #service2 h2 {
      margin-top: 4rem;
    }
  }

  @media (max-width: 768px) {
    #service2 {
      text-align: center;
    }
    #service2 p {
      text-align: justify;
      margin-top: 1rem;
      padding: auto;
    }
  }
  
  @media (min-width: 768px) and (max-width: 1200px) {
    #service2 .col-md-6 {
      margin-left: 25%;
      display: flex;
      flex-direction: column;
    }
  }
  







       /*gallery*/

       @media (max-width: 767px) {
        .gallery-text {
          margin: 0 2.5rem;
          color: #000000;
          background-color: rgba(255, 255, 255, 0.6);
          padding: 10px;
          border-radius: 25px;
        }
      }
      
        @media (max-width: 767px) {
          .gallery-tlo img {
            content: url('img/tlo/livingmid0a.webp');
          }
        }
        

       @media (max-width: 767px) {
        .gallery-info {
          position: static;
          margin-top: -16rem;
          width: auto;
          background-color: transparent;
          padding: 0;
          text-align: center;
          overflow: hidden;
        }
      
        .gallery-text {
          margin-top: 20px;
          margin-bottom: 20px;
        }
      }
      
      .container-gallery-tlo img {
        display: block;
        margin: 0 auto;
        max-width: 100%;
        height: 500px; 
      }
      

     /* blank miedzy sekcjami*/
      @media screen and (max-width: 768px) {
        .gallery-blank {
         display: none;
        }
      }







  @media (min-width: 768px) {
    .gallery-toolbar {
      justify-content: flex-start;
    }
  
    .gallery-toolbar button {
      margin-right: 5px;
      margin-top: 1rem;
      margin-left: 0.3rem;
    }
  
    .gallery-item {
      padding: 2px;
    }
  }


  
  

/* Ustawienia dla ekranów o szerokości mniejszej niż 767px */
@media (max-width: 767px) {
  /* Resetowanie marginesu i paddingu dla boxow ze zdjeciami  */
  .masonry-container .col-sm-6,
  .masonry-container .col-md-4,
  .masonry-container .col-lg-3 {
    padding: 0;
    margin-top: -0.5rem;
  }
}

/* Ustawienia dla ekranów o szerokości powyzej 3200px */

@media (min-width: 3200px) {
  .masonry-container .col-sm-6,
  .masonry-container .col-md-4,
  .masonry-container .col-lg-3 {
    padding: auto;
    margin-top: auto;
  }
}

/*(Sekcja about) usuwa linnie poprzeczna overlay*/
@media (max-width: 768px) {
    .overlay-left:before {
      display: none;
    }
  }
  
  @media (min-width: 768px) and (max-width: 1200px) {
    .overlay-left:before {
      display: none;
    }
}





@media (min-width: 768px) and (max-width: 1200px) {
  .overlay-section .col-md-6 {
    width: 100%;
  }
  .overlay-section .overlay-right img {
    max-width: 60%;
  }
  .overlay-section .overlay-left {
    padding: 0 15px;
  }
}



 /*(Sekcja about) txt 100% width*/  
  @media screen and (max-width: 767px) {
    .overlay-left p {
      width: 100%;
      padding: 0;
    }
  }
  @media screen and (max-width: 767px){
  .overlay-section {
    margin-top: -100px;
  }
}

@media screen and (max-width: 768px) {
  .overlay-text {

    background-color: rgba(0, 0, 0, 0.5); /* dodanie tła pod tekstem */
    border-radius: 10px; /* dodanie zaokrąglenia */
  }
}

  @media (max-width: 767px) {
    .overlay-text h3 {
      font-size: 28px;
      margin-top: 0;
    }
  }
 
  /*(Sekcja about) kontenery*/     
  @media (max-width: 768px) {
    #container1-about1,
    #container1-about2,
    #container1-about3 {
      margin: auto;
      margin-top: 1rem;
      margin-bottom: 1rem;
    }
  }
  
  @media (max-width: 1200px) and (min-width: 768px) {
    .about2 .row {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }
  }


  @media screen and (max-width: 768px) {
    #about .about-text {
      font-size: 20px;
      background-color: rgba(255, 255, 255, 0.6);
      padding: 10px;
      max-width: 90%;
    }
  }


  @media (max-width: 1200px) and (min-width: 768px) {

      .about2 {
        margin-left: 10%;
        margin-right: 10%;
        margin-top: 5%;
        margin-bottom: 5%;
        border-radius: 10px;
        box-shadow: 20px 0px 5px rgba(0, 0, 0, 0.9);
        
        
      }
    
    

    .about2 img {
      margin: 0 auto;
      margin-top: 3rem;
      margin-bottom: 3rem;
      width: 400px;
      max-width: 100%;
    }
    
    #container1-about1,
    #container1-about2,
    #container1-about3 {
      margin: 0 auto;
      margin-bottom: 3rem;
      margin-left: 0;
      width: 400px;
      max-width: 100%;
      opacity: 1;
      transform: none;
    }
    
    .container-01,
    .container-02,
    .container-03 {
      margin-left: 0;
      text-align: center;
    }
  }
  



















  /*(Sekcja contact ) kontener z txt*/  
  
  

  

  @media screen and (max-width: 767px) {
    #contact .py-5.text-center {
      position: relative;
      margin-top: -1rem;
    }
    #contact h2 {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
     margin-top: 80%;
     
    }
  }
  
      







/*(Sekcja footer ) usuwa txt about us i centruje reszte txt*/  
@media (max-width: 1200px) and (min-width: 768px) {
  footer .col-md-4:first-child {
  display: none;
  }
  
  footer .col-md-4:nth-child(2),
  footer .col-md-4:nth-child(3) {
  margin: 0 auto;
  text-align: center;
  }
  }

  @media screen and (max-width: 768px) {
    #contact2 {
    margin-bottom: 10px;
    }
    }
    
    @media screen and (min-width: 768px) and (max-width: 1200px) {
    #contact2 {
    margin-bottom: 10px;
    }
    }









/* Style dla ekranów o szerokości mniejszej niż 767 pikseli ,komunikat o wyslaniu maila */
@media screen and (max-width: 767px) {
  #thankYouMessage {
    background-color: #4a90e2;
    color: #fff;
    padding: 5px;
    border: 2px solid #fff;
    text-align: center;
    font-size: 16px;
  }
  
  #emailNotSentMessage {
    background-color: #f2dede;
    color: #a94442;
    padding: 5px;
    border: 2px solid #a94442;
    text-align: center;
    font-size: 16px;
  }
}


