@font-face {
    font-family: 'apercu-regular';
    src: url('apercu-regular.eot');
    src: url('apercu-regular.eot?#iefix') format('embedded-opentype'),
         url('apercu-regular.woff') format('woff'),
         url('apercu-regular.woff2') format('woff2'),
         url('apercu-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;

}

html, body {
	position:relative;
	color:#DCB37E;
	background-color:#464450;
	height:100%;
	min-width:320px;
	min-height:750px;
	box-sizing: border-box;
	user-select:none;
	font-family: 'apercu-regular', sans-serif;
	font-weight:normal;
	font-size:16px;
	line-height:20px;
	letter-spacing:0.03em;
	/*overflow:hidden;*/
}

div {
	box-sizing: border-box;
}

a {
	text-decoration: none;
	color:#DCB37E;
}

.mobile {
	display:none;
}

.desktop {
	display:block;
}

#logo {
	position:absolute;
	left:50%;
	bottom:50%;
	width:130px;
	margin-left:-50px;
	margin-top:-50px;
	cursor:pointer;
}

/* header */

.header,
.footer {
	position:absolute;
	left:50%;
	margin-left:0;
	cursor:pointer;
	opacity:0;
	overflow:hidden;
	/*width:0;*/
	transition: all 0.3s;
}

.footer {
	bottom:30px;
}

.header.block-left {
	display:none;
	top:0;
	width:200px;
	height:100px;
	margin-left:-250px;
	opacity:1;
	cursor:auto;
}

.header.block-right {
	display:none;
	top:0;
	width:200px;
	height:100px;
	margin-left:100px;
	opacity:1;
	cursor:auto;
}

.footer.block-left {
	display:none;
	bottom:0;
	width:400px;
	height:300px;
	margin-left:-400px;
	opacity:1;
	cursor:auto;
}

.header.visible,
.footer.visible {
	opacity:1;
	z-index:2;
}

.header.line-1 {
	top:30px;
}

.header.line-2 {
	top:60px;
}

.header.row-1 {
	margin-left:-200px;
}

.footer.row-1 {
	margin-left:-400px;
}
.header.row-2,
.footer.row-2 {
	margin-left:-50px;
}

.header.row-3,
.footer.row-3 {
	margin-left:100px;
}

#legal-text {
	font-size:14px;
	line-height:17px;
}

/* overlay */

#overlay,
#overlay-2,
#overlay-3 {
	position:absolute;
	left:0;
	bottom:0;
	right:0;
	height:0;
	transition:all 0.6s;
	z-index:1000;
	cursor:pointer;
	overflow:hidden;
	font-size:19px;
	line-height:22px;
}

#overlay,
#overlay-2 {
	color:#FCEBD5;
	background-color:#be9d88;
}

#overlay-3 {
	background-color:#464450;
}

#overlay a,
#overlay-2 a {
	text-decoration: none;
	color:#FCEBD5;
}

#overlay-3 a {
	text-decoration: none;
	color:#DCB37E;
}

#overlay-2 {
	transition-property: none;
	background-color:transparent;
}

