/* Text Color: #EEEBDD
Other Colors:
Beige: #EBD9B4
Red-bright:#CE1212
Red-Dark: #810000
Black: #1B1717 */


#menu{
    color: #EBD9B4;
    height: 28vh; /*I only want the Menu items section to be scrollable, so #menu=(30vh), .leftTab=(65vh) & footer=(5vh) needs to take up a shared screenheight space*/
    background: url(/Assets/lantern-3713468_1920.jpg);
    display: flex;
    align-items: flex-end;
}

.menuHeader{
    /* position: relative; */
    display: flex;
    justify-content: end;
    align-items: center;
    flex-direction: column;


    height: 20vh;
    width: 100vw;
    background-color: rgba(27, 23, 23, 0.75);
}

.theSearch{
    width: 100vw;
    display: flex;
    /* align-items: flex-end; */
}

.takeAway{
    padding: 0 0 4px 0;
    text-decoration: underline;
}

.searchWrap{
    padding: 0 0 0 1rem;
}

.searchItems{
    display: flex;
    /* align-items: flex-end; */
    font-size: 1.5rem;
    gap: 0.5rem;
}

.search{
    background-color: #1B1717;
    border: solid #810000;
    color: #EBD9B4;
    width: 13.5rem;
    height: 2rem;
    font-size: 1rem;
}

.search:focus{
    outline: none;
}

.carContainer{
    display: flex;
    align-items: center;
    padding: 0 0.5rem 0 0.5rem;
}

.allFoodItems{ /*ul tag*/
    border-left: solid;
    border-right: solid;
    border-color: #810000;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    align-items: flex-end;
    gap: 1.5rem;

}

.allFoodItems > li{
    list-style: none;
    cursor: pointer;
    padding-left: 8px;
    flex: 0 0 auto;
}

.activeLi{
    color: #CE1212;
    transition: 300ms; 
    scroll-snap-align: center;
}

[data-btn]{
    cursor: pointer;
    flex: 0 0 auto;
    width: 2rem;
    stroke:#810000;
    stroke-width: 5rem;
    transition: 300ms;
}

[data-btn]:hover{
    transform: scale(1.2);
}

/* Allergy Section */

#theItems{
    display: flex;
    color: #EBD9B4;
    padding: 0 0 0 1rem;
}

.leftTab{
    position: relative;
    flex: 0 0 auto;
    /* border: solid 0.5rem #810000; */
    border-bottom: none;
    border-top: none;
    width: 17rem;
    height: 65vh;
}

.foodDisplay{
    border-bottom: solid 0.25rem #810000;
    display: flex;
    flex-direction: column;
    scrollbar-width: none;
    overflow: auto;
    height: 0; /*.activeDisplay=(43vh) and .allergy=(22vh) share the height of .lefTab*/
    transition: 300ms;
}

.explanation > .icons{
    padding-bottom: 0.5rem;
}


.allergy{
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    overflow-y: auto;
    flex: 0 0 auto;
    bottom: 0;
    gap: 1rem;
    padding: 1rem 1rem 0 1rem;
    height: 22vh;
    width: 100%;
}


.activeDisplay{
    height: 43vh;
}

/* Menu Foods */
.menuSection{
    background-color: #1B1717;
    color: #EBD9B4;
    overflow: auto;
    height: 65vh;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 1.5rem;
    padding: 2rem 0 2rem 1rem;
}

[data-food = "pic"] .imageContainer img{
    width: 24rem;
}

[data-food = "explanation"]{
    height: 100%;
}

.explanation{
    height: inherit;
    display: none;
    flex-direction: column;
    justify-content: space-between;
}

.explanation .icons{
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}


.menuItem{
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background-color: #810000;
    overflow: hidden; /*Incase there is a change in the item dimensions*/
    cursor: pointer;
    border-radius: 20px;
    padding: 0.5rem 0.5rem 1rem 0.5rem;
    height: 10rem;
    width: 17rem;
}


.menuItem h2{
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: bold;
    width: 100%;
}


