html { 
    scroll-behavior: smooth;
}

body {
    background-color: #F5F5F5;
    border-top: none; 
    font-family: 'Exo 2';
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

.naglowek {
    background-color: #e5dfd7; 
    display: flex;
    border-bottom: 2px solid #79c2d0;
    flex-direction: row;
    align-items: center;
    width: 100vw;
    justify-content: space-around;
    position: sticky;
    z-index: 1;
    top: 0;
}

.tytul, .menu-text {
    text-decoration: none;
    color: black; 
}

.menu {
    display: flex;
    justify-content: row;
    align-items: center;
    justify-content: space-between;
    max-height: 50px;
    min-height: 50px;
    min-width: 300px;
}

.naglowek-galerii {
    background-color: #333333;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px;
    border-radius: 10px;
}

.galeria {
    background-color: #F5F5F5;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin: 0;
    align-items: center;
    width: 100vw;
    min-height: 75vh;
    max-height: 75vh;
    margin-bottom: 25px;
    overflow: hidden;
}

.galeria1, .galeria2, .galeria3 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    align-items: center;
    width: 30%;
    min-height: 73vh;
    max-height: 73vh;
    overflow: hidden;
    margin-top: 10px;
}


.renowacje, .projekty, .tapicerka {
    background-color: #F5F5F5;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 10px; 
    border: 5px solid #333333;
    display: flex;
    width: 97%;
    min-height: 60vh;
    max-height: 60vh;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 10px;
}


.renowacje img, .projekty img, .tapicerka img {
    cursor: pointer;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#galeria-img {
    text-decoration: none;
}

#galeria-t{
    background-color: #333333;
    text-decoration: none;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 10px;
    border-top-left-radius: 20px;
    border-bottom-right-radius: 20px;
    border: 3px solid #79c2d0;
    color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 28vw;
    max-height: 7vh;
    min-height: 7vh;
    font-size: 1.1rem;
    padding-top: 1%;
    margin-top: 15px; 
}

#galeria-t:hover {
    background-color: #2c2b2b;
}

.gtitle { 
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    max-height: 7.2vh;
    min-height: 7.2vh;
    font-size: 1.1rem;
    margin: 0;
    margin-top: -45px;
    padding-top: 1%;
}

.tytul4{
    background-color: #333333;
    text-decoration: none;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 10px;
    border-top-left-radius: 20px;
    border-bottom-right-radius: 20px;
    border: 3px solid #79c2d0;
    color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 30vw;
}

.lakier-box{
    display: flex;
    min-width: 100vw; 
    align-items: center;
    justify-content: space-around;
    margin: 0;
}

.lakier{
    display: flex;
    min-width: 80vw; 
    min-height: 550px;
    align-items: flex-start;
    margin-top: 80px;
}

.img-lakier{
    overflow: hidden;
    float: left;
    border-right: 4px solid #79c2d0;
    margin-right: 20px;
    padding-right: 20px;
}

.img-lakier img{
    border-radius: 20px;
    border: 5px solid #333333;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 10px;
    min-height: 100%;
    min-width: 100%;
    border-radius: 20px;
}

.tekst{
    padding: 10px;
    background-color: #333333;
    font-size: 1.2rem;
    color: #FFFFFF;
    border-radius: 20px;
}

.o-mnie {
    background-color: #F5F5F5;
    background-image: url('o-mnie.jpg');
    color: white;
    font-family: 'Exo 2';
    background-size: 100% 100%;
    border-top: 3px solid #79c2d0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-width: 100vw;
    min-height: 85vh;
    max-height: 85vh;
}

.box{
    display: flex;
    flex-direction: row;
    min-width: 100vw;
    flex-grow: 1;
}

.opis{
    display: flex;
    flex-grow: 1;
    align-items: flex-start;
    justify-content: flex-end;
    text-wrap: balance;
    padding-right: 20px;
    padding-left: 50px;
    font-size: 1.2rem;
}

.stolarz-img{
    border-left: 4px solid #79c2d0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 20px;
    min-width: 45vw;
    overflow: hidden;
}

.stolarz-img img{
    min-height: 97%;
    min-width: 50%;
    border-radius: 20px;
    border: 5px solid #333333;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 10px;
}

.kontakt {
    background-color: #e5dfd7;
    border-top: 2px solid #79c2d0; 
    display: flex;
    flex-direction: column;
    min-width: 100vw;
    min-height: 20vh;
    margin: 0;
}

.napis{
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-width: 100vw;
}

.info{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    justify-content: space-evenly;
    min-width: 100vw;
    flex-grow: 1;
}

.mail{
    display: flex;
    align-items:  center;
    justify-content: center;
    gap: 20px;
    min-width: 15vw;
}

.tel{
    display: flex;
    align-items:  center;
    justify-content: center;
    gap: 20px;
    min-width: 15vw;
}

.fb{
    display: flex;
    align-items:  center;
    justify-content: center;
    gap: 20px;
    min-width: 15vw;
}

#mail{
    width: 30px;
    height: 30px;
}

#tel{
    width: 30px;
    height: 30px;
}

#fb{
    width: 30px;
    height: 30px;
}

.stopka {
    background-color: #333333;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

/* Responsive mobile styles */
@media screen and (max-width: 768px) {
  .naglowek {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  .menu {
    flex-direction: column;
    min-width: unset;
    gap: 10px;
  }

  .galleria, .galeria, .gtitle, .lakier-box, .box, .info {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .renowacje, .projekty, .tapicerka, .lakier {
    width: 90% !important;
    min-height: auto !important;
    max-height: none !important;
  }

  .img-lakier img,
  .stolarz-img img {
    width: 90% !important;
    height: auto !important;
    min-width: unset !important;
    min-height: unset !important;
  }

  .opis {
    padding: 10px;
    text-align: justify;
  }

  .stolarz-img {
    padding: 10px;
    border-left: none;
  }

  .tytul4, #galeria-t {
    min-width: 90vw;
    font-size: 1rem;
  }

  .tekst {
    font-size: 1rem;
  }

}