#overlay.visible,
#overlay-2.visible,
#overlay-3.visible {
	height:100%;
}

	#overlay > div,
	#overlay-2 > div {
		position:absolute;
		left:50%;
		margin-left:-50px;
		transition:all 0.6s;
	}
	
	#overlay > div#overlay-title {
		top:50%;
		left:auto;
		right:50%;
		margin-left:0;
		margin-right:60px;
		margin-top:-50px;
	}
	
	#overlay > div#overlay-text,
	#overlay-2 > div#overlay-text {
		position:absolute;
		bottom:50%;
		margin-bottom:50px;
		opacity:0;
		overflow:hidden;
		font-size:16px;
	}

	#overlay > div#overlay-contact,
	#overlay-2 > div#overlay-contact {
		position:absolute;
		top:50%;
		margin-top:100px;
		opacity:0;
		font-size:16px;
		line-height:18px;
	}
	
	#overlay-2.visible > div#overlay-text,
	#overlay-2.visible > div#overlay-contact {
		opacity:1;
	}
	
	#overlay-2.visible > div#overlay-text {
	}

	#overlay-3 >div#overlay-legal {
		position:relative;
		font-size:14px;
		line-height:18px;
		padding:0 20px;
		top:50%;
		margin-top:-150px;
		left:50%;
		width:320px;
		margin-left:-160px;
	}

	#overlay-header,
	#overlay-3-header {
		top:30px;
	}

	#overlay-footer,
	#overlay-3-footer {
		bottom:0;
	}
	
	#overlay.visible > div#overlay-footer,
	#overlay-2.visible > div#overlay-legal-link,
	#overlay-3.visible > div#overlay-3-footer {
		bottom:30px;
	}
	
@media all and (max-width: 700px) {
	
	.mobile {
		display:block;
	}
	
	.desktop {
		display:none;
	}

	html, body {
		min-height:450px;
	}
	
	#logo {
		position:absolute;
		left:50%;
		bottom:50%;
		width:150px;
		margin-left:-65px;
		margin-bottom:-10px;
		cursor:pointer;
	}

	.header.row-2,
	.footer.row-2 {
		margin-left:-60px;
	}
	
	.header.line-2 {
		top:auto;
		bottom:30px;
	}

	.footer {
		display:none;
	}
	
	#overlay > div,
	#overlay-2 > div,
	#overlay-3 > div {
		position:absolute;
		left:auto;
		margin-left:0;
	}
	
	#overlay > div#overlay-title {
		top:50%;
		width:350px;
		margin-left:-175px;
		left:50%;
		right:auto;
		margin-right:0;
		margin-top:5px;
		padding:0 20px;
	}
	
	#overlay > div#overlay-text,
	#overlay-2 > div#overlay-text {
		padding:0 20px;
		bottom:50%;
		margin-bottom:15px;
		font-size:19px;
		width:350px;
		margin-left:-175px;
		left:50%;
	}

	#overlay > div#overlay-contact,
	#overlay-2 > div#overlay-contact {
		position:absolute;
		top:50%;
		margin-top:100px;
		font-size:14px;
		line-height:16px;
		padding:0 20px;
		width:350px;
		margin-left:-175px;
		left:50%;
	}
	
	#overlay > #overlay-header {
		left:50%;
		top:30px;
		width:100px;
		margin-left:-50px;
		text-align:center;
	}

	#overlay > #overlay-footer {
		display:none;
	}
	
	#overlay-2 > #overlay-legal-link {
		display:block;
		left:50%;
		bottom:0;
		width:100px;
		margin-left:-50px;
		text-align:center;
		font-size:14px;
	}

	#overlay-3 > #overlay-3-header,
	#overlay-3 > #overlay-3-footer {
		left:50%;
		width:100px;
		margin-left:-50px;
		text-align:center;
	}
	
	#overlay.visible > div#overlay-footer {
		bottom:30px;
	}
}

@media all and (max-width: 350px) {

	#overlay > div#overlay-title {
		top:50%;
		width:100%;
		margin-left:0;
		left:auto;
		right:auto;
		margin-right:0;
		margin-top:5px;
		padding:0 20px;
		font-size:16px;
		line-height:20px;
	}
	
	#overlay > div#overlay-text,
	#overlay-2 > div#overlay-text {
		padding:0 20px;
		bottom:50%;
		margin-bottom:15px;
		width:100%;
		margin-left:0;
		left:auto;
		font-size:16px;
		line-height:20px;
	}

	#overlay > div#overlay-contact,
	#overlay-2 > div#overlay-contact {
		position:absolute;
		top:50%;
		margin-top:100px;
		font-size:14px;
		line-height:16px;
		padding:0 20px;
		width:100%;
		margin-left:0;
		left:auto;
	}

}

