*,
*::after,
*::before {
	box-sizing: border-box;
}

:root {
	font-size: 18px;
}

body {
	margin: 0;
	--color-text: #fff;
	--color-bg: #000;
	--color-link: #ea00d9;
	--color-link-hover: #3eaaf1;
	--color-alt: #3ba2e5;
	--color-info: #e93f3b;
	color: var(--color-text);
	background-color: var(--color-bg);
	font-family: ballinger-mono, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	width: 70%;
}

span {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 14px;
	color: var(--color-link);
}

.homepage {
	--color-info: #D856BF;
}

/* Page Loader */
.js .loading::before,
.js .loading::after {
	content: '';
	position: fixed;
	z-index: 1000;
}

.js .loading::before {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--color-bg);
}

.js .loading::after {
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	margin: -30px 0 0 -30px;
	opacity: 0.4;
	background: var(--color-link);
	animation: loaderAnim 0.7s linear infinite alternate forwards;
}

@keyframes loaderAnim {
	to {
		opacity: 1;
		transform: scale3d(0.5, 0.5, 1) rotate3d(0, 0, 1, 180deg);
		border-radius: 50%;
	}
}

a {
	text-decoration: none;
	color: var(--color-link);
	outline: none;
	font-size: 20px;
}

a:hover,
a:focus {
	color: var(--color-link-hover);
	outline: none;
}

.message {
	background: var(--color-text);
	color: var(--color-bg);
	padding: 1rem;
	text-align: center;
}

.frame {
	padding: 3rem 5vw;
	text-align: center;
	position: relative;
	z-index: 1000;
}


.frame__links {
	display: inline;
	text-align: center;

}

.effects {
	margin-top: auto;
	padding: 2rem;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.frame__links a {
	border: 0;
	color: inherit;
	white-space: nowrap;
	background: none;
	text-transform: inherit;
	font: inherit;
	cursor: pointer;
	color: var(--color-link);
	font-size: 12px;
	margin-left: 0.3rem;
	margin-right: 0.3rem;
}

.frame__links a::before {
	content: "[";
	margin-right: 0.5rem;
	display: inline-block;
}

.frame__links a::after {
	content: "]";
	margin-left: 0.5rem;
	display: inline-block;
}

.frame__links a:hover {
	color: var(--color-link-hover);
}


.frame__demos {
	text-align: center;
	font: inherit;
}

.content {
	display: flex;
	flex-direction: column;
	width: 100vw;
	height: calc(100vh - 13rem);
	position: relative;
	justify-content: flex-start;
	align-items: center;
}

.content__title-wrap {
	position: relative;
	text-align: center;
	pointer-events: none;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.content__title-wrap a {
	pointer-events: auto;
}

.content__pretitle {
	color: var(--color-alt);
	font-size: 1.35rem;
}

.content__title {
	font-size: 2vw;
	font-weight: 700;
	/* margin: 0.5rem 0 1.5rem; */
	margin: 0;
	font-family: 'Roboto', sans-serif;
	color: white;
}

/* .content__link {
	font-family: 'Roboto', sans-serif;
	margin: 0.5rem 0 1.5rem;
	font-size: 1.1rem;
	font-weight: 700;
	color: #ea00d9;
} */

#app {
	width: 100%;
	height: 100vh;
	overflow: hidden;
	position: absolute;
}

canvas {
	width: 100%;
	height: 100%;
}

@media screen and (min-width: 53em) {
	.frame {
		position: fixed;
		text-align: center;
		z-index: 100;
		top: 0;
		left: 0;
		display: grid;
		align-content: space-between;
		width: 100%;
		max-width: none;
		height: 100vh;
		padding: 2rem;
		pointer-events: none;
		grid-template-columns: 25% 50% 25%;
		grid-template-rows: auto auto auto;
		grid-template-areas: 'title links author' '... ... ...' '... demos ...';
	}

	.frame__title {
		grid-area: title;
		margin: 0;
	}

	.frame__title-wrap {
		text-align: center;
	}


	.frame__demos {
		margin: 0;
		grid-area: demos;
		justify-self: center;
	}

	.frame__links {
		margin-top: auto;
		padding: 2rem;
		display: flex;
		flex-wrap: wrap;
		gap: 1rem;
		justify-self: center;
	}

	.frame__author {
		grid-area: author;
		justify-self: end;
	}

	.frame a {
		pointer-events: auto;
	}

	.content {
		height: 100vh;
		justify-content: center;
	}
}