@font-face {
	font-family: Ubuntu;
	src: url(fonts/Ubuntu.ttf) format("truetype");
}

@font-face {
	font-family: UbuntuCon;
	src: url(fonts/UbuntuCondensed-Regular.ttf) format("truetype");
}

@font-face {
	font-family: UbuntuMono;
	src: url(fonts/UbuntuMono.ttf) format("truetype");
}

body {
	height: 100vh;
	width: 300vw;
	margin: 0rem;
	background-color: black;
	overflow: hidden;
	transform: translateX(0);
}


.page {
	width: 100vw;
	height: 100vh;
	overflow: hidden;
}

.dot-background {
	width: 100vw;
	height: 100vh;
	background-image: radial-gradient(rgba(255, 255, 255, 0.217) 3%, rgba(255, 255, 255, 0) 6%);
	background-position: 0% 0%;
	background-size: 10vmin 10vmin;
	position: absolute;
	left: 0px;
	top: 0px;
	z-index: -100;
}

.title-case {
	color: white;
	position: absolute;
	font-family: UbuntuMono, Ubuntu, UbuntuCon, sans-serif;
	font-size: 10vmin;
	top: 50%;
	left: 10vmin;
	transform: translateY(-50%);
	transition: color 0.4s ease-in-out;
	text-align: left;
	pointer-events: none;
}

.line {
	display: flex;
	height: 10vmin;
	justify-content: space-between;
}

.grid-case {
	top: 50vh;
	transform: translateY(-50%);
	display: grid;
	position: absolute;
}

.grid {
	height: 5vmin;
	width: 5vmin;
	margin-top: 0vmin;
	margin-left: 0vmin;
	padding: 0vmin;
}


.options:hover~.cube-case {
	color: rgba(255, 255, 255, 0);
}

.title-case:hover {
	color: rgba(255, 255, 255, 0.201);
}

.options:hover {
	opacity: 1;
	gap: 0vh;
}


.options:hover>.option:not(:hover) {
	color: rgba(255, 255, 255, 0.201);
}

.options {
	pointer-events: all;
	position: absolute;
	display: flex;
	flex-direction: column;
	gap: 60vh;
	margin-left: 20vmin;
	opacity: 0;
	transition: opacity 0.7s cubic-bezier(.64, .21, .38, .8),
		gap 0.7s cubic-bezier(.64, .21, .38, .8);
	z-index: 20;
	padding: 0vmin;
}

.option {
	background-color: transparent;
	border: none;
	width: 85vmin;
	color: white;
	padding: 0vmin;
	font-family: UbuntuMono, Ubuntu, UbuntuCon, sans-serif;
	font-size: 10vmin;
	transition: color 0.35s cubic-bezier(.64, .21, .38, .8),
		background-color 0.05s cubic-bezier(.64, .21, .38, .8);
	text-align: right;
}

.block {
	position: absolute;
	display: grid;
	pointer-events: all;
	z-index: 30;
	margin-top: 63vmin;
	margin-left: 26vmin;
	height: 100vh;
	width: 104vmin;
	background-color: transparent;
	font-size: small;
	grid-auto-rows: 5vmin;

}


.inner-block {
	position: absolute;
	pointer-events: all;
	height: 100vh;
	width: 104vmin;
	grid-row: 3;
	background-color: transparent;


}

.cube-case {
	pointer-events: all;
	width: 85vmin;
	height: 10vmin;
	transform-style: preserve-3d;
	transform: translateZ(-20vmin);
	transition: color 0.6s cubic-bezier(.64, .21, .38, .8);
	animation: rotation 6s infinite cubic-bezier(.64, .21, .38, .8);
	text-align: right;
	user-select: none;
}


.face {
	width: 85vmin;
	height: 10vmin;
	position: absolute;
}

.front {
	transform: translateZ(5vmin);
	transition: transform 0.5s ease-in-out;
	animation: opacity1 6s infinite cubic-bezier(.64, .21, .38, .8);
}

.top {
	transform: rotateX(90deg) translateZ(5vmin);
	transition: transform 0.5s ease-in-out;
	animation: opacity4 6s infinite cubic-bezier(.64, .21, .38, .8);
}

.back {
	transform: rotateX(180deg) translateZ(5vmin);
	transition: transform 0.5s ease-in-out;
	animation: opacity3 6s infinite cubic-bezier(.64, .21, .38, .8);
}

.bottom {
	transform: rotateX(-90deg) translateZ(5vmin);
	transition: transform 0.5s ease-in-out;
	animation: opacity2 6s infinite cubic-bezier(.64, .21, .38, .8);
}

@keyframes opacity1 {
	0% {
		opacity: 1;
	}

	25% {
		opacity: 0;
	}

	50% {
		opacity: 0;
	}

	75% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

@keyframes opacity2 {
	0% {
		opacity: 0;
	}

	25% {
		opacity: 1;
	}

	50% {
		opacity: 0;
	}

	75% {
		opacity: 0;
	}

	100% {
		opacity: 0;
	}
}

@keyframes opacity3 {
	0% {
		opacity: 0;
	}

	25% {
		opacity: 0;
	}

	50% {
		opacity: 1;
	}

	75% {
		opacity: 0;
	}

	100% {
		opacity: 0;
	}
}

@keyframes opacity4 {
	0% {
		opacity: 0;
	}

	25% {
		opacity: 0;
	}

	50% {
		opacity: 0;
	}

	75% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

@keyframes rotation {
	0% {
		transform: translateZ(-20vmin) rotateX(0deg);
	}

	25% {
		transform: translateZ(-20vmin) rotateX(90deg);
	}

	50% {
		transform: translateZ(-20vmin) rotateX(180deg);
	}

	75% {
		transform: translateZ(-20vmin) rotateX(270deg);
	}

	100% {
		transform: translateZ(-20vmin) rotateX(360deg);
	}
}

@keyframes rotation2 {
	0% {
		transform: rotateX(0deg);
	}

	25% {
		transform: translateZ(-5vmin) rotateX(90deg);
	}

	50% {
		transform: translateY(12vmin) rotateX(180deg);
	}

	75% {
		transform: translateZ(5vmin) rotateX(270deg);
	}

	100% {
		transform: rotateX(360deg);
	}
}


h1 {
	color: white;
	font-family: UbuntuCon, Ubuntu, UbuntuMono, sans-serif;
	font-size: 10vmin;
	margin: 0rem;
	text-align: center;
}

.buttonRight {
	color: white;
	position: absolute;
	background-color: rgb(110, 86, 56);
	border: none;
	border-radius: 15px;
	font-family: UbuntuCon, Ubuntu, UbuntuMono, sans-serif;
	font-size: 10vmin;
	top: 100vh;
	float: left;
	transform: translateY(-5vmin);
}

.buttonLeft {
	color: white;
	position: absolute;
	background-color: rgb(110, 86, 56);
	border: none;
	border-radius: 15px;
	font-family: UbuntuCon, Ubuntu, UbuntuMono, sans-serif;
	font-size: 10vmin;
	top: 100vh;
	float: right;
	transform: translateY(-5vmin);
}