body
{
    background-color: #026873;
    color: white;
    /* no scrollbars on body */
    overflow: hidden;
    font-family: calibri, sans-serif;
}

/* Try to solve the 300ms delay issue */
a, button, .menucategory, .subcategory, .menuentry
{
    -ms-touch-action: manipulation;
    touch-action: manipulation;
}

#backToMaincategorySelection
{
    float: left;
    background: rgb(56 36 36);
    height: 100%;
    width: 5rem;
    position: relative;
}

#backToMaincategorySelection i
{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
}

body, ul, li
{
    padding: 0;
    margin: 0;
    border: 0;
    border-collapse: collapse;
}

/* Site setup */
#container
{
    position: absolute;
    height: 100%;
    width: 100%;
}

#headerArea
{
    position: relative;
    height: 10%;
    width: 100%;
    background-color: #222;
}

#dataArea, #tableArea
{
    position: relative;
    height: 90%;
    width: 100%;
}

#footerArea
{
    position: fixed;
    /* display: none; */
    height: 10%;
    /*width: 20%;*/
    bottom: 0.2rem;
    right: 0.2rem;
    z-index: 1;
}

#subcatRow
{
    width: 100%;
    background-color: #222;
    padding-top: 0.1rem;
}

#menuentryRow
{
    width: 100%;
}

#subcatRow>*
{
    float: left;
}

/*.socialButton:active, .placeOrder:active*/
i.fa:active
{
    -webkit-transform: scale(0.9);
    transform: scale(0.9);
}

#subcatRow .arrow
{
    width: 5%;
    position: relative;
    top: 40%;
    text-align: center;
}

@media all and (orientation: portrait)
{
    #headerArea
    {
        height: 7%;
    }

    #dataArea, #tableArea
    {
        height: 97%;
    }

    #subcatRow
    {
        height: 6%;

        /*position: absolute;
        top: 0;*/
    }

    #menuentryRow
    {
        height: 80%;
    }
}

@media all and (orientation: landscape)
{
    #subcatRow
    {
        height: 11%;

        position: absolute;
        /*top: -10%;*/
        top: -5rem;
        left: 50%;
        -moz-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        -o-transform: translateX(-50%);
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
        width: 75%;
        width: calc(100% - 22rem) !important;
    }

    #menuentryRow
    {
        height: 90%;
    }
}

/* Common setup for IScroll */
#subcatWrapper
{
    height: 100%;
    width:  calc(90% - 7rem);
}

.menuentryWrapper
{
    height: 100%;
    width:  100%;
}

