/* Overlay style */
.overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: rgba(142, 205, 238, 0.95);
}

/* Overlay closing cross */
.overlay .overlay-close {
	width: 80px;
	height: 80px;
	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: 9999;
}

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

.overlay ul {
	text-align: right;
	list-style: none;
	border-bottom:2px solid #FFF;	
	padding-bottom: 15px;
	margin: 0 auto;
	display: inline-block;
	height: 100%;
	position: relative;
}

.overlay ul li {
	display: block;
	height: 20%;
	height: calc(100% / 5);
	min-height: 65px;
}

.overlay ul li a {
	font-size: 1.9em;
	font-weight: 300;
	display: block;
	color: #fff;
	-webkit-transition: color 0.5s, border 1s;
	transition: color 0.5s, border 1s;
}

.overlay ul li a:hover,
.overlay ul li a:focus {
	color: #fa9c05;
	text-decoration: none;
	animation: border 5s;
	animation-iteration-count: infinite;
	animation-delay: 1s;
	-webkit-animation	: border 5s;
	-webkit-animation-iteration-count: infinite;
	-webkit-animation-delay: 1s;
}
@keyframes border {
	0%  { top: 0px; }
	20% { top: -60px; }
	40% { top: -125px; }
	60% { top: -185px; }
	}


.overlay-contentscale {
	visibility: hidden;
	-webkit-transform: translateY(100%);
	transform: translateY(100%);
	-webkit-transition: -webkit-transform 0.5s, visibility 0s 0.5s;
	transition: transform 0.5s, visibility 0s 0.5s;
}

.overlay-contentscale.open {
	visibility: visible;
	-webkit-transform: translateY(0%);
	transform: translateY(0%);
	-webkit-transition: -webkit-transform 0.5s;
	transition: transform 0.5s;
}

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