/* Overlay style */
.overlay {
	width: 100%;
	height: 100%;
    position: absolute;
	top: 0;
	left: 0;
	background: rgba(0,0,0,0.9);
    z-index: 3;
}

/* Overlay closing cross */
.overlay .overlay-close {
	width: 40px;
	height: 40px;
	position: fixed;
	right: 40px;
	top: 35px;
	overflow: hidden;
	border: none;
	background: url(../img/cross.png) no-repeat center center;
    background-size: 100%;
    background-repeat: no-repeat;
	text-indent: 200%;
	color: transparent;
	outline: none;
	z-index: 100;
}

/* Menu style */
.overlay nav {
	text-align: center;
	position: relative;
    color: #fff;
    overflow-y: scroll;
    padding-top: 15%;
}

.overlay nav a {
    font-weight: 200;
    font-size: 2em;
    line-height: 2;
    color: #9ddcf9;
    text-decoration: none;
}

.overlay nav a:hover {
    color: #fff;
    border-bottom: 1px solid #fff;
}

.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: #f0f0f0;
}

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

.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-height: 30.5em) {
	.overlay ul li {
		min-height: 34px;
	}
}

@media screen and (max-width: 700px) {
    .overlay nav a {
        font-size: 1.6em;
    }
}

