/* ----------------------------------------------------------------------------
    Navigation Menu
----------------------------------------------------------------------------- */
span#menutoggle.test.is-active { position: fixed; height: 40px; padding:5px 0 0 0; z-index: 99; width:100%; background-color:#8EC59D; border-radius: 0;  }

#menutoggle {
    display: block;
    margin: 0;
    padding:0;
    width: 30px;
    color: #fff;
    background:transparent;
    height:30px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    right: 0;
    bottom: 0;
    transition: background 0.2s linear 0s;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    text-align: center;
}
#menutoggle span {
    display: none;
}
#menutoggle:before {
    display: inline-block;
    margin-left: 0;
    width: 30px;
    height: 30px;
    line-height: 33px;
    content: "\f0c9";
    color: inherit;
   font-family: 'FontAwesome';
    text-align: center;
    font-size: 25px;
    vertical-align: top;
}
#menutoggle.is-active:before {
        content: "\f00d";
}
#menutoggle:hover, #menutoggle:active, #menutoggle.is-active {
    background-color: #455a64;
    border-radius: 4px 4px 0 0;
}
#menutoggle { display: inline-block; }
#nav {
    clear: both;
    margin: 0;
    height: 0;
    overflow: visible;
    position: relative;
}
#nav ul {
    float: none;
    display: block;
    margin: 0;
    width: auto;
    opacity: 0;
    max-height: 0;
    background: #004368;
    overflow: hidden;
    transition: max-height 0.25s cubic-bezier(0, 0.7, 0, 1), opacity 0.2s ease-in-out;
    border-radius: 0 0 4px 4px;
    top: 1px;
    border: 0;
    position: relative;
}
#nav #menutoggle.is-active + ul {
    max-height: 1000px;
    opacity: 1;
    transition: max-height 0.3s ease-in-out, opacity 0.25s ease-in-out;
}
#nav li {
    display: block;
    margin: 0;
    padding: 0;
    height: auto;
    overflow: hidden;
    border: 0;
    border-top:1px solid #002d46;
}

#nav li.onmobile {
    display: block;
}

#nav a, #nav span.submenu {
    float: none;
    display: block;
    margin: 0;
    padding: 9px 20px;
    height: auto;
    color: #fff;
    line-height: 1.6em;
    text-align: left;
    font-size:15px;
    font-weight: 500;
    border: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    transition: background 0.17s linear 0s;
    text-decoration: none;
}
#nav span.submenu:after {
    float: right;
    margin-left: 10px;
    width: 15px;
    height: inherit;
     content: "\f107";
    color: inherit;
    font-family: 'FontAwesome';
    text-align: center;
    font-size: 105%;
    vertical-align: top;
}
#nav span.submenu.is-active {
    border-bottom: 1px dotted #455a64;
}
#nav span.submenu.is-active:after {
    content: "\f106";
}
#nav ul.submenu {
    margin: 0;
    padding: 0;
    width: 100%;
    max-height: 0;
    background: none;
    opacity: 1;
    position: relative;
    top: 0;
    transition: max-height 0.15s linear 0s;
}
#nav span.submenu.is-active + ul.submenu {
    max-height: 360px;
    overflow-y: auto;
}
#nav ul.submenu a {
    padding-left: 40px;
    background: none;
}
#nav ul li a.active { color:#8EC59D;  }
#nav a:hover, #nav a.is-active, #nav li:hover span.submenu, #nav ul.submenu a:hover, #nav ul.submenu a.is-active {
    background: #8EC59D;
}

@media (min-width: 36em) { /* Small devices (landscape phones, 576px and up) */
/*@media (min-width: 48em) { /* Medium devices (tablets, 768px and up) */
    #menutoggle { padding:0; }
    #menutoggle span { display: none; }
    #menutoggle:before { margin-right: 10px; }
span#menutoggle.test { background-color: transparent;  }










}
@media (min-width:62.5em) { /* Large devices (desktops, 992px and up) */
    #menutoggle { display: none; }
    #nav {
        position: relative;
        z-index: 99;
        border: 0;
        margin:0 10px 0 0;
        
    }
    #nav ul {
        display: block !important;
        float: left;
        width: 100%;
        height: auto;
        opacity: 1;
        margin: 0 0;
        position: relative;
        z-index: 10;
        top: 0;
        overflow: visible;
    }
    #nav li {
        float: left;
        margin: 0 0;
        padding: 0;
        height: auto;
        width: auto;
        min-width: auto;
        position: relative;
        border: 0;
        overflow: visible;
    }
   
    #nav a, #nav span.submenu {
        float: left;
        margin: 0;
        padding:10px 15px;
        height: auto;
        border: 0;
        color: rgba(255,255,255,0.7);
        text-align: center;
        text-transform: none;
        transition: background 0.2s linear 0s; font-size: 15px;
        cursor: pointer;
    }
    #nav span.submenu:after {
        display: none;
    }
    
    
    #nav a:hover, #nav a.is-active, #nav li:hover span.submenu, #nav ul.submenu a:hover, #nav span.submenu.is-active {
        background:transparent; color:#8EC59D;
    }
    #nav li:hover a.submenu, #nav li:hover span.submenu, #nav span.submenu.is-active.hover {
        border-radius: 3px 3px 0 0;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
    }
    #nav li:hover {
        z-index: 11;
    }
    #nav ul.submenu {
        float:left;
        margin: 0;
        padding: 0;
        width: 250px;
        max-height: 0;
        position: absolute;
        opacity: 0;
        background: #479ac6;
        top: 95%;
        z-index: 10;
        border-radius: 0 3px 3px 3px;
        box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
        transition: max-height 0.2s linear 0s, padding 0.2s linear 0s, opacity 0.2s linear 0s;
        overflow: hidden;
        overflow-y: auto;
    }
    #nav li:hover ul.submenu, #nav ul.submenu.is-active {
        padding:0;
        left: 0;
        max-height: 360px;
        opacity: 1;
    }
    #nav ul.submenu li {
        float: none;
        display: block;
        margin: 0;
        padding: 0;
        border: 0;
        height: auto;
    }
    #nav ul.submenu a {
        float: none;
        display: block;
        margin: 0;
        padding:7px 10px 7px 10px;
        height: auto;
        text-transform: none;
        text-align: left;
        line-height: 1.5em;
        border-radius: 0;
        border: 0;
        border-top: 1px dotted #37474f;
    }
    #nav ul.submenu li:first-child a {
        border: 0;
    }
    #nav ul.submenu li a:hover, #nav ul.submenu li a.is-active {
        background: #8EC59D; color:#fff;
    }
}
