/* Overlay style */
.overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: rgba(143,129,188,0.9);
	/*background:rgba(75,82,92,0.9);*/
	/*background:url(../images/overlay_bg.png) center top no-repeat;*/
	background-size:100% auto;
	z-index:99999999;
	padding:50px 0px 0px 0px;
}

/* Overlay closing cross */
.overlay .overlay-close {
	width: 40px;
	height: 40px;
	position: absolute;
	right: 20px;
	top: 20px;
	overflow: hidden;
	border: none;
	background: url(../js/FullscreenOverlayStyles/img/cross.png) no-repeat center center;
	background-size: 100% auto;
	text-indent: 200%;
	color: transparent;
	outline: none;
	z-index: 100;
	cursor: pointer;
}

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

.overlay ul {
	/*
	display:flex;
	justify-content: space-around;
	flex-wrap:wrap;
	*/
	padding: 0;
	width: 90%;
	position: relative;
	margin:0px auto;
	padding:60px 0px 0px 0px;
}
.overlay ul li {
	display: block;
	width:48%;
	box-sizing: border-box;
	margin-right:4%;
	margin-bottom:20px;
	box-shadow:1px 1px 1px #000;
	float:left;
}
.overlay ul li:nth-of-type(2n){
	margin-right:0;
}
.overlay ul li a {
	display:block;
	text-align: center;
	padding:12px 0px 12px 0px;
	font-size:14px;
	/*background:rgba(255,255,255,0.9);*/
	color:#fff !important;
	background:rgba(75,82,92,0.9);
	font-weight: 300;
}

.overlay ul.contactNav{
	padding:10px 0px 0px 0px;
	overflow:hidden;
}
.overlay ul.contactNav li {
	width:100%;
	float:none;
	box-shadow:1px 1px 1px #000;
}
.overlay ul.contactNav li a{
	font-size:15px;
	background:rgba(46,56,70,0.9);
	border:none;
}



.overlay ul li a:hover, .overlay ul li a:focus {
	color: #333;
}
.overlay ul.subLink a:hover{
	color:#f6ff00;
}




/* 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) {
	.overlay nav {
		height: 70%;
		font-size: 34px;
	}
	.overlay ul li {
		min-height: 34px;
	}
}