.textContainer p{
    height: 2.5rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dispTitle > .textContainer > p{
    overflow: visible;
    white-space: wrap;
    height:fit-content;
}

.imageContainer{
    overflow: hidden;
    border: solid;
    height: 5rem;
    border-radius: 0 0 20px 20px;
    margin-bottom: 0.5rem;
}

.menuItem .imageContainer > img{
    width: 100%;
    transform: scale(1.2);
    object-position: 1rem -1rem;
}

.foodDisplay .imageContainer{
    height: 10rem;
}

.foodDisplay .imageContainer > img{
    object-position: -4rem -3rem;
    transition: 300ms;
}

.foodDisplay .imageContainer:hover img{
    transform: scale(1.5);
}


.price{
    background-color: inherit;
    position: absolute;
    border-top: solid;
    border-left: solid;
    box-shadow: -5px -5px 10px -5px rgba(27, 23, 23, 1); /*Remove this shadow if we plot to add the border?*/
    width: 4rem;
    padding: 4px 0 0 8px;
    border-radius: 10px 0 0 0;
    right: 0.5rem;
    top: 7.33rem; /*Height of item from top - height of p tag + 0.25 from whatever bottom margin on text-container*/
}

.hide{
    display: none;
}

[data-food="mobile"]{
    position: fixed;
/* 
    display: flex;
    flex-direction: column; */

    height: 100vh;
    transform: translateY(100%);

    /* padding-top: 2.25rem; */
    /* padding-top: 10rem; */

    bottom: 0;
    z-index: 1; /*-1: is Behind the screen - 3: Clears the Navbar*/
    width: 100%;
    background-color: #1B1717;

    transition: transform 300ms ease-out;
}

@media only screen and (max-width: 1344px){
    .theSearch{
        align-items: baseline;
        justify-content: flex-end;
        flex-direction: column;
        /* height: 30vh; */
        gap: 0.5rem;
        /*padding: 0;*/
    }

    .carContainer{
        width: 100%;
        /*padding: 0;*/
    }

}


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

    ::-webkit-scrollbar {
        display: none;
    }

    .next{
        display: none;
    }
    .prev{
        display: none;
    }

    .menuSection{
        flex-wrap: none;
        justify-content: center;
        padding: 0;
        gap: 0.5rem;
    }

    .menuSection:focus{
        border: solid #CE1212;
    }

    .leftTab{
        display: none;
    }

    .searchWrap{
        padding: 0;
    }

    .wheat{
        font-size: 2rem;
    }


    .carContainer{
        padding: 0;
    }

    /*This needs to be below mobView for the hierarchy*/
    .hiddenMob{
        transform: translateY(0);
    }
/* 
    [data-food="pic"] img{
        width: 100%;
    } */

    .allFoodItems{
        scroll-snap-type: none;
    }

    .allFoodItems li{
        font-size: 1.5rem;
    }

    /* only supported by IOS DEVICES: (-webkit-touch-callout: none) */
    /* only supported by IOS SAFARI: (-webkit-overflow-scrolling:none) */
    /* Manipulating supported features and setting them to none, to apply device specific settings */
    /* @supports (-webkit-touch-callout: none) { */
        /* CSS specific to iOS devices Atleast my iphone 15 pro seems to need this (-webkit-overflow-scrolling:none)*/ 
    #menu{
        height: 22vh; /*I only want the Menu items section to be scrollable, so #menu=(30vh), .leftTab=(65vh) & footer=(5vh) needs to take up a shared screenheight space*/
    }


    .ios-mobIconHidden{
        top: 0rem;
    }

    #navBar.ios-hideNav { /*somehow doing the #. without space combo takes precedence*/
        height: 2rem;
    }
    
    .ios-hideBar{
        margin-top: 0.5rem;
    }
    
    
    .ios-hideLogo{
        transform: translateY(-7.6rem);
    }
    /* } */

    [data-food="mobile"]{
        display: flex;
    }

    .displayCont{
        position: absolute;
        bottom: 31rem;
        color: #EBD9B4;
        
        display: flex;
        flex-direction: column;
    }

    .close{
        /*Sticky or Relative?*/
        color: rgb(235, 217, 180);
        background: none;
        cursor: pointer;
        border: solid;
        border-radius: 25px;
        overflow: hidden;
        padding: 0.5rem;
    }

    .down{
        width: 3rem;
        fill:#810000;
        transform: rotate(90deg);
    }

    .allergy_mob{
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        overflow-y: auto;
        flex: 0 0 auto;
        gap: 1rem;
        padding: 1rem 1rem 0 1rem;
        height: 3rem;
        width: 100vw;
        border-left: solid;
        border-right: solid;
    }


    .mobDisplay{
        position: absolute;
        bottom: 1rem;
        display: flex;
        flex-direction: column;

        scrollbar-width: none;
        overflow: auto;
        border: solid;
        border-radius: 25px;
        color: #EBD9B4;
    }

    [data-food="mobile"]{
        z-index: 3;
    }

    .mobDisplay > [data-food="title"]{
        background-color: #810000;
        padding: 0.5rem 1rem 0.5rem 1rem;
        height: auto;
    }

    [data-food="pic"]{
        overflow: hidden;
    }


    [data-food="pic"] > img{
        height: 100%;
        width: 100%;
        transform: scale(1.1);
        transition: 300ms;
    }

    [data-food="pic"] > img:hover{
        /* object-position: 0 -4rem; */
        transform: scale(2);
    }

    .mobDisplay > [data-food="pic"]{
        max-height: 20rem;
        border: solid 1rem #810000;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0);
        border-radius: 0 0 25px 25px;
    }

    .mobDisplay > [data-food="explanation"]{
        Padding: 1rem;
    }

    #theItems{
        padding: 0 1rem;
    }

    .menuItem{
        border-radius: 5px;
        width: 100%;
    }
    
    .textContainer{
        margin-bottom: 0.25rem;
    }
    
    .imageContainer{
        width: 95%;
        border-radius: 5px;
    }

    .price{
        border-radius: 5px 0 0 0;
    }

}