@font-face {
	font-family: 'CC Wild Words';
	src: url('../fonts/CCWildWordsRoman.woff2') format('woff2'),
		url('../fonts/CCWildWordsRoman.woff') format('woff');
		url('../fonts/CCWildWordsRoman.ttf') format('ttf');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

:root {
	--snack1: #0A1561;
	--snack2: #0E2096;
	--snack3: #1C2FDC;
	--snack4: #00EAFA;
	--snack5: #FFFFFF;
}

* {
	margin: 0;
	padding: 0;
	font-family: 'CC Wild Words',Arial,Helvetica,sans-serif;

	user-drag: none;
	user-select: none;
	-moz-user-select: none;
	-webkit-user-drag: none;
	-webkit-user-select: none;
	-ms-user-select: none;
}

body {
	background: black;
	transition: transform 1000ms ease; /* Animation effect */
}

.snacktoon-list {
	position: relative;
	/* background: var(--snack2); */
	text-align: center;
	width: fit-content;
	height: fit-content;
	border-radius: 20px;
	left: 50%;
	transform: translate(-50%, 0);
	margin-top: 10vh;
	padding: 5vw;
}
#main-title {
	width: 60vw;
}
.list-entry {
	display: inline-block;
	padding: 4vw;
}
.list-entry img {
	width: 30vw;
	height: calc(30vw * 1.6);
	cursor: pointer;
	transition: all 100ms ease-in-out;
}
.list-entry img:hover {
	outline: 5px solid var(--snack4);
}

.snacktoon-list h1 {
	color: var(--snack1);
	font-size: 6vw;
}

.snacktoon-list h2 {
	font-size: 3vw;
	color: var(--snack5);
	margin-top: 2vw;
}
.snacktoon-list a {
	text-decoration: none;
}
.snacktoon-list a:hover {
	cursor: pointer;
}
.snacktoon-list h3 {
	font-size: 3vw;
	color: var(--snack4);
	font-style: italic;
	margin-bottom: 6vh;
}

.snacktoon-list h4 {
	font-size: 2.2vw;
	margin-top: 1.2vw;
	opacity: 0.7;
	font-style: italic;
	transition: opacity 250ms ease;
}
.snacktoon-list h4 a {
	color: var(--snack5);
}
.snacktoon-list h4:hover {
	opacity: 1;
}

#player {
	position: relative;
	width: 100%;
	height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
}

.panel {
	position: relative;
	display: block;
	width: 100vw;
	/* height: calc(100vw * 1.6); */

	left: 50%;
	transform: translate(-50%, 0);

	background: black;
}

.debug {
	outline: 1px solid red;
}
.panel-marker {
	position: absolute;
	top: 5px;
	left: 5px;
	color: red;
	z-index: 1000;
}

.panel .asset {
	position: absolute;

	will-change: transform, opacity;
	backface-visibility: hidden;
	transform: translateZ(0);
	transform: translate3d(0, 0, 0);
	-webkit-transform: translate3d(0, 0, 0);
	-webkit-backface-visibility: hidden;
	visibility: visible;
}



.hover-highlight:hover {
	outline: 2px solid rgb(245, 142, 39);
	background: rgba(245, 142, 39, 0.3);
}




.loading-screen {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	background: black;
	text-align: center;
	flex-direction: column;
	z-index: 2000;
}

.loading-screen .bg-texture {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;

	background-image: url('https://snackshop-knighted-assets.sfo3.digitaloceanspaces.com/player/halftone_sliver_2.jpg');
	background-size: 100% auto;
	background-repeat: repeat-y;

	transform: translateX(100%);
	transition: transform 1000ms ease;
	z-index: 2000;

	max-width: none;
}




.loading-screen .loading-block {
	position: absolute;
	max-width: 600px;
	min-height: 500px;
	top: 40%;
	z-index: 2001;
}
.loading-screen .loading-title {
	width: 75vw;
	max-width: 600px;
	height: auto;
	top: 35%;
	transform: translateX(200%);
	transition: transform 500ms ease;
	z-index: 2001;
	margin-bottom: 60px;
}

