/* Overlay style */
.overlay2 {
	position: fixed;
	width: 100%;
	height: 25%;
	top: 10;
	left: 0;
	background-color:#ffe900 ;
	z-index: 9;
}

/* Overlay closing cross */
.overlay2 .overlay-close2 {
	width: 30px;
	height: 30px;
	position: absolute;
	right: 10px;
	top: 0px;
	overflow: hidden;
	border: none;
	background: url(../images/cross2.png) no-repeat center center;
	text-indent: 200%;
	color: transparent;
	outline: none;
	z-index: 100;
}

/* Menu style */
.overlay2 nav {
	text-align: center;
	position: relative;
	top: 40%;
	height: 65%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
}

.overlay2 ul {
	list-style: none;
	padding: 0;
	margin: 0 auto;
	display: inline-block;
	height: 100%;
	position: relative;
}

.overlay2 ul li {
	display: block;
	/*height: 20%;
	height: calc(100% / 5);*/
	min-height: 45px;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	float: left;
	width: 30%;
}

.overlay2 ul li a {
	font-size: 1em;
	font-weight: 300;
	display: block;
	color: #000;
	font-weight: 600;
	-webkit-transition: color 0.2s;
	transition: color 0.2s;
}

.overlay2 ul li a:hover,
.overlay2 ul li a:focus {
	color: #fff;
}

/* 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;
}

@media screen and (max-height: 30.5em) {
	.overlay2 nav {
		height: 70%;
		font-size: 34px;
	}
	.overlay2 ul li {
		min-height: 34px;
	}
}