@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');
@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');

body{
    margin: 0;
    padding: 0;
    background-image: url(/images/background2.jpg);
    background-size: cover;
    background-attachment: fixed;
    padding-right: 17px;
}

.layout{
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: relative;
    gap: 1em;
}

/* ---------- header ---------- */
header{
    background-color: rgba(255, 255, 255, 0.8);
    width: 70%;
    height: 8%;
    padding: 1%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-end-end-radius: 50px;
    border-end-start-radius: 50px;
    box-shadow: 0px -10px 100px 0px rgb(255, 255, 255);
}

.logo{
    display: flex;
    align-items: center;
    margin-left: 3em;
}

.logo img{
    width: 3vw;
    /* height: auto; */
}

.list{
    width: 55%;
    display: flex;
    align-items: center;
}

.list ul{
    list-style: none;
    width: 25em;
    display: flex;
    justify-content: space-between;
    font-size: 1.6vw;
    font-family: "Lobster", sans-serif;
}

.list a{
    position: relative;
}

a{
    text-decoration: none;
    color: black;
}

.basket {
    display: flex;
    align-items: center;
    position: fixed;
    right: 5%;
    cursor: pointer;
}

.basket img{
    width: 30px;
}

/* ---------- main ---------- */
main{
    flex-grow: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.store-info{
    background-color: rgba(255, 255, 255, 0.8);
    width: 50%;
    padding: 2% 8% 3% 8%;
    border-radius: 13px;
    box-shadow: 10px 10px 20px 0px rgba(0, 0, 0, 0.7);
}

h3{
    font-size: 2.7vh;
}

/* ---------- footer ---------- */
footer{
    background-color: rgba(255, 255, 255, 0.8);
    width: 70%;
    height: 4vw;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    position: relative;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-start-start-radius: 30px;
    border-start-end-radius: 30px;
    box-shadow: 0px 15px 100px 0px rgb(255, 255, 255);
}

.contacts{
    width: 25em;
    display: flex;
    justify-content: space-around;
    font-family: "Lobster", sans-serif;
    font-size: 1.1vw;
    position: fixed;
    left: 2vh;
}

/* ---------- Animation ---------- */
@media (min-width: 768px){
    .list a:before{
        content: '';
        width: 100%;
        height: 1.5px;
        background-color: black;
        position: absolute;
        bottom: -4px;
        transform: scaleX(0);
        transition: transform 0.25s;
    }

    .list a:hover:before{
        transform: scaleX(1);
        transition: transform 0.25s;
    }
}


/* ---------- media ---------- */
@media (max-width: 768px){

    /* ----- header ----- */
    header{
        width: 90%;
        height: auto;
        /* padding: 8px 0; */
    }

    .logo img{
        width: 10vw; 
     }

    .list ul{
        font-size: 5vw;
        width: auto;
        gap: 7px;
        flex-direction: column;
    }

    .basket img{
        width: 8vw;
        margin-right: 1em;
    }

    /* ----- main ----- */
    .store-info{
        width: 70%;
        font-size: 1.7vh;
    }

    .store-info h3{
        font-size: 2.6vh;
    }
    
    /* ----- footer ----- */
    footer{
        width: 90%;
        height: 5%;
    }

    .contacts{
        width: 90%;
        height: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        font-size: 1.8vh;
    }

    .contacts p{
        margin: 0;
    }
}