/* Overlay style */
.overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: #c8d3d8;
	z-index: 99999;
}

/* Overlay closing cross */
.overlay .overlay-close {
	color: transparent;
	outline: none;
	z-index: 100;
	overflow: hidden;
	border: none;
	background: none;
}
.overlay .overlay-close svg  {
	width: 40px;
	height: 40px;
	position: absolute;
	right: 45px;
	top: 45px;
	fill: white;
/*	background: url(../img/cross.png) no-repeat center center;
	text-indent: 200%;*/
	
}

/* Menu style */
.overlay .main-menu-container {
	text-align: center;
	position: relative;
	top: 50%;
	height: 60%;
	font-size: 54px;
	-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% / 6);
	min-height: 54px;
}

.overlay ul li a {
	display: inline-block;
	color: #fff;
	-webkit-transition: color 0.2s;
	transition: color 0.2s;
	text-decoration: none;
	position: relative;
}
.overlay ul li a:after {
	content: '';
	position: absolute;
	height: 3px;
	width: 0px;
	left: 0px;
	bottom: -5px;
	background-color: white;
	-webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}

.overlay ul li a:hover:after {
	width: 100%;
}

/* Effects */
.overlay-hugeinc {
	opacity: 0;
	visibility: hidden;
	-webkit-transition: opacity 0.5s, visibility 0s 0.5s;
	transition: opacity 0.5s, visibility 0s 0.5s;
}

.overlay-hugeinc.open {
	opacity: 1;
	visibility: visible;
	-webkit-transition: opacity 0.5s;
	transition: opacity 0.5s;
}

.overlay-hugeinc .main-menu-container {
	-webkit-perspective: 1200px;
	perspective: 1200px;
}

.overlay-hugeinc .main-menu-container ul {
	opacity: 0.4;
	-webkit-transform: translateY(-25%) rotateX(35deg);
	transform: translateY(-25%) rotateX(35deg);
	-webkit-transition: -webkit-transform 0.5s, opacity 0.5s;
	transition: transform 0.5s, opacity 0.5s;
}

.overlay-hugeinc.open .main-menu-container ul {
	opacity: 1;
	-webkit-transform: rotateX(0deg);
	transform: rotateX(0deg);
	  display: -webkit-box;
       display: -ms-flexbox;
       display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.overlay-hugeinc.close .main-menu-container ul {
	-webkit-transform: translateY(25%) rotateX(-35deg);
	transform: translateY(25%) rotateX(-35deg);
}



@media screen and (max-height: 30.5em) {
	.overlay .main-menu-container {
		height: 70%;
		font-size: 34px;
	}
	.overlay ul li {
		min-height: 34px;
	}
}
@media (max-width: 750px) {
	.overlay .main-menu-container {
		font-size: 35px;
	}
	.overlay ul li {
		height: calc(100% / 8);
	}
}
@media (max-width: 600px) {
	.overlay .overlay-close svg {
		right: 25px;
		top: 25px;
		width: 30px;
    	height: 30px;
	}
}