﻿/*
position:absolute;
left:100px;
top:100px;
*/

/*.btn {  background: #CCC;   color: #000000;  display: inline-block;  border-radius: 4px;  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);  font-family: Arial, sans-serif;  line-height: 2.5em;  padding: 0 0em;  text-decoration: none; }
.btn:hover {  background: #e62097;}*/

html, body {
    background-image: url(../template/background.jpg);
    /* for IE */
    font-family: Arial;
    font-size: 16px;
}

.containerBackground {
}

.contentBackground {
    background-color: whitesmoke;
    border-radius: 10px;
}

#rest_name {
    /*	
 visibility :hidden ;
*/
    margin: 0px 0px 0px 0px;
    font-size: 32px;
    font-weight: bold;
    display: inline-block;
    text-align: center;
}

#rest_storeName {
    /*	
 visibility :hidden ;
*/
}

#rest_storeAddress {
    /*	
 visibility :hidden ;
*/
}

#miniOrder {
    /*	
 visibility :hidden ;
*/
}

#card_type {
    /*	
 visibility :hidden ;
*/
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

.rest_phone {
    /*	
 visibility :hidden ;
*/
    font-size: 16px;
    font-weight: bold;
}


#storeHeader {
    background-color: #FFFFFF;
}

#divHeaderStoreInfo {
    background-image: url(../template/rstLogo.png);
    background-position: left;
    background-repeat: no-repeat;
    height: 120px;
    /* 
   visibility:hidden 
 background-color:#FFFFFF; 
*/
}

#storeInfoTable {
    /*
rstLogo
   visibility:hidden 
 */
    position: relative;
    top: 30px;
}

#menuTable td {
    text-align: left;
}

#divHeaderTitleLink {
    /*
    -moz-border-radius-topleft: 10px;
    -webkit-border-top-left-radius: 10px;
    -moz-border-radius-topright: 10px;
    -webkit-border-top-right-radius: 10px;
    border: 1px solid #FFFFFF;
*/
    background-color: #FFFFFF;
    background-image: url(../template/headTitle.png);
    background-repeat: no-repeat;
    height: 100px;
}

    #divHeaderTitleLink a:visited {
        font-weight: bold;
        color: White;
        text-decoration: none;
    }

    #divHeaderTitleLink a:link {
        font-weight: bold;
        color: White;
        text-decoration: none;
    }

#divHeaderTitleLinkContent {
    font: 18px arial,sans-serif;
    position: relative;
    top: 25px;
    text-decoration: none;
    /*

*/
}


a:link, a:visited {
    text-decoration: none;
}

a:hover, a:active {
}


a img {
    border: none;
}


/*   orderTag=Body Content            */

#orderTag {
    height: auto;
}


#divFoot {
    /*
   background-image: url(../template/foot.png);
  background-image: url(../template/foot.png);
   background-color:#F1EBDB;
   height:60px;


*/
    background-image: url(../template/foot.png);
    background-color: #FFFFFF;
    height: 60px;
}



#pContentForFoot {
    /*
    height:60px;
    background-image: url(../template/foot.png);
   position:relative;
	top:15px;
*/
    font: 14px arial,sans-serif;
    text-align: center;
    position: relative;
    top: 5px;
}

#tableMenu {
    table-layout: fixed;
    /* 
vertical-align:top;
*/
}




#listDishTable {
    border-style: solid;
    border-width: 0px;
    width: 100%;
    border-collapse: collapse;
}
    /*
#listDishTable th { background-color:#BDB76B;color:white;width:50%; }
*/
    #listDishTable td, #listDishTable th {
        /*     padding: 5px;*/
        padding-top: 5px;
        padding-right: 0px;
        padding-bottom: 5px;
        padding-left: 0px;
        border: 0;
    }

    #listDishTable td {
        border-bottom: 1px dotted #6B6B6B;
    }

    #listDishTable tr {
        background-color: #FFFFFF;
    }

        #listDishTable tr:hover {
            /*

  background-color:#E82525;
  cursor: pointer;
*/
        }








#menuCategoryTable {
    border-collapse: collapse;
}



    #menuCategoryTable tr:hover {
        background-color: #ffbb00;
        cursor: pointer;
    }

    #menuCategoryTable td, #menuCategoryTable th {
        padding: 6px;
        border: 0;
    }


#divAItem {
    margin: auto;
    width: 680px;
    height: 480px;
    overflow: auto;
    background-color: #FFFFFF;
}

