/* Overlay style */
.overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 9999;
	background-image: url("../../images/BG-til-nav.jpg");
    background-repeat:repeat;
}

/* 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 {
	text-align: center;
	position: relative;
	top: 35%;
	height: 50%;
	-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: 25%;
	height: calc(100% / 5);
	min-height: 35px;
    padding-left: 20px;
    padding-right: 20px;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
 
}

.overlay ul li a {
	font-size: 55px;
	font-weight: 300;
	display: block;
	color: #ffffff;
	-webkit-transition: color 0.2s;
	transition: color 0.2s;
	font-family: 'brandon_grotesquebold';
	text-transform: uppercase;
       background-image: linear-gradient(to right, #FFF 30%, rgba(255, 255, 255, 0) 20%);
  background-position: bottom;
  background-size: 3px 1px;
  background-repeat: repeat-x;
    padding-bottom: 8px;
}

.overlay ul li a:hover,
.overlay ul li a:focus {
	color: #ad8962;
	text-decoration: none;
}

/* 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;
	}
}