@font-face {
	font-family: "Dosis";
	src: url(../resources/fonts/ref/Dosis.ttf) format("truetype-variations");
	font-weight: 1 999;
	font-style: normal;
}

@font-face {
	font-family: "Inter";
	src: url(../resources/fonts/ref/Inter.ttf) format("truetype-variations");
	font-weight: 1 999;
	font-style: normal;
}

@font-face {
	font-family: "Inter";
	src: url(../resources/fonts/ref/Inter-Italic.ttf) format("truetype-variations");
	font-weight: 1 999;
	font-style: italic;
}

html {
	cursor: url("../resources/main/cursors/arrow.svg") 5 1, default;
	--orange: color(display-p3 1 0.458 0 / 1);
	--font-dosis: "Dosis", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
	--font-inter: "Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

	--navBarHeight: 0px;

	@media screen and (max-width: 799px) {
		--navBarHeight: 50px;
	}
}

* {
	scrollbar-color: hsla(0, 0%, 100%, .3) transparent;
	cursor: url("../resources/ref/arrow.svg") 0 0, default;
}

a, a:hover, a:active, a:visited, button, a div, a p, a li, a h2, a h3, a h1, a img, button div, button p, button li, button img, .glrSidebar summary, .glrSidebar summary span {
	cursor: url("../resources/ref/link.svg") 2 0, pointer !important;
	touch-action: manipulation; /* prevent unwanted double tap zoom on click*/
}

img {
	vertical-align: middle;
	/* weird default fix */
}

/*
==================================


	Main Layout.
==================================
*/

.refBody {
	background-color: hsl(210, 35%, 9%);;
	max-height: 100svh;
}

.bodyCenterCont {
	height: 100svh;
	display: flex;
	align-items: center;
	@media screen and (max-width: 799px) {
		height: calc(100svh - var(--navBarHeight));
	}

}

.refWrapper {
	height: 100svh;
	max-height: 100svh;
	width: 100vw;
	max-width: 100vw;

	margin: 0;
	padding: 0;
}

.refScrollContainer {
	overflow-x: auto;
	overflow-y: hidden;
	height: 100%;
	width: 100%;
}

.refScrollContainer:focus-visible {
	scrollbar-color: var(--orange) transparent;
}

.refStuffContainer {
	height: 100%;
	aspect-ratio: auto 5703 / 2256;
	overflow: hidden;
	margin: 0;
	margin: 0 0 0 60px;
	position: relative;
	container-type: size;

	@media screen and (max-width: 799px) {
		margin: 0 0 0 0;
	}
}

.refImage {
	height: 100%;
	width: auto;
	padding: 0;
	margin: 0; 
}

/*
==================================


	Zoom Levels.
==================================
*/

.refWrapper[data-zoomlevel="0"] {
	height: calc(100svh - var(--navBarHeight));
	max-height: calc(100svh - var(--navBarHeight));

	#zoomin {
		opacity: .4;
	}
	#zoomin:hover {
		pointer-events: none;
	}
}

.refWrapper[data-zoomlevel="1"] {
	height: calc(90svh - var(--navBarHeight));
	max-height: calc(90svh - var(--navBarHeight));
}

[data-zoomlevel="2"] {
	height: calc(80svh - var(--navBarHeight));
	max-height: calc(80svh - var(--navBarHeight));
}

[data-zoomlevel="3"] {
	height: calc(70svh - var(--navBarHeight));
	max-height: calc(70svh - var(--navBarHeight));
}

[data-zoomlevel="4"] {
	height: calc(60svh - var(--navBarHeight));
	max-height: calc(60svh - var(--navBarHeight));
}

[data-zoomlevel="5"] {
	height: calc(50svh - var(--navBarHeight));
	max-height: calc(50svh - var(--navBarHeight));

	#zoomout {
		opacity: .4;
	}
	#zoomout:hover {
		pointer-events: none;
	}
}

/*
==================================


	Tutorial Overlay.
==================================
*/

.tutorialOverlayCont {
	height: 100svh;
	width: 100vw;
	position: fixed;
	top: 0;
	left: 0;
	
	overflow: auto;

	z-index: 99;
	backdrop-filter: grayscale(80%);
	background-color: hsla(221, 18%, 21%, 0.9);
	  
	background-image: 
		radial-gradient(rgba(20, 23, 31, 0.2) 18%, transparent 18%);
	background-position: 4px 4px;
	background-size: 10px 10px;

	display: flex;
	align-items: center;
	justify-content: center;	
	
	@media screen and (max-height: 799px) {
		align-items: flex-start;
	}
}

.tutorialBlock {
	height: auto;
	width: 450px;
	max-width: 100%;
	background-color: #0f171f;
	box-sizing: border-box;
	padding: 10px;
	display: flex;
	gap: 10px;
	flex-direction: column;
	align-items: flex-end;
}

