.top_secondary {
    background: #312a31;
    height: 50px;
    #main_nav {
        font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
        text-align: left;
        font-size: 14px;
        li {
            a {
                height: 50px;
                line-height: 50px;
                color: #bdbdbd;
                padding: 0 8px;
                &:hover {
                    text-decoration:none;
                }
            }
        }
    }
}
#mega-menu {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 40px;
    list-style: none;
    position: relative;
    li {
        float: left;
        margin: 0;
        padding: 0;
        a {
            float: left;
            display: block;
            color: #fff;
            text-decoration: none;
        }
        ul {
            display: none;
            list-style-type: none;
        }
    }
    .sub {
        display: none;
        ul {
            display: block;
        }
    }
}

a#nav-toggle {
    display: block;
    text-align: right;
    font-size: 1.5em;
    padding-right: 0px;
    text-decoration: none;
    position: relative;
    z-index: 999999;
    color: #000000;
    top: 20px;
}

.navbar {
    margin-bottom: 0px;
}

button {
    &.primary-button {
        border: 1px solid #f0efed;
    }
}

html.mm-opened {
    .mobile-menu-wrapper {
        position: relative;
        &:after {
            border-left: 12px solid transparent;
            border-right: 12px solid transparent;
            border-bottom: 15px solid #f0efed;
            top: 56px;
            right: 0;
            background-image: " ";
            height: 0;
            width: 0;
            position: absolute;
            pointer-events: none;
            z-index: 10000000;
        }
    }
}


@media (max-width: 949px) {
    a#nav-toggle {
        display: block;
        text-align: right;
        float: right;
        right: 0px;
        position: relative;
        &.active {
            color: #9a9c9e;
            .icon.icon-trigram {
                background-position: -121px -156px;
            }
        }
    }

    .top_secondary {
        position: absolute;
        visibility: hidden;
    }

    #mobile-nav {
        z-index: 9998;
    }

    .mm-ismenu {
        background: #fff;
    }

    .mm-menu {
        .mm-list {
            padding-top: 44px;            
            li:not(.mm-subtitle):not(.mm-label):not(.mm-noresults):after {
              margin-left: 0;
            }
            a {
                color: #575757;
                padding: 20px 40px 10px 40px;
                outline: none;
                background: #f0efed;
                transition: text-decoration 0.4s ease;
                &:hover {
                    color: #575757;
                    outline: none;
                    text-decoration: underline;
                }
                &.header-links {
                    color: #575757;
                    padding: 10px 40px 10px 40px;
                    outline: none;
                    background: #ffffff;
                    font-weight: 500;
                    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
                    &.mobile-login {
                        background-color:#8fd400;
                    }
                    &:hover {
                        color: #575757;
                        outline: none;
                        text-decoration: underline;
                        font-weight: 500;
                    }
                }
                &.blank {
                    color: #575757;
                    padding: 25px 10px 40px 20px;
                    outline: none;
                    background: #ffffff;                    
                }
                &.main-menu {
                    color: #575757;
                    padding: 10px 40px;
                    outline: none;
                    background: #f0efed;
                    font-weight: 600;
                    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
                    &:hover {
                        color: #575757;
                        outline: none;
                        text-decoration: underline;
                        font-weight: 600;
                    }                 
                }
                &.new-level {
                    color: #575757;
                    padding: 20px 40px 10px 40px;
                    outline: none;
                    background: #f0efed;
                    font-weight: 600;
                    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
                }
                &.main-menu-last {
                    color: #575757;
                    padding: 10px 40px 20px 40px !important;
                    outline: none;
                    background: #f0efed;
                    font-weight: 600;
                    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
                    &:hover {
                        color: #575757;
                        outline: none;
                        text-decoration: underline;
                        font-weight: 600;
                    }
                }
                &.header-links-first {
                    color: #575757;
                    padding: 20px 40px 10px 40px;
                    outline: none;
                    background: #ffffff;
                    font-weight: 500;
                    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
                    &:hover {
                        color: #575757;
                        outline: none;
                        text-decoration: underline;
                        font-weight: 300;
                    }
                }
                &.header-links-last {
                    color: #575757;
                    padding: 10px 40px 20px 40px;
                    outline: none;
                    background: #ffffff;
                    font-weight: 500;
                    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
                }
                &.second-level-first {
                    color: #575757;
                    padding: 40px 40px 10px 40px;
                    outline: none;
                    background: #f0efed;
                    font-weight: 300;
                }
                &.second-level {
                    color: #575757;
                    padding: 10px 40px 10px 40px;
                    outline: none;
                    background: #f0efed;
                    font-weight: 300;
                }
                &.second-level-last {
                    color: #575757;
                    padding: 15px 40px 40px 40px;
                    outline: none;
                    background: #f0efed;
                    font-weight: 300;
                }
                &.mm-subclose {
                    margin-top: 0;
                    &:before {
                      margin-bottom: -3px;
                    }
                }
            }
            h4 {
                color: #575757;
                padding: 25px 10px 25px 20px;
                outline: none;
            }
            &.sub_menu {
                padding-top: 60px;
            }
        }
    }
}

