/* Overlay style */
.overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: rgba(70,22,107,1);
	z-index:10;
}

/* Overlay closing cross */
.overlay  .overlay-close {
	width: 72px;
	height: 72px;
	float: left;
	left: 5px;
	top: 5px;
	overflow: hidden;
	border: none;
	background: url(../images/btns/menu_close_btn.svg) no-repeat center center;
	text-indent: 200%;
	color: transparent;
	outline: none;
	z-index: 100;
}
.overlay-close:hover{
background: url(../images/btns/menu_close_btn_hover.svg) no-repeat center center;
} 

.logow{
float: right;
position: absolute;
right: 15px;
bottom: 11px;
}

/* 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;
	height: 25%;
	height: calc(100% / 4);
	min-height: 54px;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.overlay ul li a {
	font-size: 54px;
	font-weight: 300;
	display: block;
	color: #fff;
	-webkit-transition: color 0.2s;
	transition: color 0.2s;
}

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


/* Menu Overlay */

.mwork {
height: 65px;
width: 480px;
display: block;
background: url('../images/btns/menu_work_btn.svg') no-repeat; 
} 
.mwork:hover { 
background: url('../images/btns/menu_work_btn_hover.svg') no-repeat; 
}
.mpub {
height: 65px;
width: 480px;
display: block;
background: url('../images/btns/menu_published_btn.svg') no-repeat; 
} 
.mpub:hover { 
background: url('../images/btns/menu_published_btn_hover.svg') no-repeat; 
}
.mabout {
height: 65px;
width: 480px;
display: block;
background: url('../images/btns/menu_about_btn.svg') no-repeat; 
} 
.mabout:hover { 
background: url('../images/btns/menu_about_btn_hover.svg') no-repeat; 
}
.mcontact {
height: 65px;
width: 480px;
display: block;
background: url('../images/btns/menu_contact_btn.svg') no-repeat; 
} 
.mcontact:hover { 
background: url('../images/btns/menu_contact_btn_hover.svg') no-repeat; 
}
.btnmenu, .btnmenupub {
width: 72px;
height: 72px;
float: left;
left: 5px;
top: 5px;
border: none;
outline: none;
background: url('../images/btns/work_menu_nav.svg') no-repeat center center;
} 
.btnmenu:hover { 
background: url('../images/btns/work_menu_nav_hover.svg') no-repeat center center;
}
.btnmenupub:hover { 
background: url('../images/btns/published_menu_nav_hover.svg') no-repeat center center;
}
.btnmenuabout {
width: 72px;
height: 72px;
float: left;
left: 5px;
top: 5px;
border: none;
outline: none;
background: url('../images/btns/close_about_btn.svg') no-repeat center center;
} 
.btnmenuabout:hover { 
background: url('../images/btns/close_about_btn_hover.svg') no-repeat center center;
}
.btnmenucontact {
width: 72px;
height: 72px;
float: left;
left: 5px;
top: 5px;
border: none;
outline: none;
background: url('../images/btns/close_contact_btn.svg') no-repeat center center;
} 
.btnmenucontact:hover { 
background: url('../images/btns/close_contact_btn_hover.svg') no-repeat center center;
}




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