#navWrap{
width: 100%;
height: 60px;
margin: 0;
padding: 0;
background: #65768a;
}
#nav{
z-index: 1;
position: relative;
top: 0;
width: 60em;
margin: 0 auto;
font-family: 'Open Sans', sans-serif;
font-weight: 400;
}
#nav > a{
display: none;
}
#nav li{
position: relative;
}
#nav li a{
display: block;
margin: 0;
padding: 0;
color: #fff;
}
#nav li a:active{
background: #4e6379 !important;
}
#nav span:after{
display: inline-block;
position: relative;
right: -0.313em;
vertical-align: middle;
width: 0;
height: 0;
border: 0.313em solid transparent;
border-bottom: none;
border-top-color: #efa585;
content: '';
}
/* first level */
#nav > ul{
height: 40px;
background: #65768a;
}
#nav > ul > li{
float: left;
width: 20%;
height: 100%;
margin: 0;
padding: 0;
}
#nav > ul > li > a{
text-decoration: none;
height: 100%;
margin: 0;
padding: 20px 0 0 0;
line-height: 1.3em;
font-size: 1.1em;
text-align: center;
border-right: 1px solid #65768a;
border-left: 1px solid #65768a;
background: #4e6379;
}
#nav > ul > li:hover > a, #nav > ul:not( :hover ) > li.active > a{
background-color: #777;
}
/* second level */
#nav li ul{
display: none;
position: absolute;
top: 60px;
margin: 0;
padding: 0;
background-color: #65768a;
}
#nav li:hover ul{
display: block;
left: 0;
right: 0;
}
#nav li:not( :first-child ):hover ul{
left: -1px;
}
#nav li ul a{
text-decoration: none;
padding: 0.75em;
font-size: 1.25em;
border-top: 1px solid #fff;
}
#nav li ul li a:hover, #nav li ul:not( :hover ) li.active a{
background-color: #4e6379;
}
@media only screen and ( max-width: 62.5em ){
	#nav{
		position: static;
		width: 100%;
		margin: 0;
	}
}
@media only screen and ( max-width: 1000px ){
	#navWrap{
		height: 50px;
	}
	#nav{
		z-index: 10;
		position: relative;
		top: auto;
		left: auto;
	}
	#nav > a{
		position: relative;
		width: 3.125em; /* 50 */
		height: 3.125em; /* 50 */
		text-align: left;
		text-indent: -9999px;
		background-color: #ccc;
	}
	#nav > a:before, #nav > a:after{
		position: absolute;
		top: 35%;
		left: 25%;
		right: 25%;
		border: 2px solid #fff;
		content: '';
	}
	#nav > a:after{
		top: 60%;
	}
	#nav:not( :target ) > a:first-of-type, #nav:target > a:last-of-type{
		display: block;
	}
/* first level */
	#nav > ul{
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		height: auto;
	}
	#nav:target > ul{
		display: block;
	}
	#nav > ul > li{
		float: none;
		width: 100%;
		}
	#nav > ul > li > a{
		height: auto;
		padding: .25em 0.833em; /* 20 (24) */
		text-align: left;
		color: #efefef;
		font-size: 1.3em;
	}
	#nav > ul > li > a:hover{
		color: #efefef;
	}
	#nav > ul > li:not(:last-child) > a{
		border-right: none;
		border-bottom: 1px solid #ccc;
	}
/* second level */
	#nav li ul{
		position: static;
		padding: 0;
	}
	#nav ul li ul li a{
		width: 100%;
		text-indent: 30px;
		color: #efefef;
		border-bottom: 1px solid #777;
		background: #ccc;
	}
	#nav ul li ul li a:hover{
		color: #efefef;
	}
}