* {
    margin: 0;
    padding: 0;
}

html,
body {
    height: 45%;
    box-sizing: border-box;
}

body {

    font-family: 'Libre Baskerville', serif;

}

/* Шапка  */

header {


    background: #9b82b3;
    width: 100%;
    padding-bottom: 17px;




}

a {
    text-decoration: none;
}






.graficlogo {
    box-sizing: border-box;
    margin-top: 8px;
    max-width: 100%;
    margin-left: 42%;
    margin-right: 42%;
    width: 220px;
    height: 100px;

}


.myTopnav ul {

    margin-top: 15px;

    background-color: #9b82b3;
    width: 100%;
    height: auto;




}


.list {
    display: flex;
    list-style: none;
}







nav {
    display: grid;
    place-items: center;

}


.topnav a {
    color: white;
    text-align: center;
    padding: 14px 25px;
    font-size: 14px;




}



.topnav a:hover {
    border-bottom: 3px solid white;
}




/* Тело */
main {
    background-color: #d1c7f0;
    height: auto;
}


/* про магазин */


.text {
    background-image: url(../img/fon.jpg);
    background-size: 100% 100%;
    width: 100%;
    height: 900px;


    font-size: 22px;
    line-height: 500px;
    opacity: 0.8;
    color: black;

    display: flex;
    flex-direction: row;








}

.aboutme {
    color: #ffdaf4;
    font-size: 22px;
    text-align: left;
    width: 800px;
    line-height: normal;
    margin-left: 20px;
    margin-right: 20px;
    padding-top: 20px;






}


/* популярні товари */




.favorit_product {
    background-color: #d1c7f0;
    font-size: 30px;
    color: black;
    height: auto;

    display: flex;
    margin-left: 20px;

}



.card_product {
    width: 100%;
    height: auto;
    background-color: #d1c7f0;
    color: black;
    padding-bottom: 20px;

    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-flow: wrap;

}


.card {

    width: 220px;
    height: 340px;
    background-color: white;
    margin: 15px;
    box-sizing: border-box;
    font-size: 14px;
    padding: 15px;
    color: black;


}

.card img {

    width: 99%;
    height: 270px;
    color: black;
}

.price {
    color: black;
    font-size: 18px;
}



/* контакти */

footer {
    font-family: 'Frank Ruhl Libre', serif;
}

#contact {
    background-color: #7b6da6;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    flex-flow: wrap;
    line-height: 30px;
    font-size: 20px;


}

.block_contact {
    text-decoration: none;
    width: 350px;
    height: auto;
    background-color: #7b6da6;
    padding: 30px;
    box-sizing: border-box;
    



}



.block_contact a {
    text-decoration: none;
    
    color: black;

}



.block_contact a:hover {
    color: white;
}

#block_contact_tel {
    
    color: black;
    text-decoration: none;
}









/* карточка продукта */
#backgraund_product {

    width: 100%;
    background-color: white;

}

#product {
    height: auto;

    color: black;


    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-flow: wrap;
    background-color: #fff4f4;
    margin: 20 20px 20px 20px;
    padding: 20px;


}

#img_product {
    width: 345px;
    height: auto;
    background-color: white;

    box-sizing: border-box;


    color: black;
}




#about_product {

    right: 40px;
    width: 400px;
    font-size: 16px;
    box-sizing: border-box;
}

/* достава і  оплата */
.inform {
    width: auto;
    padding: 40px;
    font-size: 20px;
    line-height: 40px;
    background-color: #fff4f4;

}


/* Каталог */
  
.name_catalog{
    font-size: 22px;
    text-align: center;
}

.card_product_catalog{
    width: 100%;
    height: auto;
    background-color: #d1c7f0;
    color: black;
    padding-bottom: 20px;

    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-flow: wrap;

}

.card_catalog{
    width: 220px;
    height: 350px;
    background-color: white;
    margin: 15px;
    box-sizing: border-box;
    font-size: 20px;
    padding: 15px;
    color: black;
}

.card_catalog img {

    width: 99%;
    height: 270px;
    color: black;
}











