@font-face {
	font-family: blocus;
	src: url('../assets/blocus.ttf');
}

* { margin:0; padding:0; }

body {
	display: none;
	overflow: hidden;
}

a, a:visited, a:active {
	color: #DCBA96;
	text-decoration: none;
}

h1 {
	position: absolute;
	font-family: 'blocus', serif;	
	font-size: 2em;

	cursor: pointer;

	position: relative;
	top: 50%;
	transform: translateY(-50%);
}

#cover, #logo {
	display: block;
	position: absolute;
	width: 40%;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
}

#background {
	position: absolute;
	width: 150%;
	height: 150%;
	z-index: -1;
}

#mobile-background {
	display: none;
	position: absolute;
	min-width: 100%;
	min-height: 100%;
	top: 0;
	left: 0;
	z-index: -1;
}

#download {
	position: absolute;
	width: 15vw;
	top: 0;
	bottom: 0;
	right: 7.5%;
	margin: auto;
	height: 2em;
	line-height: 2em;
	font-size: 2em;
	text-align: center;
	font-family: 'blocus', serif;
	color: #DCBA96;
	opacity: .5;
	letter-spacing: 3px;

	-webkit-transform: rotate(10deg);
	transform: rotate(10deg);

	-webkit-animation: webkitfloata 2s linear infinite;
	animation: floata 2s linear infinite;
}

#uno {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 11.25%;
	margin: auto;
	width: 7.5vw;

	-webkit-animation: webkitfloatb 2s linear infinite;
	animation: floatb 2s linear infinite;
}

#faint {
	opacity: 0;
}

#cover, #logo, #download, #uno, #faint {
	z-index: 1;
}

#mobile {
	display: none;
	position: fixed;
	width: 100vw;
	height: 100vh;
	top: 0;
	left: 0;
	text-align: center;
	background-color: #FFFFFF;
	z-index: 5;
}

span {
	position: relative;
	display: block;
}

span:before, span:after {
	content: '';
	position: absolute;
	width: 0%;
	height: 1px;
	top: 50%;
	margin-top: -0.5px;
	background: #DCBA96;
}

span:before {
	left: -1px;
}
span:after {
	right: 1px;
	background: #DCBA96;
	transition: width 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

span:hover:before {
	background: #DCBA96;
	width: 100%;
	transition: width 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

span:hover:after {
	background: transparent;
	width: 100%;
	transition: 0s;
}

@keyframes floata {
	0% { padding-bottom: 0%; }
	25% { padding-bottom: -1%; }
	75% { padding-bottom: 1%; }
	100% { padding-bottom: 0%; }
}


@-webkit-keyframes webkitfloata {
	0% { padding-bottom: 0%; }
	25% { padding-bottom: -1%; }
	75% { padding-bottom: 1%; }
	100% { padding-bottom: 0%; }
}


@keyframes floatb {
	0% { padding-bottom: 0%; }
	25% { padding-bottom: 1%; }
	75% { padding-bottom: -1%; }
	100% { padding-bottom: 0%; }
}

@-webkit-keyframes webkitfloatb {
	0% { padding-bottom: 0%; }
	25% { padding-bottom: 1%; }
	75% { padding-bottom: -1%; }
	100% { padding-bottom: 0%; }
}


@media only screen 
and (min-device-width: 1px)
and (max-device-width: 1024px) {
	#mobile {
		display: block;
	}

	#mobile-background {
		display: block;
	}

	#background, canvas {
		display: none;
	}

	#uno {
		top: inherit;
		bottom: 15%;
		left: 0;
		right: 0;
		margin: auto;
		width: 40%;
	}

	#download {
		display: none;
	}
}