#divDish {
    background-color: #FFFFFF;
}

#divDishDescript {
    background-color: #FFFFFF;
    color: #666666;
    display: block;
    font-size: 14px;
    text-align: left;
}

#aItemImg {
    height: 150px;
}

#divWith {
    background-color: #FFFFFF;
}

#divSingleFtImage {
}

#aFoodTypeImg {
    height: 150px;
    border-radius: 25px;
}


.foodtype_name {
    color: #03145f;
    font-size: 20px;
    font-weight: bold;
    padding: 0 0 0 10px;
    text-decoration: none;
}

.ftItem_description {
    /*   color: #FFFFFF;*/
    padding: 0 0 0 12px;
    display: block;
    font-size: 14px;
    text-decoration: none;
}

.foodTypeSectionTitle {
    background-color: #00C569;
}

.panel-default > .panel-heading {
    background-color: whitesmoke;
}


.menu_section {
    /*
        background-color:#CC0000;
           

    */
    background: #00C569 url(../template/foodTypeBg.jpg);
    clear: both;
    display: block;
    margin-top: 10px;
    padding: 5px 5px 5px 10px;
    width: 100%;
    font-size: 22px;
}

.item_name {
    color: #03145f;
    font-size: 14px;
    font-weight: bold;
    /*  padding: 0 0 0 10px;*/
    text-decoration: none;
}

.item_icon {
    margin-left: 5px;
}

.item_price {
    color: #444444;
    display: block;
    float: right;
    font-size: 14px;
    margin-top: 5px;
    /*  padding: 0 10px 0 5px;*/

    text-align: right; /* width: 80px; */
}

.item_description {
    color: #666666;
    display: block;
    font-size: 12px;
    padding: 3px 10px 4px 10px;
}

.menu_list_item_description {
    color: #666666;
    display: block;
    font-size: 12px;
    padding: 3px 10px 4px 10px;
    /*
            visibility: hidden;
            display: none;
    */
}

#aItemImg_followName {
    height: 100px;
    border-radius: 25px;
}

#itemImage {
    border-radius: 25px;
}

.lazyload {
    border-radius: 5px;
}

#myItemImgContent {
    border-radius: 25px;
}

#cart {
    background: none repeat scroll 0 0 #FFFEFF;
    border: 1px solid #CCC;
    display: inline;
    float: right;
    margin: 6px 15px 4px 0;
    padding: 8px 10px;
    width: 292px;
}

#cart_holder {
    display: inline;
    float: right;
    margin-top: 10px;
}

.cart_title {
    font-size: 13px;
    font-weight: bold;
    background: none repeat scroll 0 0 #EEE;
    color: #444;
    padding: 5px;
    float: left;
    margin: 0 4px 8px 0;
    border-bottom: 1px solid #DDD;
    width: 100%;
}

.cartHr {
    height: 1px;
    background: #DDD;
    margin: 10px 0px 15px;
    float: left;
    width: 280px;
}

.sumary {
    color: #444444;
    display: block;
    float: left;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 4px;
    text-align: right;
    width: 50px;
}

.sumary_title_red {
    color: green;
    font-size: 13px;
    font-weight: bold;
}

.sumary_red {
    color: green;
    display: block;
    float: left;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 4px;
    text-align: right;
    width: 50px;
}

#total {
    font-size: 15px;
    font-weight: bold;
    background: none repeat scroll 0 0 #EEE;
    color: black;
}

/*#slideshow {
    margin: auto;
    padding: 10px;
    width: 900px;
    height: 600px;
    position: relative;
    box-shadow: 0px 0px 20px rgba(0,0,0,0.4);
    background-color: rgb(255, 255, 255);
}

    #slideshow > div {
        left: 10px;
        top: 10px;
        right: 10px;
        bottom: 10px;
        position: absolute;
    }

#slideshow2 {
    margin: auto;
    padding: 10px;
    width: auto;
    height: auto;
    position: relative;
    background-color: rgb(255, 255, 255);
}

    #slideshow2 > div {
        left: 10px;
        top: 10px;
        right: 10px;
        bottom: 10px;
        position: absolute;
    }
*/
#menu ul {
    margin: 0px;
    padding: 0px;
    display: inline-block; /*center*/
    list-style-type: none;
    /*
  margin-left: auto ;
  margin-right: auto ;
*/
}

