@font-face {
    font-family:Adelia;
    src: url(/fonts/adelia.ttf);
}


#head_container{
    width:100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--header-bg);
    color:white;
    border-bottom-style: solid;
    border-bottom-width: 2px;
    border-bottom-color: var(--header-border);
}

#head_container_margin{
    margin-bottom:3rem;
    text-align: center;
    color:var(--header-offline-text);
    background-color: var(--header-offline-bg);
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-bottom-color: var(--header-offline-border);
}

.link_to_categories{
    width:100%;
    height: 48px;
    display: flex;
    margin:1rem;

}

#social_media{
    display:flex;
    flex-direction: row;
    justify-content: flex-end;
    background-color: var(--social-bg);
    height: var(--social-height);
}

#social_media > a{
    display: block;
    width:var(--social-height);
    height:var(--social-height);
    margin-right:1rem;
    cursor: pointer;
    background-color: var(--social-btn-border);
    border-color: var(--social-btn-border);
    border-style: solid;
    border-width: 1px;
    border-radius: 24px;

}

#social_media > a > img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}




.link_to_categories > a{
    display:flex;
    width:100%;
    height: 48px;
    flex-direction: row;
    flex-direction: center;
    justify-content: center;
    text-decoration: none;
    color: var(--sidebar-text);
    background-color: var(--sidebar-category-bg);
    border-radius: 12px;
    text-align: center;
    font-size:1rem;
    /*text-shadow: 1px 1px 2px black;*/
}

.link_to_categories > a > p{
    display:flex;
    justify-content: center;
    align-items: center;
}

.container_line_menu_btn{
    height: 48px;
    display: flex;
    flex-direction: column;
}

.container_line_menu_btn>div:nth-child(1){
    height:24px;
    width:24px;
    border-bottom-style: solid;
    border-bottom-color:var(--header-border);
    border-bottom-width:1px;
    margin-right:1rem;
    margin-left:1rem;
}
.container_line_menu_btn>div:nth-child(2){
    height:24px;
    width:24px;
    border-top-style: solid;
    border-top-color:var(--header-border);
    border-top-width:1px;
    margin-right:1rem;
    margin-left:1rem;
}

.a_link_to_categories{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.a_link_to_categories > img{
    width:72px;
    height: 72x;
}

#btn_left_m{
    width:48px;
    height:48px;
    cursor:pointer;
    margin-left:0.5rem;
    border-radius:var(--radius);
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:5px;
}

#btn_left_m > span{
    display:block;
    width:24px;
    height:3px;
    border-radius:2px;
    background-color:var(--icon-color);
}

#go_to_cart{
    position:fixed;
    right:5%;
    bottom:5%;
    width:48px;
    height:48px;
    cursor:pointer;
    margin-right:0.5rem;
    border-radius:var(--radius);
    border-width: 1px;
    border-color: var(--basket-icon-border);
    border-style: solid;
}

#go_to_cart > img{
    width:100%;
    height:100%;
    object-fit:contain;
}

#quantity_main_products{
    position:absolute;
    border-radius: 12px;
    border-width: 1px;
    border-color:var(--quantity-border);
    border-style: solid;
    color:var(--quantity-text);
    bottom:-12px;
    right:-12px;
    display:none;
    align-items:center;
    justify-content:center;
    width:24px;
    height:24px;
    background-color:var(--quantity-bg);
}

#btn_right_m{
    width:48px;
    height:48px;
    margin-right:0.5rem;
}

#logo{
    max-width:50%;
    height: var(--header-height);
    padding: 0.5rem;
    box-sizing: border-box;
}

#logo > a {
    display: block;
    width:100%;
    height:100%;
}

#logo > a > img {
    width:100%;
    height:100%;
    object-fit: contain;
}

#left_m{
    position: fixed;
    top:0;
    left:-300px;
    width:300px;
    z-index:2;
    height:100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    background-color: var(--sidebar-bg);
    overflow-y: auto;
}

#middle_m{
    pointer-events: none;
    position:fixed;
    top:0;
    left:0;
    z-index:1;
    width:100%;
    height:100%;
    background-color: rgba(0,0,0,0);
}

#right_m{
    position:fixed;
    left:100%;
    z-index:1;
    width:400px;
    height:100%;
    background-color: var(--modal-bg);
    border-style: solid;
    border-left-width:1px;
    border-color:var(--header-bg);
    color:var(--modal-text);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items:center;
}

#right_m_part_1{
    width:100%;
    padding:5%;
    overflow-y: auto;
}


#right_m_part_2{
    width:100%;
    padding-bottom:0.5rem;
    background-color: var(--modal-quantity-area-bg);
    color:var(--modal-quantity-text);
}

#right_m_part_2B{
    border-top-width:1px;
    border-top-style:solid;
    border-top-color:var(--modal-add-border);
    width:100%;
    padding:5%;
    padding-bottom:0.5rem;
    display:flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

.allergen_img{
    background-color: var(--allergen-bg);
    margin:0.5rem;
    border-radius:var(--radius);
    border: 1px solid var(--allergen-border);
}

.diet_div{
    margin:0.3rem;
    border-radius:var(--radius);
    padding:0.3rem;
    font-size:0.8rem;
    color: var(--diet-text);
    background-color: var(--diet-bg);
}

#right_m_img_builder{
    width:288px;
    height:240px;



     /*puts right_m_img_builder > img, in the middle*/
    display: flex;
    justify-content: center;
    align-items: center;

     /*allows position absolute for its children*/
    position:relative;

    /*puts this div in the middle*/
    margin-left:auto;
    margin-right:auto;
}

.img_builder_menu{
    width: auto;
    max-width:288px;
    height: 100%;
    position: absolute;
}


#right_m_name{
    display: flex;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    margin:1rem;
}

#right_m_description{
    display: flex;
    justify-content: center;
    font-weight: bold;
    margin-bottom:1rem;
    text-align:center;
}

.btn_select_option_menu, .btn_select_option_menu_sub_product{
    display: flex;
    justify-content: center;
    align-items: center;
    width:100%;
    min-height:2.5rem;
    margin-top:1rem;
    margin-bottom:1rem;
    padding:0.5rem;
    font-size:1.2rem;
    background-color: var(--modal-subproduct-bg);
    color:var(--modal-subproduct-text);
    cursor: pointer;
}

@media only screen and (max-width:600px) {


    #right_m_img_builder{
        width:260px;
    }


    #right_m{
        width:320px;
        font-size:0.8rem;
    }

    .link_to_categories > a{
        font-size:0.8rem;
    }
}
