.box {
    margin: 0 auto;
    max-width: 1200px;
}

.box:after {
    clear: both;
    content: '';
    display: block;
}

.overflow {
    height: 100%;
    overflow: hidden;
}

#logo {
    height: auto;
    text-indent: 8px;
    width: 200px;
}

#top-bar {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    background: #fff;
    height: auto;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9500;
}

#button-box {
    display: flex;
    flex-direction: row;
    height: 64px;
    position: absolute;
    right: 0;
    top: 0;
}

#toggle-nav, #toggle-search {
    border: 0;
    height: 56px;
    line-height: 55px;
    padding: 0;
    position: relative;
    text-indent: -99999px;
    width: 57px;
    background: #0a8a90;
    color: #fff;
}

#toggle-nav span, #toggle-search span {
    display: block;
    font-size: 1.7rem;
    left: 35%;
    position: absolute;
    text-indent: 0;
    top: 0;
}

#toggle-nav span {
    transform: scale(1, 0.8);
}

#toggle-search span {
    transform: rotate(-45deg);
}

#navigation, #search-box {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    position: fixed;
    right: 0;
    top: 54px;
    z-index: 9600;
}

#navigation {
    height: 100%;
    overflow: hidden;
    transition: all linear 0.2s;
    width: 0;
}

#navigation.visible {
    transition: all linear 0.2s;
    width: 201px;
    background: #fff;
}

#nav {
    font-size: 0.875rem;
    height: calc(100% - 64px);
    overflow-x: hidden;
    overflow-y: auto;
    width: calc(100% + 24px);
}

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

#nav ul li {
    cursor: pointer;
    position: relative;
}

#nav ul li ul {
    display: none;
}

#nav ul li ul li {
    background: rgba(0, 0, 0, 0.1);
}

#nav ul li a {
    border: 0;
    display: block;
    height: 48px;
    line-height: 48px;
    padding: 0 8px;
    position: relative;
    white-space: nowrap;
    width: calc(100% - 24px);
}

#nav ul li a:hover {
    text-decoration: blink;
    color: #0a8a90;
}

#nav .hasChildren {
    width: calc(100% - 56px);
}

#nav .hasChildren:after {
    background: rgb(2, 46, 59);
    border-left: 1px solid #fff;
    content: '\22EE';
    font-size: 1.3rem;
    height: 38px;
    position: absolute;
    color: #fff;
    right: -33px;
    text-align: center;
    top: 0;
    width: 32px;
}

#nav .li-has-Children .ul-visible {
    border-top: 1px solid #a1a1a1;
}

#search-box {
    background: #dadada;
    height: 0;
    overflow: hidden;
    transition: all linear 0.2s;
    width: 100%;
}

#search-box.visible {
    height: 48px;
    transition: all linear 0.2s;
}

#search-form {
    display: flex;
    flex-direction: row;
    height: 32px;
    margin-top: 8px;
    padding: 0 8px;
}

#search-field {
    width: calc(100% - 48px);
}

#search-submit {
    position: relative;
    text-indent: -99999px;
    width: 48px;
}

#search-submit span {
    display: block;
    font-size: 1.7rem;
    left: 25%;
    position: absolute;
    text-indent: 0;
    top: 0;
}

#main {
    padding: 0 8px;
    position: relative;
}

#main.blur {
    filter: blur(1px);
}

#overlay {
    background: rgba(0, 0, 0, 0.5);
    bottom: 0;
    height: 100%;
    left: 0;
    opacity: 0;
    position: fixed;
    right: 0;
    top: 0;
    transition: all linear 0.2s;
    visibility: hidden;
    width: 100%;
    z-index: +1;
}

#overlay.visible {
    opacity: 1;
    visibility: visible;
}

@media only screen and (min-width: 1200px) {
    #logo {
        float: left;
    }

    #button-box {
        position: relative;
        width: 48px;
    }

    #toggle-nav {
        display: none;
    }

    #navigation {
        box-shadow: none;
        float: left;
        height: 70px;
        position: relative;
        top: 0;
        width: calc(100% - 200px - 48px);
    }

    #nav {
        height: 70px;
        overflow: hidden;
        position: relative;
        width: 100%;
    }

    #nav ul {
        height: 64px;
        position: relative;
        float: right;
    }

    #nav ul li {
        border-bottom: 0;
        cursor: pointer;
        display: inline-block;
        margin-right: 8px;
        position: relative;
    }

    #nav ul li a {
        border-bottom: 0;
        color: #232d36;
        height: 70px;
        line-height: 74px;
        padding-right: 8px;
        position: relative;
        text-transform: uppercase;
        width: auto;
        font-size: 14px;
        z-index: +1;
        font-family: 'Lato', sans-serif;
    }

    #nav ul li .hasChildren {
        margin-right: 4px;
        padding-right: 8px;
        width: auto;
    }

    #nav ul li .hasChildren:after {
        background: transparent;
        border: 0;
        height: 64px;
        padding-right: 4px;
        right: 0;
        width: 8px;
        display: none;
    }

    #nav ul li ul {
        background: #0a8a90;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
        height: auto;
        margin-top: -1px;
        width: auto !important;
        position: fixed;
        top: 71px;
        z-index: +1;
    }

    #nav ul li ul li {
        display: block;
        width: 100%;
        margin-right: 0;
    }

    #nav ul li ul li a {
        color: #fff;
        height: 40px;
        line-height: 40px;
        padding-right: 4px;
    }

    #nav ul li ul li a:hover {
        background: #035f79;
        color: #fff !important;
    }

    #nav ul li ul li .hasChildren {
        margin-right: 0;
        padding-right: 16px;
    }

    #nav ul li ul li .hasChildren:after {
        height: 40px;
        margin-right: 4px;
    }

    #nav ul li ul li ul {
        background: #FFD569;
        position: absolute;
        top: 0;
        left: 100%;
    }

    #nav ul li:last-child {
        margin-right: 0;
    }

    #nav ul li:hover ul {
        display: block;
    }

    #nav ul li:hover ul li ul {
        display: none;
    }

    #nav ul li:hover ul li:hover ul {
        display: block;
    }

    #nav ul li:hover ul li:hover ul li ul {
        display: none;
    }

    #nav ul li:hover ul li:hover ul li:hover ul {
        display: block;
    }
}

@media only screen and (min-width: 320px) and (max-width:480px) {
    #nav ul li a {
        border: 0;
        display: block;
        height: 39px;
        line-height: 42px;
        font-size: 14px;
        padding: 0 8px;
        position: relative;
        white-space: nowrap;
        width: calc(100% - 24px);
        border-bottom: solid 1px #ddd;
        color: #716f6f;
    }
    #nav {
        border: 5px solid #0a8a90;
    border-radius: 5px;
    }
}
