nav{

	-webkit-transition: all 0.2s ease;
	-moz-transition: all 0.2s ease;
	-o-transition: all 0.2s ease;
	-ms-transition: all 0.2s ease;
	transition: all 0.2s ease;
	box-sizing:border-box;
}

.fixed{
	left:0;
	right:0;
	top:0;
	max-width:100%;
	position:fixed;
	z-index:9999;
	background-color: #FFF;
	padding:20px;
	text-align:center;
	box-sizing:border-box;
}
/* Main Menu */
.mainmenu{
	display: inline-block;
	cursor:pointer;
	text-transform: uppercase;
	outline:none;
	margin:auto;
}
.mainmenu a{
	display:block;
	font-weight: bold;
	color: #333;
	padding:10px 10px;
	font-style: italic;
}

@media only screen and (max-width: 1300px) {
	.mainmenu a{
	padding: 0px 5px;
	font-size:90%;
}
}
@media only screen and (max-width: 1150px) {
	.mainmenu a{
	padding: 5px 10px;
	font-size:100%;
}
}



.mainmenu:hover,
.mainmenu:focus,
.mainmenu:hover a,
.mainmenu:focus a,
.mainmenu a:hover,
.mainmenu a:focus{
	color: #666;
}
/* Sub Menu */
.submenu{
	position: absolute;
	opacity:0;
	visibility:hidden;
	text-align:left;
	transition: all 0.2s ease;
	background-image: url(arrow.png);
	background-repeat: no-repeat;
	background-position: 50% 10px;
	background-color: #FFF;
	height:0px;
	z-index: 99999;
	box-shadow:0px 0px 3px #CCC;
}
.submenu a{
	display: block;
	padding: 5px 15px;
	overflow:hidden;
}
.submenu a:hover{
	opacity:1;
}

.mainmenu:hover .submenu,
.mainmenu:focus .submenu{
	opacity:1;
	visibility:visible;
	height:auto;
	min-width:120px;
	padding: 30px 10px ;
}





withsub{
	display:block;
	overflow:hidden;
	}

withsub sub{
	display:block;
	max-height:0px;
	-webkit-transition: all 0.2s ease;
	-moz-transition: all 0.2s ease;
	-o-transition: all 0.2s ease;
	-ms-transition: all 0.2s ease;
	transition: all 0.2s ease;
	}
withsub:focus{
	outline:none;
	}
withsub:focus sub,
withsub:hover sub {
	max-height:100px;
	padding: 0px 10px 10px 10px;
	}









#toggle, #toggle + label {
	visibility:hidden;
	position:fixed;
	cursor:pointer;
	top:5px;
	right:5px;
	z-index:998;
	border-radius:5px;
	width:40px;
	box-sizing:border-box;
	text-align:center;
}


@media only screen and (max-width:  700px) {
#toggle + label{
	visibility:visible;
	background-color: #333333;
	padding:5px;
	color:#FFF;
	font-weight: bold;
	z-index:99999;
	}
#toggle + label:after{
	content:'\2630';
	}	
#toggle:checked + label:after{
	content:'X';
	}	
	
#toggle:checked ~ nav {
	max-height:999px;
}

.fixed{
	padding:0px;
}
nav{
	display:block;
	max-height:0px;
	position:static;
	overflow:hidden;
	font-size:100%;
	z-index:9999;
	padding:0px;
}
.mainmenu, .submenu {
	position:static;
	display:block;
	text-align:center;
}

.mainmenu > a{
	padding: 5px 25px;
	border-bottom-width: 1px;
	border-bottom-style: dotted;
	border-bottom-color: #CCC;
	font-size:100%;
}
.submenu > a{

}
}

