/* Overlay style */

.overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: #000;
	z-index: 100000;
}

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

/* 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 5% 0 10%;
	display: inline-block;
	height: 90%;
	position: relative;
	width: 85%;
}

.overlay ul li {
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	float: left;
	padding: 0 0 10px;
	margin: 0 5px 0 0;
	min-height: 40%;
	width: 18%;
}

.overlay ul li ul {
	display: block;
	float: left;
	margin: 0;
	padding: 0;
}

.overlay ul li ul li {
	margin: 0;
	padding: 5px 0;
	float: left;
	clear: both;
	width: 100%;
}

.overlay ul li a {
	font-size: 30px;
	font-weight: 300;
	display: block;
	color: #fff;
	-webkit-transition: color 0.2s;
	transition: color 0.2s;
	float: left;
	line-height: 80%;
	text-transform: uppercase;
	clear: both;
	text-align: left;
}

.overlay ul li ul li a {
	font-size: 20px;
	font-weight: 300;
	display: block;
	color: #fff;
	-webkit-transition: color 0.2s;
	transition: color 0.2s;
	float: left;
	text-transform: lowercase;
	clear: both;
}

.overlay ul li ul {
	float: left;
}

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

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

/* Effects */
.overlay-scale {
	visibility: hidden;
	opacity: 0;
	-webkit-transform: scale(0.9);
	transform: scale(0.9);
	-webkit-transition: -webkit-transform 0.2s, opacity 0.2s, visibility 0s 0.2s;
	transition: transform 0.2s, opacity 0.2s, visibility 0s 0.2s;
}

.overlay-scale.open {
	visibility: visible;
	opacity: 1;
	-webkit-transform: scale(1);
	transform: scale(1);	
	-webkit-transition: -webkit-transform 0.4s, opacity 0.4s;
	transition: transform 0.4s, opacity 0.4s;
}

@media screen and (max-width: 1200px) {

.overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: #000;
	z-index: 100000;
}

.overlay nav {
	text-align: center;
	position: relative;
	top: 40%;
	height: 65%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
}

.overlay .overlay-close {
	width: 20px;
	height: 20px;
	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: 100;
}

.overlay ul li {
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	float: left;
	padding: 0 0 10px;
	margin: 0;
	min-height: 40%;
	width: 33%;
	display: inline-block;
}

.overlay ul li a {
	font-size: 2vw;
	font-weight: 600;
	display: block;
	-webkit-transition: color 0.2s;
	transition: color 0.2s;
	float: left;
	line-height: 80%;
	text-transform: uppercase;
	clear: both;
	width: 100%;
}

.overlay ul li ul li a {
	font-size: 1.8vw;
	font-weight: 300;
	display: block;
	color: #fff;
	-webkit-transition: color 0.2s;
	transition: color 0.2s;
	text-transform: lowercase;
	clear: both;
	margin: 0;
	padding: 0;
	float: left;
	text-align: left;
}
}

@media screen and (max-width: 640px) {

.overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: #000;
	z-index: 100000;
	overflow: auto;
}

.overlay nav {
	text-align: center;
	position: relative;
	top: 40%;
	height: 65%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
}

.overlay .overlay-close {
	width: 20px;
	height: 20px;
	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: 100;
}

.overlay ul {
	list-style: none;
	padding: 0;
	margin: 0 5%;
	display: inline-block;
	height: 90%;
	position: relative;
	width: 90%;
}

.overlay ul li {
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	float: left;
	padding: 0 0 10px 5%;
	margin: 0;
	min-height: 25%;
	width: 45%;
}

.overlay ul li ul {
	display: block;
	float: left;
	margin: 0;
	padding: 0;
}

.overlay ul li ul li {
	float: left;
	clear: both;
	width: 100%;
	margin: 0;
	padding: 0;
}

.overlay ul li a {
	font-size: 4vw;
	font-weight: 600;
	display: block;
	-webkit-transition: color 0.2s;
	transition: color 0.2s;
	float: left;
	line-height: 120%;
	text-transform: uppercase;
	clear: both;
}

.overlay ul li ul li a {
	font-size: 4vw;
	font-weight: 300;
	display: block;
	color: #fff;
	-webkit-transition: color 0.2s;
	transition: color 0.2s;
	text-transform: lowercase;
	clear: both;
	margin: 0;
	padding: 0;
	float: left;
	text-align: left;
}

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