.loading-screen .loading-text {
	font-family: 'CC Wild Words';
	font-size: 7vw;
	color: var(--snack4);
}


.loading-screen .end-block * {
	display: block;
}
.loading-screen .end-block a {
	text-decoration: none;
	color: var(--snack4);
}
.loading-screen .end-block {
	z-index: 2001;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
}
.loading-screen .end-block .scalable-container {
	position: relative;
	box-sizing: border-box;

	aspect-ratio: 9 / 16;
	width: 90vw;
	height: auto;

	max-height: 90vh;
	max-width: calc(90vh * (9 / 16));

	overflow: hidden;

	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;

	font-size: calc(min(1vw, calc(1vh * (9 / 16))));

	margin-bottom: 10em;

}
.scalable-container img,
.scalable-container p,
.scalable-container a {
	position: absolute;
	transform-origin: top left;
	font-size: 50%;
}

.scalable-container .purchase-poster {
	top: 15%;
	width: 75%;
	left: 12.5%;
	height: auto;
	cursor: pointer;
}
.scalable-container .awa-poster {
	top: 50%;
	width: 40%;
	left: 30%;
	height: auto;
	cursor: pointer;
}
.scalable-container .purchase-text {
	top: 62%;
	left: 10%;
	width: 80%;
	font-size: 3em;
	line-height: 1.2em;
	text-align: center;
	cursor: pointer;
}

.scalable-container .get-now {
	display: flex;
	justify-content: center;
	align-items: center;
	border: 3px solid white;
	border-radius: 1em;
	top: 68.5%;
	width: 35%;
	left: 32.5%;
	height: 12em;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.2);
	transition: all 100ms ease-in-out;
}
.scalable-container .get-now a {
	color: white;
	font-size: 7em;
}
.scalable-container .get-now:hover {
	background: rgba(255, 255, 255, 0.3);
}
.scalable-container .get-now:active {
	background: rgba(255, 255, 255, 0.5);
}

.scalable-container .end-title {
	width: 60%;
	left: 20%;
	height: auto;
	top: 78%;
	cursor: pointer;
}
.scalable-container .end-title-text {
	top: 85%;
	left: 0;
	width: 100%;
	font-size: 3em;
	line-height: 1.2em;
	text-align: center;
	cursor: pointer;
}

.scalable-container .loading-replay-text {
	bottom: 6%;
	width: 100%;
	font-size: 10em;
	text-align: center;
	font-family: 'CC Wild Words';
	color: var(--snack4);
	margin-top: 60px;
	cursor: pointer;
}




.loading-screen .loading-scroll-text {
	top: 80%;
	font-family: 'CC Wild Words';
	font-size: 7vw;
	color: var(--snack4);
	opacity: 0;
	z-index: 2001;
	transition: opacity 500ms ease;
}

.loading-screen .loading-menu-text {
	top: 60%;
	font-family: 'CC Wild Words';
	font-size: 7vw;
	color: var(--snack4);
	z-index: 2001;
	cursor: pointer;
}

.loading-screen .loading-original-artwork-text {
	top: 72%;
	font-family: 'CC Wild Words';
	font-size: 7vw;
	color: var(--snack4);
	z-index: 2001;
	cursor: pointer;
	text-decoration: none;
}

.loading-screen .loading-bar-container {
	position: relative;
	width: 40vw;
	height: 1.2vw;
	background: black;
	border-radius: 20px;
	border: 2px solid var(--snack4);
	margin-left: calc(50% - 20vw);
	margin-top: 20px;
}
.loading-screen .loading-bar {
	height: 100%;
	background: var(--snack5);
	width: 0%;
	border-radius: 20px;
	transition: width 200ms ease-in-out;
}
