html{  height: 95%;}
body{ min-height: 100%;}

html, body, div {background-color: #000;
-webkit-tap-highlight-color: rgba(0,0,0,0);
-o-tap-highlight-color: transparent;
-moz-tap-highlight-color: transparent;
tap-highlight-color: transparent;
font-size: 10px; font-family: Arial, Helvetica, tahoma, sans-serif;}
h1{color: #fff; font-family: Arial, Helvetica, Tahoma; clear:both; font-size: 24px}
iframe#iframe { margin-bottom: 5px; margin-left: auto; margin-right: auto; padding: 0;}

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

.clear{ clear: both;}

#saved_lists ul{
    clear: both;
    margin: 0;
    padding: 0;
    display: table;
}

.icon.active:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left:0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}



#numberOfItems{
    color: #fff;
    display: block;
    position:absolute;
    top: 20%;
    left: 25%;
    text-shadow: 2px 2px #000;
    font-size: 16px;
    heigth: 20px;
    width: 16px;
    text-align: center;
    background-color: #000;
}


#lpr{
    display: block;
    position: absolute;
    top:2px;
    left:0;
    padding-left: 3px;
    font-size: 10px;
    font-weight: normal;
    pointer-events:none;
}

.showSubTxt .iconSubText{
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    font-style: normal;
    margin-bottom: -24px;
    height: 24px;
    line-height: 11px;
    font-size: 11px;
    overflow: hidden;
    width: 100%;
    text-transform: CAPITALIZE;
}


#cats li{
        display: inline-block;
        float: left;
        background: #fff;
        border-radius: 7px;
        color: #069;
        padding: 5px;
        margin: 8px 3px;
        text-align: center;
        text-decoration: none;
        font-family: Arial, Helvetica, Tahoma;
        font-size: 14px;
        font-weight: bold;
        min-width: 25%;
        width: auto;
        cursor: pointer;
        overflow: hidden;
        }

#subCats .icon{
    border-radius: 0;
}

#saved_lists div{
    padding: 10px 0 5px 0;
    border-bottom: 1px solid #333;
}


#saved_lists .icon{
    position: relative;
    border-radius: 0;
    margin: 4px 1px;
}

#saved_lists li i{
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #fff;
    height: 9px;
    padding: 0 1px;
    font-size: 9px;
    line-height: 9px;
    text-align: center;
    color: #000;
    z-index: 999;
    font-weight: bold;
    font-style: normal;
}

#saved_lists .icon .iconText, #received_lists .icon .iconText { display: block; text-align: center;
    position: absolute;
    top: 0; color: #000; font-style: normal; font-weight: bold; padding: 2px; text-transform: capitalize; margin: auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

#saved_lists .icon.present:before {content: ' '; display:block; width: 100%; height: 100%; z-index: 100; background-size: 100%;}

.highlight:after{
    content: '';
    background-color: rgba(0,0,0,0.5);
    display: block;
    width: 100%;
    height: 100%;
    z-index: 200;
    position: absolute;
    top:0;
    left:0;
}

#msgWindow{
    width: 240px;
    height: 240px;
    z-index: 1000;
    background-color: #fff;
    position: absolute;
    top: 10px;
    left: 50%;
    margin-left: -120px;
    padding: 0;
    border-radius: 10px;
}

#undo{
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    font-size: 20px;
    background: none;
    border-right: 1px solid #000;
    padding: 0 7px;
    color: #0A0;
}

#msgWindow #submitOK{
    display: inline-block;
    height: 30px;
    width: auto;
    position: absolute;
    bottom: 5px;
    right: 5px;
}

.listitem.purchased{
    background-color: #999;
}
.listitem.purchased .listText{
    color: #333;
    text-decoration: line-through;
}

#msgWindow label, #msgWindow input{
    display: block;
    font-size: 16px;
    color: #000;
    margin: 10px;
    padding: 5px;
    width: 210px;
}

.black{
    color: #000;
}

.backClose{
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 998;
    position: fixed;
    top:0;
    left:0;
}

