nav{
	display: table-cell;
	text-transform: uppercase;
	vertical-align:middle;
	vertical-align:top;
	font-size:14px;
	font-weight: bold;	/*position:relative;*/
}
nav ul{
	margin: 0px;
	padding: 0px;
	text-align:right; 	
}

/* Main Menu */
nav ul li{
	display:inline-block;
	cursor:pointer;
	outline:none;
	list-style-type: none;
}
nav ul li > a{
	display:block;
	color: #39464f;
	height:100px;
	padding:75px 15px 30px 15px;
	text-decoration: none;
	background-size: 100% 200%;
  background-image: linear-gradient(to bottom, transparent 50%, #069 50%);
  -webkit-transition: background-position 0.2s;
  -moz-transition: background-position 0.2s;
  transition: background-position 0.2s;
	
	-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;
}

.shrink_nav{
	height:auto;
	padding:20px 15px 15px 15px;
	}

nav ul li:hover > a, 
nav ul li > a:hover,
nav ul li:focus > a,
nav .current
{
	color: #FFF;
	background-position: 0 -100%;	
	
	/*for the font color change slower than bg transition*/
	-webkit-transition: all 0.4s ease;
	-moz-transition: all 0.4s ease;
	-o-transition: all 0.4s ease;
	-ms-transition: all 0.4s ease;
	transition: all 0.4s ease;
}
nav ul li:focus > a{

color:#FFF;
}
/*on rollover */
nav ul li:hover .submenu,
nav ul li:focus .submenu{
	visibility:visible;
	opacity:1;
	max-height:400px;
	padding:20px 20px;
	border-top-width: 4px;
	border-top-style: solid;
	border-top-color: #069;
}


.box:hover {
    background-position: 0 -100%;
}

/* Sub Menu */
.submenu{
	position: absolute;
	overflow:hidden;
	max-height:0px;
	-webkit-transition: all 0.4s ease;
	-moz-transition: all 0.4s ease;
	-o-transition: all 0.4s ease;
	-ms-transition: all 0.4s ease;
	transition: all 0.4s ease;
	z-index: 99999;
	display:block;
	background-color:#06F;
	padding:0px 20px;
	white-space:nowrap;
	margin:auto;
	text-align:left;
}



.submenu > a{
	font-weight: normal;
	display: block; /*change to inline-block for multi column*/
	padding:3px 10px 3px 10px;
	color: #FFF;
	text-decoration: none;
	text-transform: uppercase;
}
.submenu > a:hover{
	color:#ffde00;
}









#toggle, #toggle + label{
	display:none;
	vertical-align:middle;
	cursor:pointer;
	float:right;
	padding:15px;
}


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

nav{
	position: fixed;
	top: 0px;
	left: -1000px;
	height:100vh;
	min-width:250px;
	max-width:80%;
	-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;
	background-color:#FFF;
	padding:35px 0px;
	box-shadow:0px 0px 5px #000;
	z-index:99999;
}
#toggle:checked ~ nav {
	left: 0px;
}
nav ul{
	text-align:left;
}
/* Main Menu */
nav ul li{
	display:block;
}

nav ul li > a{
	padding:10px 20px 5px 20px;
	height:auto;
}

nav ul li:hover > .submenu,
nav ul li:focus > .submenu{
	position: static;
}


}