/*
	jQuery.mmenu CSS
*/
.mm-page,
.mm-fixed-top,
.mm-fixed-bottom,
.mm-menu.mm-horizontal > .mm-panel {
    -webkit-transition: none 0.4s ease;
    -moz-transition: none 0.4s ease;
    -ms-transition: none 0.4s ease;
    -o-transition: none 0.4s ease;
    transition: none 0.4s ease;
    -webkit-transition-property: top, right, bottom, left, border;
    -moz-transition-property: top, right, bottom, left, border;
    -ms-transition-property: top, right, bottom, left, border;
    -o-transition-property: top, right, bottom, left, border;
    transition-property: top, right, bottom, left, border;
}
html.mm-opening {
    .mm-page,
    #mm-blocker {
        border: 0px solid rgba(100, 100, 100, 0);
    }
}
.mm-menu {
    .mm-hidden {
        display: none;
    }
    .mm-panel {
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        -ms-box-sizing: border-box;
        -o-box-sizing: border-box;
        box-sizing: border-box;
    }
}
.mm-fixed-top,
.mm-fixed-bottom {
    position: fixed;
    left: 0;
}
.mm-fixed-top {
    top: 0;
}
.mm-fixed-bottom {
    bottom: 0;
}

html {
    &.mm-opened {
        overflow-x: visible;
        position: relative;
        body {
            overflow-x: visible;
            position: relative;
        }
        .mm-page {
            left: 0;
            top: 0;
            margin: 0;
            position: relative;
            border: 0px solid transparent;
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            -ms-box-sizing: border-box;
            -o-box-sizing: border-box;
            box-sizing: border-box;
        }
        #mm-blocker {
            left: 0;
            top: 0;
            margin: 0;
            display: block;
            border: 0px solid transparent;
        }
    }
    &.mm-blocking {
        #mm-blocker {
            display: block;
        }
    }
    &.mm-background {
        .mm-page {
            background: inherit;
        }
    }
}

#mm-blocker {
  background: url(data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==) transparent;
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 999999;
}

.mm-menu {
    .mm-list {
        padding: 20px 0;
    }
    &.mm-current {
        display: block;
    }
}


.mm-menu {
    background: inherit;
    display: none;
    overflow: hidden;
    height: 100%;
    padding: 0;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 0;
}
.mm-menu {
    .mm-panel {
        background: inherit;
        -webkit-overflow-scrolling: touch;
        overflow: scroll;
        overflow-x: hidden;
        overflow-y: auto;
        width: 100%;
        height: 100%;
        padding: 0px !important;
        position: absolute;
        top: 0;
        left: 100%;
        z-index: 0;
        &.mm-opened {
            left: 0%;
            top: 0;
            margin: 0;
            padding: 0;
        }
        &.mm-subopened {
            left: -100%;
        }
        &.mm-highest {
            z-index: 1;
        }
        &.mm-hidden {
            display: block;
            visibility: hidden;
        }
    }
}
.mm-menu {
    .mm-list {
        padding: 20px 0 40px 0;
    }
}

.mm-panel {
    .mm-list {
        margin-left: -20px;
        margin-right: -20px;
        list-style: none;
        display: block;
        padding: 0;
        margin: 0;
        li {
            list-style: none;
            display: block;
            padding: 0;
            margin: 0;
        }
        &:first-child {
            padding-top: 0;
        }
    }
}

