html, body{
    margin: 0;
    height: 100%;
    overflow-x: hidden;
    background-image: url(zdj/background.png);
    scroll-behavior: smooth;
}
/*naglowek*/
header{
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-between;
    height: 270px;
}

#logo-container{
    width: 30%;
}

#img-logo{
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 300px;
}
nav{
    display: inline-block;
    padding-right: 40px;
}
nav a{
    padding: 10px 30px;
    font-weight: bold;
    text-decoration: none;
    font-family: "Amatic SC";
    color: #000000;
    font-size: 80px;
}
nav a:hover{
    color: #717171;
}

/*home = o nas*/
main{
    margin: 0;
    
}

#home-section{
    position: relative;
    text-align: left;
    color: white;
    width: 100%;
}

#home-bg{
    filter: brightness(35%);
    width: 100%;
    height: auto;
}

.home-text{
    position: absolute;
    top: 20px;
    left: 20px;
    color: #ffffff;
    width: 50%;
    padding-left: 30px;
    max-height: 100%;
}

.home-text h1{
    margin: 20px 0;
    font-family: "Amatic SC";
    font-size: 60px;
    text-shadow: 2px 2px #717171;
}

.home-text p{
    font-family: "Quicksand";
    font-size: 20px;
    line-height: 2rem;
}

/*oferta*/

#oferta-title, #footer-title{
    font-family: "Amatic SC";
    font-size: 70px;
    font-weight: bold;
    padding: 30px 0 0 50px;
    margin: 20px 0;
}

.oferta{
    display: flex;
    flex-direction: column;
}

.item_name{
    width: 100%;
    background-color: #000000;
    display: flex;
    flex-direction: row;
    padding: 20px;
    align-items: center;
}

button{
    border: none;
    background-color: transparent;
    font-family: "Amatic SC";
    font-size: 50px;
    color: #ffffff;
    padding-left: 40px;
}

.gallery{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    background-color: #eeedf2;
}

.gallery_row{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    background-color: #ffffff;
}

.p1, .p2, .p3, .p4{
    display: none;
    width: 200px;
    height: auto;
    padding: 20px;
}

.description{
    font-family: "Quicksand";
    font-size: 16px;
    padding-left: 40px;
}

footer{
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    margin: 0px;
    width: 100%;
    font-family: "Quicksand";
}

.footer-container{
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
}

.column{
    width: 20%;
}

.column h4{
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
}

.socials{
    width: 20%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.socials a{
    color: #434343;
}

.socials i{
    font-size: 40px;
    padding: 5px;
    transition-duration: 0.5s;
}

.socials i:hover{
    color: #000000;
}

.footer{
    align-self: center;
    padding-top: 30px;
}

@media screen and (max-width: 1150px){
    .gallery{
        flex-wrap: wrap;
    }

    .gallery_row{
        width: 90%;
        margin: auto; 
    }
}

@media screen and (max-width: 1000px){
    header{
        height: 260px;
    }

    nav a{
        font-size: 70px;
    }

    .home-text h1{
        font-size: 40px;
    }
    
    .home-text p{
        font-size: 18px;
    }
}

@media screen and (max-width: 900px){
    header{
        height: 250px;
    }
    
    nav a{
        font-size: 60px;
    }

    .home-text{
        width: 60%;
    }

    #oferta-title, #footer-title{
        font-size: 60px;
        padding: 25px 0 0 45px;
        margin: 15px 0;
    }

    button{
        font-size: 45px;
        padding-left: 35px;
    }

    .item_name img{
        width: 80px;
        height: 80px;
    }

    .column h4{
        font-size: 20px;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 820px){
    header{
        height: 240px;
    }
    
    nav a{
        font-size: 50px;
    }

    .home-text{
        top: 10px;
        left: 10px;
    }

    #oferta-title, #footer-title{
        font-size: 50px;
        padding: 20px 0 0 40px;
        margin: 10px 0;
    }

    button{
        font-size: 40px;
        padding-left: 30px;
    }

    .item_name img{
        width: 70px;
        height: 70px;
    }

    .column h4{
        font-size: 16px;
        margin-bottom: 15px;
    }

    .column p{
        font-size: 14px;
    }
}

@media screen and (max-width: 780px){
    .home-text h1{
        font-size: 30px;
    }

    .home-text p{
       line-height: 1.5rem;
    }
}

@media screen and (max-width: 740px){
    .home-text{
        padding-left: 15px;
    }
    
    header{
        height: 230px;
    }
    
    nav a{
        font-size: 40px;
    }

    #oferta-title, #footer-title{
        font-size: 40px;
        padding: 15px 0 0 35px;
        margin: 8px 0;
    }

    button{
        font-size: 35px;
        padding-left: 25px;
    }

    .item_name img{
        width: 60px;
        height: 60px;
    }
}

@media screen and (max-width: 720px){    
    .home-text p{
        font-size: 16px;
    }
}

@media screen and (max-width: 680px){
    .home-text{
        width: 70%;
    }
}

@media screen and (max-width: 650px){
    header{
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        height: 250px;
    }

    nav{
        padding: 0;
    }

    .home-text h1{
        margin: 10px 0;
    }
}

@media screen and (max-width: 600px){
    .home-text{
        width: 90%;
    }

    .home-text p{
        font-size: 15px;
    }
    
    .gallery_row{
        flex-wrap: wrap;
    }

    .footer-container{
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding-left: 10%;
    }

    .column{
        width: 100%;
    }

    .column h4{
        font-size: 16px;
        margin-bottom: 10px;
    }

    .socials i{
        font-size: 25px;
    }
}

@media screen and (max-width: 560px){
    .home-text{
        width: 95%;
        padding-left: 0;
        padding-right: 20px;
    }  

    .home-text h1{
        margin: 5px 0;
        font-size: 25px;
    }
}

@media screen and (max-width: 530px){
    .home-text h1{
        margin: 0;
        font-size: 20px;
    }

    .home-text p{
        font-size: 14px;
    }
}

@media screen and (max-width: 500px){
    .home-text{
        width: 98%;
    } 

    .home-text p{
        margin-top: 10px;
        line-height: 1rem;
    }
}

@media screen and (max-width: 480px){
    .home-text h1{
        font-size: 18px;
    }

    .home-text p{
        font-size: 13px;
        margin-top: 5px;
    }
}

@media screen and (max-width: 460px){
    header{
        height: 200px;
    }
    
    nav a{
        font-size: 30px;
    }

    #oferta-title, #footer-title{
        font-size: 30px;
        padding: 10px 0 0 30px;
        margin: 5px 0;
    }

    button{
        font-size: 30px;
        padding-left: 20px;
    }

    .item_name img{
        width: 50px;
        height: 50px;
    }
}

@media screen and (max-width: 400px){
    .home-text h1{
        font-size: 18px;
    }

    .home-text p{
        font-size: 13px;
        margin-top: 5px;
    }
}

@media screen and (max-width: 360px){
    header{
        height: 180px;
    }
    
    nav a{
        font-size: 25px;
    }

    #oferta-title, #footer-title{
        font-size: 25px;
        padding: 5px 0 0 25px;
    }

    button{
        font-size: 25px;
        padding-left: 15px;
    }

    .item_name img{
        width: 40px;
        height: 40px;
    }
}