/*  NAVIGATION
------------------------------------------------*/
#menu-button {
    display: none;
}

nav.mobile {
    display: none;
}

nav.primary {
    margin: 0;
    width: 100%;
    z-index: 500;
    position: relative;
    background: none;
    margin-top: auto;
    padding: 10px 0;

}

nav.primary ul {
    display: flex;
    max-width: 806px;
    flex-direction: row;
    justify-content: space-between;
    margin-left: auto;
}

nav.primary ul li {
    margin: 0;
    flex: 1 0 auto;
    padding: 0 10px;
}

nav.primary ul li:hover,
nav.primary ul li:focus,
nav.primary ul li:active {
    color: #202020;
}

nav.primary ul li a {
    font-family: 'Teko', sans-serif;
    display: block;
    color: #0002da;
    font-weight: 500;
    font-size: 26px;
    text-decoration: none;
    padding: 0;
    margin: 0;
    text-align: center;
    -webkit-transition: .5s ease-in;
    -moz-transition: .5s ease-in;
    -o-transition: .5s ease-in;
    transition: .5s ease-in;
}

nav.primary ul li a:hover {
    color: #000;
}

/*  SUB NAV
------------------------------------------------*/
nav.primary ul li li {
    width: 230px;
}

nav.primary ul li li a:link,
nav.primary ul li li a:visited {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 16px;
    padding: 10px 0;
    text-indent: 20px;
    color: #fff;
    background: rgba(0, 0, 0, 0.70);
    width: 230px;
    text-align: left;
    border-right: none;
    border-left: none;
    border-bottom: #fff solid 1px;
}

nav.primary ul li li a:hover,
nav.primary ul li li a:active {
    color: #fff;
    background: rgba(204, 32, 39, 0.75);
}


/*  NAV DROPDOWNS
------------------------------------------------*/
nav.primary ul ul {
    display: none;
    position: absolute;
}

nav.primary ul ul ul {
    position: absolute;
    left: 100%;
    top: 0;
}

nav.primary ul li:hover > ul {
    display: block;
    line-height: 18px;
    z-index: 500;
    padding: 20px;
}

nav.primary ul ul li {
    float: none;
    position: relative;
    margin: 0;
}


#mobile-container {
    display: none;
}

nav.mobile {
    display: none;
}




/************************************************ Responsive Styles **/

@media screen and (max-width: 767px) {

    .social-media i {
        color: #fff;
    }

    nav.primary {
        display: none;
    }

    #menu-button {
        width: 100%;
        display: block;
        font-size: 20px;
        line-height: 60px;
        position: relative;
        z-index: 400;
        background: #1c426d;
    }

    #menu-button a {
        color: #fff;
        text-decoration: none;
        padding: 0 0 0 .8em;
        font-weight: 100;
    }

    nav.mobile {
        display: block;
        position: fixed;
        top: 0;
        left: -285px;
        width: 285px;
        height: 100%;
        z-index: 500;
        overflow: auto;

        background: #333;
    }

    /* MENU HEADER SOCIAL MEDIA */
    nav.mobile .social-media {
        position: absolute;
        text-decoration: none;
        vertical-align: top;
        z-index: 9999;
        display: inline-block;

        top: 15px;
        left: 15px;
        font-size: 16px;
        word-spacing: 13px;
        color: #ccc !important;
    }

    nav.mobile .social-media a:link,
    nav.mobile .social-media a:visited {
        color: #ccc;
        text-decoration: none;
    }

    nav.mobile .social-media a:hover,
    nav.mobile .social-media a:active {
        color: #fff;
        text-decoration: underline;
    }

    /* MENU HEADER STYLES */
    nav.mobile h3 {
        color: #ccc;
        padding: 23px 0;
        position: relative;
        font-size: 18px;
        background: #313131;
    }

    nav.mobile .menu-title {
        position: absolute;
        vertical-align: top;
        top: 16px;
        right: 47px;
        text-transform: uppercase;
        font-size: 12px;
        color: #ccc;
    }

    /* MENU CLOSE 'X' BUTTON */
    nav.mobile .menu-toggle {
        position: absolute;
        top: 8px;
        right: 10px;
        padding: 6px 9px 5px;
        display: inline-block;
        font-weight: 700;
        font-size: 18px;
        line-height: 1;
        color: #ccc;
        text-decoration: none;
        vertical-align: top;
        font-family: Arial, sans-serif;
    }

    nav.mobile .menu-toggle:hover {
        color: #fff;
    }

    /* MENU LIST STYLE */
    nav.mobile ul {
        list-style: none;
        font-weight: 300;
        margin: 0;
        padding: 0;
    }

    nav.mobile ul li {
        color: #999;
        font-size: 15px;
        border-bottom: 1px solid #303030;
    }

    /* FIRST LEVEL */
    nav.mobile ul li a {
        color: #999;
        position: relative;
        display: block;
        font-size: 15px;
        text-align: right;
        text-decoration: none;
        border-left: 4px #333 solid;
        padding: 15px 35px 15px 20px;
        text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    }

    nav.mobile ul li a:hover {
        background: rgba(45, 45, 45, 0.5);
        color: #fff;
        border-left: 4px #0002da solid;
    }

    /* SECOND LEVEL */
    nav.mobile ul li li:last-child {
        border: none;
    }

    nav.mobile ul li li a {
        color: #ccc;
        background: #444;
        border-left: 4px #444 solid;
        padding: 15px 10px 15px 15px;
    }

    nav.mobile ul li li a:hover {
        background: rgba(65, 65, 65, 0.5);
    }

    /* THIRD LEVEL */
    nav.mobile ul li li li:last-child {
        border: none;
    }

    nav.mobile ul li li li a {
        color: #ccc;
        background: #555;
        border-left: 4px #555 solid;
    }

    nav.mobile ul li li li a:hover {
        background: rgba(85, 85, 85, 0.5);
    }

    .nav-footer {
        color: #292929;
        position: relative;
        text-align: center;
        font-size: 16px;
        line-height: 16px;
        padding: 15px 0;
    }

    #mobile-container {
        /* initially will need to be hidden */
        display: block;
        font-size: 28px;
        position: fixed;
        bottom: 0;
        padding: 10px 0;
        border-top: solid 6px #0002da;
        background: #000;
        width: 100%;
        z-index: 99999;
    }

    .invPage div#mobile-container {
        margin-bottom: 65px;
    }

    li.mobile-button {
        width: 20%;
        float: left;
        text-align: center;
    }

    li.mobile-button a {
        font-size: 14px;
        font-weight: 600;
        color: #fff;
    }

    .mobile-button img {
        display: inline-block;
    }

}

@media screen and (max-width: 400px) {
    li.mobile-button a {
        font-size: 10px;
    }

}
