@import url(font-awesome.min.css);

/* Header */

    #header {
        width: 100%;
        height: 196px;
        z-index: 200;
        background-color:#000;
        border-bottom: 14px solid #7b66a7;
        display:block;
    }

    @media screen and (max-width: 1180px) {
        #header {
            z-index: 10000;
        }
    }

    #header nav {
        height: inherit;
        line-height: inherit;
        position: absolute;
        right: 0em;
        top: 90px;
        font-weight:400;
        font-size:0.95em;
    }

    @media screen and (max-width: 1180px) {
        #header nav {
            top: 92px;
        }
    }

    #header nav > ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    #header nav > ul > li {
        display: inline-block;
        width:95px;/*was 120px*/
        text-align: center;
        margin-right:1em;
        -moz-transition: background-color 0.1s ease-in-out;
        -webkit-transition: background-color 0.1s ease-in-out;
        -ms-transition: background-color 0.1s ease-in-out;
        transition: background-color 0.1s ease-in-out;
    }

    @media screen and (max-width: 1320px) {
        #header nav > ul > li {
            width:95px;/*was 104px*/
            margin-right:0em;
        }
    }

    #header nav > ul > li a {
        display: block;
        color: #000;
        padding: 30px 0px;
    }

    @media screen and (max-width: 1180px) {
            #header nav > ul > li a {
            padding: 29px 0px;
        }
    }

    #header nav > ul > li a.active {
        background-color:#7b66a7;
    }

    #header nav > ul > li:hover {
        background-color:#333;
    }

    #header nav > ul > li > ul {
        display: none;
    }

    #header nav > ul > li a {
        text-decoration: none;
        border-bottom: 0;
        color:#fff;
    }

    #header nav > ul > li a:before {
        -moz-osx-font-smoothing: grayscale;
        -webkit-font-smoothing: antialiased;
        font-family: FontAwesome;
        font-style: normal;
        font-weight: normal;
        text-transform: none !important;
    }

    #header nav > ul > li a:before {
        margin-right: 1em;
    }

    #header nav > ul > li:first-child {
        margin-left: 0;
    }


    #header .navPanelToggle {
        text-decoration: none;
        border: 0;
        height: 4em;
        position: absolute;
        right: 0;
        top: 0;
        width: 5em;
        display: none;
    }

    #header .navPanelToggle:before {
        -moz-osx-font-smoothing: grayscale;
        -webkit-font-smoothing: antialiased;
        font-family: FontAwesome;
        font-style: normal;
        font-weight: normal;
        text-transform: none !important;
    }

    #header .navPanelToggle:before {
        content: '\f0c9';
        font-size:1.5em;
        width: 5em;
        height: 5em;
        display: block;
        position: absolute;
        right: 1em;
        top: -0.25em;
        text-align: right;
        color:#FFF;
    }

    #header.reveal {
        -moz-animation: reveal-header 0.5s ease;
        -webkit-animation: reveal-header 0.5s ease;
        -ms-animation: reveal-header 0.5s ease;
        animation: reveal-header 0.5s ease;
    }

    @media screen and (max-width: 1080px) {

        #header nav {
            display: none;
        }

        #header .navPanelToggle {
            display: block;
        }
    }

    @media only screen and (max-device-width: 980px), screen and (max-width: 980px) {
        #header {
            height: 4.5em;
            left: 0;
            line-height: 4.5em;
        }

        .mdee-logo {
            height:2em;
            width:2em;
            position:absolute;
            top:1.2em;
            left:1.2em;
            background-repeat:no-repeat;
            background-size:contain;
        }
    }

    @media only screen and (max-device-width: 980px), screen and (max-width: 980px) {
        #header {
            height: 8.5em;
            left: 0;
            line-height: 4.5em;
        }
    }

/* Navigation Panel */

    #navPanel {
        -moz-transform: translateX(20em);
        -webkit-transform: translateX(20em);
        -ms-transform: translateX(20em);
        transform: translateX(20em);
        -moz-transition: -moz-transform 0.5s ease, box-shadow 0.5s ease, visibility 0.5s;
        -webkit-transition: -webkit-transform 0.5s ease, box-shadow 0.5s ease, visibility 0.5s;
        -ms-transition: -ms-transform 0.5s ease, box-shadow 0.5s ease, visibility 0.5s;
        transition: transform 0.5s ease, box-shadow 0.5s ease, visibility 0.5s;
        -webkit-overflow-scrolling: touch;
        background-color: #FFF;
        box-shadow: none;
        display: none;
        height: 100%;
        max-width: 80%;
        overflow-y: auto;
        position: fixed;
        right: 0;
        top: 0;
        visibility: hidden;
        width: 18em;
        z-index: 10002;
        font-family: "Lato", Helvetica, sans-serif;
        font-weight: 400;
    }

    #navPanel nav {
        padding: 3em 2em;
    }

    #navPanel .link {
        border: 0;
        border-top: solid 1px #e6e6e6;
        color: inherit !important;
        display: block;
        font-size: 0.9em;
        padding: 0.75em 0;
        text-decoration: none;
    }

    #navPanel .link:first-child {
        border-top: 0;
    }

    #navPanel .close {
        text-decoration: none;
        -moz-transition: color 0.2s ease-in-out;
        -webkit-transition: color 0.2s ease-in-out;
        -ms-transition: color 0.2s ease-in-out;
        transition: color 0.2s ease-in-out;
        -webkit-tap-highlight-color: transparent;
        border: 0;
        color: #5E6167;
        cursor: pointer;
        display: block;
        height: 4em;
        padding-right: 1.25em;
        position: absolute;
        right: 0;
        text-align: right;
        top: 0;
        vertical-align: middle;
        width: 5em;
    }

    #navPanel .close:before {
        -moz-osx-font-smoothing: grayscale;
        -webkit-font-smoothing: antialiased;
        font-family: FontAwesome;
        font-style: normal;
        font-weight: normal;
        text-transform: none !important;
    }

    #navPanel .close:before {
        content: '\f00d';
        width: 3em;
        height: 3em;
        line-height: 3em;
        display: block;
        position: absolute;
        right: 0;
        top: 0;
        text-align: center;
    }

    #navPanel .close:hover {
        color: inherit;
    }

    @media screen and (max-width: 980px) {
        #navPanel .close {
            height: 4em;
            line-height: 4em;
        }
    }

    #navPanel.visible {
        -moz-transform: translateX(0);
        -webkit-transform: translateX(0);
        -ms-transform: translateX(0);
        transform: translateX(0);
        box-shadow: 0 0 0.125em 0 rgba(0, 0, 0, 0.35);
        visibility: visible;
    }

    @media screen and (min-width: 980px) {

        #header .navPanelToggle {
            top: 35px!important;
        }
    }

    @media screen and (max-width: 1080px) {

        #navPanel {
            display: block;
        }

    }