:root {
    /*Primary Colours*/
    --primary-color-h: 207;
    --primary-color-s:  100%;
    --primary-color-l:  17%;
    --primary-text: hsl(0, 0%, 100%);
    --primary-color: hsl(var(--primary-color-h), var(--primary-color-s), var(--primary-color-l));
    --primary-shade: hsl(var(--primary-color-h), var(--primary-color-s), calc(var(--primary-color-l) - 3%));
    --primary-darker: hsl(var(--primary-color-h), var(--primary-color-s), calc(var(--primary-color-l) - 7%));
    --primary-lighter: hsl(var(--primary-color-h), var(--primary-color-s), calc(var(--primary-color-l) + 7%));
    /*Secondary Colours*/
    --secondary-color-h: 207;
    --secondary-color-s:  80%;
    --secondary-color-l:  30%;
    --secondary-text: hsl(0, 0%, 100%);
    --secondary-color: hsl(var(--secondary-color-h), var(--secondary-color-s), var(--secondary-color-l));
    --secondary-shade: hsl(var(--secondary-color-h), var(--secondary-color-s), calc(var(--secondary-color-l)) -3%);
    --secondary-darker: hsl(var(--secondary-color-h), var(--secondary-color-s), calc(var(--secondary-color-l)) -7%);
    --secondary-lighter: hsl(var(--secondary-color-h), var(--secondary-color-s), calc(var(--secondary-color-l) + 7%));
}
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

body {
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
    background-color: #fbfbfb;
}

.hidden {
    display: none !important;
}

#menu_not_found {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    margin: auto;
    height: 90vh;
}

    #menu_not_found > div {
        margin: auto;
    }

    #menu_not_found img {
        max-width:70vw;
    }

header#page_header {
    text-align: center;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
}

header h1, header h2 {
    font-weight: 300;
}

header h2 {
    font-size: 1em;
}

header img {
    max-width: 50%;
    margin: auto;
}

header .key {
    font-size: 0.7em;
    display: flex;
    justify-content: space-between;
}

    header .key svg {       
        margin-left: 5px;
    }

    header .key .suitablefor {
        color: #5cb85c;
    }

#filters.sticky {
    position: fixed;
    background-color: #fff;
    top: 0px;
    left: 0;
    right: 0;
    padding: 10px 10px 0px 10px;
    z-index: 1;
}

#filters .label_control {
    all: unset;
    margin: 5px;
    padding: 10px;
    border-radius: 10px;
    background-color: #efefef;
    cursor: pointer;
    vertical-align: middle;
}

    #filters .label_control svg {
        display: none;
    }

    #filters .label_control.active {
        font-size: 1.2em;
        display: flex;
    }

        #filters .label_control.active svg {
            display: block;
            margin: auto 5px;
        }

#filters #filter_allergens .label_control.active {
    border: 1px solid red;
}

#filters #filter_diet .label_control.active {
    border: 1px solid green;
}

#filters #filter_allergens .label_control.active svg {
    color: red;
}

#filters #filter_diet .label_control.active svg {
    color: green;
}

#filterOpen {
    display: flex;
    justify-content: center;
    flex-wrap:wrap;
    padding:20px;
}

.count {
    font-size: 0.7em;
    position: absolute;
    right: 0;
    top: 0;
    margin: 0;
    background-color: red;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    color: white;
    font-weight: 900;
    display:flex;
}
.count p{
    margin:auto;
}

#filters .filter_section {
    display: flex;
    flex-wrap: wrap;
    white-space: nowrap;
    flex-grow: 1;
    position: relative;
}

#filter_allergens, #filter_diet {
    display: flex;
    flex-wrap: wrap;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    height: 0;
}

#maximise_filter_allergens, #maximise_filter_diet {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-weight: 400;
    min-width: 80px;
}

    #maximise_filter_allergens.active, #maximise_filter_diet.active {
        border: 1px solid var(--primary-color);
    }

#filter_allergens.active, #filter_diet.active {
    transition: all 1s;
    height: auto;
    visibility: visible;
    opacity: 1;
    border-radius: 7px;
    /*background: #fff;*/
}

#filters .filter_section h3 {
    width: 100%;
    background: #efefef;
    padding: 10px;
    border-radius: 7px;
    margin: 0;
    margin: 5px 5px 0 0;
}

#filters button[type=submit] {
    padding: 10px;
}

