/* Overlay style */
.overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: #ff0000;
}

/* Overlay closing cross */
.overlay .overlay-close {
	width: 100%;
	padding-top: 7%;
	position: absolute;
	overflow: hidden;
	border: none;
	background: url(../img/menuristi.png) no-repeat center center;
	text-indent: 200%;
	color: transparent;
	outline: none;
	z-index: 99999;
}

p.overlay-social {
	position: absolute;
    bottom: 0;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    padding-bottom: 5%;
}
    

/* Menu style */
.overlay nav {
	text-align: center;
	position: relative;
	top: 50%;
	/*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;
	min-height: 54px;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.overlay ul li a {
	font-size: 34px;
	display: block;
    text-transform: uppercase;
	color: #fff;
	-webkit-transition: color 0.2s;
	transition: color 0.2s;
}

.overlay ul li a:hover,
.overlay ul li a:focus {
	color: #000;
}

@media only screen and (max-width: 568px) {
    .overlay ul li a {
	font-size: 24px;
    }
    
    .overlay ul li {
	display: block;
	min-height: 42px;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}
}

/* 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-width: 480px) {
    .overlay {
    padding-bottom: 20px;
    }
}

@media screen and (max-height: 30.5em) {
	/*.overlay nav {
		height: 60%;
	}*/
	.overlay ul li {
		min-height: 42px;
	}
    
    .overlay ul li a {
        font-size: 24px;
    }
}