#topMenu, #actions{ display: none; clear: left; width: 100%;}
#topMenu:after, #actions:after{
    content: '';
    clear: both;
    display: block;
    height: 0;
}
#topMenu div{
    float:left;
    display: block;
    padding: 0;
    cursor:pointer;
    background-color: #000;
    border-radius: 0;

}

.ui-menu-item{
    position: relative;
}

#container{
    position: relative;
    padding: 0;
    margin: auto;
    color: #fff;
    overflow: hidden;
}
.scroller{
    width: 100%;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    margin: 2px  0;
    padding: 2px 0 0 0;
    background-color: #fff;
    border-radius: 7px;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    position: relative;
    display: none;
}

#vScroller{
    overflow: hidden;
    position: relative;
}

#subCats div{
    display: inline-block;
    float: none;
}


.iconText {
    display: block;
    position: absolute;
    top: 10%;
    font-size: 14px;
    color: #000;
    text-transform: capitalize;
    font-style: normal;
    font-weight: bold;
    /*width: 100%;*/
    text-align: center;
    /*white-space: normal;*/
    padding: 1px;
    z-index: 200;

}

#prods .iconText, #subCats .iconText{ width: 100%;}
#subCats .iconText{font-size:10px;}

#subCats{
    /*min-width: 100%;*/
    white-space: nowrap;
    display: table;
    background-color: #fff;
}

#emailform{
        background-color: #fff;
        position: absolute;
        top: 10px;
        left: 0;
        padding: 80px 5px 30px 5px;
        width: 310px;
        border: 2px solid #000;
        display: none;
        z-index: 1000;
        }

#emailform img{float: left;
        clear: left;
        }
#emailform input, #aflamaimulte input{
        float: left;
        clear: right;
        padding: 5px;
        margin: 5px;
        font-size: 16px;
        width: 200px;
        }

#aflamaimulte textarea{
        float: left;
        clear: right;
        padding: 5px;
        margin: 5px;
        font-size: 16px;
        width: 100%;
        height: 100px;
        }


#aflamaimulte label{
    clear: both;
    display: block;
    font-size: 14px;
    padding: 10px 5px 0 5px;
}

#emailform input#sendlistnow { width: 80px; height: 40px; margin-top: 50px;}

.showMsg{
        display: table;
        background-color: #fff;
        position:absolute;
        z-index: 990;
        font-size: 36px;
        padding: 0;
        text-align: center;
        border-radius: 5px;
        /*pointer-events:none;*/
        color: #000;
        font-weight: bold;
        text-transform: capitalize;
        height: 30px;
        }
.showMsg b{
    padding: 0;
    margin: 0;
}

.amount {
        z-index: 400;
        display: table;
        position: absolute;
        top: 2px;
        left: 2px;
        text-shadow: 1px 1px 3px #000;
        /*background-color: #000;*/
        width: auto;
        height: 16px;
        padding: 0 1px;
        font-size: 15px;
        text-align: center;
        color: #fff;
        pointer-events:none;
        line-height: 100%;
        }

#tobuy .amount, #saved_lists .amount{
    background-color: rgba(0,0,0,0.7);
    padding: 2px 4px 3px 2px;
    top: 0;
    left:0;
    border-radius: 0 0 4px 0;
}

#saved_lists .amount{
 padding: 1px 2px;
}

.shadow{

    box-shadow: 0 0 6px 0 #000;

}

#subCats .icon.activeSubCat{
    transform: scale(1.1) translateY(-1px);
    -webkit-transform: scale(1.1) translateY(-1px);
    z-index: 200;
}

#cats .icon.activeCat {
    border-radius: 7px 7px 0 0;
    transform: translateY(5px) translateZ(7px);
    -webkit-transform: translateY(5px) translateZ(7px);
}

#cats .icon.activeCat, #subCats .icon.activeSubCat, #cats #shopinglist, .shopinglist {
        opacity: 1;

}



