

/* Overlay stilleri */
.overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: rgba(0,0,0,0.4);
	z-index: 999;
}

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

/* Menü stilleri */
.overlay nav {
	text-align: center;
	position: relative;
	top: 50%;
	height: 60%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
	z-index: 999;
}

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

.overlay ul li {
	display: block;
	height: 20%;
	height: calc(100% / 5);
	min-height: 54px;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	z-index: 999;
}

.overlay ul li a {
	font-size: 54px;
	font-weight: 300;
	display: block;
	color: #fff;
	-webkit-transition: color 0.2s;
	transition: color 0.2s;
	z-index: 999;
}

.overlay ul li a:hover,
.overlay ul li a:focus {
	color: #f0f0f0;
	z-index: 999;
}
/* Efektler */
.overlay-slidedown {
	visibility: hidden;
	transition:All 1s ease;
	-webkit-transition:All 1s ease;
	-moz-transition:All 1s ease;
	-o-transition:All 1s ease;
	transform: rotate(0deg) scale(1) skew(0) translate(-100%);
	-webkit-transform: rotate(0deg) scale(1) skew(0) translate(-100%);
	-moz-transform: rotate(0deg) scale(1) skew(0) translate(-100%);
	-o-transform: rotate(0deg) scale(1) skew(0) translate(-100%);
	-ms-transform: rotate(0deg) scale(1) skew(0) translate(-100%);
}

.overlay-slidedown.open {
	visibility: visible;
	transition:All 1s ease;
	-webkit-transition:All 1s ease;
	-moz-transition:All 1s ease;
	-o-transition:All 1s ease;
	transform: rotate(0deg) scale(1) skew(0) translate(0%);
	-webkit-transform: rotate(0deg) scale(1) skew(0) translate(0%);
	-moz-transform: rotate(0deg) scale(1) skew(0) translate(0%);
	-o-transform: rotate(0deg) scale(1) skew(0) translate(0%);
	-ms-transform: rotate(0deg) scale(1) skew(0) translate(0%);
}

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