.mm-list {
    font: inherit;
    font-size: 14px;
    a {
        text-decoration: none;
        &:hover {
            text-decoration: none;
        }
        &.mm-subopen {
            width: 40px;
            height: 100%;
            padding: 0;
            position: absolute;
            right: 0;
            top: 0;
            z-index: 2;
            &::before {
                background-image: '';
                border-left-width: 0px;
                border-left-style: solid;
                display: block;
                height: 100%;
                position: absolute;
                left: 0;
                top: 0;
            }
            &.mm-fullsubopen {
                width: 100%;
                &:before {
                    border-left: none;
                }
            }
        }
        &.mm-subopen + a,
        &.mm-subopen + span {
          padding-right: 5px;
          margin-right: 40px;
        }
        &.mm-subclose {
          text-indent: 20px;
          padding-top: 20px;
          margin-top: 0px;
          background: #f0efed !important;
        }
        &.mm-subopen:after,
        &.mm-subclose:before {
          background-image: '';
          border: 2px solid transparent;
          display: block;
          width: 7px;
          height: 7px;
          margin-bottom: -5px;
          position: absolute;
          bottom: 50%;
          -webkit-transform: rotate(-45deg);
          -moz-transform: rotate(-45deg);
          -ms-transform: rotate(-45deg);
          -o-transform: rotate(-45deg);
          transform: rotate(-45deg);
        }
        &.mm-subopen:after {
          border-top: none;
          border-left: none;
          right: 18px;
        }
        &.mm-subclose:before {
          border-right: none;
          border-bottom: none;
          margin-bottom: -15px;
          left: 22px;
        }
    }
    li {
        position: relative;
        margin-bottom:0;
        a, 
        span {
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
            color: inherit;
            line-height: 20px;
            display: block;
            padding: 10px 10px 10px 20px;
            margin: 0;
        }        
        &.mm-selected {
            a.mm-subopen {
                background: #dddddd;
            }
            a.mm-fullsubopen + a,
            a.mm-fullsubopen + span {
                padding-right: 45px;
                margin-right: 0;
                margin-top: 0px;
            }
        }
        &.mm-label {
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
            font-size: 10px;
            text-transform: uppercase;
            text-indent: 20px;
            line-height: 25px;
            padding-right: 5px;
        }
        &.mm-spacer {
            padding-top: 40px;
            &.mm-label {
                 padding-top: 25px;
            }
        }
        &:not(.mm-subtitle):not(.mm-label):not(.mm-noresults)::after {
            background-image: '';
            border: none;
            display: block;
            width: 100%;
            position: absolute;
            bottom: 0;
            left: 0;
        }
        &:not(.mm-subtitle):not(.mm-label):not(.mm-noresults):after {
            width: auto;
            margin-left: 20px;
            position: relative;
            left: auto;
        }
    }
}

.mm-menu {
    &.mm-vertical {
        .mm-list {
            .mm-panel {
                display: none;
                padding: 10px 0 10px 10px;
                li {
                    &.mm-opened {
                        .mm-panel {
                            display: block;
                        }
                    }
                    &.mm-opened {
                        a.mm-subopen {
                            height: 40px;
                        }
                    }
                    &.mm-opened {
                        a.mm-subopen:after {
                            -webkit-transform: rotate(45deg);
                            -moz-transform: rotate(45deg);
                            -ms-transform: rotate(45deg);
                            -o-transform: rotate(45deg);
                            transform: rotate(45deg);
                            top: 16px;
                            right: 16px;
                        }
                    }
                    &:last-child:after {
                        border-color: transparent;
                    }
                }
            }
        }
    }
}

html {
    &.mm-opened {
        .mm-page {
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
        }
    }
}

.mm-ismenu {
    background: rgba(0, 0, 0, 0.6);
    color: rgba(0, 0, 0, 0.6);
}

.mm-menu {
    .mm-list {
        li {
            a {
                &.mm-subopen {
                    &:after {
                        border-color: rgba(0, 0, 0, 0.3);
                    }
                    &:before {
                        border-color: rgba(0, 0, 0, 0.15);
                    }
                }
                &.mm-subclose{
                    background: rgba(0, 0, 0, 0.1);
                    color: #575757;
                    font-weight: 600;
                    text-align: center;
                    font-size: 18px;
                    &:before {
                        border-color: rgba(0, 0, 0, 0.3);
                    }
                }
            }
            &:after {
                border-color: rgba(0, 0, 0, 0.15);
            }
            &.mm-selected > a:not(.mm-subopen),
            &.mm-selected > span {
                background: #dddddd;
            }
            &.mm-label {
                background: rgba(255, 255, 255, 0.05);
            }
        }
    }
    &.mm-vertical {
        .mm-list {
            li {
                &.mm-opened {
                    a.mm-subopen,
                    ul {
                        background: rgba(255, 255, 255, 0.05);
                    }
                }
            }
        }
    }
}


html.mm-opening {
    .mm-page,
    #mm-blocker,
    .mm-fixed-top,
    .mm-fixed-bottom {
        left: 0%;
        height: 40px;
    }
}

#mobile-nav {
    visibility: visible;
}

.mm-menu {
    width: 100%;
    margin-top: 70px;
}


@media all and (max-width: 175px) {
    .mm-menu {
        width: 100%;
    }
    #mobile-nav {
        visibility: visible;
    }
    html.mm-opening {
        .mm-page,
        #mm-blocker,
        .mm-fixed-top,
        .mm-fixed-bottom {
            left: 0%;
        }
    }
}


@media all and (min-width: 768px) {
    .mm-menu {
        width: 100%;
        display: none;
    }
    #mobile-nav {
        visibility: hidden;
        display: none;
        left: 0;
    }
    html.mm-opening {
        .mm-page,
        #mm-blocker,
        .mm-fixed-top,
        .mm-fixed-bottom {
            left: 0%;
        }
    }
}