.tutorialSubBlock {
	background-color: #1c222f;
	box-sizing: border-box;
	padding: 10px 15px;
	width: 100%;
}

.tutorialBlock p {
	color: #fff;
	font-size: 1.05rem;
	font-family: var(--font-inter);
	font-weight: 400;
	margin: 0;
}

.tutorialBlock button, .chromeWarning button {
	background-color: var(--orange);
	padding: 10px 50px;

	color: #fff;
	font-size: 1rem;
	font-family: var(--font-inter);
	font-weight: 500;

	outline: 0px solid var(--orange);

	transition: .2s;
}

.tutorialBlock button:focus-visible, .chromeWarning button:focus-visible {
	outline: 3px dashed white;
	outline-offset: 3px;
	transition: none;
}

@media (hover: hover) {
	.tutorialBlock button:hover, .chromeWarning button:hover {
		background-color: white;
		color: var(--orange);

		outline: 3px solid var(--orange);
		outline-offset: 3px;
	}
}

.tutorialImage {
	height: auto;

	display: block;
	margin: auto;
	max-width: 100%;

	margin-bottom: 30px;
	margin-top: 10px;
}

.tutorialDeviceGuide {
	width: 320px;
}

.tutorialPalette {
	width: 320px;
	margin-top: 20px;
}

.tutorialZoom {
	width: 380px;
}

/*
==================================


	Nav Stuff.
==================================
*/

.refNavCont {
	background-color: hsla(210, 35%, 9%, .8);
	z-index: 10;
	position: fixed;
	left: 0px;
	bottom: 0px;
	height: 100svh;
	width: 60px;
	backdrop-filter:  brightness(150%) saturate(150%) blur(10px);
	filter: drop-shadow(.33px 0px 0px hsla(0, 0%, 100%, .1));

	border-top-right-radius: 15px;
	border-bottom-right-radius: 15px;

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

	box-sizing: border-box;
	padding: 0px 0;

	touch-action: manipulation; /* prevent unwanted double tap zoom on click*/

	@media screen and (max-width: 799px) {
		flex-direction: row;
		width: 100vw;
		height: var(--navBarHeight);

		border-top-right-radius: 0px;
		border-bottom-right-radius: 0px;
		filter: unset;
	}
}

.refNavCont button, .refNavCont a {
	width: 50px;
	height: 40px;
	display: block;
	padding: 5px 5px;
	box-sizing: content-box;
}

@media (hover: hover) {
	.refNavCont button:hover, .refNavCont a:hover {
		background-color: var(--orange);
	}
}

.refNavCont button:focus-visible, .refNavCont a:focus-visible {
	outline: 3px dashed var(--orange);
	outline-offset: -3px;
}

.navSpacer {
	height: 40px;

	@media screen and (max-width: 799px) {
		margin-left: auto;
	}
}

