/* Overlay style */
.overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: rgba(106,91,71,0.9);
}

/* Overlay closing cross */
.overlay .overlay-close {
	width: 60px;
	height: 60px;
	position: absolute;
	right: 20px;
	top: 20px;
	overflow: hidden;
	border: none;
	background: url(../images/primary/cross.png) no-repeat center center;
	text-indent: 200%;
	color: transparent;
	outline: none;
	z-index: 9999999;
}

/* Menu style */
.overlay nav {
	text-align: center;
	position: relative;
	top: 3%;
	/*height: 60%;*/
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
}

.overlay ol {
	list-style: none;
	padding: 0;
	margin: 0 auto;
	/*display: inline-block;*/
	height: 100%;
	position: relative;
	/*width:200px;*/
}

.overlay ol li {
	display: block;
	width:100% !important;
	height: 20%;
	height: calc(100% / 5);
	/*min-height: 54px;*/
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	margin-bottom:2%;
}

.overlay ol li a {
	font-size: 2.5em;
	font-weight: 300;
	/*display: block;*/
	color: #fff;
	-webkit-transition: color 0.2s;
	transition: color 0.2s;
}
.overlay ol li:last-child{font-size:16px; color:#fff;}
.overlay ol li:last-child a{font-size:16px;}

.overlay ol li a:hover,
.overlay ol li a:focus {
	color: #f0f0f0;
}
.overlay ol li:nth-child(3){color:#fff !important; line-height:inherit !important; text-align:inherit !important; font-size: inherit !important;}
.overlay ol li:nth-child(3) a{color:#fff !important;}
.overlay ol.small_icon2{display: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;
	z-index:9999999;
}

@media only screen and (max-width: 1024px)
{
.overlay ol li img{margin:0 5px; vertical-align:middle; width:36px; height:auto;}

}
@media only screen and (max-width: 480px)
{
/*.overlay nav{top:42%;}
.overlay ul li a{font-size:36px;}*/
.button_container{top:5px;}
.overlay .overlay-close{background-size:40px auto;}
.overlay nav{top:3%;}
.overlay ol li{margin-bottom:1%;/* min-height:45px;*/}
.overlay ol li a{font-size:1.5em;}

.overlay ul.small_icon2{margin:30px auto 0 auto; width:190px; display:block;}
.overlay ul.small_icon2 li{float:right; margin-left:10px;}
.overlay ul.small_icon2 li:nth-child(4){margin-left:0;}
}