@media screen and (max-width:1280px) {
    .graficlogo {
        box-sizing: border-box;

        max-width: 100%;
        margin-left: 40%;
        margin-right: 40%;

    }

    .topnav a {
        color: white;
        text-align: center;
        padding-left: 5px;
        font-size: 14px;

        margin-bottom: 2px;
    }

    nav {
        height: 35px;
        margin-left: 15%;
        margin-right: 15%;
    }

    .card {
        width: 25%;
    }

    .text {
        width: 100%;
        height: 700px;
        
    }
    .aboutme{
        font-size: 20px;
        width: 600px;
        padding-left: 20px;
       
    }
}


@media screen and (max-width:1024px) {
    .graficlogo {
        box-sizing: border-box;

        max-width: 100%;
        margin-left: 40%;
        margin-right: 40%;

    }

    .topnav a {
        color: white;
        text-align: center;
        padding-left: 5px;
        font-size: 14px;
        display: block;
        margin-bottom: 2px;
    }

    nav {
        height: 48px;
        margin-left: 10%;
        margin-right: 10%;
    }

    .aboutme {
        font-size: 14px;
        height: 200px;
        width: 300px;
    }

    .aboutme {
        font-size: 16px;
        height: 200px;
        width: 400px;
    }

    .card {
        width: 26%;
    }
}


@media screen and (max-width:786px) {
    .graficlogo {
        box-sizing: border-box;

        max-width: 100%;
        margin-left: 35%;
        margin-right: 35%;

    }

    .topnav a {
        color: white;
        text-align: center;
        padding-left: 5px;
        font-size: 12px;
        display: block;

    }

    nav {
        height: 45px;
        margin-left: 7%;
        margin-right: 7%;
    }

    .aboutme {
        font-size: 14px;
        height: 200px;
        width: 300px;
    }

    .text {
        width: 100%;
        height: 450px;
    }
}



@media screen and (max-width:480px) {

    html {
        width: 100%;
    }


    .graficlogo {
        box-sizing: border-box;
        width: 220px;
        height: auto;
        max-width: 100%;
        margin-left: 28%;
        margin-right: 28%;

    }

    .topnav a {
        color: white;
        text-align: center;
        padding-left: 5px;
        font-size: 8px;

        margin-bottom: 1px;
        vertical-align: bottom;
    }

    nav {
        height: 48px;
        margin-left: 2%;
        margin-right: 2%;

        .topnav a:hover {
            border-bottom: 3px solid white;
        }

    }

    .card {
        width: 75%;
        height: 400px;
    }

    .card img {
        width: 80%;
        margin: 10% 10% 5% 10%;
    }

    .text {
        height: 250px;
    }

    .aboutme {

        color: #ffdaf4;
        font-size: 12px;
        text-align: left;
        width: 200px;
        line-height: normal;
        margin-left: 10px;
        margin-right: 10px;
        padding-top: 10px;
    }
    .favorit_product{
        font-size: 20px;
    }

    .card {

        width: 200px;
        height: 280px;
        background-color: white;
        margin: 15px;
        box-sizing: border-box;
        font-size: 14px;
        padding: 2px;
        color: black;
    
    
    }
    
    .card img{
     height: 200px;
    }
}


@media screen and (max-width:390px) {

    html {
        width: 100%;
    }


    .graficlogo {
        box-sizing: border-box;
        width: 150px;
        height: auto;
        max-width: 100%;
        margin-left: 32%;
        margin-right: 32%;

    }

    .topnav a {
        color: white;
        text-align: center;
        padding-left: 5px;
        font-size: 8px;

        margin-bottom: 1px;
        vertical-align: bottom;
    }

    nav {
        height: 48px;
        margin-left: 2%;
        margin-right: 2%;

        .topnav a:hover {
            border-bottom: 3px solid white;
        }

    }

    .card {
        width: 80%;
        height: 400px;
    }

    .card img {
        width: 80%;
        margin: 10% 10% 5% 10%;
    }

    .text {
        height: 200px;
    }

    .aboutme {

        color: #ffdaf4;
        font-size: 8px;
        text-align: left;
        width: 180px;
        line-height: normal;
        margin-left: 2px;
        padding-top: 5px;
        padding-left: 5px;
    }
    .favorit_product{
        font-size: 20px;
    }

    .card {

        width: 280px;
        height: 300px;
        background-color: white;
        margin: 15px;
        box-sizing: border-box;
        font-size: 14px;
        padding: 2px;
        color: black;
    
    
    }
    
    .card img{
     height: 200px;
    }

    .card_catalog{
        width: 75%;
    }



}