#cats .icon, #subCats .icon {
    opacity: 0.4;
    z-index: 0;
    translateZ(0);
}

.icon{
    width: 49px;
    height: 49px;
    margin:  1px 1px 1px 2px;
    border-radius: 5px;
        }

#prods{ padding-top: 5px;
}

#yes{ position: absolute;
    bottom: 0;
    left: 0;
}

#no{
    position: absolute;
    bottom: 0;
    right: 0;
}

.text{
    color: #000;
    display: block;
    width: auto;
    font-size: 16px;
    text-align: center;
    margin-top: 30px;
    padding: 15px;
}

@media only screen and (min-width : 640px) and (orientation:portrait), only screen and (min-width : 700px) {
    html,body{ padding: 3px; margin: 0;}
    iframe#iframe{height: 100px; max-width: 432px; float: right;}
    #container, #current_list, #new_list , #loader, #actions ul{     min-width: 630px;  max-width: 1154px;}
    #container { border: 1px solid #333; padding: 5px; border-radius: 10px;}
    #cats {margin: 5px 0; padding: 5px 0;}
    #categories li, #current_list li, #new_list li, .icon{
        width: 98px;
        height: 98px;
        margin:  3px;
        border-radius: 10px;
            }
    #cats .icon, #subCats .icon{
        width: 49px;
        height: 49px;
    }
    #categories li > ul{
        top: 105px;
    }

    .iconText {
        font-size: 16px;
    }

    #listPreview div, #saved_lists ul li{
        width: 49px;
        height: 49px;
    }

    #topMenu div{
        width: 68px;
        height: 68px;
        margin: 3px;
    }

    #numberOfItems{
        top: 20%;
        left: 25%;
        font-size: 20px;
        width: 20px;
    }


    #saved_lists .amount{
        height: 12px;
        font-size: 12px;
        line-height: 12px;
        top: -5px;
        left: -1px;
    }

}

@media only screen /* iPhones and other 480x800 phones */
and (min-width : 320px)
and (max-width : 359px) {
    html,body{ padding: 5px 0; margin: 0;}
    iframe#iframe{width: 320px; height: 51px;}
    #container , #adverts,  #tobuy, #current_list, #new_list , #actions ul,#saved_lists{     width: 320px;}
    #cats,#subCats{ padding: 2px 0;}
    .icon{
        width: 49px;
        height: 49px;
        margin:  1px 1px 1px 2px;
        border-radius: 5px;
            }

       #subCats .icon{
        width: 43px;
        height: 43px;
            }


    #prods .icon{width: 56px; height: 56px;}

    #vScroller.showSubTxt .icon{
        width: 60px;
        height: 60px;
    }

    .scroller{ border-radius: 0; }

    #topMenu div{
        width: 49px;
        height: 49px;
        margin: 2px;
        }

    #tobuy .icon{
        width: 76px;
        height: 76px;
        margin:  2px 1px 1px 2px;
        }

    #categories li > ul{
        top: 54px;
    }

    #listPreview div {
        width: 30px;
        height: 30px;

    }

    #saved_lists ul li{
        width: 30px;
        height: 30px;
    }

    .amount{
        height: 13px;
        font-size: 13px;
        line-height: 13px;
        top: 1;
        left: 1;
        text-shadow:  1px 1px #000;
    }

    #saved_lists .amount{
        height: 9px;
        font-size: 9px;
        line-height: 9px;
        top: 0;
        left: 0;
    }

    .iconText {
        font-size: 10px;
    }


    .showSubTxt .iconSubText{
        margin-bottom: -23px;
        height: 22px;
        line-height: 10px;
        font-size: 10px;
    }

    #numberOfItems{
        top: 20%;
        left: 20%;
        font-size: 16px;
        width: 18px;
    }
}