#basketArea, #orderAcceptedArea
{
    background-color: #646464;
    background-color: rgba(100, 100, 100, 0.95);
    background: -webkit-gradient(linear, 0 100%, 0 0%, from(#323232), to(#646464));
    background: -webkit-gradient(linear, 0 100%, 0 0%, from(rgba(50, 50, 50, 0.95)), to(rgba(100, 100, 100, 0.95)));
}

#orderThankYou
{
    height: 4rem;
}

#subcategories
{
    /* TODO: set via .js by calculating the number of elements and mult by one elements' width */
    height: 100%;
    width: 100%;
}

#subcategories div
{
    /*float: left;*/
    overflow: hidden;
}

/* Subcats */
.subcategory
{
    position: relative;
    display: inline-block;
    height: 100%;

    border: 0.1rem solid #FFF;

    border-radius: 0.2rem;
    -moz-border-radius: 0.2rem;
    -webkit-border-radius: 0.2rem;
    cursor: pointer;
    /*float: left;*/
    margin-left: 0.25rem;
}

.subcategory .gloss
{
    /* use same as parent button? */
    -webkit-border-top-right-radius: 3rem;
    -webkit-border-top-left-radius: 3rem;
    -webkit-border-bottom-right-radius: 6rem 0.2rem;
    -webkit-border-bottom-left-radius: 6rem 0.2rem;
}


/* helper to get a square button */
.subcategory>img
{
    height: 60%;
    width: auto;
    min-width: 5rem;
    display: block;
    margin: 0 auto;
}

.subcategory>p
{
    position: relative;
    bottom: 1.5rem;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
    overflow: hidden;

    padding: 0;
    margin: 0;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    /*background-color: #646464;
    background-color: rgba(100, 100, 100, 0.7);
    background: -webkit-gradient(linear, 0 100%, 0 0%, from(#323232), to(#646464));
    background: -webkit-gradient(linear, 0 100%, 0 0%, from(rgba(50, 50, 50, 0.7)), to(rgba(100, 100, 100, 0.7)));*/

    /* .blackTextBorder */
    text-shadow: 1px 1px 0 #000,
    -1px 1px 0 #000,
    1px -1px 0 #000,
    -1px -1px 0 #000,
    0 1px 0 #000,
    0 -1px 0 #000,
    -1px 0 0 #000,
    1px 0 0 #000,
    2px 2px 0 #000,
    -2px 2px 0 #000,
    2px -2px 0 #000,
    -2px -2px 0 #000,
    0 2px 0 #000,
    0 -2px 0 #000,
    -2px 0 0 #000,
    2px 0 0 #000,
    1px 2px 0 #000,
    -1px 2px 0 #000,
    1px -2px 0 #000,
    -1px -2px 0 #000,
    2px 1px 0 #000,
    -2px 1px 0 #000,
    2px -1px 0 #000,
    -2px -1px 0 #000;

    white-space: pre-line;
}

/* Menu entries */
/*----------------------------------------------------------------------------*/
/* Common Layout */
.menuentries, .menuentryLayout
{
    height: 100%;
    width: 100%;
}

/* Fading animation */
@-webkit-keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

.menubuttons
{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.menubuttons>*
{
    cursor: pointer;
    font-size: 3rem;
    background-color: transparent;
    color: #ddd;
}
/*----------------------------------------------------------------------------*/
/* Layout 0*/
/* Next & previous buttons */
#layout0 .prev, #layout0 .next, #layout4 .prev, #layout4 .next
{
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -3rem;
    padding: 1rem;
    color: white;
    font-weight: bold;
    font-size: 3rem;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

/* Position the "next button" to the right */
#layout0 .prev, #layout4 .prev
{
    left: 0;
}

#layout0 .next, #layout4 .next
{
    right: 0;
}

/* On hover, add a black background color with a little bit see-through */
/*#layout0  .prev:hover, #layout0 .next:hover {
  background-color: rgba(0,0,0,0.8);
}*/

#layout0 .menuentry, #layout0 .displaycatEntry
{
    border: 0.2rem solid #222;
}

#layout0 .displaycatMenuEntry
{
    margin-bottom: 0.5rem;
    height: 7rem;
    width: 98%;
    margin: 0 auto;
}

#layout0 .menuimage, #layout0 .displaycatImage
{
    position: relative;
}

#layout0 .menuimage video
{
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#layout0 .menutitle, #layout0 .displaycatTitle
{
    font-weight: bold;
    font-size: 2rem;
    overflow: hidden;
    white-space: pre-wrap;
    padding: 0.25rem;
    background-color: #222;
    color: #DDD;
    height: 3rem;
    position: absolute;
    width: 98%;
    left: 1%;
    bottom: calc(14% + 0.25rem);
}

#layout0 .infoButton
{
    font-size: 2rem;
    display: inline;
    margin-left: 0.5rem;
}

#layout0 .menusubtitle, #layout0 .displaycatSubtitle
{
    font-size: 2rem;
    width: 100%;
    overflow: hidden;
    text-align: left;
    color: #FFF;
    white-space: normal;
}

#layout0 .menuprice
{
    text-align: center;
    color: #000;
}

/*@media all and (orientation: portrait)*/
@media all
{
    /* Menu entries */
    #layout0 #menuentries
    {
        height: 100%;
        display: flex;
        /*flex-wrap: wrap;
        justify-content: space-around;
        justify-content: space-evenly;
        align-content: space-evenly;*/
        width: 100%;
    }

    #layout0 .displaycatEntry
    {
        min-height: 30%;
        width: 98%;
        border-radius: 0.1rem;
        -moz-border-radius: 0.1rem;
        -webkit-border-radius: 0.1rem;
        margin-top: 0.5rem;
        overflow: hidden;
    }

    #layout0 .menuentry
    {
        height: 100%;
        flex: auto;
        /*flex-basis: 35rem;*/
        flex-grow: 0;
        flex-shrink: 0;
        /*margin-right: 0.5rem;*/
        width: 100%;
        -webkit-animation-name: fade;
        -webkit-animation-duration: 1s;
        animation-name: fade;
        animation-duration: 1s;
    }

    #layout0 .displaycatImage
    {
        float: left;
        width: 40%;
        /*height: 100%;*/
        display: flex;
    }

    #layout0 .menuimage
    {
        width: 100%;
        height: 100%;
    }

    #layout0 .menudetails, #layout0 .menubuttons
    {
        height: 14%;
        position: absolute;
        bottom: 0.25rem;
    }

    #layout0 .menudetails
    {
        background-color: #646464;
        background-color: rgba(100, 100, 100, 0.7);
        background: -webkit-gradient(linear, 0 100%, 0 0%, from(#323232), to(#646464));
        background: -webkit-gradient(linear, 0 100%, 0 0%, from(rgba(50, 50, 50, 0.7)), to(rgba(100, 100, 100, 0.7)));
        border-radius: 0.25rem;
        -moz-border-radius: 0.25rem;
        -webkit-border-radius: 0.25rem;
        padding: 0.25rem;
        width: 98%;
        left: 1%;
    }

    #layout0 .menubuttons
    {
        right: 1rem;
    }

    /* alternatively set style="background:url(<url>) no-repeat center center;" */
    #layout0 .imagecontainer
    {
        /*height: 94%;
        width: 94%;
        margin: 3%;*/
        height: 100%;
        width: 100%;
    }

    #layout0 .imagecontainer>img
    {
        position: relative;
        height: auto;
        width: auto;
        max-height: 100%;
        max-width: 100%;
    }

    #layout0 .imagecontainer>img:after
    {
        content: "";
        background: -webkit-radial-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.7));
        height: 100%;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }

    #layout0 .imagecontainer .imageoverlay
    {
        /*background: -webkit-radial-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.7));*/
        height: 100%;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }

    #layout0 .displaycatImage .imagecontainer
    {
        height: 94%;
        width: 94%;
        margin: 3%;
        max-height: 10rem;
    }

    #layout0 .displaycatDetails
    {
        float: left;
        width: 100%;
        height: auto;
        min-height: 5rem;
        background-color: #646464;
        background-color: rgba(100, 100, 100, 0.7);
        /*background: -webkit-gradient(linear, 0 100%, 0 0%, from(#323232), to(#646464));
        background: -webkit-gradient(linear, 0 100%, 0 0%, from(rgba(50, 50, 50, 0.7)), to(rgba(100, 100, 100, 0.7)));*/
        background: -webkit-radial-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.7));
        /*
        https://webkit.org/blog/1424/css3-gradients/
        background: -webkit-radial-gradient(rgba(50, 50, 50, 0.3), rgba(100, 100, 100, 0.3));
        background: -webkit-linear-gradient(left, rgba(50, 50, 50, 0.7), rgba(100, 100, 100, 0.7));
        background: -webkit-repeating-radial-gradient(top left, circle, rgba(255,255,255,0.7), rgba(0,0,0,0.7) 10%, rgba(255,255,255,0.7) 20%);
        */
    }

    #layout0 .displaycatEntryList
    {
        width: 100%;
    }

    #layout0 .menusubtitle
    {
        height: calc(100% - 2rem);
    }

    #layout0 .displaycatSubtitle
    {
        height: 3.5rem;
        width: 98%;
        margin: 0 auto;
    }

    #layout0 .menuprice
    {
        height: 2rem;
        width: calc(100% - 5rem);
        color: #FFF;
        text-align: left;
    }
}

/* view mode styling START */
#layout0 .listView
{
    width: 100%;
    height: 100%;
    margin: 0 auto;
    background-color: #646464;
    /*background-color: rgba(100, 100, 100, 0.7);
    background: -webkit-gradient(linear, 0 100%, 0 0%, from(#323232), to(#646464));
    background: -webkit-gradient(linear, 0 100%, 0 0%, from(rgba(50, 50, 50, 0.7)), to(rgba(100, 100, 100, 0.7)));*/
    background: -webkit-radial-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.7));
}

#layout0 .extraTable
{
    table-layout: fixed;
    width: 88%;
    /*margin: 0.5%;*/
    margin: 0 auto;
    font-style: italic;
    border-collapse: collapse;
}

#layout0 .extraTable tr
{
    border-bottom: 0.1rem solid #CCC;
}

#layout0 .extraTable tr td
{
    height: 2.7rem;
    vertical-align: middle;
    white-space: nowrap;
}

#layout0 .extraTable tr td:nth-child(1)
{
    font-size: 2rem;
    overflow: hidden;
}

#layout0 .extraTable tr td:nth-child(3)
{
    font-size: 1.2rem;
}

#layout0 .extraTable tr td:nth-child(2)
{
    font-size: 1.5rem;
}

#layout0 .menuentry.viewMode0 .listView
{
    display: none;
}

#layout0 .menuentry.viewMode1 .listView
{
    display: block;
    position: relative;
}

#layout0 .menuentry.viewMode1 .menudetails
{
    display: none;
}
/* view mode styling END */

#layout0 .flag
{
    position: relative;
    /*top: 0.5rem;*/
    left: calc(100% - 4.5rem);
    width: 4rem;
}

#layout0 .flag>img
{
    padding-top: 0.5rem;
    height: auto;
    width: 100%;
}

#layout0 .flag
{
    position: relative;
    /*top: 0.5rem;*/
    left: calc(100% - 6.5rem);
    width: 6rem;
}

#layout0 .flag>img
{
    padding-top: 0.5rem;
    height: auto;
    width: 100%;
}

/*----------------------------------------------------------------------------*/
/* Layout1 */
#layout1 .menuentry
{
    width: 100%;
    height: 30%;
    background-color: #646464;
    background-color: rgba(100, 100, 100, 0.7);
    background: -webkit-gradient(linear, 0 100%, 0 0%, from(#323232), to(#646464));
    background: -webkit-gradient(linear, 0 100%, 0 0%, from(rgba(50, 50, 50, 0.7)), to(rgba(100, 100, 100, 0.7)));
}

#layout1 .menuimage
{
    height: calc(100% - 3rem);
    width: 40%;
    padding: 0.25rem;
    position: relative;
}

/*#layout1 .menutitle
{
    font-size: 1.8rem;
}*/
#layout1 .menutitle
{
    font-weight: bold;
    font-size: 2rem;
    overflow: hidden;
    white-space: pre-wrap;
    padding: 0.25rem;
    background-color: #222;
    color: #DDD;
    height: 3rem;
    width: 100%;
}

#layout1 .menusubtitle
{
    font-size: 2rem;
}

#layout1 .menusubtitle
{
    font-size: 2rem;
}

#layout1 .menuimage video
{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    padding: 0.25rem;
}

#layout1 .imagecontainer
{
    height: 100%;
    width: 100%;
}

#layout1 .menuentry>*
{
    float: left;
}

#layout1 .menudetails, #layout1 .menuentry.viewMode1 .listView
{
    width: 60%;
    height: calc(100% - 3rem);
    position: relative;
}

#layout1 .menuprice
{
    position: absolute;
    left: 0.5rem;
    bottom: 1rem;
}

#layout1 .menubuttons
{
    flex-direction: row;
    position: absolute;
    bottom: 1rem;
    right: 0.5rem;
}

#layout1 .menubuttons>*
{
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 3.5rem;
}

/*----------------------------------------------------------------------------*/
/* Layout2 */
#layout2 .menuentry
{
    width: 100%;
    height: 9rem;
    font-size: 1.5rem;
    background-color: #646464;
    background-color: rgba(100, 100, 100, 0.7);
    background: -webkit-gradient(linear, 0 100%, 0 0%, from(#323232), to(#646464));
    background: -webkit-gradient(linear, 0 100%, 0 0%, from(rgba(50, 50, 50, 0.7)), to(rgba(100, 100, 100, 0.7)));
}

#layout2 .menutitle
{
    padding: 0.5rem;
    background: #222;
    color: #ddd;
    font-size: 2rem;
    font-weight: bold;
}

#layout2 .imagecontainer
{
    height: 100%;
    width: 100%;
}

#layout2 .menudetails
{
    width: 100%;
    height: 100%;
    position: relative;
}

#layout2 .menusubtitle
{
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 1.8rem;
}

#layout2 .menuprice
{
    position: absolute;
    left: 0.5rem;
    bottom: 0.5rem;
}

#layout2 .menubuttons
{
    flex-direction: row;
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
}

#layout2 .menubuttons>*
{
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 3.5rem;
}

/*----------------------------------------------------------------------------*/
/* Layout3 */
#layout3 .menuentry
{
    display: block;
    margin: 0 auto;
    border: 0.1rem solid white;

    background-color: #646464;
    background-color: rgba(100, 100, 100, 0.7);
    background: -webkit-gradient(linear, 0 100%, 0 0%, from(#323232), to(#646464));
    background: -webkit-gradient(linear, 0 100%, 0 0%, from(rgba(50, 50, 50, 0.7)), to(rgba(100, 100, 100, 0.7)));
    border-radius: 0.25rem;
    -moz-border-radius: 0.25rem;
    -webkit-border-radius: 0.25rem;
    overflow: hidden;
    position: relative;
}

#layout3 .menuentry video
{
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0%;
    object-fit: cover;
}

#layout3 .menubuttons>*
{
    font-size: 2rem;
}

#layout3 .menuimage
{
    position: relative;
}

/* alternatively set style="background:url(<url>) no-repeat center center;" */
#layout3 .imagecontainer
{
    display: inline-block;
    /*width: auto;*/

    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    border: 0.1rem solid white;
    border-radius: 0.25rem !important;
    -webkit-border-radius: 0.25rem !important;
    -moz-border-radius: 0.25rem !important;
}

#layout3 .menutitle
{
    position: absolute;
    width: 98%;
    padding-left: 0.25rem;
    margin-left: 1%;
    /*text-align: center;*/
    font-weight: bold;
    font-size: 1.6rem;
    overflow: hidden;
    white-space: nowrap;
}

#layout3 .menusubtitle
{
    font-size: 1.4rem;
    width: 100%;
    overflow: hidden;
}

#layout3 .menuprice
{
    text-align: right;
    position: absolute;
    right: 4rem;
    bottom: 0.5rem;
}

@media all and (orientation: landscape)
{
    #layout3 #menuentries
    {
        width: 100%;
    }

    #layout3 .menuentry
    {
        height: 100%;
        display: inline-block;
    }

    #layout3 .menuimage
    {
        width: 95%;
        height: 78%;
        margin: 0 auto;
    }

    #layout3 .imagecontainer
    {
        height: 100%;
        width: 100%;
    }

    #layout3 .menudetails, #layout3 .menubuttons
    {
        height: 17%;
        position: absolute;
        bottom: 0;
    }

    #layout3 .menudetails
    {
        left: 1%;
        width: 98%;
        background-color: #646464;
        background-color: rgba(100, 100, 100, 0.7);
        background: -webkit-gradient(linear, 0 100%, 0 0%, from(#323232), to(#646464));
        background: -webkit-gradient(linear, 0 100%, 0 0%, from(rgba(50, 50, 50, 0.7)), to(rgba(100, 100, 100, 0.7)));
        border-radius: 0.25rem;
        -moz-border-radius: 0.25rem;
        -webkit-border-radius: 0.25rem;
        padding: 0.25rem
    }

    #layout3 .menubuttons
    {
        right: 2%;
    }

    #layout3 .menutitle
    {
        max-width: 100%;
        height: 5%;
        background-color: #646464;
        background-color: rgba(100, 100, 100, 0.7);
        background: -webkit-gradient(linear, 0 100%, 0 0%, from(#323232), to(#646464));
        /*background: -webkit-gradient(linear, 0 100%, 0 0%, from(rgba(50, 50, 50, 0.7)), to(rgba(100, 100, 100, 0.7)));*/
        overflow: visible;
    }

    #layout3 .menusubtitle
    {
        height: 58%;
        overflow: hidden;
    }
}
/*----------------------------------------------------------------------------*/
/* Layout4 */
#layout4 .menuentry
{
    display: block;
    margin: 0 auto;
    border: 0.1rem solid white;

    background-color: #646464;
    background-color: rgba(100, 100, 100, 0.7);
    background: -webkit-gradient(linear, 0 100%, 0 0%, from(#323232), to(#646464));
    background: -webkit-gradient(linear, 0 100%, 0 0%, from(rgba(50, 50, 50, 0.7)), to(rgba(100, 100, 100, 0.7)));
    border-radius: 0.25rem;
    -moz-border-radius: 0.25rem;
    -webkit-border-radius: 0.25rem;
    overflow: hidden;
    position: relative;
}

#layout4 .menubuttons>*
{
    font-size: 2rem;
}

#layout4 .menuimage
{
    position: relative;
}

#layout4 .menuimage video
{
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* alternatively set style="background:url(<url>) no-repeat center center;" */
#layout4 .imagecontainer
{
    display: inline-block;
    /*width: auto;*/

    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    border: 0.1rem solid white;
    border-radius: 0.25rem !important;
    -webkit-border-radius: 0.25rem !important;
    -moz-border-radius: 0.25rem !important;
}

#layout4 .menutitle
{
    text-align: center;
    font-weight: bold;
    font-size: 1.6rem;
    overflow: hidden;
    white-space: nowrap;
}

#layout4 .menusubtitle
{
    font-size: 1.4rem;
    width: 100%;
    overflow: hidden;
}

#layout4 .menuprice
{
    text-align: right;
    position: absolute;
    right: 1rem;
    bottom: 1rem;
}

@media all and (orientation: landscape)
{
    #layout4 #menuentries
    {
        width: 100%;
    }

    #layout4 .menuentry
    {
        height: 100%;
        display: inline-block;
        width: 100%;
    }

    #layout4 .menuimage
    {
        width: 95%;
        height: 78%;
    }

    #layout4 .imagecontainer
    {
        height: 100%;
        width: 100%;
    }

    #layout4 .menudetails, #layout4 .menuimage, #layout4 .listView
    {
        float: left;
        width: 50%;
        height: 100%;
    }

    #layout4 .menubuttons
    {
        position: absolute;
        bottom: 3rem;
        right: 1rem;
    }

    #layout4 .menudetails
    {
        background-color: #646464;
        background-color: rgba(100, 100, 100, 0.7);
        background: -webkit-gradient(linear, 0 100%, 0 0%, from(#323232), to(#646464));
        background: -webkit-gradient(linear, 0 100%, 0 0%, from(rgba(50, 50, 50, 0.7)), to(rgba(100, 100, 100, 0.7)));
        border-radius: 0.25rem;
        -moz-border-radius: 0.25rem;
        -webkit-border-radius: 0.25rem;
        padding: 0.25rem
    }

    #layout4 .menutitle
    {
        max-width: 100%;
        height: 5%;
        background-color: #646464;
        background-color: rgba(100, 100, 100, 0.7);
        background: -webkit-gradient(linear, 0 100%, 0 0%, from(#323232), to(#646464));
        /*background: -webkit-gradient(linear, 0 100%, 0 0%, from(rgba(50, 50, 50, 0.7)), to(rgba(100, 100, 100, 0.7)));*/
        overflow: visible;
    }

    #layout4 .menusubtitle
    {
        height: 58%;
        overflow: hidden;
    }
}

/*----------------------------------------------------------------------------*/
/* Layout5 */
#layout5 .menuentry
{
    display: block;
    margin: 0 auto;
    border: 0.1rem solid white;

    background-color: #646464;
    background-color: rgba(100, 100, 100, 0.7);
    background: -webkit-gradient(linear, 0 100%, 0 0%, from(#323232), to(#646464));
    background: -webkit-gradient(linear, 0 100%, 0 0%, from(rgba(50, 50, 50, 0.7)), to(rgba(100, 100, 100, 0.7)));
    border-radius: 0.25rem;
    -moz-border-radius: 0.25rem;
    -webkit-border-radius: 0.25rem;
    overflow: hidden;
    position: relative;
}

#layout5 .menubuttons>*
{
    font-size: 2rem;
}

#layout5 .menuimage
{
    position: relative;
}

#layout5 .menuimage video
{
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* alternatively set style="background:url(<url>) no-repeat center center;" */
#layout5 .imagecontainer
{
    display: inline-block;
    /*width: auto;*/

    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    border: 0.1rem solid white;
    border-radius: 0.25rem !important;
    -webkit-border-radius: 0.25rem !important;
    -moz-border-radius: 0.25rem !important;
}

#layout5 .menutitle
{
    text-align: center;
    font-weight: bold;
    font-size: 1.6rem;
    overflow: hidden;
    white-space: nowrap;
}

#layout5 .menusubtitle
{
    font-size: 1.4rem;
    width: 100%;
    overflow: hidden;
}

#layout5 .menuprice
{
    text-align: right;
    position: absolute;
    right: 1rem;
    bottom: 1rem;
}

@media all and (orientation: landscape)
{
    #layout5 #menuentries
    {
        width: 100%;
    }

    #layout5 .menuentry
    {
        height: 100%;
        display: inline-block;
        width: 100%;
    }

    #layout5 .menuimage
    {
        width: 95%;
        height: 78%;
    }

    #layout5 .imagecontainer
    {
        height: 100%;
        width: 100%;
    }

    #layout5 .menudetails, #layout5 .menuimage, #layout5 .listView
    {
        float: left;
        width: 50%;
        height: 100%;
    }

    #layout5 .menubuttons
    {
        position: absolute;
        bottom: 3rem;
        right: 1rem;
    }

    #layout5 .menudetails
    {
        background-color: #646464;
        background-color: rgba(100, 100, 100, 0.7);
        background: -webkit-gradient(linear, 0 100%, 0 0%, from(#323232), to(#646464));
        background: -webkit-gradient(linear, 0 100%, 0 0%, from(rgba(50, 50, 50, 0.7)), to(rgba(100, 100, 100, 0.7)));
        border-radius: 0.25rem;
        -moz-border-radius: 0.25rem;
        -webkit-border-radius: 0.25rem;
        padding: 0.25rem
    }

    #layout5 .menutitle
    {
        max-width: 100%;
        height: 5%;
        background-color: #646464;
        background-color: rgba(100, 100, 100, 0.7);
        background: -webkit-gradient(linear, 0 100%, 0 0%, from(#323232), to(#646464));
        /*background: -webkit-gradient(linear, 0 100%, 0 0%, from(rgba(50, 50, 50, 0.7)), to(rgba(100, 100, 100, 0.7)));*/
        overflow: visible;
    }

    #layout5 .menusubtitle
    {
        height: 58%;
        overflow: hidden;
    }
}

/*----------------------------------------------------------------------------*/
.separator
{
    height: 1%;
    width: 100%;
    margin: 0 auto;
}

.logoimage, #restaurantLogo
{
    height: auto;
    /*height: 100%;*/
    width: auto;
    max-height: 100%;
    /*max-width: 100%;*/
}

#restaurantLogo
{
    padding: 0.2rem;
}

/* Menu categories */
#maincategorySelection
{
    padding-top: 1%;
    display: -ms-flex;
    display: -webkit-flex;
    display: flex;
    width: 100%;
    height: 90%;
    flex-wrap: wrap;
    justify-content: space-around;
}

#maincategorySelection .menucatButton
{
    flex-basis: 25%;
    height: 33%;
    flex-grow: 0;
    flex-shrink: 0;
    text-align: center;

    padding: 0.5rem;
}

@media all and (orientation: portrait)
{
    #maincategorySelection .menucatButton
    {
        flex-basis: 50%;
        height: 20%;
    }
}

#maincategorySelection .menucategory
{
    position: relative;
    display: block;
    height: 85%;
    cursor: pointer;
    /*background-color: #CCCCCC;
    background: -webkit-gradient(linear, 0 100%, 0 0%, from(#FFFFFF), to(#AAAAAA));*/

}

#maincategorySelection .menucategory>img
{
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    vertical-align: middle;
}

#maincategorySelection .menucatButton .menuTitle
{
    display: inline-block;
    font-size: 2rem;
    overflow: hidden;

    padding: 0;
    margin: 0;
    /*padding: 0.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    border-radius: 0.25rem;*/
    background-color: #646464;
    background-color: rgba(100, 100, 100, 0.7);
    background: -webkit-gradient(linear, 0 100%, 0 0%, from(#323232), to(#646464));
    /* background: -webkit-gradient(linear, 0 100%, 0 0%, from(rgba(50, 50, 50, 0.7)), to(rgba(100, 100, 100, 0.7))); */

    position: relative;
    bottom: 0;
    width: 100%;
}

#subcategorySelection .menucatButton
{
    float: left;
    height: 33%;
    text-align: center;
}

#subcategorySelection .menucategory
{
    position: relative;
    display: block;
    height: 100%;
    cursor: pointer;
    /*background-color: #CCCCCC;
    background: -webkit-gradient(linear, 0 100%, 0 0%, from(#FFFFFF), to(#AAAAAA));*/
    margin-right: 0.25rem;
}

#subcategorySelection .menucategory>img
{
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    vertical-align: middle;
    border-radius: 0.25rem;
    border: 0.1rem solid #FFF;
}

#subcategorySelection .menucatButton>p
{
    position: absolute;
    bottom: 2rem;
    font-size: 2rem;
    overflow: hidden;

    padding: 0;
    margin: 0;
    border-radius: 0.25rem;
    background-color: #646464;
    background-color: rgba(100, 100, 100, 0.7);
    background: -webkit-gradient(linear, 0 100%, 0 0%, from(#323232), to(#646464));
    /* background: -webkit-gradient(linear, 0 100%, 0 0%, from(rgba(50, 50, 50, 0.7)), to(rgba(100, 100, 100, 0.7))); */
    top: calc(100% - 2.5rem);
}

.selected
{
    cursor: not-allowed !important;
}

.selected>p
{
    color: #000;
    font-weight: bold;

    /* .whiteTextBorder */
    text-shadow: 1px 1px 0 #FFF,
    -1px 1px 0 #FFF,
    1px -1px 0 #FFF,
    -1px -1px 0 #FFF,
    0 1px 0 #FFF,
    0 -1px 0 #FFF,
    -1px 0 0 #FFF,
    1px 0 0 #FFF,
    2px 2px 0 #FFF,
    -2px 2px 0 #FFF,
    2px -2px 0 #FFF,
    -2px -2px 0 #FFF,
    0 2px 0 #FFF,
    0 -2px 0 #FFF,
    -2px 0 0 #FFF,
    2px 0 0 #FFF,
    1px 2px 0 #FFF,
    -1px 2px 0 #FFF,
    1px -2px 0 #FFF,
    -1px -2px 0 #FFF,
    2px 1px 0 #FFF,
    -2px 1px 0 #FFF,
    2px -1px 0 #FFF,
    -2px -1px 0 #FFF;
}

.menucategory>p
{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    vertical-align: middle;
    font-size: 2rem;
    overflow: hidden;

    padding: 0;
    margin: 0;
}

#buttonRow
{
    height: 10%;
    width: 100%;
    text-align: center;
}

.styledHR
{
    margin: 0 auto;
    margin-bottom: 0.1rem;
    width: 75%;
    height: 1rem;
    border: 0.1rem solid #FFFFFF;

    background-color: #646464;
    background-color: rgba(100, 100, 100, 0.7);
    background: -webkit-gradient(linear, 0 100%, 0 0%, from(#323232), to(#646464));
    background: -webkit-gradient(linear, 0 100%, 0 0%, from(rgba(50, 50, 50, 0.7)), to(rgba(100, 100, 100, 0.7)));
    border-radius: 0.1rem;
    -moz-border-radius: 0.1rem;
    -webkit-border-radius: 0.1rem;
}

.logoimage
{
    border-radius: 0.25rem;
    border: 0.1rem solid #000;
}

#showBasket, #showMenu, #logoImage
{
    float: right;
    position: relative;
    margin-right: 0.25rem;
}

#showBasket, #showMenu
{
    height: 100%;
    color: #ddd;
}

#logoImage
{
    max-width: 5rem;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

#showBasket
{
    background-color: #161c20;
}

#showMenu
{
    background-color: #223023;
}

#showBasket>p
{
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    font-size: 2rem;
    padding: 0.1rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    background-color: #222;
    color: #ddd;
    border: 0.1rem solid #ddd;
    border-radius: 0.2rem;
    z-index: 999999999;
}

#languageSelect
{
    display: none;
}

.orderbuttons
{
    height: 100%;
}

@media all and (orientation: portrait)
{
    .orderbuttons
    {
        float: left;
    }
}

@media all and (orientation: landscape)
{
    .orderbuttons
    {
        float: right;
        margin-right: 1%;
    }
}

.placeOrder
{
    cursor: pointer;
}

/* Order accepted stuff START */
#orderAcceptedArea>table
{
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
}
/* Order accepted stuff END */
/* Basket stuff START */
#basketArea, #orderAcceptedArea
{
    position:   absolute;
    width: 100%;
    height: 93%;
}

#orderAcceptedArea
{
    text-align: center;
}

@media all and (orientation:landscape)
{
    #basketArea, #orderAcceptedArea
    {
        height: 90%;
    }
}

#basketListWrapper
{
    height:     80%;
    width:      100%;
}

#basketMessage
{
    height: 10%;
    margin: 0 auto;
    width: 98%;
    padding: 0.5rem;
}

#basketMessage textarea
{
    width: 100%;
    height: 100%;
    font-size: 1rem;
}

select
{
    height: 2rem;
    font-size: 1.5rem
}

#orderAccepted
{
    position: relative;
    top: 1%;
    max-height: 98%;
    width: 96%;
    margin-left: 2%;
    padding: 0.5rem;
    background-color: #646464;
    background-color: rgba(100, 100, 100, 0.95);
    background: -webkit-gradient(linear, 0 100%, 0 0%, from(#323232), to(#646464));
    background: -webkit-gradient(linear, 0 100%, 0 0%, from(rgba(50, 50, 50, 0.95)), to(rgba(100, 100, 100, 0.95)));
    border-radius: 0.1rem;
    -moz-border-radius: 0.1rem;
    -webkit-border-radius: 0.1rem;
    color: #FFF;
}

#orderAccepted
{
    display: none;
}

#orderAccepted table
{
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 2rem;
    vertical-align: middle;
}

.table
{
    display: table;
}

.tr
{
    display: table-row;
}

.td
{
    display: table-cell;
    vertical-align: middle;
}

svg
{
    height: 5rem;
    width: 5rem;
    float: left;
}

.svg-container
{
    margin: 0 auto;
    width: 15rem;
}

#basketList
{
    height: 100%;
}

#basketList .table
{
    position: relative;
    top: 1%;
    left: 2%;
    width: 96%;
    max-height: 98%;
    font-size: 1.2rem;
}

#basketList .table .th
{
    font-size: 1.5rem;
    font-weight: bold;
    position: static;
    text-align: center;
}

.ingredientsEntry
{
    font-size: 1rem;
}

.ingredientsTitle
{
    padding-left: 0.8rem;
}

#basketButtonRow
{
    width: 100%;
    /*height: 20%;*/
    text-align: center;
    font-weight: bold;
}

/*@media all and (orientation:landscape)
{
    #basketButtonRow
    {
        height: 27%;
    }
}*/

#basketButtonRow>div
{
    width: 30%;
    display: inline-block;
}

#orderAcceptedButtonRow>div
{
    display: inline-block;
}

#basketButtonRow>p
{
    font-size: 3rem;
}

#currentSum, #discountSum, #olderSum, #totalSum
{
    text-align: right;
}

.basketEntry
{
    /*height: 4rem;*/
}

.buttonIncElement, .buttonDecElement, .menuCount
{
    position: relative;
    height: 100%;
    float: left;
    text-align: center;
    cursor: pointer;
    width: 30%;
}

.buttonDecElement>p, .buttonIncElement>p, .menuCount>p
{
    margin: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    /* vertical align text in p */
    padding: 0.1rem;
    font-size: 2rem;
}

.buttonIncElement, .buttonDecElement, #backToCartButton, #cancelCartButton, #submitOrderButton, .deliverySelect, .paymentSelect, #loginCustomer
{
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 0.25rem;
    -moz-border-radius: 0.25rem;
    -webkit-border-radius: 0.25rem;
    min-width: 2rem;
    border: 0.1rem solid #ddd;
    padding: 0.5rem;
}

#loginCustomer
{
    width: 50% !important;
}
/* Basket stuff END */

.basketTitle
{
    font-size: 1.5rem;
}

.course_select
{
    font-size: 1.2rem;
}

.wineBackground
{
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#800220+0,6c021a+44,520013+100 */
    background: rgb(128,2,32); /* Old browsers */
    background: -moz-linear-gradient(-45deg, rgba(128,2,32,1) 0%, rgba(108,2,26,1) 44%, rgba(82,0,19,1) 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(-45deg, rgba(128,2,32,1) 0%,rgba(108,2,26,1) 44%,rgba(82,0,19,1) 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(135deg, rgba(128,2,32,1) 0%,rgba(108,2,26,1) 44%,rgba(82,0,19,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#800220', endColorstr='#520013',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}

/* Filters START */
#filterRow
{
    /*position: absolute;
    top: 0px;*/
    width: 100%;
    height: 10%;
    text-align: center;
    display: -ms-flex;
    display: -webkit-flex;
    display: flex;
    justify-content: center;
    background-color: #646464;
    background-color: rgba(100, 100, 100, 0.7);
    background: -webkit-gradient(linear, 0 100%, 0 0%, from(#323232), to(#646464));
    background: -webkit-gradient(linear, 0 100%, 0 0%, from(rgba(50, 50, 50, 0.7)), to(rgba(100, 100, 100, 0.7)));
}

.filterGroupSelect
{
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 5%;
    height: 100%;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.filterGroupSelect>p
{
    padding: 0;
    margin: 0;
    height: 25%;
    font-weight: bold;
}

.filterGroupSelect>p+div
{
    height: 75%;
    display: -ms-flex;
    display: -webkit-flex;
    display: flex;
    justify-content: center;
    width: 100%;
}

.filterList
{
    display: -ms-flex;
    display: -webkit-flex;
    display: flex;
    justify-content: flex-start;
    width: 100%;
    position: absolute;
    bottom: 1%;
    left: 0;
    height: 13%;
    background-color: #646464;
    background-color: rgba(100, 100, 100, 1);
    background: -webkit-gradient(linear, 0 100%, 0 0%, from(#323232), to(#646464));
    background: -webkit-gradient(linear, 0 100%, 0 0%, from(rgba(50, 50, 50, 1)), to(rgba(100, 100, 100, 1)));
    z-index: 2;
    white-space: nowrap
}

.filter, .setFilter
{
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 5%;
    height: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.filter:first-child
{
    padding-left: 0;
}

.filter:last-child
{
    padding-right: 0;
}

.filter>img, .setFilter>img
{
    height: 75%;
    padding-top: 5%;
}

.filter>p, .setFilter>p
{
    padding: 0;
    margin: 0;
    height: 25%;
    font-size: 1rem;
    overflow: hidden;
    white-space: nowrap;
}
/* Filters END */

/* view mode styling START */
.listView
{
    width: 100%;
    height: 95%;
    margin: 0 auto;
    background-color: #646464;
    background-color: rgba(100, 100, 100, 0.7);
    background: -webkit-gradient(linear, 0 100%, 0 0%, from(#323232), to(#646464));
    background: -webkit-gradient(linear, 0 100%, 0 0%, from(rgba(50, 50, 50, 0.7)), to(rgba(100, 100, 100, 0.7)));
}

.extraTable
{
    table-layout: fixed;
    width: 99%;
    margin: 0.5%;
    font-style: italic;
}

.extraTable tr td
{
    height: 2.7rem;
    vertical-align: middle;
    white-space: nowrap;
}

.extraTable tr td:nth-child(1)
{
    font-size: 1.7rem;
    overflow: hidden;
}

.extraTable tr td:nth-child(3)
{
    font-size: 1.2rem;
}

.extraTable tr td:nth-child(2)
{
    font-size: 1.5rem;
}

.extraTable tr.ingredientInfo
{
    /*text-decoration: underline;*/
}

.viewMode0 .listView, .viewMode1 .menubuttons
{
    display: none;
}

#layout3 .viewMode1 .listView
{
    position: absolute;
}
/* view mode styling END */

.imageButtonReplacement
{
    height: 92%;
    min-width: 5rem;
    border: 0.1rem solid #FFFFFF;
    border-radius: 0.25rem;
    -moz-border-radius: 0.25rem;
    -webkit-border-radius: 0.25rem;
    font-size: 1.5rem;
}

#splashArea
{
    background-color: #000;
    position: relative;
    height: 100%;
    width: 100%;
}

#splashLogo
{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 70%;
    max-width: 70%;
}

#searchForm
{
    float: left;
}

#searchbox
{
    position: absolute;
    top: 1.5rem;
    left: 50%;
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    width: 40%;
}

#searchbox>*
{
    display: inline-block;
    font-size: 1.5rem;
}

#searchbox>input
{
    width: 75%;
}

#searchbox>span
{
    color: #FFF;
}

#searchbox>button
{
    display: none;
    min-width: 0;
}

.contextMenu
{
    position: absolute;
    top: 100%;
    right: 0;
    background: #222;
    border: 0.1rem solid #222;
    z-index: 999;
    text-align: center;
}

.contextMenu>div
{
    padding: 0.25rem;
}

.contextMenu>div>button
{
    width: 80%;
    font-size: 1.5rem;
}

.contextMenu .button
{
    border-color: #222;
}

#flyerContent
{
    height: calc(100% - 8rem);
    position: relative;
    font-size: 1.2rem;
    border: 0.1rem solid #fff;
}

/* new basket buttons */
#deliveryRow, #paymentRow
{
    text-align: center;
    /*height: 10%;*/
}

.deliverySelect, .paymentSelect
{
    border: 0.1rem solid #fff !important;
}

#deliveryRow>div, #paymentRow>div
{
    width: 100%;
    font-size: 2rem;
}

#deliveryRow>p, #paymentRow>p
{
    margin: 0;
    padding: 0;
    font-size: 1.7rem;
}

#deliveryButtons>div, #paymentButtons>div
{
    margin-top: 1rem;
    width: 48%;
    display: inline-block;
}

#loggedInAs
{
    font-size: 1rem;
}

#basketEmpty
{
    font-size: 3rem;
}