
/*
Add transition to containers so they can push in and out.
*/
#layout,
#mainnavmobile,
.pure-mainnavmobile-link {
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -ms-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

/*
This is the parent `<div>` that contains the mainnavmobile and the content area.
*/
#layout {
    padding-left: 200px; /* left col width "#mainnavmobile" */
    left: 0;
}


/*
The `#mainnavmobile` `<div>` is the parent `<div>` that contains the `.pure-mainnavmobile` that
appears on the left side of the page.

By using the combination of `position: fixed; top: 0; bottom:0;`, we can make
the mainnavmobile have 100% height and be fixed on the page as the rest of it scrolls.
*/
#mainnavmobile {
    margin-left: -150px; /* this should be "#menu" width */
    width: 150px;
    position: fixed;
    top: 0;
    left: 150px; /* this should be "#menu" width */
    bottom: 0;
    z-index: 1; /* so the menu or its navicon stays above all content */
    background: #191818;
    overflow-y: auto;
    -webkit-overflow-scroll: touch; /* for smooth scrolling on mobile */

}
    /*
    All anchors inside the mainnavmobile should be styled like this.
    */
    #mainnavmobile a,
    #mainnavmobile span {
        color: #999;
        border: none;
        padding: 0.8em 0 0.8em 0.5em;
        text-decoration: none;
        font-size: 1.35em;
        display: block;
        text-transform: uppercase;
        font-weight: bold;
    }

    #mainnavmobile .level_1 a {
    	background-color: #175825;
    	color: #fff;
    	margin-bottom: 1px;
    }

    #mainnavmobile i {
    	display: none;
    }

    #mainnavmobile .level_2 a,
    #mainnavmobile .level_2 span,
    #mainnavmobile .level_3 a,
    #mainnavmobile .level_3 span {
        color: #fff;
        margin-bottom: 0px;
    	background-color: #191818;
        border: none;
        padding: 0.8em 0 0.8em 0.5em;
        display: block;
        text-transform: none;
        border-bottom: 1px solid #333;
    	font-weight: normal;
    }

    #mainnavmobile .level_3 a,
    #mainnavmobile .level_3 span {
    	padding-left: 1.2em;
    	font-weight: normal;
    }

    #mainnavmobile span {
    	color: #fff !important;
    	background-color: #d8100b !important;
    }

    #mainnavmobile .level_1 a.trail {
    	background-color: #175825 !important;
    	color: #fff !important;
    }

    #mainnavmobile .level_2 a.trail {
    	color: #fff !important;
    	background-color: #191818 !important;
    }

    #mainnavmobile .level_2 a.last {
    }

    #mainnavmobile .level_3 a.first {
    }

    /*
    Remove all background/borders, since we are applying them to #mainnavmobile.
    */
     #mainnavmobile .pure-mainnavmobile,
     #mainnavmobile .pure-mainnavmobile ul {
        border: none;
        background: transparent;
    }

    /*
    Add that light border to separate items into groups.
    */
    #mainnavmobile .pure-mainnavmobile ul,
    #mainnavmobile .pure-mainnavmobile .mainnavmobile-item-divided {
        border-top: 1px solid #333;
    }
        /*
        Change color of the anchor links on hover/focus.
        */
        #mainnavmobile .pure-mainnavmobile li a:hover,
        #mainnavmobile .pure-mainnavmobile li a:focus {
            background: #333;
        }

    /*
    This styles the selected mainnavmobile item `<li>`.
    */
    #mainnavmobile .pure-mainnavmobile-selected,
    #mainnavmobile .pure-mainnavmobile-heading {
        background: #1f8dd6;
    }
        /*
        This styles a link within a selected mainnavmobile item `<li>`.
        */
        #mainnavmobile .pure-mainnavmobile-selected a {
            color: #fff;
        }

    /*
    This styles the mainnavmobile heading.
    */
    #mainnavmobile .pure-mainnavmobile-heading {
        font-size: 110%;
        color: #fff;
        margin: 0;
    }

/* -- Dynamic Button For Responsive mainnavmobile -------------------------------------*/

/*
The button to open/close the mainnavmobile is custom-made and not part of Pure. Here's
how it works:
*/

/*
`.pure-mainnavmobile-link` represents the responsive mainnavmobile toggle that shows/hides on
small screens.
*/
.pure-mainnavmobile-link {
    display: none; /* show this only on small screens */
    top: 0;
    left: 150px; /* `#mainnavmobile`'s width */
    background: #000;
    font-size: 10px; /* change this value to increase/decrease button size */
    z-index: 10;
    width: 2em;
    height: auto;
    padding: 2.2em 1.6em;
}

.pure-mainnavmobile-link:hover,
.pure-mainnavmobile-link:focus {
    background: #000;
}

.pure-mainnavmobile-link span {
    position: relative;
    display: block;
}

.pure-mainnavmobile-link span,
.pure-mainnavmobile-link span:before,
.pure-mainnavmobile-link span:after {
    background-color: #fff;
    width: 100%;
    height: 0.2em;
}

.pure-mainnavmobile-link span:before,
.pure-mainnavmobile-link span:after {
    position: absolute;
    margin-top: -0.6em;
    content: " ";
}

.pure-mainnavmobile-link span:after {
    margin-top: 0.6em;
}


/* -- Responsive Styles (Media Queries) ------------------------------------- */

/*
Hides the mainnavmobile at `767px`, but modify this based on your app's needs.
*/

@media (min-width: 650px) {
	#mainnavmobile {
		display: none;
	}
}

@media (max-width: 650px) {

    .header {
        text-align: left;
    }

    /*
    Navigation Push styles.
    */
    #top {
        position: relative;
        padding-left: 0;
    }
        #top.active {
            position: relative;
            left: 220px;
        }
            #top.active #mainnavmobile {
                left: 150px;
                width: 220px;
            }

    #mainnavmobile {
        left: 0;
    }

    .pure-menu-link {
        position: static;
        left: 0;
        display: block; /* show the button on small screens */
        width:50px;
        height:50px;
        background: url('../images/icons/hamburger.png') center top no-repeat #175825;
        z-index: 999;
    }

    #top.active .pure-menu-link {
        left: 220px;
    }
}

