@import url('https://fonts.googleapis.com/css?family=Roboto:100');

body {
	margin: 0;
	height: 100vh;
	perspective: 85em;
	background-color: #000;
	overflow: hidden;
}

[class*='cube'] {
	position: absolute;
}

#contact {
	position: absolute;
	top: 45%;
	width: 100%;
	font-size: 60px;
	font-family: 'Roboto';
	color: #fff;
	text-align: center;
	text-shadow: 0 0 10px #000;
}

.cube {
	top: 50%;
	left: 50%;
	z-index: -50;
	transform-style: preserve-3d;
	animation: ani 8s linear infinite;
}

.cube__face {
	background: url(../images/static_aux.gif);
	background-size: 100% 100%;
	opacity: 0.5;
	margin: -15em;
	width: 30em;
	height: 30em;
	box-shadow: inset 0 0 0 1px #000;
	transform: rotate3d(var(--i, 0), var(--j, 1), 0, var(--a, 0deg)) translateZ(15em);
}

.cube__face:nth-child(n + 5) {
	--i: 1;
	--j: 0;
}
.cube__face:nth-child(2) {
	--a: 90deg;
}
.cube__face:nth-child(3) {
	--a: 180deg;
}
.cube__face:nth-child(4) {
	--a: 270deg;
}
.cube__face:nth-child(5) {
	--a: 90deg;
}
.cube__face:nth-child(6) {
	--a: -90deg;
}

@keyframes ani {
	to {
		transform: rotateY(1turn) rotateX(1turn);
	}
}
