
/* ROSE #f9E6E7 - OVERLAY STYLE */

.overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	/* based on 100% red #CC0000 with opacity to 0.1 > 
	that translates to hex #f9E6E7 */
	background: rgba(204, 0, 0,0.1);

/* other colour tests: */
/* started w sky bold blu > background: rgba(7 ,9 ,38 ,0.2); */
/* yellowy > background: rgba(219 ,141 ,72 ,0.4); */
/* background: rgba(165 ,60 ,117 ,0.2); */

}

/* Overlay closing cross */
.overlay .overlay-close {
	/* orig h/w 80x80 */
	width: 40px;
	height: 40px;
	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 {
	font-family: "Merriweather", serif;
	text-align: center;
	position: relative;
	top: 50%;
	height: 60%;
/*	font-size: 54px;*/
	font-size: 28px;
	-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: 20%;
	height: calc(100% / 5);
	min-height: 28px;
}

.overlay ul li a {
	font-weight: 300;
	display: block;
	color: #fff;
	/*-webkit-transition: color 0.2s;
	transition: color 0.2s;*/
	transition-delay: 0s;
	transition-duration: 0.6s;
	transition-property: all;
	transition-timing-function: ease;
}

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

/* Effects */
.overlay-hugeinc {
	opacity: 0;
	visibility: hidden;
	-webkit-transition: opacity 0.5s, visibility 0s 0.5s;
	transition: opacity 0.5s, visibility 0s 0.5s;
}

.overlay-hugeinc.open {
	opacity: 1;
	visibility: visible;
	-webkit-transition: opacity 0.5s;
	transition: opacity 0.5s;
}

.overlay-hugeinc nav {
	-webkit-perspective: 1200px;
	perspective: 1200px;
}

.overlay-hugeinc nav ul {
	opacity: 0.4;
	-webkit-transform: translateY(-25%) rotateX(35deg);
	transform: translateY(-25%) rotateX(35deg);
	-webkit-transition: -webkit-transform 0.5s, opacity 0.5s;
	transition: transform 0.5s, opacity 0.5s;
}

.overlay-hugeinc.open nav ul {
	opacity: 1;
	-webkit-transform: rotateX(0deg);
	transform: rotateX(0deg);
}

.overlay-hugeinc.close nav ul {
	-webkit-transform: translateY(25%) rotateX(-35deg);
	transform: translateY(25%) rotateX(-35deg);
}


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

@media screen and (max-width: 40em) {	
	.overlay .overlay-close {
	/* orig h/w 80x80 */
	width: 30px;
	height: 30px; 	
	position: absolute;
	right: 12px;
	top: 12px;
	overflow: hidden;
	border: none;
	background: url(../img/cross.png) no-repeat center center;
	text-indent: 200%;
	color: transparent;
	outline: none;
	z-index: 100;
	}
}
