/************************ Menu */
nav{
	display: block;
	white-space:nowrap;

}
nav a{
	display: block;
	text-decoration: none;
	color:#2b2b2a;
	cursor:pointer;
}

/************************ Main Menu */
.mainmenu{
	display: inline-block;
	outline:none;
	margin: -1px;
	vertical-align:middle;
	
}

.mainmenu > a{
	display: block; /*must display block so the dropdown position obey nicely*/
	text-align:left;
	cursor:pointer;
	padding:20px;
	border-top-width: 2px;
	border-top-style: solid;
	border-top-color: transparent;
	}
.mainmenu:hover > a,   
.mainmenu > a:hover,
.mainmenu > a.current{
	border-top-width: 2px;
	border-top-style: solid;
	border-top-color: #4fc3d5;
	color:#4fc3d5;
}

/*blurr for inactive menu in testing*/
.blurr{
	opacity:0.6;
	pointer-events: none;
	}

/*******SUBMENU******************************************/

submenu {
	position:absolute;
	display:block;
	background-color:rgba(255,255,255,1);
	padding:20px;
	text-align:left;
	white-space:normal;
	z-index:999;
	border-top-width: 2px;
	border-top-style: solid;
	border-top-color: #4fc3d5;
	}
submenu a{ 
	display:block;
	vertical-align:top;
	text-align:left;
	margin:20px 10px;
	white-space:nowrap;
	opacity:0.8;
	}

submenu > a:hover,
submenu a.current{
	opacity:1;
	color:#4fc3d5;
}



/*****SUBMENU-FULL********************************************/
submenu-full{
	position:absolute;
	display:block;
	height:340px;
	width:100%;
	left:0;
	right:0;
	background-color:rgba(255,255,255,1);
	text-align:left;
	white-space:normal;
	z-index:999;
	border-top-width: 2px;
	border-top-style: solid;
	border-top-color: #4fc3d5;
	font-size:14px;
	line-height:1.5em;
	overflow:hidden;
	}

submenu-full box-parent{
	display:table; 
	margin:auto;
	width:100%;
	max-width:1300px;
	border-spacing:40px;
	}
	
submenu-full box-child{
	display:table-cell;
	width:33.333%;
	border-right-width: 1px;
	border-right-style: solid;
	border-right-color: #999;
	padding-right:40px;
	vertical-align:top;
	}
submenu-full box-child:last-child{
	border-right-style: none;
}
/*Special Scollbar Box*/
submenu-full box-child .scrollerbox{
 display:block; 
 width:100%; 
 padding-right:20px; 
 height:260px; 
 overflow:auto; 
 text-align:justify;
}
@media only screen and (max-width: 640px) {
submenu-full box-child .scrollerbox{
 height:auto; 
 text-align:left;
}
}
/*End*/
submenu-full a{
	line-height:2em;
	} 
submenu-full a:after{
	content:' \27A4';
	font-size:10px;
	float:right;
	}
submenu-full p.titi{
	font-size: 20px;
	font-weight: bold;	
	}
submenu-full a:hover,
submenu-full a.current{
	opacity:1;
	color:#4fc3d5;
}

@media only screen and (max-width: 640px) {
submenu-full{
	position:static;
	height:500px;
	overflow:auto !important;
	}	
submenu-full box-child{
	display:block;
	width:auto;
	border-right-width: 0px;
	padding-right:0px;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #999;
	padding-bottom:20px;
	margin-bottom:20px;
	}
}
/*************************************************/
#toggle, #toggle + label{
	display:none;
	vertical-align:middle;
	cursor:pointer;
	text-align:right;
}

@media only screen and (max-width: 640px) {
#toggle + label{
	display:table-cell;
	float:right;
}

nav{
	position: fixed;
	top: 0px;
	left: -1000px;
	height:100vh;
	width:80%; 
	transition: all 0.2s ease;
	background-color:rgba(33,40,48,0.9); 
	overflow:auto;
	border-right-width: 3px;
	border-right-style: solid; 
	border-right-color: #CCC;
	padding:40px 0px;
	overflow-x:hidden;
}
#toggle:checked ~ nav {
	left: 0px;
}
.mainmenu{
	display: block;
}
.mainmenu > a{
	display:block;
	padding:20px 40px;
	border-top-width: 1px;
	border-top-color: #666;
	color:#fff;
}

submenu {
	position:static;
	padding:20px;
	display:block;
	width:auto;
	
	}
submenu a{
	margin:20px; 
	display:block;
	white-space:normal;
	}
	
}

