﻿/* adjust body when menu is open */
body.slide-active {
    position: fixed;
    overflow: hidden;
}
/*first child of #page-content so it doesn't shift around*/
.no-margin-top {
    margin-top: 0px!important;
}
/*wrap the entire page content but not nav inside this div if not a fixed top, don't add any top padding */
#page-content {
    position: relative;
    left: 0;
}

    #page-content.slide-active {
        padding-top: 0;
    }



/* put toggle bars on the left :: not using button */
#slide-nav .navbar-toggle {
    cursor: pointer;
    position: relative;
    line-height: 0;
    float: left;
    margin: 0;
    width: 30px;
    height: 40px;
    padding: 10px 0 0 0;
    border: 0;
    background: transparent;
}
    /* icon bar prettyup - optional */
    #slide-nav .navbar-toggle > .icon-bar {
        width: 100%;
        display: block;
        height: 3px;
        margin: 5px 0 0 0;
        background: white;
    }

    #slide-nav .navbar-toggle.slide-active .icon-bar {
        background: #555;
    }

.navbar-header {
    position: relative;
    width: 100%;
}
/* un fix the navbar when active so that all the menu items are accessible */
.navbar.navbar-fixed-top.slide-active {
    position: relative;
}
/* screw writing importants and shit, just stick it in max width since these classes are not shared between sizes */
@media (max-width:767px) {
    #slide-nav .container {
        margin: 0!important;
        padding: 0!important;
        height: 100%;
    }

    #slide-nav .navbar-header {
        margin: 0 auto;
        padding: 0 25px;
    }

    #slide-nav .navbar.slide-active {
        position: absolute;
        width: 80%;
        top: -1px;
        z-index: 1000;
    }

    #slide-nav #slidemenu {
        background: #f7f7f7;
        left: -100%;
        width: 70%;
        min-width: 0;
        position: absolute;
        padding-left: 0;
        z-index: 2;
        top: -8px;
        margin: 0;
    }

        #slide-nav #slidemenu .navbar-nav {
            min-width: 0;
            width: 100%;
            margin: 0;
            overflow: auto;
            background: #555;
        }

            #slide-nav #slidemenu .navbar-nav .dropdown-menu li a {
                min-width: 0;
                /*width: 80%;*/
                white-space: normal;
            }

    #slide-nav {
        border-top: 0;
        border-bottom: 1px solid;
    }

        #slide-nav.navbar-inverse #slidemenu {
            background: #333;
        }
    /* this is behind the navigation but the navigation is not inside it so that the navigation is accessible and scrolls*/
    #navbar-height-col {
        position: fixed;
        top: 0;
        height: 100%;
        bottom: 0;
        width: 80%;
        left: -80%;
        background: #f7f7f7;
    }

        #navbar-height-col.inverse {
            background: #333;
            z-index: 1;
            border: 0;
        }

    #slide-nav .navbar-form {
        width: 100%;
        margin: 8px 0;
        text-align: center;
        overflow: hidden;
        /*fast clearfixer*/
    }

        #slide-nav .navbar-form .form-control {
            text-align: center;
        }

        #slide-nav .navbar-form .btn {
            width: 100%;
        }
}

@media (min-width:768px) {
    #page-content {
        left: 0!important;
    }

    .navbar.navbar-fixed-top.slide-active {
        position: fixed;
    }

    .navbar-header {
        left: 0!important;
    }
}

.dropdown-submenu.pull-left > .dropdown-menu {
    left: -100%;
    margin-left: 10px;
    -webkit-border-radius: 6px 0 6px 6px;
    -moz-border-radius: 6px 0 6px 6px;
    border-radius: 6px 0 6px 6px;
}

/*nav-bar*/
@media screen and (max-width: 767px) {
    #slidemenu > .navbar-nav {
        padding-bottom: 20px;
    }

    .nav > li {
        background: #555;
        border-bottom: 1px solid #484848;
    }

        .nav > li a {
            color: white !important;
        }

    #slidemenu #search {
        background: #333;
    }

    #slide-nav .navbar-form {
        margin: 8px 0px 0px 0px;
    }

        #slide-nav .navbar-form input {
            background: #555!important;
            border: 0px;
            color: white;
        }

        #slide-nav .navbar-form .input-group-btn > .btn {
            background: #555!important;
            border: 1px solid #555;
        }

    .nav > li > a:hover {
        text-decoration: none;
        background-color: #666;
    }

    .nav .open > a, .nav .open > a:focus, .nav .open > a:hover, .nav > li > a:focus, .nav > li > a:hover {
        text-decoration: none;
        background-color: #666;
    }
}

#menu {
    /*height: 50px;*/
    background-color: #282828;
    height: 50px;
    width: 100%;
}

@media (min-width: 768px) {
    .nav > li a {
        color: #eeeeee !important;
        font-size: 14px;
        text-decoration: none;
        text-transform: uppercase;
    }
}

.nav > li > a:hover,
.nav > li > a:focus {
    text-decoration: none;
    background-color: #2eb52a;
}

.nav > li.disabled > a {
    color: #777;
}

    .nav > li.disabled > a:hover,
    .nav > li.disabled > a:focus {
        color: #777;
        text-decoration: none;
        cursor: not-allowed;
        background-color: transparent;
    }

.nav .open > a,
.nav .open > a:hover,
.nav .open > a:focus {
    background-color: #2eb52a;
    border-color: #2eb52a;
}

.nav .nav-divider {
    height: 1px;
    margin: 9px 0;
    overflow: hidden;
    background-color: #e5e5e5;
}

#menu .sm {
    position: relative;
    background-color: #282828;
}

.navbar-nav > li > .dropdown-menu {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    background-color: #2eb52a;
}

.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
    margin-bottom: 0;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.nav .dropdown-menu .open > a,
.nav .dropdown-menu .open > a:hover,
.nav .dropdown-menu .open > a:focus {
    margin-top: 0px;
}

.navbar-nav .dropdown-menu > li > a:hover {
    background-color: #30c42a;
}

.navbar {
    background-color: #28ae2a!important;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 160px;
    padding: 5px 0;
    margin: 2px 0 0;
    font-size: 14px;
    text-align: left;
    list-style: none;
    background-color: #2eb52a;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    border: 1px solid #ccc;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 4px;
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
}
