/* -------------------------------- 

Fonts

-------------------------------- */
  @font-face {
      font-family : "Nexa Bold";
      src : url('../fonts/Nexa/Nexa_Bold.otf');
  }

  @font-face {
      font-family : "Nexa Light";
      src : url('../fonts/Nexa/Nexa_Light.otf');
  }
/* -------------------------------- 

/* Overlay style */
.overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: rgba(255,255,255,1);
}

.overlay h1 {
  position: relative;
  width: 32px;
  height: 40px;
  top: 4rem;
  left: 5%;
  text-indent: -9999px;
  margin-bottom: 0;
  color: #000;
  font-size: 2rem;
  background-image: url(../img/philippe-fercha.png);
}

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

/* Button style */
button { 
	position: absolute;
	width: 32px;
	height: 17px;
	right: 5%;
	background: url(../img/hamburger-menu-white.png) no-repeat transparent;
	border: 0;
	text-indent: -9999px;
	cursor: pointer;
}
@media screen and (max-width: 768px) {
  button {
    top: 3rem;
  }
}

/* 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;
}
@media screen and (max-width: 768px) {
	.overlay ul {
		height: 100%;
	}
}
@media screen and (max-width: 480px) {
	.overlay ul {
		height: 90%;
		padding-top: 60px;
	}
}
@media only screen and (max-device-width: 1024px) and (orientation:landscape) {
  	.overlay ul {
		height: 75%;
		padding-top: 0;
	}
}

.overlay ul li {
	display: block;
	height: 20%;
	height: calc(100% / 5);
	min-height: 54px;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.overlay ul li a {
	font-size: 54px;
	font-weight: 300;
	display: block;
	color: #000;
	text-transform: uppercase;
	-webkit-transition: color 0.2s;
	transition: color 0.2s;
}
@media screen and (max-width: 768px) {
	.overlay ul li a {
		font-size: 42px;
	}
}
@media screen and (max-width: 480px) {
	.overlay ul li a {
		font-size: 24px;
	}
}
@media only screen and (max-device-width: 1024px) and (orientation:landscape) {
  	.overlay ul li a {
		font-size: 32px;
	}
	.overlay ul li {
		line-height: 50px !important;
	}
}

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

.overlay .social{
	display: block;
	vertical-align: middle;
	width: 590px;
	height: auto;
}
@media screen and (max-width: 480px) {
	.overlay .social{
		width: 272px;
		padding: 0;
	}
}

.overlay .social li{
	float: left;
	margin-right: 8%;
}
@media screen and (max-width: 480px) {
	.overlay .social li{
		margin-right: 5%;
	}
}

.overlay .social li:last-child{
	margin-right: 0 !important;
}

.overlay .social li a{
	font-size: 2rem;
	font-family: "Nexa Bold", sans-serif; 
	letter-spacing: 1px;
}
@media screen and (max-width: 480px) {
	.overlay .social li a{
		font-size: 1rem;
	}
}
@media only screen and (max-device-width: 1024px) and (orientation:landscape) {
	.overlay .social{
		width: 270px;
		padding: 0;
	}
  	.overlay .social li a{
		font-size: 0.75rem;
	}
}

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

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