@media only screen   /* Galaxy S3 and Galaxy Note and other HD phones*/
and (min-width : 360px)
and (max-width : 599px)
and (orientation:portrait){
    html,body{ padding: 5px 0; margin: 0;}
    iframe#iframe{width: 100%;}
    /*#container , #adverts,  #tobuy, #current_list, #new_list , #loader, #actions ul,#saved_lists{     width: 360px;}*/
    .icon{
        width: 55px;
        height: 55px;
        margin:  1px 1px 1px 2px;
        border-radius: 5px;
            }

    #subCats .icon{
        width: 48px;
        height: 48px;
            }

    #prods .icon{
        width: 63px;
        height: 63px;
    }

    .scroller{ border-radius: 0; }
    
    #vScroller.showSubTxt .icon{
        width: 69px;
        height: 69px;
    }

    #topMenu div{
        width: 55px;
        height: 55px;
        margin: 2px;
        }

    #tobuy .icon{
        width: 86px;
        height: 86px;
        margin:  2px 1px 1px 2px;
        }

    #categories li > ul{
        top: 62px;
    }

    #listPreview div, #saved_lists ul li{
        width: 30px;
        height: 30px;
    }


    .amount{
        height: 16px;
        font-size: 16px;
    }

    #listPreview .amount, #saved_lists .amount{
        height: 9px;
        font-size: 9px;
        line-height: 9px;
        top: 0;
        left: 0;
    }


    .iconText {
        font-size: 11px;
    }
}

.iconSubText {
    display: none;
}


#vScroller.showSubTxt .icon, #tobuy.showSubTxt .icon{
    margin-bottom: 25px;
}

@media screen and (min-width: 500px), screen and (orientation:landscape) {
iframe#iframe{width: 48%; float: right;}
#topMenu{ width: 48%; padding: 0; float: left;}
#cats {float:left; margin: 0; padding: 0;}
/*#cats div{margin: 2px;}*/
}

@media screen and (min-width: 600px)  and (max-width: 699px) and (-webkit-max-device-pixel-ratio: 1.5){
    .icon{width: 74px; height:  74px;}
    #prods .icon{width: 74px; height:  74px;}
    #listPreview div, #saved_lists ul li{
    width: 30px;
    height: 30px;
    }

    #tobuy .icon{
        width: 74px;
        height: 74px;
        margin:  2px 1px 1px 2px;
    }
}

@media screen and (min-width: 600px)  and (max-width: 699px) and (-webkit-min-device-pixel-ratio: 2){
    .icon{width: 54px; height:  54px;}
    #prods .icon{width: 64px; height:  64px;}
    #saved_lists ul li{
        width: 30px;
        height: 30px;
    }

    #tobuy .icon{
        width: 64px;
        height: 64px;
        margin:  2px 1px 1px 2px;
    }
}


@media only screen   /* Galaxy S3 and Galaxy Note and other HD phones*/
and (max-height : 499px)
and (orientation:landscape){
    #listPreview {
        display: none;
    }

}


.fleft {float:left;}

@media only screen and (max-device-width : 240px) and (orientation: portrait),
only screen and (max-width : 319px){
    html,body{ padding: 5px 0; margin: 0;}
    iframe#iframe{height: 38px; width: 240px;}
    #container, #categories, #categories li > ul, #adverts,  #tobuy, #current_list, #new_list , #loader, #actions ul,#saved_lists{     width: 240px; }
    .icon{
        width: 36px;
        height: 36px;
        margin:  1px 1px 1px 2px;
        border-radius: 5px;
            }

    #prods .icon{
        width: 49px;
        height: 49px;
    }

    #cats li{

        font-size: 11px;
        margin: 3px;

        }

    #topMenu div{
        width: 36px;
        height: 36px;
        margin: 5px;
    }

    #tobuy .icon{
        width: 58px;
        height: 58px;
        margin:  1px;
        }

    #listPreview div{
        width: 28px;
        height: 28px;
    }

    #emailform{ width:240px;
        padding: 15px 2px 2px 0;
    }

    #emailform input#sendlistnow { margin-top: 10px;}

    #saved_lists ul li{
        width: 24px;
        height: 24px;
    }

    .amount{
        height: 10px;
        font-size: 10px;
        top: 0px;
        left: 0px;
    }
}


