/*
 * Navigataur: A pure CSS responsive navigation menu
 * Author: Mike King (@micjamking)
 */

/*
 	Notes:
 
 	- Media queries should be edited in both style sections if you require 
	  a different breakpoint for your navigation.
	  
	- Toggle class & menu anchor tags in list items have box-sizing: border-box 
	  style property to allow padding inside the container without conflicting with layout.	

*/


/*--------------------------------
 Functional Styles (Required)
---------------------------------*/
/* Tim Pietrusky advanced checkbox hack (Android <= 4.1.2) */
body{ -webkit-animation: bugfix infinite 1s; }
@-webkit-keyframes bugfix { from {padding:0;} to {padding:0;} }

.header { position: relative; }
#toggle, .toggle { display: none;}
.menu > li { list-style: none; float:left;	display: inline;}

/* Nicolas Gallagher micro clearfix */
.clearfix:before, .clearfix:after { display: table; content: ""; }
.clearfix:after { clear: both; }

@media only screen and (max-width: 650px){
	.menu { display: none; opacity: 0; width: 100%; position: absolute; right: 0;}
	.menu > li { display: block; width: 100%; margin: 0; }
	.menu > li > a { display: block; width: 100%; text-decoration: none; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
	.toggle { display: block; position: relative; cursor: pointer; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; float: right;}
	#toggle:checked ~ .menu { display: block; opacity: 1;}
}


/*--------------------------------
 Presentation Styles (Editable)
---------------------------------*/
.header{
	min-height: 100px;
	height: 100%;
	padding: 0 20px;
	background: #FFFFFF;
}

.header > h1 {
	float: left;
	padding: 30px 0 0;		
	font-style: italic;
	font-family: Georgia;
	font-size: 28px;
	color: #DFDFDF;
}

.nav{ 
	display: block; 
	float: right; 
}

.menu {
	margin: 0;
	position: relative;
    float: right;
    text-align: right;
}

.toggle{ 
	z-index: 2; 
	margin-top: 5px;
}

@media only screen and (max-width: 650px){
	.menu{
		background: #55636c;
		border-top: 1px solid #55636c;
		margin: 0px 0;
		height: 50px;
	}
	
	.menu, .menu > li, .menu > li > a{
		height: auto;
	}
	
	.menu > li > a{
		padding: 15px 15px;
	}
	
	.menu > li > a:hover, .menu > li > a:focus{
		background: #3a4349;
	}
	
	.toggle:after {
		content: "";
		font-family: 'Muli', 'sans-serif';
		background: url("../img/menu_c.png") no-repeat center;
		background-size: content;
		display: block;
		width: 45px;
		height: 45px;
		margin: 2px 20px;
		text-align: center;
		font-size: 20px;
		color: #FFFFFF;
		-webkit-transition: all 0.2s linear;
		-moz-transition: all 0.2s linear;
		-o-transition: all 0.2s linear;
		transition: all 0.2s linear;
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		box-sizing: border-box; 
	}
	
	#toggle:checked + .toggle:after{
		background: url("../img/menu_o.png") no-repeat center;
	}
}

@media only screen and (max-width: 479px){
	.header > h1 { 
		text-align: center;
	}
	.header > h1, .nav, .toggle:after{ 
		float: none; 
	}
	.toggle:after { 
		text-align: center; width: 100%;
		width: 45px;
		height: 45px;
		margin: 2px 20px; 
	}
}