.refNavImgCont {
	width: 100%;
	height: 25px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.refNavImgCont img {
	height: 15px;
	width: auto;
	display: block;
}

.refNavTextCont {
	width: 100%;
	height: 15px;
}

.refNavTextCont p {
	line-height: 15px;
	margin: 0;
	font-size: 9px;
	color: #fff;
	font-family: var(--font-inter);
	font-weight: 700;
	text-align: center;
}

/*
==================================


	Pop Up Stuff.
==================================
*/

.refPopUp {
	position: fixed;
	margin-top: -50px;

	min-height: 32px;

	width: auto;
	background-color: white;
	z-index: 999;

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

	box-sizing: border-box;

	pointer-events: none;

	display: flex;
	flex-direction: row;
}

@keyframes popUpAnimIn {
	0% {
		transform: translate(0, 20px);
		opacity: 0;
	}
	100% {
		opacity: 1;
		transform: translate(0, 0px);
	}
}

@keyframes popUpAnimOut {
	0% {
		transform: translate(0, 0px);
		opacity: 1;
	}
	100% {
		opacity: 0;
		transform: translate(0, -20px);
	}
}

.popUpAnimated {
	animation: popUpAnimIn .2s forwards;
}

.popUpAnimatedOut {
	animation: popUpAnimOut .2s forwards;
}

.refPopUp p {
	color: var(--orange);
	font-size: 1rem;
	line-height: 1.1rem;
	margin: 0;
	padding: 7px 10px;
	font-family: var(--font-inter);
}

.popUpColour {
	min-height: 28px;
	min-width: 28px;
	margin: 2px 0px 2px 2px;
	background-color: black;
}

/*
==================================


	Ref Stuff.
==================================
*/


.refOvlImageCont {
	height: 100%;
	width: auto;
	position: absolute;
	top: 0;
	left: 0;
	pointer-events: none;
}

.refOvlImageCont svg {
	height: 100%;
	width: 100%;
	position: absolute;
	left: 0;
	top: 0;
}

.refOvlImageCont path {
	height: 100%;
	width: 100%;
}

.refOvlImageCont path, .refOvlImageCont rect {
	pointer-events: auto;
}

.refOvlImage {
	height: 100%;
	width: auto;
	transition: filter .3s;
	pointer-events: none;
	filter: 
		drop-shadow(0.2cqh 0.2cqh 0px var(--orange))
		drop-shadow(0.2cqh -0.2cqh 0px var(--orange))
		drop-shadow(-0.2cqh 0.2cqh 0px var(--orange))
		drop-shadow(-0.2cqh -0.2cqh 0px var(--orange));
}

.refOvlFront {
	transform: translate(23.3%, 0);
}

.refOvlBack {
	transform: translate(161.1%, 0);
}

.refOvlText {
	width: 45cqh;
	transform: translate(462%, 0);
	box-sizing: border-box;
	padding: 4.62cqh 2.33cqh;
}

/*
==================================


	Colours block code.
==================================
*/

.refOvlColours {
	transform: translate(183.5%, 0);
	img {
		filter: none;
	}
}

.refHitbox, .refHitboxColours {
	opacity: 0;
	cursor: url("../resources/ref/link.svg") 2 0, pointer !important;
	touch-action: manipulation; /* prevent unwanted double tap zoom on click*/
}

.refHitboxColours:focus-visible {
	outline: 3px dashed var(--orange);
	outline-offset: 0px;
	transition: none;
	opacity: 1;
	fill: transparent;
}

.refHitboxColoursOutline {
	fill:none;
	fill-opacity:1;
	stroke:transparent;
	stroke-width: 1.8;
	stroke-linecap:square;
	stroke-opacity:1;
	stroke-dasharray: 18, 6, 2, 20;
	animation: outlineSwim 3s infinite;
	animation-timing-function: linear;
	transition: color .2s, transform .2s;
}

@media (hover: hover) {
	.refOvlColours svg:has(.refHitboxColours:hover) {
		.refHitboxColoursOutline {
			stroke:var(--orange);
		}
	}
	.refOvlColours svg:has(#refColoursB:hover) {
		.refHitboxColoursOutline {
			transform: translate(14%, 0);
		}
	}
	.refOvlColours svg:has(#refColoursC:hover) {
		.refHitboxColoursOutline {
			transform: translate(28.5%, 0);
		}
	}
	.refOvlColours svg:has(#refColoursD:hover) {
		.refHitboxColoursOutline {
			transform: translate(42.5%, 0);
		}
	}
	.refOvlColours svg:has(#refColoursE:hover) {
		.refHitboxColoursOutline {
			transform: translate(56.5%, 0);
		}
	}
	.refOvlColours svg:has(#refColoursF:hover) {
		.refHitboxColoursOutline {
			transform: translate(70.5%, 0);
		}
	}
	.refOvlColours svg:has(#refColoursG:hover) {
		.refHitboxColoursOutline {
			transform: translate(0%, 4.75%);
		}
	}
	.refOvlColours svg:has(#refColoursH:hover) {
		.refHitboxColoursOutline {
			transform: translate(14%, 4.75%);
		}
	}
	.refOvlColours svg:has(#refColoursI:hover) {
		.refHitboxColoursOutline {
			transform: translate(28.5%, 4.75%);
		}
	}
	.refOvlColours svg:has(#refColoursJ:hover) {
		.refHitboxColoursOutline {
			transform: translate(42.5%, 4.75%);
		}
	}
}

@keyframes outlineSwim {
	0% {
		stroke-dashoffset:0
	}
	100% {
		stroke-dashoffset: 46;
	}
  }

@media (hover: hover) {
	.refOvlImageCont:has(.refHitbox:hover) .refOvlImage {
		filter: 
		drop-shadow(0.3cqh 0.3cqh 0px #fff)
		drop-shadow(0.3cqh -0.3cqh 0px #fff)
		drop-shadow(-0.3cqh 0.3cqh 0px #fff)
		drop-shadow(-0.3cqh -0.3cqh 0px #fff)
		drop-shadow(0px 0px 1cqh rgba(255, 255, 255, 0.3));
	}

	.refHitbox:hover {
		cursor: url("../resources/ref/link.svg") 2 0, pointer !important;
	}
}

.refOvlExtras {
	height: 100%;
	aspect-ratio: 1191 / 2256 ;
	transform: translate(296.1%, 0);
}

/*
==================================


	Text Code
==================================
*/

.refOvlImageCont p, .refOvlImageCont li {
	position: absolute;
	color: #fff;
	margin: 0;
	pointer-events: all;
}

#textOne {
	font-family: var(--font-dosis);
	font-size: 2.8cqh;
	line-height: 3.91cqh;
	letter-spacing: 0.09cqh;
	font-weight: 100;
	top: 6.69cqh;
	left: 53.5cqh;
}

#textZero {
	font-family: var(--title-font);
	font-size: 24.5cqh;
	font-weight: 100;
	top: 32.9cqh;
	left: -47.6cqh;
	letter-spacing: -0.3cqh;
	font-weight: 800;
	transform: rotate(-90deg);
}

#textThree {
	font-family: var(--font-mono);
	font-size: 3.6cqh;
	line-height: 3.91cqh;
	font-weight: 400;
	letter-spacing: -0.1cqh;
	top: 91.8cqh;
	left: -2.1cqh;
}

.textDescTitle {
	font-family: var(--font-mono);
	font-size: 2cqh;
	line-height: 1.2cqh;
	font-weight: 300;
	letter-spacing: -0.08cqh;
	position: relative !important;
}

.textDescList {
	list-style-type: "+   ";
	margin-top: 1.5cqh;
	padding-left: 4.3cqh;
	margin-bottom: 3.1cqh;
	position: relative !important;
}

.textDescList li {
	font-family: var(--font);
	font-size: 1.8cqh;
	line-height: 2.2cqh;
	font-weight: 300;
	letter-spacing: 0.02cqh;
	position: relative;
	margin-bottom: .6cqh;
}

#textGlasses {
	font-family: var(--font-mono);
	font-size: 2.3cqh;
	line-height: 3.91cqh;
	font-weight: 400;
	letter-spacing: 0.03cqh;
	top: 19.3cqh;
	left: 4.6cqh;
}

#textArm {
	font-family: var(--font-mono);
	font-size: 2.3cqh;
	line-height: 3.91cqh;
	font-weight: 400;
	letter-spacing: 0.03cqh;
	top: 47.1cqh;
	left: 7.2cqh;
}