.config .icon{
    border-radius: 0;
}

#categories, .showMsg, #tobuy, #categories li, img, .icon, .container, #container, .button, .amount{
    -webkit-touch-callout: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#categories,  #current_list, #new_list, #saved_lists{
    background-color: #000;
    padding:  0;
    margin:  0;
}
#saved_lists{ margin: auto}
#categories{
    min-height: 240px;
}

.icon{
    float:left;
    display: block;
    padding: 0;
    cursor:pointer;
    background-color: #fff;
    text-align: center;
    user-select: none;
    position: relative;
    background-size: 100%;
}
.icon.userText { overflow: hidden;}

.listName, .addToList,.subtractFromList,.ShowQR,.shareSavedList,.deleteSavedList{
    display: inline-block;
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    background-size: 100%;
    /*border: 1px solid #f00;*/
    margin: 3px 5px;
    float: left;
    cursor: pointer;
}


#topbar:after{
    content: " ";
    clear: both;
    display: block;
}

.listName{
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-transform:capitalize;
    display: table-cell;
    vertical-align: middle;
    width: auto;
}


.container:after, .container:before{
    content: '';
    clear: both;
    display: block;
    height: 0;
}

#listPreview{
    position: fixed;
    bottom: 0;
    padding:  20px 0 0 0;
    margin:  0;
    right: 0;
    background-color: #001500;
    z-index: 401;
    width: 100%;
    border-top: 1px solid #363;
    min-height: 50px;
}

#listPreview h2{ pointer-events:none; padding: 5px;}

#listPreviewArrow, #listPreviewArrowShow{
    display: block;
    position: absolute;
    height: 50px;
    width: 30px;
    padding: 10px 5px;
    bottom: 0;
    cursor: pointer;
}

#listPreviewArrow:after, #listPreviewArrowShow:after{
    content: '';
    border: 15px solid transparent;
    height: 0;
    width: 0;
    padding: 0;
    position: absolute;
    top:10px;
}

#listPreviewArrow:after{ border-left-color: #fff;}
#listPreviewArrowShow:after{ border-right-color: #fff; }

#listPreviewArrow{ margin-right: -10px; right: 0; }
#listPreviewArrowShow{ margin-left: -40px; left: 0; }



#tobuy .icon{
    float:left;
    display: block;
    background-color: #fff;
    border-radius: 10px;
    padding: 0;
    cursor:pointer;
    text-align: center;
}



#adverts a{
        color: #000;
        background-color: #fff;
        border-radius: 5px;
        position: relative;
        background-size: 100%;
        display: none;
}
#adverts a b{
        position:absolute;
        top:20%;
        left: 15%;
        font-size: 14px;
        }

#adverts div{clear: both; padding-left: 10px; color: #fff;}



#addproducts,#removelist,#sendlist,#shopinglist, .shopinglist, #savelist, #addNewSubCat, #newProd, #listmode { background-color: #000;   background-size: 100%;}

#topMenu div#removelist{ float: right;}

#closeform{ position: absolute;
            width: 30px;
            height: 30px;
            top: -5px;
            right: -5px;
            z-index: 9999;
            background-size: 100%; cursor: pointer;
    border-radius: 5px;
        }

.divider{ border-style: dotted none none none; border-width: 1px; border-color: #999; margin: 10px;}

#actions{padding:0;
    position: fixed;
    width: 100%;
    top: 0;
    height: 40px;
    color: #fff;
    z-index: 900;
    background-color: #003;
    border-bottom: 1px solid #fff;
}

#cats ul, #received_lists ul{padding: 0; float: left; width: 100%;}
#received_lists h1{padding: 10px 0 0 10px; line-height: 100%; margin: 0;}


.num {
    display: inline-block;
    text-align: right;
}