#menu li {
    margin: 0px;
    float: left;
}

#menu a {
    display: block;
    padding: 14px 14px;
    /*
    background-color: #FFFFFF;
 border:2px outset #C27312;
*/
    text-decoration: none;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

    #menu a:hover {
        background-color: #00C569;
    }


div.DivClear {
    clear: left;
}


.rowPhoto {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
}

div.gallary {
    margin: 2px;
    border: 1px solid #ccc;
    width: 180px;
    float: left;
}

    div.gallary:hover {
        border: 3px solid #777;
    }

    div.gallary img {
        width: 100%;
        height: auto;
    }

div.gallaryDesc {
    padding: 15px;
    text-align: center;
}




/* define a fixed width for the entire menu
http://codepen.io/wanni/pen/zsDJb
 */
.navigation {
}

/* reset our lists to remove bullet points and padding */
.mainmenu, .submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #FFFFFF;
    font-size: 15px;
    font-weight: bold;
}

    /* make ALL links (main and submenu) have padding and background color */
    .mainmenu a {
        display: block;
        text-decoration: none;
        padding: 10px;
        /*
  color: #000;
*/
    }

        /* add hover behaviour */
        .mainmenu a:hover {
            background-color: #00C569;
        }


    /* when hovering over a .mainmenu item,
  display the submenu inside it.
  we're changing the submenu's max-height from 0 to 200px;
*/

    .mainmenu li:hover .submenu {
        display: block;
        /*
  max-height: 200px;
*/
        max-height: 800px;
    }

    .submenu li {
        margin-left: 15px;
    }

    /*
  we now overwrite the background-color for .submenu links only.
  CSS reads down the page, so code at the bottom will overwrite the code at the top.
*/

    .submenu a {
        background-color: #FFFFFF;
    }

        /* hover behaviour for links inside .submenu */
        .submenu a:hover {
            background-color: #00C569;
        }

/* this is the initial state of all submenus.
  we set it to max-height: 0, and hide the overflowed content.
*/
.submenu {
    overflow: hidden;
    max-height: 0;
    -webkit-transition: all 0.5s ease-out;
}

.appImg {
    width: 150px;
}

/* 
    external
*/
.wrapMenu {
    width: 100%;
    overflow: auto;
}

.fleftMenu {
    float: left;
    background: white;
    width: 30%;
}

.frightMenu {
    float: right;
    background: white;
    width: 70%;
}

.ulMenu {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.pMenuFoodType {
    margin: 0px;
    padding: 0px;
    background: white;
    /* overflow:auto;*/
    overflow-y: auto;
    height: 450px;
    width: 120px;
    position: fixed;
}

.pMenuDish {
    margin: 0px;
    padding: 0px;
    background: white;
    /*    overflow: auto;
    height: 800px;*/
    width: 100%;
    overflow: auto;
}






.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}



/*.category-dropdown {
    position: fixed;*/
/*  top: 0; */
/*left: 70%; 
    transform: translateX(-50%); 
    z-index: 1000;*/
/* Remove all margin offsets (they break centering) */
/*margin-top: -65px;*/

/*  margin-top: -85px;  for qrcode scan*/

/*margin-left: 0;
    height: 80px;
}*/
/*
.category-dropdown {
    position: fixed;
    bottom: 0px;
    left: 70%;
    transform: translateX(-50%);
    z-index: 1000;
    margin-left: 0;

}
*/


.category-dropdown {
    position: fixed;
    bottom: 0px;
    transform: translateX(-50%);
    z-index: 1000;
    margin-left: 130px;
  
}


.dropbtn {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .dropbtn::after {
        content: "▲";
        font-size: 10px;
    }

.dropdown-content {
    display: none;
    position: absolute;
    right: -100px;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-radius: 8px;
    z-index: 1;
    overflow-y: auto; /* enables vertical scrolling */
    max-height: 400px; /* adjust as needed */
    bottom: 100%; /* This positions the element above its parent */
 
}



    /*   .dropbtn::after {
        content: "▼";
        font-size: 10px;
    }
*/


    /*.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-radius: 8px;
    z-index: 1;
    overflow-y: auto;*/ /* enables vertical scrolling */
    /*max-height: 400px;*/ /* adjust as needed */
    /*}*/

    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        white-space: nowrap;
    }

        .dropdown-content a:hover {
            background-color: #f1f1f1;
            border-radius: 8px;
        }