#textHoof {
	font-family: var(--font-mono);
	font-size: 2.3cqh;
	line-height: 3.91cqh;
	font-weight: 400;
	letter-spacing: 0.03cqh;
	top: 93.75cqh;
	left: 3.2cqh;
}

#textGlassesExt {
	font-family: var(--font-inter);
	font-size: 1.73cqh;
	line-height: 2cqh;
	font-weight: 400;
	letter-spacing: -0.05cqh;
	top: 19.2cqh;
	left: 35.2cqh;
	text-align: right;
}

#textArmExt {
	font-family: var(--font-inter);
	font-size: 1.73cqh;
	line-height: 1.95cqh;
	font-weight: 400;
	letter-spacing: -0.05cqh;
	top: 46.9cqh;
	left: 28.05cqh;
	text-align: right;
}

#textHoofExt {
	font-family: var(--font-inter);
	font-size: 1.73cqh;
	line-height: 1.95cqh;
	font-weight: 400;
	letter-spacing: -0.05cqh;
	top: 93.55cqh;
	left: 29.15cqh;
	text-align: right;
}

#textDescCredit {
	font-family: var(--font-inter);
	font-size: 1.2cqh;
	line-height: 1.4cqh;
	font-weight: 400;
	letter-spacing: -0.0cqh;
	top: 96.6cqh;
	left: 1.7cqh;
}

/*
==================================


	Chrome Warning Stuff.
==================================
*/

.chromeWarning {
	position: fixed;
	height: auto;
	width: 400px;
	max-width: calc(100vw - 4px);
	background-color: #1c222f;
	z-index: 50;
	padding: 10px 15px;
	outline: 2px solid var(--orange);
	bottom: 20px;
	right: 20px;
	box-shadow: 0px 10px 30px rgba(0,0,0,.3);
	display: none;
	box-sizing: border-box;
	@media screen and (max-width: 799px) {
		bottom: 2px;
		right: 2px;
	}
}

.chromeWarningTitleBlock {
	min-height: 50px;
	width: 100%;
	background-color: var(--orange);
	display: flex;
	align-items: center;
	margin-bottom: 20px;
}

.chromeWarning p, .chromeWarning label {
	font-family: var(--font-inter);
	font-size: .95rem;
	line-height: 1.25rem;
	font-weight: 400;
	color: white;
}

.chromeWarningTitleBlock p	 {
	line-height: 1.7rem;
	font-family: var(--font-inter);
	font-size: 1.5rem;
	font-weight: 700;
	color: white;
	padding: 5px 20px;
	margin: 0;
}

.chromeLogoCont {
	align-self: stretch;
	min-width: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: white;
}

.chromeLogoCont img {
	height: 40px;
	width: auto;
}

.chromeWarning button {
	margin-top: 10px;
}

#flashWarning {
	color: var(--orange);
	font-weight: 500;
	font-size: 1.2rem;
	line-height: 1.35rem;
}

.chromeCheckboxCont {
	width: 100%;
}

.chromeCheckboxCont input {
	accent-color: var(--orange);
}