﻿/********************* Colour reference chart****************
*************************** comment ********* colour ******** 

main color light        mcl         #eadfd4
main color medium       mcm         #cdb8ab
main color dark         mcd         #553e31
background              bgc         #fffcf5

*/

@media screen {

    @font-face {
        font-family: 'Cardo';
        src: url('../Content/fonts/Cardo/cardo-regular-webfont.woff') format('woff'),
        url('../Content/fonts/Cardo/cardo-regular-webfont.ttf') format('truetype');
        font-weight: normal;
        font-style: normal;
    }

    @font-face {
        font-family: 'tangerinearegular';
        src: url('../Content/fonts/Tangerine/tangerinea-webfont.woff') format('woff'),
        url('../Content/fonts/Tangerine/tangerinea-webfont.ttf') format('truetype');
        font-weight: normal;
        font-style: normal;
    }

    @font-face {
        font-family: 'tangerineabold';
        src: url('../Content/fonts/Tangerine/tangerinea_bold-webfont.woff') format('woff'),
        url('../Content/fonts/Tangerine/tangerinea_bold-webfont.ttf') format('truetype');
        font-weight: normal;
        font-style: normal;
    }


    body {
        font-size: 14px;
        font-family: Cardo, Arial;
        color: /*mcd*/ #553e31;
        background-color: #6f5d41;
        background-image: url('../Content/images/background.jpg');
        overflow-y: scroll;
    }

    a.disabled {
        pointer-events: none;
        cursor: default;
    }


    a:link, a:visited {
        text-decoration: none;
        color: /*mcd*/ #553e31;
    }

    img {
        border: 0;
    }

    .wrapper {
        padding: 15px;
        margin: 20px auto 20px auto;
        width: 880px;
        background-color: /*bgc*/ #fffcf5;
        -moz-box-shadow: 0 0 30px #000000;
        -webkit-box-shadow: 0 0 30px #000000;
        box-shadow: 0 0 30px #000000;
        border: double; /* this one is need for Firefox to display the border */
        border-width: 40px;
        border-color: #eadfd4;
        /*-moz-border-image: url('../Content/svg/frame160x160.svg') 25% 25% 25% 25% round;
    -webkit-border-image: url('../Content/svg/frame160x160.svg') 25% 25% 25% 25% round;
    -o-border-image: url('../Content/svg/frame160x160.svg') 25% 25% 25% 25% round;
    border-image: url('../Content/svg/frame160x160.svg') 25% 25% 25% 25% round;*/
        -moz-border-image: url('../Content/svg/frame160x160.svg') 25% 25% 25% 25% round;
        -webkit-border-image: url('../Content/svg/frame160x160.svg') 25% 25% 25% 25% round;
        -o-border-image: url('../Content/svg/frame160x160.svg') 25% 25% 25% 25% round;
        border-image: url('../Content/images/frame160x160.png') 25% 25% 25% 25% round;
    }

    header, footer, nav, section {
        display: block;
    }

        header.nosearch {
            text-align: center;
            margin: 40px;
        }

        header label {
            font-size: 21px;
            font-family: tangerinearegular, Trebuchet;
            color: /*mcd*/ #553e31;
        }

        header .userbar {
            float: right;
            width: 70px;
            height: 51px;
            text-align: right;
            margin-top: 0;
        }

            header .userbar span {
                padding-left: 5px;
                padding-right: 5px;
            }

                header .userbar span#name, header .userbar span#login {
                    display: inline-block;
                    vertical-align: top;
                }

        header img#avatar {
            margin-left: -53px;
        }

        div.mainmenu img,
        div.mainmenu label {
            cursor: pointer;
        }

        header .userbar img#menu-trigger {
            cursor: pointer;
            display: inline-block;
            vertical-align: super;
            opacity: 0.4;
        }

            header .userbar img#menu-trigger:hover {
                opacity: 1.0;
            }

        /* ---------- usermenu ---------------- */

        header nav.menuwrap {
            position: relative;
            width: 152px;
        }

        header ul.menu,
        header ul.menu ul {
            position: relative;
            margin: 0;
            padding: 0;
            list-style: none;
            top: 0px;
            z-index: 2;
        }

        header ul.menu {
            position: absolute;
            display: none;
        }

        header ul#user-menu {
            left: -65px;
        }

        header ul#language-menu {
            left: 0px;
        }

            header ul.menu ul {
                position: absolute;
                top: 0px;
                left: -160px;
                margin: 0 0 0 20px;
                opacity: 0;
                visibility: hidden;
                z-index: 1;
                -moz-transition: all .2s ease-in-out;
                -o-transition: all .2s ease-in-out;
                -webkit-transition: all .2s ease-in-out;
                transition: all .2s ease-in-out;
            }

            header ul.menu li:hover > ul {
                opacity: 1;
                visibility: visible;
                margin: 0;
            }


            header ul.menu li {
                float: none;
                display: block;
            }

            header ul.menu a {
                padding-left: 10px;
                padding-right: 10px;
                width: 130px;
                display: block;
                white-space: nowrap;
                float: none;
                text-transform: none;
                text-decoration: none;
                text-align: center;
                border-left: 1px solid #cdb8ab;
                border-right: 1px solid #cdb8ab;
                background: #eadfd4;
            }

                header ul.menu a:hover {
                    color: #eadfd4;
                    background-color: #553e31;
                }

            header ul.menu li:first-child > a {
                border-radius: 3px 3px 0 0;
                border-top: 1px solid #cdb8ab;
            }

                header ul.menu li:first-child > a:after {
                    content: '';
                    position: absolute;
                    top: -6px;
                    border-left: 6px solid transparent;
                    border-right: 6px solid transparent;
                    border-bottom: 6px solid #cdb8ab;
                }

                header ul#user-menu li:first-child > a:after {
                    left: 123px;
                }

                header ul#language-menu li:first-child > a:after {
                    left: 70px;
                }

            header ul.menu ul li:first-child a:after {
                left: 150px;
                top: 50%;
                margin-top: -6px;
                border-right: 0;
                border-bottom: 6px solid transparent;
                border-top: 6px solid transparent;
                border-left: 6px solid #cdb8ab;
            }

            header ul.menu li:first-child a:hover:after {
                border-bottom-color: #cdb8ab;
            }

            header ul.menu ul li:first-child a:hover:after {
                content: '';
                position: absolute;
                left: 150px;
                top: 50%;
                border-left: 6px solid #cdb8ab;
                border-right: 6px solid transparent;
                border-bottom: 6px solid transparent;
            }

            header ul.menu li:last-child > a {
                border-radius: 0 0 3px 3px;
                border-bottom: 1px solid #cdb8ab;
            }
        /* ---------- end of usermenu ---------------- */

        header .searchbox {
            height: 175px;
            margin-top: -170px;
        }

    .searchbox #search {
        float: right;
        width: 190px;
        height: 33px;
        margin-top: -50px;
    }

    .searchbox #query {
        margin-right: 41px;
    }

    .searchbox #querySignButtons {
        position: absolute;
        margin-top: 8px;
    }


    .searchbox div#filters {
        float: right;
        width: 540px;
        height: 50px;
    }


    .searchbox #filters ul {
        margin: 0;
        padding: 0;
        list-style-type: none;
        list-style-image: none;
    }

    .searchbox #filters li {
        display: inline-block;
        /*min-width: 80px;*/
        margin: 5px 10px 5px -1px;
        padding: 0 0 0 10px;
        border: 1px solid /*mcm*/ #cdb8ab;
        text-align: justify;
    }

        .searchbox #filters li a {
            /*float: right;*/
            display: inline;
            margin-left: 5px;
            padding: 0 5px 0 5px;
            background-color: /*mcl*/ #eadfd4;
        }

            .searchbox #filters li a.disabled {
                pointer-events: none;
                cursor: default;
                opacity: 0.6;
            }

            .searchbox #filters li a:hover {
                background-color: /*mcm*/ #cdb8ab;
                text-decoration: none;
            }

            .searchbox #filters li a:focus {
                background-color: /*mcm*/ #cdb8ab;
                text-decoration: none;
                outline: none;
            }


    .searchbox #deleteall {
        float: right;
        height: 50px;
        margin-top: 12px;
    }

        .searchbox #deleteall.disabled {
            pointer-events: none;
            cursor: default;
            opacity: 0.6;
        }

    article div.tipsandticks {
        text-align: center;
        line-height: 32px;
        height: 32px;
    }

        article div.tipsandticks img {
            vertical-align: middle;
            margin-top: -8px;
            margin-right: 8px;
        }

        article div.tipsandticks span {
            padding: 10px;
        }

    hr.single {
        border: 0;
        height: 3px;
        background: url('../Content/svg/hr_single.svg') 0 0 no-repeat;
        background-position: center;
        margin: 3px;
    }

    hr.double {
        border: 0;
        height: 11px;
        background: url('../Content/svg/hr_double.svg') 0 0 no-repeat;
        background-position: center;
        margin: 2px;
    }

    hr.space {
        border: 0;
        height: 1px;
        margin: 6px;
    }

    details summary::-webkit-details-marker {
        display: none;
    }

    div.summary h1,
    details summary h1 {
        font-size: 21px;
        font-family: tangerineabold, Trebuchet;
        color: /*mcd*/ #553e31;
        text-align: center;
        margin: 0;
        background: url('../Content/svg/h1_bg.svg') 0 0 repeat-y;
        background-position: center;
    }

        details summary h1:hover, details summary h1:focus {
            outline: /*mcm*/ #cdb8ab dashed 1px;
        }

    div.summary h2,
    details summary h2 {
        font-size: 12px;
        font-family: tangerinearegular, Trebuchet;
        color: /*mcd*/ #553e31;
        float: right;
        width: auto;
        text-align: right;
        margin: -35px 10px 10px 0;
        background: transparent;
    }

    div.summary h3,
    details summary h3 {
        font-size: 12px;
        font-family: tangerinearegular, Trebuchet;
        color: /*mcd*/ #553e31;
        margin: 0;
        width: auto;
        text-align: center;
    }

    h2 {
        font-size: 21px;
        font-family: tangerineabold, Trebuchet;
        color: /*mcd*/ #553e31;
        text-align: center;
        margin-top: -8px;
        margin-bottom: 35px;
        background: url('../Content/svg/h1_bg.svg') 0 0 repeat-y;
        background-position: center;
    }


    h3 {
        font-size: 12px;
        font-family: tangerinearegular, Trebuchet;
        color: /*mcd*/ #553e31;
        width: auto;
        text-align: right;
        margin: -70px 10px 10px 0;
    }

    div.details ul,
    details ul {
        float: left;
        font-size: 21px;
        font-family: Cardo, Arial;
        color: /*mcd*/ #553e31;
        margin: 0 auto 0 auto;
        padding: 0;
        list-style-type: none;
        list-style-image: none;
    }

    details#mymenu li {
        height: 55px;
    }

    details#browser li {
        padding: 10px;
        height: 230px;
        width: 250px;
        text-align: center;
    }

    details#browser img {
        vertical-align: middle;
        max-width: 230px;
        max-height: 190px;
        padding: 10px;
    }

    details#login li {
        padding: 10px;
        height: 130px;
        width: 250px;
        text-align: center;
    }

        details#login li img {
            vertical-align: middle;
            max-width: 230px;
            max-height: 90px;
            padding: 10px;
        }

        details#login li.disabled {
            opacity: 0.5;
        }

    details div.openidoption {
        font-size: 21px;
        font-family: Cardo, Arial;
        color: /*mcd*/ #553e31;
        text-align: center;
    }

    details div.openid {
        width: 960px;
        text-align: center;
        margin-top: 30px;
    }

        details div.openid img {
            vertical-align: middle;
            margin-top: -30px;
        }

        details div.openid input[type='text'] {
            width: 400px;
        }

    details li.empty {
        -moz-opacity: 0.3;
        opacity: 0.3;
    }

    details li.disabled {
        /*-moz-opacity: 0.3;
    opacity: 0.3;*/
        border-color: #eadfd4;
    }

        details li.disabled a {
            pointer-events: none;
            cursor: default;
        }

    details li.loading {
        background-color: #eadfd4;
        border-width: 0px;
    }

    details li.text {
        display: block;
        float: left;
        border: 0px;
        margin: 30px;
        width: auto;
        text-align: center;
        line-height: 30px;
        -moz-opacity: 1.0;
        opacity: 1.0;
    }

    details.alwaysopen summary {
        pointer-events: none;
    }

    details#searchresults div.filters div {
        display: inline;
    }

    details#searchresults div.filters figure {
        display: inline-block;
        width: 100px;
        text-align: center;
        margin: 0;
    }

    details#searchresults #resultsorderby {
        float: right;
    }

    details#searchresults div#paging img {
        opacity: 0.4;
    }

        details#searchresults div#paging img:hover {
            opacity: 1.0;
        }


    details li {
        display: list-item;
        float: left;
        width: 270px;
        margin: 0 5px 15px 5px;
        border: 1px solid /*mcm*/ #cdb8ab;
        -moz-border-radius: 5px;
        -webkit-border-radius: 5px;
        border-radius: 5px;
    }

    div#recipe li {
        display: list-item;
        float: left;
        width: auto;
        margin: 0 5px 15px 5px;
        border: 1px solid /*mcm*/ #cdb8ab;
        -moz-border-radius: 0px;
        -webkit-border-radius: 0px;
        border-radius: 0px;
    }


    details#searchresults div.resultbox div.resulthead div.title {
        display: table;
        float: left;
        width: 180px;
        height: 55px;
        padding: 0 5px 0 5px;
        text-align: center;
    }

    details#searchresults div.resultbox div.resulthead span.titlecontent {
        display: table-cell;
        vertical-align: middle;
        line-height: 25px;
        -ms-word-wrap: break-word;
        word-wrap: break-word;
    }

        details#searchresults div.resultbox div.resulthead span.titlecontent span.version {
            font-size: 14px;
        }

    details li:not(.disabled):hover, details li:not(.disabled):focus {
        border: 1px solid /*mcd*/ #553e31;
    }

    details li div.resulthead {
        height: 55px;
        background: /*mcl*/ #eadfd4;
        -moz-border-radius: 4px;
        -webkit-border-radius: 4px;
        border-radius: 4px;
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
    }

        details li div.resulthead.commercial {
            background: #dfe2ca;
        }

        details li div.resulthead.abstract {
            background: #ece1cd;
        }

        details li div.resulthead.notimplemented {
            background: #e6dbd1;
        }

    details li div.resultpictures {
        height: 110px;
        background: /*bgc*/ #fffcf5;
        padding: 5px;
        text-align: center;
    }

        details li div.resultpictures img {
            padding: 5px;
            vertical-align: middle;
        }

    details#searchresults li {
        height: 200px;
        margin-bottom: 30px;
        margin-left: 14px;
    }

        details#searchresults li div.resulticons {
            height: 45px;
            text-align: center;
        }

            details#searchresults li div.resulticons img {
                margin-left: 1px;
                vertical-align: middle;
            }

            details#searchresults li div.resulticons a {
                text-decoration: none;
            }

            details#searchresults li div.resulticons div.preptime {
                display: inline;
                position: relative;
            }

                details#searchresults li div.resulticons div.preptime span {
                    display: inline-block;
                    width: 37px;
                    text-align: center;
                    position: absolute;
                    top: 8px;
                    left: -1px;
                    font-size: 18px;
                    font-family: Arial;
                    color: #553e31;
                    font-weight: bold;
                    letter-spacing: -1px;
                }

            details#searchresults li div.resulticons div.commerciallogo {
                display: inline-block;
                position: relative;
                width: 80px;
                max-width: 80px;
                overflow: hidden;
            }

            details#searchresults li div.resulticons div.versions {
                display: inline;
                position: relative;
            }

                details#searchresults li div.resulticons div.versions span {
                    position: absolute;
                    top: -2px;
                    left: 29px;
                    font-size: 18px;
                    font-family: Arial;
                    color: /*mcd*/ #553e31;
                    font-weight: bold;
                }

        details#searchresults li div.resultbox {
            height: 200px;
        }

        details#searchresults li div.resultbody {
            height: 58px;
            font-size: 14px;
            font-family: Cardo, Arial;
            color: /*mcd*/ #553e31;
            padding: 5px;
            text-align: justify;
        }

        details#searchresults li div.resultfooter {
            height: 27px;
            padding: 5px 0 0 5px;
        }

    details#recommendations li div.resultfooter {
        height: 27px;
        padding: 5px 0 0 79px;
    }

    details#searchresults li div.resultnutrition {
        float: right;
        margin: -30px -5px 0 0;
    }

    details#searchresults li div.resultnutritionlevels {
        float: right;
        margin: -30px -5px 0 0;
    }

    details#searchresults li div.resultnutritionnames {
        float: right;
        margin: -30px -133px 0 0;
    }

    div#pagingleft {
        float: left;
        width: auto;
        margin-left: 10px;
    }

    div#pagingnumber {
        display: inline-block;
        float: none;
        width: 150px;
        text-align: center;
        margin-top: 5px;
        margin-left: 315px;
    }

    div#pagingright {
        display: inline;
        float: right;
        margin-right: 10px;
    }

        div#pagingleft img,
        div#pagingright img {
            padding: 5px;
        }

    /* ---------------- profile -------------------------- */

    div#profile details li {
        margin: 5px;
        margin-left: 80px;
        width: 750px;
        border: none;
    }

        div#profile details li:hover {
            border: none;
        }

        div#profile details li div.label {
            float: left;
            width: 260px;
            text-align: right;
        }

        div#profile details li div.input {
            float: right;
            width: 460px;
            text-align: left;
        }

            div#profile details li div.input input {
                -moz-appearance: none;
                -webkit-appearance: none;
                color: /*mcd*/ #553e31;
                /* 50% mcl #f3ece6 */
                /* 25% mcl #f9f6f2 */
                /* generated on http://www.colorzilla.com/gradient-editor/#fffcf5+0,eadfd4+100;Custom */
                /*background: #fffcf5;*/
                background: #eadfd4;
                margin-top: 0;
                width: 375px;
                vertical-align: super;
                font-size: 21px;
                font-family: Cardo, Arial;
                text-align: center;
                outline: none;
                border: 1px solid #cdb8ab;
                border-bottom-width: 2px;
            }

                div#profile details li div.input input[type=text].unit {
                    border-top-right-radius: 5px;
                    border-bottom-right-radius: 5px;
                }


                div#profile details li div.input input:disabled {
                    background: /*bgc*/ #fffcf5;
                    opacity: 0.5;
                }

                div#profile details li div.input input:focus {
                    border-color: /*mcm*/ #cdb8ab;
                }

                div#profile details li div.input input:invalid {
                    border-bottom-color: /*mcd*/ #f00;
                }

                div#profile details li div.input input[type='button'].unit {
                    margin-left: -50px;
                    width: 40px;
                    border-width: 0px;
                    border-left-width: 1px;
                    border-radius: 0px;
                    padding-left: 10px;
                }

    /* ---------------- search result items -------------------------- */

    details li div.title {
        display: inline-block;
        width: 180px;
        height: 55px;
        padding: 0 5px 0 5px;
        vertical-align: middle;
        text-align: center;
    }

    details li div.category {
        float: left;
        width: 32px;
        height: 43px;
        padding-top: 12px;
        padding-left: 8px;
    }

    details li div.tick {
        float: right;
        height: 25px;
        padding: 12px 9px 18px 7px;
    }

    details li div.dogear {
        float: right;
        padding: 0;
        margin-top: -1px;
        margin-right: -1px;
    }

        details li div.dogear .dogear_hidden {
            display: none;
        }

    details li div.flag {
        float: right;
        padding: 0;
        margin-top: 17px;
        margin-right: -8px;
    }

    footer a {
        padding: 0 20px 0 20px;
        text-align: center;
    }

    a:hover {
        text-decoration: underline;
    }

    a:focus {
        text-decoration: underline;
        outline: none;
    }

    footer p {
        text-align: center;
    }

    hr {
        clear: both;
        border: 0;
        height: 0px;
        margin: 1em 0;
    }

    table.wide {
        width: 870px;
    }

    /* Styles for basic forms
-----------------------------------------------------------*/
    input[type='button'] {
        font-size: 14px;
    }

    input[type='button'].littlebutton {
        margin: auto;
        width: 15px;
        height: 15px;
        padding: 0px;
        line-height: 0px;
        font-size: 14px;
        font-family: Cardo, Arial;
        font-weight: bold;
        border: 1px solid #cdb8ab;
    }

    input[type='button']:disabled {
        cursor: default;
        background: #eadfd4;
    }

        input[type='button'].submit,
        input[type='submit'] {
            font-size: 21px;
        }

    input[type='button'], input[type='submit'] {
        font-family: Cardo, Arial;
        color: /*mcd*/ #553e31;
        border: 1px solid #cdb8ab;
        -moz-border-radius: 3px;
        -webkit-border-radius: 3px;
        border-radius: 3px;
        background: #fffcf5; /* Old browsers */
        background: -moz-linear-gradient(top, #fffcf5 0%, #eadfd4 100%); /* FF3.6+ */
        background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fffcf5), color-stop(100%,#eadfd4)); /* Chrome,Safari4+ */
        background: -webkit-linear-gradient(top, #fffcf5 0%,#eadfd4 100%); /* Chrome10+,Safari5.1+ */
        background: -o-linear-gradient(top, #fffcf5 0%,#eadfd4 100%); /* Opera 11.10+ */
        background: -ms-linear-gradient(top, #fffcf5 0%,#eadfd4 100%); /* IE10+ */
        background: linear-gradient(to bottom, #fffcf5 0%,#eadfd4 100%); /* W3C */
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fffcf5', endColorstr='#eadfd4',GradientType=0 ); /* IE6-9 */
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 10px;
    }

        input[type='button']:hover:enabled, 
        input[type='submit'] {
            cursor: pointer;
            border: 1px solid #553e31;
        }


    div.formbuttons {
        text-align: center;
    }

    fieldset {
        border: 1px solid #ddd;
        padding: 0 1.4em 1.4em 1.4em;
        margin: 0 0 1.5em 0;
    }

    legend {
        font-size: 1.2em;
        font-weight: bold;
    }

    textarea {
        min-height: 75px;
    }

    .editor-label {
        margin: 1em 0 0 0;
    }

    .editor-field {
        margin: 0.5em 0 0 0;
    }

    header div.mainmenu {
        width: 500px;
        text-align: right;
        margin-top: 10px;
        margin-left: 210px;
    }

    header div.mainmenu a:hover{
        text-decoration: none;
    }

        header div.mainmenu label {
            display: inline-block;
            width: 91px;
            text-align: center;
            white-space: nowrap;
            font-size: 14px;
            font-family: Cardo, Arial;
        }

    header .inputfield {
        width: 530px;
        text-align: right;
        margin: 3px 0px 2px 210px;
    }

        header .inputfield input {
            -moz-appearance: none;
            -webkit-appearance: none;
            width: 310px;
            font-size: 21px;
            font-family: Cardo, Arial;
            vertical-align: super;
            color: /*mcd*/ #553e31;
            background-color: /*bgc*/ #fffcf5;
            margin-top: 0;
            text-align: center;
            border-top-width: 0;
            border-left-width: 0;
            border-right-width: 0;
            border-bottom-color: /*mcd*/ #553e31;
            outline: none;
            margin-left: 20px;
        }

    .sortorderselect {
        float: right;
        font-size: 12px;
        font-family: tangerinearegular, Trebuchet;
        color: /*mcd*/ #553e31;
        margin-top: -20px;
    }

        .sortorderselect a.selected {
            text-decoration: underline;
        }


    table {
        border-spacing: 0;
    }

    th:first-child {
        -moz-border-radius: 6px 0 0 0;
        -webkit-border-radius: 6px 0 0 0;
        border-radius: 6px 0 0 0;
    }

    th:last-child {
        -moz-border-radius: 0 6px 0 0;
        -webkit-border-radius: 0 6px 0 0;
        border-radius: 0 6px 0 0;
    }

    th:only-child {
        -moz-border-radius: 6px 6px 0 0;
        -webkit-border-radius: 6px 6px 0 0;
        border-radius: 6px 6px 0 0;
    }

    td, th {
        padding: 3px;
        height: 25px;
        border-bottom: 1px solid /*mcd*/ #553e31;
        border-left: 1px solid /*mcm*/ #cdb8ab;
        border-right: 1px solid /*mcm*/ #cdb8ab;
        text-align: center;
    }

    tbody tr:nth-child(even) {
        background: /*mcl*/ #eadfd4;
    }

    th {
        text-align: center;
        text-decoration: underline;
        background-color: /*mcl*/ #eadfd4;
        border-bottom-width: 2px;
    }

    tfoot td {
        text-align: center;
        border-bottom: 0;
        border-top: 1px solid /*mcd*/ #553e31;
        background-color: /*mcl*/ #eadfd4;
    }

        tfoot td:first-child {
            -moz-border-radius: 0 0 0 6px;
            -webkit-border-radius: 0 0 0 6px;
            border-radius: 0 0 0 6px;
        }

        tfoot td:last-child {
            -moz-border-radius: 0 0 6px 0;
            -webkit-border-radius: 0 0 6px 0;
            border-radius: 0 0 6px 0;
        }

        tfoot td:only-child {
            -moz-border-radius: 0 0 6px 6px;
            -webkit-border-radius: 0 0 6px 6px;
            border-radius: 0 0 6px 6px;
        }

    /* Styles for validation helpers
-----------------------------------------------------------*/
    .field-validation-error {
        color: #f00;
    }

    .field-validation-valid {
        display: none;
    }

    .input-validation-error {
        border: 1px solid #f00;
        background-color: #fee;
    }

    .validation-summary-errors {
        font-weight: bold;
        color: #f00;
    }

    .validation-summary-valid {
        display: none;
    }


    /* Styles for admin controls
-----------------------------------------------------------*/

    div.boxed {
        display: inline-block;
        min-height: 200px;
        padding: 5px;
    }

        div.boxed h2 {
            text-decoration: underline;
        }

    div#languages {
        width: 900px;
    }

        div#languages select {
            width: 870px;
        }


    div#recipelist {
        width: 900px;
        height: 800px;
        /* Column-count not implemented yet */
        -moz-column-count: 3;
        -webkit-column-count: 3;
        /* Column-gap not implemented yet */
        -moz-column-gap: 22px;
        -webkit-column-gap: 22px;
        column-count: 3;
        column-gap: 22px;
    }

        div#recipelist h2 {
            -moz-column-span: all;
            -webkit-column-span: all;
            column-span: all;
        }

    div#ingredientlist li {
        border: 0;
        margin-right: 20px;
        white-space: nowrap;
    }

        div#ingredientlist li a {
            margin-left: 5px;
        }

    details#formatingredients div#ingredientlist {
        float: right;
        width: 380px;
    }

        details#formatingredients div#ingredientlist textarea {
            width: 800px;
            height: 105px;
            margin: 10px;
        }

    section#recipeeditor {
        width: 400px;
        float: left;
    }

    section#basicrecipe {
        width: 400px;
        float: right;
    }

        section#recipeeditor li, section#originalrecipe li, section#basicrecipe li, section#recipecode li {
            border: 0;
            width: 800px;
            text-align: justify;
        }

        section#recipeeditor li, section#basicrecipe li {
            width: 350px;
        }

        section#basicrecipe span.error {
            font-weight: bold;
            color: #990033;
        }

        section#basicrecipe span.verb {
            font-weight: bold;
            color: #808000;
        }

        section#basicrecipe span.ingredient {
            font-weight: bold;
            color: #336633;
        }

        section#basicrecipe span.conjuntion {
            color: #000000;
        }

        section#basicrecipe span.unit {
            font-weight: bold;
            color: #00cccc;
        }

        section#basicrecipe span.device {
            font-weight: bold;
            color: #666666;
        }

        section#basicrecipe span.alias {
            font-weight: bold;
            color: #000000;
        }

    /* ---------------- treeview -------------------------- */
    .css-treeview {
        font: normal 14px "Cardo", Arial, Sans-serif;
        -moz-user-select: none;
        -webkit-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

        .css-treeview img {
            min-height: 24px;
            min-width: 24px;
            max-height: 48px;
            max-width: 48px;
        }

        .css-treeview ul,
        .css-treeview li {
            padding-left: 20px;
            margin: 0;
            margin-top: 10px;
            list-style: none;
            vertical-align: central;
            color: #553e31;
        }

        .css-treeview input {
            position: absolute;
            -moz-opacity: 0;
            opacity: 0;
            background: none;
        }

        .css-treeview label {
            margin-top: -25px;
            margin-left: 15px;
        }

        .css-treeview a {
            margin-top: -25px;
            margin-left: 5px;
            color: #553e31;
            text-decoration: none;
            /*padding-left: 20px;*/
            pointer-events: none;
            cursor: default;
        }

            .css-treeview a:hover {
                text-decoration: underline;
            }

        .css-treeview input + label + ul {
            margin: 0 0 0 22px;
        }

        .css-treeview input ~ ul {
            display: none;
        }

        .css-treeview input[type=checkbox] + label,
        .css-treeview input[type=checkbox]:hover + label,
        .css-treeview input[type=checkbox]:checked + label,
        .css-treeview input[type=checkbox]:hover:checked + label {
            cursor: pointer;
            background: none;
            margin-top: -25px;
            margin-left: 15px;
        }

        .css-treeview input:disabled + label {
            cursor: default;
            -moz-opacity: .6;
            opacity: .6;
        }

        .css-treeview input:checked:not(:disabled) ~ ul {
            display: block;
        }

        .css-treeview label,
        .css-treeview a {
            display: inline-block;
            height: 16px;
            line-height: 16px;
            vertical-align: middle;
        }

    /* ---------------- autocomplete -------------------------- */

    .ui-menu {
        border: 1px solid /*mcd*/ #553e31;
        -webkit-border-top-left-radius: 0;
        border-top-left-radius: 0;
        -webkit-border-top-right-radius: 0;
        border-top-right-radius: 0;
        background: /*bgc*/ #fffcf5;
    }

        .ui-menu .ui-menu-item a.ui-state-hover,
        .ui-menu .ui-menu-item a.ui-state-active {
            font-weight: normal;
            margin: -1px;
            border: 1px solid /*mcd*/ #553e31;
            background: /*mcl*/ #eadfd4;
        }

        .ui-menu .ui-menu-item-with-icon a {
            padding-left: 30px;
        }

        .ui-menu img.ui-menu-item-icon {
            display: inline-block;
            max-height: 26px;
            max-width: 26px;
            margin-left: -22px;
            margin-right: 8px;
            vertical-align: bottom;
        }

    .ui-helper-hidden-accessible {
        display: none;
    }

    /* ---------------- search input ------------------------ */

    input[type="search"]::-webkit-search-cancel-button {
        /* Remove default */
        -webkit-appearance: none;
        /* Now your own custom styles */
        height: 10px;
        width: 10px;
        background: /*mcm*/ #cdb8ab;
        /* Will place small red box on the right of input (positioning carries over) */
    }


    /* --------------- custom checkbox ---------------------- */
    /* 
    Hide the original radios and checkboxes
    (but still accessible)
    
    :not(#foo) > is a rule filter to block browsers
                 that don't support that selector from
                 applying rules they shouldn't
       
*/

    /* background-image: url('../Content/svg/tick_on.svg'); */

    /* Custom checkbox and radio styles */

    div.ingredientlistrecipename {
        margin-top: 15px;
        margin-left: 10px;
        font-size: 21px;
        text-decoration: underline;
    }

    ul.ingredientlist {
        margin: 10px;
    }

    div#recipe ul.ingredientlist li.ingredientlistitem {
        margin: 0px 20px 0px 5px;
        width: 265px;
    }

        div#profile div#gender input,
        div#profile div#language input,
        ul.ingredientlist li.ingredientlistitem input {
            padding: 0;
            margin: 0;
            height: 32px;
            width: 32px;
            float: left;
            position: absolute;
            left: 0;
            opacity: 0;
        }

        div#profile div#gender label,
        div#profile div#language label,
        ul.ingredientlist li.ingredientlistitem label {
            float: left;
            padding-left: 24px;
            padding-right: 10px;
        }

    /* Checked styles */
    input[type=radio]:checked + label,
    input[type=checkbox]:checked + label {
        margin-top: -5px;
        padding-top: 5px;
        background-image: url('../Content/svg/tick_on.svg');
    }

        input[type=radio]:hover:checked + label,
        input[type=radio]:focus:checked + label,
        input[type=radio]:checked + label:hover,
        input[type=radio]:focus:checked + label,
        input[type=checkbox]:hover:checked + label,
        input[type=checkbox]:focus:checked + label,
        input[type=checkbox]:checked + label:hover,
        input[type=checkbox]:focus:checked + label {
            margin-top: -5px;
            padding-top: 5px;
            background-image: url('../Content/svg/tick_on.svg');
        }

    input + label {
        margin-top: -5px;
        padding-top: 5px;
        background: url('../Content/svg/tick_off.svg') 0 0 no-repeat;
        height: 32px;
    }

    /* Hover & Focus styles */
    /*ul.ingredientlist li.ingredientlistitem input[type=checkbox]:hover + label,
ul.ingredientlist li.ingredientlistitem input[type=checkbox]:focus + label,
ul.ingredientlist li.ingredientlistitem input[type=checkbox] + label:hover 							{ background-position: 0 -21px; }*/
    /*ul.ingredientlist li.ingredientlistitem input[type=radio]:hover + label,
ul.ingredientlist li.ingredientlistitem input[type=radio]:focus + label,
ul.ingredientlist li.ingredientlistitem input[type=radio] + label:hover								{ background-position: 0 -181px; }*/

    /* Active styles */
    /*ul.ingredientlist li.ingredientlistitem input[type=checkbox]:active + label,
ul.ingredientlist li.ingredientlistitem input[type=checkbox] + label:hover:active						{ background-position: 0 -41px; }
ul.ingredientlist li.ingredientlistitem input[type=radio]:active + label,
ul.ingredientlist li.ingredientlistitem input[type=radio] + label:hover:active						{ background-position: 0 -201px; }
ul.ingredientlist li.ingredientlistitem input[type=checkbox]:active:checked + label,
ul.ingredientlist li.ingredientlistitem input[type=checkbox]:checked + label:hover:active				{ background-position: 0 -121px; }
ul.ingredientlist li.ingredientlistitem input[type=radio]:active:checked + label,
ul.ingredientlist li.ingredientlistitem input[type=radio]:checked + label:hover:active				{ background-position: 0 -281px; }*/

    /* Disabled styles */
    /*ul.ingredientlist li.ingredientlistitem input[type=checkbox]:disabled + label,
ul.ingredientlist li.ingredientlistitem input[type=checkbox]:hover:disabled + label,
ul.ingredientlist li.ingredientlistitem input[type=checkbox]:focus:disabled + label,
ul.ingredientlist li.ingredientlistitem input[type=checkbox]:disabled + label:hover,
ul.ingredientlist li.ingredientlistitem input[type=checkbox]:disabled + label:hover:active			{ background-position: 0 -61px; }*/
    /*ul.ingredientlist li.ingredientlistitem input[type=radio]:disabled + label,
ul.ingredientlist li.ingredientlistitem input[type=radio]:hover:disabled + label,
ul.ingredientlist li.ingredientlistitem input[type=radio]:focus:disabled + label,
ul.ingredientlist li.ingredientlistitem input[type=radio]:disabled + label:hover,
ul.ingredientlist li.ingredientlistitem input[type=radio]:disabled + label:hover:active				{ background-position: 0 -221px; }*/
    /*ul.ingredientlist li.ingredientlistitem input[type=checkbox]:disabled:checked + label,
ul.ingredientlist li.ingredientlistitem input[type=checkbox]:hover:disabled:checked + label,
ul.ingredientlist li.ingredientlistitem input[type=checkbox]:focus:disabled:checked + label,
ul.ingredientlist li.ingredientlistitem input[type=checkbox]:disabled:checked + label:hover,
ul.ingredientlist li.ingredientlistitem input[type=checkbox]:disabled:checked + label:hover:active	{ background-position: 0 -141px; }*/
    /*ul.ingredientlist li.ingredientlistitem input[type=radio]:disabled:checked + label,
ul.ingredientlist li.ingredientlistitem input[type=radio]:hover:disabled:checked + label,
ul.ingredientlist li.ingredientlistitem input[type=radio]:focus:disabled:checked + label,
ul.ingredientlist li.ingredientlistitem input[type=radio]:disabled:checked + label:hover,
ul.ingredientlist li.ingredientlistitem input[type=radio]:disabled:checked + label:hover:active		{ background-position: 0 -301px; }*/

    /* --------------- unit selection ---------------------- */

    div.units {
        color: #cdb8ab;
        vertical-align: super;
        display: inline;
        margin-left: -90px;
    }

        div.units input {
            display: inline;
        }

        div.units label {
            background-image: none;
        }

        div.units input[type=radio]:checked + label {
            color: #553e31;
            background-image: none;
        }



    /* --------------- reviewer ---------------------- */

    #reviewer {
        position: fixed;
        bottom: 0;
        right: 0;
        padding: 0.15em 0.25em 0 0.5em;
        white-space: nowrap;
        overflow: hidden;
        z-index: 30;
        background: /*mcd*/ #553e31;
        color: white;
        border: 1px solid /*mcl*/ #eadfd4;
        border-bottom-width: 0;
        border-right-width: 0;
        -moz-border-radius: 1em 0 0 0;
        -webkit-border-radius: 1em 0 0 0;
        border-radius: 1em 0 0 0;
        max-width: 90%;
    }

        #reviewer input {
            max-width: 50%;
        }

        #reviewer * {
            font-size: small;
        }

        #reviewer.off > :not(:first-child) {
            display: none;
        }



    /* ----------- directions ------------ */
   div#recipe div#directionlist li {
        display: list-item;
        float: left;
        width: 880px;
        height: 70px;
        margin: 0;
        padding: 0;
        border: 0;
    }

        div#recipe div#directionlist li span {
            display: inline-block;
            vertical-align: middle;
        }

            div#recipe div#directionlist li span.stagePreparation {
                width: 25px;
                height: 70px;
                background: #d5e6cc;
            }

            div#recipe div#directionlist li span.stageCooking {
                width: 25px;
                height: 70px;
                background: #e8d6cd;
            }

            div#recipe div#directionlist li span.stageServing {
                width: 25px;
                height: 70px;
                background: #d6e4ea;
            }

            div#recipe div#directionlist li span.time {
                margin: -10px 5px 0 10px;
            }

            div#recipe div#directionlist li span.timer {
                width: 80px;
                height: 70px;
            }

            div#recipe div#directionlist li span.timer>img {
                padding: 5px;                
            }


        div#recipe div#directionlist li div.directionRightPart {
            position: relative;
            display: block;
            float: right;
            height: 70px;
            width: 690px;
            line-height: 70px;
            /*border: solid 1px green;*/
        }

            div#recipe div#directionlist li div.directionRightPart span.directionBigIcons {
                display: inline-block;
                opacity: 0.0;
                padding: 5px;
                height: 70px;
                width: 630px;
                /*border: solid 1px red;*/
            }

            div#recipe div#directionlist li div.directionRightPart span.directionText {
                position: absolute;
                bottom: 0px;
                left: 0px;
                display: inline-block;
                width: 690px;
                height: 70px;
                /*border: solid 1px blue;*/
            }

                div#recipe div#directionlist li div.directionRightPart span.directionText span.directionTextContent {
                    display: inline-block;
                    vertical-align: middle;
                    line-height: 25px;
                    -ms-word-wrap: break-word;
                    word-wrap: break-word;
                    /*border: solid 1px black;*/
                }

        div#recipe div#directionlist li span.directionTextContent img2 {
            position: relative;
            top: 4px;
            display: inline-block;
            padding-top: 0px;
            margin-top: -10px;
            vertical-align: bottom;
        }

        div#recipe div#directionlist li span.directionTextContent span2 {
            position: relative;
            margin-top: -32px;
            margin-left: -28px;
            margin-right: -10px;
            font-size: 12px;
            font-family: Arial;
            color: /*mcd*/ #553e31;
            font-weight: bold;
            width: 32px;
            text-align: center;
            z-index: 3;
            -webkit-text-shadow: 0px 0px 0 #fffcf5, -1px -1px 0 #fffcf5, 1px -1px 0 #fffcf5, -1px 1px 0 #fffcf5, 1px 1px 0 #fffcf5;
            text-shadow: 0px 0px 0 #fffcf5, -1px -1px 0 #fffcf5, 1px -1px 0 #fffcf5, -1px 1px 0 #fffcf5, 1px 1px 0 #fffcf5;
        }

        div#recipe div#directionlist li span.directionTextContent span {
            vertical-align: baseline;
        }

    ul#directions span.action {
        display: inline;
        margin-top: -54px;
        margin-left: -76px;
    }

    ul#directions span.action>img {
        padding: 5px;
        cursor: pointer;
    }
   
    div.clickabledirection div {
        display: inline-block;
        cursor: pointer;
        background: #eadfd4;
    }
    
    div.clickabledirection div.icon {
        margin: 0px;
        width: 19px;
        height: 22px;
        padding: 6px 3px 5px 3px;
    }

    div.clickabledirection div.text {
        float: right;

        width: 831px;
        padding-left: 20px;

        font-size: 21px;
        font-family: Cardo, Arial;
        color: /*mcd*/ #553e31;
    }

    /* ----------- portion selector ------------ */
    h3 span.portionselector-trigger {
        cursor: pointer;
    }


    div#portionsliderblock img {
        float: left;
        margin: 15px 10px 0px 10px;
    }

    div#portionsliderblock div#portionsliderandtext {
        float: left;
        display: inline-block;
    }

    div#portionsliderblock input#portionamount {
        width: 200px;
        border: 0;
        background: #eadfd4;
        color: #553e31;
        font-size: 14px;
        font-family: Cardo, Arial;
        text-align: center;
    }

    div#portionsliderblock div#portionslider {
        width: 200px;
        display: inline-block;
    }

    div#portionsliderblock img#portionslidersigns {
        margin: 5px 0px 0px -2px;
    }

    div#portionsliderblock div#portionslider.ui-widget-content {
        height: 1px;
        border: 3px solid #cdb8ab;
        background: #553e31;
    }

    div#portionsliderblock .ui-slider .ui-slider-handle {
        position: absolute;
        z-index: 2;
        width: 13px;
        height: 11px;
        cursor: default;
        border: 0px;
    }

    div#portionsliderblock .ui-slider-horizontal {
        height: 11px;
    }

        div#portionsliderblock .ui-slider-horizontal .ui-slider-handle {
            top: -5.5px;
            margin-left: -6.5px;
        }

        div#portionsliderblock .ui-slider-horizontal .ui-state-default {
            background: url('../Content/svg/icon_sliderhandle.svg') no-repeat scroll 50% 50%;
        }

    div#portioncounterblock img {
        margin: 15px 10px 0px 10px;
    }

        div#portioncounterblock img.hidden {
            display: none;
        }

    div#portioncounterblock div#portioncountertext {
        float: left;
        font-size: 24px;
        margin: 15px 0px 0px 10px;
        width: 45px;
    }

    div#portionbuttonblock {
        float: right;
        display: inline-block;
        margin: 15px 10px 5px 5px;
    }


    div#portionbuttonblock input[type='button'] {
        margin: 0px;
    }

        input#queryplusbutton,
        div#portionbuttonblock input#plusbutton2 {
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
        }

        input#queryminusbutton,
        div#portionbuttonblock input#minusbutton2 {
            position: relative;
            bottom: 6px;
            border-top-left-radius: 0;
            border-top-right-radius: 0;
        }


    div#portionselectorwrapper {
        position: absolute;
    }

    div#portionselector {
        display: none;
        opacity: 0;
        width: 430px;
        height: 65px;
        margin: 0px;
        padding: 0px 5px 0px 10px;
        list-style: none;
        position: relative;
        top: 0px;
        left: 430px;
        z-index: 2;
        background: #eadfd4;
        border: 1px solid #553e31;
        border-radius: 3px;
    }

        div#portionselector:after {
            content: '';
            position: absolute;
            left: 405px;
            top: -6px;
            border-left: 6px solid transparent;
            border-right: 6px solid transparent;
            border-bottom: 6px solid #553e31;
        }


    /* ----------- help ------------ */
    article.help {
        font-size: 14px;
        font-family: Cardo, Arial;
        color: /*mcd*/ #553e31;
    }

        article.help a {
            text-decoration: underline;
            -moz-text-decoration-style: dashed;
            text-decoration-style: dashed;
        }

        article.help li {
            clear: right;
            margin: 5px;
            text-align: justify;
        }

        article.help img {
            border: 3px solid #553e31;
            float: right;
            margin: 10px;
        }

            article.help img.middleframed {
                float: none;
                margin-left: 150px;
                margin-right: 150px;
            }

        article.help h1 {
            font-size: 21px;
            font-family: tangerinearegular, Trebuchet;
            color: /*mcd*/ #553e31;
            text-align: center;
            text-decoration: underline;
            margin-top: 15px;
            margin-bottom: 0px;
        }

        article.help h2 {
            font-size: 21px;
            font-family: Cardo, Arial;
            color: /*mcd*/ #553e31;
            text-decoration: underline;
            padding: 10px;
            margin-top: 15px;
            margin-bottom: -5px;
        }

        article.help h3 {
            font-size: 18px;
            font-family: Cardo, Arial;
            color: /*mcd*/ #553e31;
            text-decoration: underline;
            margin-top: 15px;
            margin-bottom: -10px;
        }

    /* ----------- validation ------------ */
    ::-webkit-validation-bubble {
    }

    ::-webkit-validation-bubble-message {
    }

    ::-webkit-validation-bubble-arrow {
    }

    ::-webkit-validation-bubble-arrow-clipper {
    }

    ::-webkit-validation-bubble-icon {
    }

    ::-webkit-validation-bubble-body {
    }

    ::-webkit-validation-bubble-text-block {
    }

    ::-webkit-validation-bubble-arrow-heading {
    }

    .validationErrors {
        margin: 0px 125px 0px 100px;
        float: right;
        text-align: right;
    }

        .validationErrors img {
            vertical-align: sub;
        }

    .currentDirection {
        background: #eadfd4;
    }

    .pastDirection {
        opacity: 0.7;
    }

    /* ----------- side B ------------ */
    .resultdetails {
        background-image: url('../Content/svg/dashed_bg.svg');
        height: 135px;
        border-radius: 5px;
        padding-top: 10px;
        padding-left: 13px;
    }

    .resultphotoframe {
        width: 240px;
        height: 120px;
        border: 2px solid #cdb8ab;
        border-radius: 20px;
        -webkit-box-shadow: 1px 1px 0px #553e31;
        box-shadow: 1px 1px 0px #553e31;
        cursor: pointer;
    }

        .resultphotoframe img {
            width: 240px;
            height: 120px;
            border-radius: 18px;
        }


    .resultpager {
        width: 268px;
        margin-top: -5px;
    }

    .resultpager-images {
        display: block;
        margin: auto;
        height: 30px;
        text-align: center;
    }

    /* ----------- login page description ------------ */
    div.description h2 {
        font-size: 21px;
        text-align: center;
        margin: 25px;
    }

    div.description h3 {
        font-size: 14px;
        text-align: center;
        margin: 20px;
    }

    .login-slider-wrapper {
        width: 500px;
        height: 250px;
        border: 3px solid #553e31;
        margin: auto;
        margin-top: 30px;
        margin-bottom: 40px;
    }

    /* ----------- poll ------------ */
    .poll span {
        display: block;
        margin-top: 10px;
        text-decoration: underline;
    }

    .poll input[type='text'] {
        width: 600px;
    }

    .poll label {
        float: left;
        padding-left: 24px;
        padding-right: 10px;
    }

    .poll input[type='radio'] {
        padding: 0;
        margin: 0;
        height: 32px;
        width: 32px;
        float: left;
        position: absolute;
        left: 0;
        opacity: 0;
    }

    .poll div, .poll h2 {
        clear: both;
    }
}

/* ----------- tag list ------------ */

div#taglist {
    text-align: center;

    margin: 15px;
    height: 20px;
}

div#taglist .taglistitem {
    display: inline;
    border: 0px;
    font-size: 14px;
    margin-left: 10px;
    margin-right: 10px;
}

    div#taglist .taglistitem label {
        display: inline-block;
        margin-left: -4px;
        margin-right: -4px;
        padding-left: 5px;
        padding-right: 5px;
        vertical-align: top;
        background: url('../Content/svg/tag_middle.svg') 0 0 repeat-x;
        border-top: 1px;
        border-bottom: 2px;
    }