.category-dropdown:hover .dropdown-content {
    display: block;
}

.scroll-container {
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    padding-bottom: 20px;
}

    .scroll-container::-webkit-scrollbar {
        display: none;
    }

    .scroll-container:active {
        cursor: grabbing;
    }



.menu-container {
    /*max-width: 600px;*/
    width: 100%;
    margin: 0 auto;
}

.category-scroll-container {
    position: sticky;
    top: 0px;
    /*    position: fixed;
    bottom: 0px;*/
    width: 100%;
    overflow-x: auto;
    margin-bottom: 8px;
    padding-bottom: 6px;
    cursor: grab;
    scrollbar-width: none;
}

    .category-scroll-container::-webkit-scrollbar {
        display: none;
    }

    .category-scroll-container:active {
        cursor: grabbing;
    }

.category-scroll {
    display: inline-flex;
    gap: 8px;
    padding: 4px 5px;
}

.category-button {
    flex: 0 0 auto;
    padding: 4px 6px;
    border-radius: 6px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    font-weight: 700; /*Bold */
    font-size: 14px; /*Larger font */
    color: #333;
    white-space: nowrap;
    transition: all 0.2s;
    line-height: 1.2;
    height: 50px; /*Fixed height */
    display: flex;
    align-items: center;
}

    .category-button.active {
        background-color: #ff5252;
        color: white;
        border-color: #ff5252;
        font-size: 15px;
    }


.menu-category {
    width: 100%;
    /*    max-width: 600px;*/
    margin-bottom: 5px;
    background: white;
}

.category-header-empty {
    height: 40px;
}

.category-header {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ff5252;
}

.category-header-chinese {
    font-size: 1rem;
    color: #777;
    display: block;
    margin-top: 5px;
    font-weight: normal;
}



.menu-item {
    background-color: white;
    width: 100%;
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.item-image {
    width: 100px;
    min-width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    background-color: #f5f5f5;
    border: 1px solid #eee;
}

#item-image {
    width: 100px;
    min-width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    background-color: #f5f5f5;
    border: 1px solid #eee;
}


.item-content {
    flex: 1;
    min-width: 0;
}

.item-header {
    margin-bottom: 12px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 12px;
}

.item-name {
    margin: 0 0 10px 0;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    color: #333;
    font-weight: 600;
    line-height: 1.3;
}

.item-name-chinese {
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    color: #777;
    display: block;
    margin-top: 5px;
    font-weight: normal;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-price {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: 700;
    color: #ff5252;
    white-space: nowrap;
    position: relative;
    padding-left: 15px;
    line-height: 1;
}

    .item-price::before {
        content: "¥";
        font-size: 0.8em;
        position: absolute;
        left: 0;
        top: 0.1em;
        color: #ff5252;
        opacity: 0.8;
    }

.add-button {
    background-color: #ff5252;
    color: white;
    border: none;
    border-radius: 5px;
    width: 110px;
    height: 35px;
    font-size: 1.0em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

    .add-button:hover {
        background-color: #ff3333;
        transform: scale(1.1);
    }

.ingredients {
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    color: #555;
    line-height: 1.6;
}

.ingredients-title {
    font-weight: 600;
    margin: 15px 0 8px 0;
    color: #444;
    font-size: 1em;
}

.ingredients-text {
    background-color: #fafafa;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 5px;
    word-break: break-word;
}

@media (max-width: 768px) {
    .menu-item {
        gap: 15px;
        padding: 15px;
    }

    .item-image {
        width: 120px;
        min-width: 120px;
        height: 120px;
    }

    .category-header {
        font-size: 1.5rem;
    }
}

@media (max-width: 400px) {
    .item-image {
        width: 100px;
        min-width: 100px;
        height: 100px;
    }

    .add-button {
        width: 28px;
        height: 28px;
        font-size: 1.1em;
    }

    .category-header {
        font-size: 1.3rem;
    }
}

/* Method 1: Basic responsive image */
.responsive-img {
    width: 100%;
    height: auto;
    display: block;
    border: 2px solid #4CAF50;
}

/* Method 2: Fixed aspect ratio container */
.aspect-container {
    width: 100%;
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #f0f0f0;
    border: 2px solid #2196F3;
}

.aspect-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Method 3: Viewport units */
.viewport-img {
    width: 100%;
    height: 50vh; /* 50% of viewport height */
    object-fit: cover;
    border: 2px solid #FF9800;
}