#menu {
    text-align: center;
    max-width: 1200px;
    margin: auto;
}

.category {
    /*border: 1px dashed #000;*/
    padding: 5px;
}

    .category h3 {
        border: 1px solid var(--primary-color);
        padding: 10px;
    }

    .category .menu_item {
        text-align: left;
        padding: 10px;
        border-radius: 7px;
        overflow: hidden;
        flex-grow:1;
    }

        .category .menu_item:nth-of-type(even) {
            background-color: #efefef;
        }

        .category .menu_item ul {
            list-style: none;
            display: inline-flex;
        }

        .category .menu_item li:after {
            content: ', ';
        }

.menu_item.unfocus {
    opacity: 0.3;
    display: flex;
    padding-left: 0;
}

.menu_item .unfocus_icon {
    display: none;
}

.menu_item.unfocus .unfocus_icon {
    margin: auto 5px auto 0;
    display: initial;
    font-size: 1.5em;
}

.menu_item .highlight{
    font-weight:600;
}

.menu_item .contains, .menu_item .may_contain{
    margin:10px;
}

.may_contain_text, .contain_text{
    width:70px;
}

.menu_item_name {
    margin: 10px 0px !important;
    font-weight:300;
    font-size:1.2em;
}

    .menu_item_name svg.suitablefor {
        color: #5cb85c;
    }

.menu_item table {
   border-spacing: 10px;
}

.menu_item table td{
    text-align:left;
}

.menu_item table td.value{
    width:100%;
}

.nutritional_info {
    display: -webkit-box;
    display: flex;
    justify-content:end;
}

    .nutritional_info > div {
        display: block;
        text-align: center;
        margin-left: 10px;
    }

    .nutritional_info div:first-of-type {
        margin-left: 0px;
    }

.nutritional_info_label {
    color: #565656;
}

#category_nav {
    background-color: var(--primary-color);
    color: var(--primary-text);
    margin: 10px -10px;
    margin-bottom: 0px;
    padding: 10px 10px;
    justify-content: space-between;
    height: 30px;
    display: flex;
    white-space: nowrap;
}

    #category_nav svg {
        margin: auto 5px;
    }

#category_nav_bar {
    display: block;
    position: absolute;
    left: 25px;
    right: 25px;
    overflow: auto;
    white-space: nowrap;
    height: 30px;
    scrollbar-width: none;
}

    #category_nav_bar::-webkit-scrollbar {
        display: none;
    }

.category_link {
    display: inline-block;
    padding: 5px;
    color: #fff;
    text-decoration: none;
}

.search {
    display: flex;
    padding-top: 4px;
    max-width: 50%;
    min-width: 40%;
}

    .search form {
        color: #555;
        display: flex;
        padding: 2px;
        border: 1px solid #555;
        border-radius: 5px;
        margin: 0 0 30px;
        margin: auto;
        flex-grow: 1;
    } 

input[type="search"] {
    border: none;
    background: transparent;
    margin: 0;
    padding: 7px 8px;
    font-size: 14px;
    color: inherit;
    border: 1px solid transparent;
    border-radius: inherit;
}

    input[type="search"]::placeholder {
        color: #bbb;
    }

button[type="submit"] {
    text-indent: -999px;
    overflow: hidden;
    width: 40px;
    padding: 0;
    margin: 0;
    border: 1px solid transparent;
    border-radius: inherit;
    /*background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' class='bi bi-search' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'%3E%3C/path%3E%3C/svg%3E") no-repeat center;*/
    cursor: pointer;
    opacity: 0.7;
}

    button[type="submit"]:hover {
        opacity: 1;
    }

    button[type="submit"]:focus,
    input[type="search"]:focus {
        box-shadow: 0 0 3px 0 #1183d6;
        border-color: #1183d6;
        outline: none;
    }

form.nosubmit {
    border: none;
    padding: 0;
}

input.nosubmit {
    border: 1px solid #555;
    width: 100%;
    padding: 9px 4px 9px 5px;
    /*background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' class='bi bi-search' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'%3E%3C/path%3E%3C/svg%3E") no-repeat 13px center;*/
}

#disclaimer {
    background-color: #c1c1c1;
    padding: 10px;
    margin-top: 10px;
    font-size: 0.8em;
}

@media(min-width:992px) {
    header img {
        max-width: 25%;
    }
}
