/* Overlay style */
.overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: #f5f5f5; z-index: 99; 
}

/* Overlay closing cross */
.overlay .overlay-close {
	width: 80px;
	height: 80px;
	position: absolute;
	right: 20px;
	top: 20px;
	overflow: hidden;
	border: none;
	background: url(../images/cross.png) no-repeat center center;
	text-indent: 200%;
	color: transparent;
	outline: none;
	z-index: 100;
}

/* Menu style */
.overlay nav {
	text-align: center;
	position: relative;
	top: 55%;
	height: 60%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
}

.overlay ul {
	list-style: none;
	padding: 0;
	margin: 0 auto;
	display: inline-block;
	height: 100%;
	position: relative;
}

.overlay ul li {
	display: block;
	height: 20%;
	height: calc(100% / 5);
	min-height: 54px;
	backface-visibility: hidden; position:relative;
}

.overlay ul li a {
	font-size: 50px;
	font-weight: bold;
	display: block;
	color: #000;
	-webkit-transition: color 0.2s;
	transition: color 0.2s; text-transform:uppercase; font-family: lato;
}

.overlay ul li a:hover,
.overlay ul li a:focus {
	color: #000;
}

/* Effects */
.overlay-slidedown {
	visibility: hidden;
	-webkit-transform: translateY(-100%);
	transform: translateY(-100%);
	-webkit-transition: -webkit-transform 0.4s ease-in-out, visibility 0s 0.4s;
	transition: transform 0.4s ease-in-out, visibility 0s 0.4s;
}

.overlay-slidedown.open {
	visibility: visible;
	-webkit-transform: translateY(0%);
	transform: translateY(0%);
	-webkit-transition: -webkit-transform 0.4s ease-in-out;
	transition: transform 0.4s ease-in-out;
}

/*.headermain #menu-mainmenu li:hover .sub-menu {
    display: block !important;
}*/
.headermain .sub-menu {
    display: none; -webkit-transition: -webkit-transform 0.4s ease-in-out, visibility 0s 0.4s;
	transition: transform 0.4s ease-in-out, visibility 0s 0.4s;   background: #dddddd; padding:10px !important; margin-top:15px;
}
.fa-angle-down::before {
    font-size: 35px;
    position: absolute;
    right: 100px;
    top: 10px;
}


@media screen and (max-height: 30.5em) {
	.overlay nav {
		height: 70%;
		font-size: 34px;
	}
	.overlay ul li {
		min-height: 34px;
	}
}

@media only screen and (max-width: 767px) {
.overlay ul li a{ font-size:25px; }
.overlay nav{ top:65%;}
.fa-angle-down::before{ font-size:25px; position:absolute; right:40px; top:0; }
.overlay .overlay-close{ width:40px; height:40px; top:150px;}
.headermain .sub-menu { margin-top:5px;}
.overlay nav { overflow:scroll !important;}

}


@media only screen and (min-width: 768px) and (max-width:1199px) {
.overlay .overlay-close{ width:40px; height:40px; top:150px;}
.overlay ul li a{ font-size:40px;}
.fa-angle-down::before{ right:70px; top:5px;}
}