.button{
    display: inline-block;
    color: #000;
    padding: 5px;
    margin: 10px 5px;
    text-decoration: none;
    font-family: Arial, Helvetica, Tahoma;
    font-size: 16px;
    font-weight: bold;
    min-width: 100px;
    text-align: center;
    border: 1px solid #000;
    cursor: pointer;
    background-color: #fe9;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    border-radius: 7px;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;

}


.button:hover{ background-color: #e60; color: #fff;}

.button.activeButton, .button.activeButton:hover {
    background-color: #069;
    color: #fff;
    box-shadow: none;
}


#addcontact{
        cursor: pointer;
        width: 80px;
        height: 40px;
        border-radius: 7px;
        border: 1px solid #000;
        }
p{
    font-size: 16px;
    padding: 5px 10px;
}

p a{
    color: #ffa;
}



#recipe_list li {
    position: relative;
    width: 98px;
    height: 98px;
    margin:  2px;
    border-radius: 5px;
    display: inline-block;
    background-size: 100%;
            }

#recipe_list li b {
        display: block;
        position: absolute;
        top: -1px;
        left: -1px;
        background-color: #fff;
        border-radius: 3px;
        width: 20px;
        height: 20px;
        padding: 0;
        font-size: 15px;
        text-align: center;
        color: #000;
        }

.zen2buy{ background-image: url('./icon128.png'); }

.rotate180{
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}


#cats, #cats div, #subCats, #subCats div, #prods {
  -webkit-backface-visibility: hidden;
  -webkit-transform: translate3d(0,0,0);
}


#cats .icon{
   transition: 0.3s;
   -webkit-transition: 0.3s;
}


.tolist:before, .done:before{

    content: '';
    display:block;
    width: 100%;
    height: 100%;
    z-index: 399;
    background-size: 100%;
    opacity: 1;

}


.sharing, .batchAdd{
    width: 95%;
    max-width: 1154px;
    background-color: #fff;
    margin: 10px auto;
    z-index: 999;
    padding: 40px 5px;
    position: relative;
    border-radius: 5px;
}


.batchAdd { padding: 3px; position: relative;}
.batchAdd b{ color:#000; font-size: 15px; display: block;}
#multiProducts { width: 73%;  font-size: 16px; padding: 5px;}
#batchSubmit { padding: 10px; margin: 5px; position: absolute; right: 0; bottom: 0; font-size: 16px; font-weight: bold;}

.sharing input, .sharing textarea{ width: 90%; display: block; padding: 10px; margin: 10px; font-size: 16px;}
.sharing textarea{ height: 10px;}
#categories li.userProduct i, #tobuy li.userProduct i{color: #000; font-size: 14px; text-align: center; font-weight: bold; display: block; position:absolute; top:30%; width: 100%; text-transform: capitalize; font-style: normal;}


.deleteSavedList{float: right;}

.deactivated:before{
    content: '';
    background-size: 100%;
    width: 100%;
    height: 100%;
    z-index: 150;
    display: block;
    opacity: 0.8;
}
.noimg{border-right: 1px solid #000;}
.listitem { width: 316px; height: 40px; float: left; position: relative; background-color: #fff; margin: 3px; overflow: hidden; display: inline-block;}
.list_icon {height:40px; width: 40px; background-size: 100%; display: block; background-color: #fff; position: absolute; top:0; left: 0; }
.suggest_icon {height:36px; width: 36px; background-size: 100%; display: block; position: absolute; top:50%; left: 0; margin-top: -18px; }
.nobreak{
    position: absolute;
    top:0;
    right: 0;
    display: block;
    border: 1px solid #000;
    height: 25px;
    width: 25px;
    margin: 5px;
}
.listText{display: table-cell; height: 40px; vertical-align: middle; font-size: 16px; color: #000; background: none; padding: 0 40px 0 50px; font-weight: bold;}
.sortHandle{height:40px; width: 40px; display: block; position: absolute; top:0; right: 0; background-color: #ccc; background-size: 100%;}

div#container ul li {  background-size: 100%; cursor: pointer; }

.icon.remove:after{
    opacity: 0.7;
    background-size: 100%;
}

