


nav{
	text-align:right;
	transition: all 0.3s ease;
	margin:auto;
	position:static;
	max-width:1100px;
	background-color:rgba(255, 255, 255, 0.7);
}

/********************************************************** Main Menu */
nav > li{
	position: relative !important;
	display:inline-table;
	padding:13px 20px;
	outline:none;
	text-align:left;
	cursor:pointer;
	box-shadow:0px 0px 1px #B5C8CA;
	margin-left:-1px;
	}
nav > li:hover, 
nav > li:focus{
	background-color:rgba(53, 160, 234, 0.8);
}
nav li a{
	display:block;
	text-decoration:none;
	color: #333;
	text-transform: uppercase;
	}
nav > li:hover a, 
nav > li:focus a{
	color: #FFF;
	}

nav > li:hover > .sub,
nav > li:focus > .sub{
	max-height:250px;
	opacity:1;
	padding: 25px 0px;
	overflow:visible;
	overflow:auto;
}




/********************************************************** Sub Menu */
.sub{
	position: absolute;
	top:42px !important;
	left:0px;
	transition: all 0.5s ease;
	opacity:0;
	overflow:hidden;
	max-height:0px;
	z-index:9999;
	margin-top:5px;
	white-space:nowrap;
	background-color:rgba(53, 160, 234, 0.9);
	
}
.sub a{
	padding:5px 20px;
	white-space:nowrap;
	}
.sub a:hover{
	background-color: #06C;
	}
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
/********************************************************** Toggle */
#toggle, 
#toggle + label {
	display:none;
	cursor:pointer;
	background-image: url(nav.png), url();
	background-repeat: no-repeat, no-repeat;
	background-size: auto, cover;
	background-position: right 25px center, center;	
	height:44px;
	position:relative;
	background-color:#CCC;
	
}
#toggle + label:after {
	content:"MENU";
	position:absolute;
	left:25px;
	top:13px;
	color:#333;
}

@media only screen and (max-width: 680px) {
#toggle + label{
	display:block;
	}
		
#toggle:checked ~ nav {
	display:block;
	max-height:999px;
}
nav {
	transition: all 1s ease;
	position: static;
	display:block;
	max-height:0px;
	overflow:hidden;
}
nav > li{
	display:block;
	padding:7px 25px;
	}	
nav > li:hover, 
nav > li:focus{
	background-image: url();
}
nav > li:hover a, 
nav > li:focus a{
	color: #FFF;
	}
.sub{
	position: static;
	background:transparent;
	padding:0px 0px;
	margin-top:0px;
}
}
