:root {
	--UITagColor: #be3e82;
	--AudioTagColor: #3ebc79;
}

body {
	background-color: black;
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100vh;
	display: flex;
	justify-content: center;
	overscroll-behavior: contain;
	align-items: center;
	overflow: hidden;
}

p,
h1,
h2,
h3 {
	color: white;
	font-family: "Wix Madefor Text", sans-serif;
	margin: 0;
	padding: 0;
}

p,
h3 {
	font-size: 1.5vh;
}

p {
	margin-bottom: 1.5vh;
	line-height: 140%;
	text-align: justify;
	white-space: pre-wrap;
}

h1,
h2,
h3 {
	font-weight: bold;
	margin-bottom: 1vh;
	font-variant: small-caps;
	letter-spacing: 0.05em;
	white-space: pre;
}

h1 {
	font-size: 3vh;
}

h2 {
	font-size: 2vh;
}

a {
	text-decoration: none;
	cursor: pointer;
	color: rgb(73, 162, 165);
}

a:hover {
	color: rgb(119, 214, 218);
}

::selection {
	color: black;
	background: white;
}

*::-webkit-scrollbar {
    display: none;
}

div {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

input,
textarea {
	background-color: black;
	border: 1.5px solid white;
	border-radius: 0;
	color: white;
	font-family: "Wix Madefor Text", sans-serif;
	font-size: 1.25vh;
	padding: 0.5vh;
}

textarea {
	height: 10vh;
	resize: none;
}

button {
	background-color: rgb(63, 134, 136);
	color: white;
	font-family: "Wix Madefor Text", sans-serif;
	font-size: 1.5vh;
	font-weight: bold;
	border: none;
	padding: 0.75vh 1.75vh;
	border-radius: 3vh;
	cursor: pointer;
}

button:hover {
	background-color: rgb(98, 207, 211);
}

audio {
	width: 100%;
	height: 2.75vh;
}

.click-container {
	position: absolute;
	pointer-events: none;
	width: 12.5vh;
	height: 12.5vh;
}

.click {
	border-radius: 50%;
	border: .33vh solid white;
	background-color: transparent;
}

.aspect-container {
	width: 100%;
	max-width: 177.78vh;
	height: 100%;
}

.top-left,
.top,
.top-right,
.left,
.center,
.click,
.right,
.bottom-left,
.bottom,
.bottom-right,
.tooltip,
.software-tooltip {
	position: absolute;
}

.top-left,
.top,
.top-right {
	top: 0;
}

.top-left,
.left,
.bottom-left {
	left: 0;
}

.top,
.bottom,
.tooltip {
	left: 50%;
	transform: translateX(-50%);
}

.top-right,
.right,
.bottom-right {
	right: 0;
}

.left,
.right {
	top: 50%;
	transform: translateY(-50%);
}

.left {
	left: 0;
}

.center,
.click,
.software-tooltip {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.right {
	right: 0;
}

.bottom-left,
.bottom,
.bottom-right,
.tooltip {
	bottom: 0;
}

.vert-left {
	writing-mode: tb-rl;
	transform: rotate(180deg);
	white-space: nowrap;
	display: block;
	bottom: 0;
	height: 8vh;
}

.vert-right {
	writing-mode: tb-rl;
	white-space: nowrap;
	display: block;
	bottom: 0;
	height: 8vh;
}

.page {
	position: absolute;
	width: 100%;
	height: 100%;
}

.simon-barker {
	height: 100%;
	width: 100%;
	display: none;
}

#name-holder {
	height: 5vh;
	width: 35vh;
	pointer-events: none;
}

#name-gradient {
	background-image: linear-gradient(
		to right,
		rgba(255, 255, 255, 0),
		white,
		rgba(255, 255, 255, 0)
	);
	height: 0.2vh;
	width: 40vh;
	margin-top: 1vh;
	margin-bottom: 2vh;
}

#socials > a {
	position: relative;
}

.social {
	width: 6vh;
	height: 6vh;
	margin-left: 1vh;
	margin-right: 1vh;
	opacity: 0;
	user-select: none;
}

.chevron {
	min-width: 2vh;
	max-width: 2vh;
	min-height: 2vh;
	max-height: 2vh;
	padding: 1vh;
	display: flex;
	justify-content: center;
	align-items: center;
}

.category-switcher {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: row;
	align-items: center;
	pointer-events: none;
	user-select: none;
}

.category-switcher-bg {
	width: calc((100% - 177.78vh) / 2 + 55vh);
	height: 100%;
	pointer-events: auto;
}

.category-switcher-tag {
	width: 15vh;
	height: 10vh;
	margin-top: 50vh;
	overflow: visible;
	pointer-events: auto;
}

.category-tag-box {
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: row;
	align-items: center;
	padding: 0 2vh;
	transform: translateY(-0.2vh);
	pointer-events: none;
}

.category-tag-box > p {
	font-size: 7vh;
	font-weight: bold;
	text-wrap: nowrap;
	margin-bottom: 0 !important;
}

#UITagText,
#UIPage > .category-page > .flex-column > h1 {
	color: #5f1f41;
	text-shadow: 0.15vh 0.15vh 0 var(--UITagColor),
		0.15vh 0.1vh 0 var(--UITagColor), 0.15vh 0.05vh 0 var(--UITagColor),
		0.15vh 0 0 var(--UITagColor), 0.15vh -0.05vh 0 var(--UITagColor),
		0.15vh -0.1vh 0 var(--UITagColor), 0.15vh -0.15vh 0 var(--UITagColor),
		0.1vh -0.15vh 0 var(--UITagColor), 0.05vh -0.15vh 0 var(--UITagColor),
		0 -0.15vh 0 var(--UITagColor), -0.05vh -0.15vh 0 var(--UITagColor),
		-0.1vh -0.15vh 0 var(--UITagColor), -0.15vh -0.15vh 0 var(--UITagColor),
		-0.15vh -0.1vh 0 var(--UITagColor), -0.15vh -0.05vh 0 var(--UITagColor),
		-0.15vh 0 0 var(--UITagColor), -0.15vh 0.05vh 0 var(--UITagColor),
		-0.15vh 0.1vh 0 var(--UITagColor), -0.15vh 0.15vh 0 var(--UITagColor),
		-0.1vh 0.15vh 0 var(--UITagColor), -0.05vh 0.15vh 0 var(--UITagColor),
		0 0.15vh 0 var(--UITagColor), 0.05vh 0.15vh 0 var(--UITagColor),
		0.1vh 0.15vh 0 var(--UITagColor);
}

#UIPage > .category-page > .flex-column > h1 {
	color: #190811;
}

#UIPage > .category-page > .flex-column > h1::selection {
	color: white;
}

#AudioTagText,
#AudioPage > .category-page > .flex-column > h1 {
	font-variant: small-caps;
	text-shadow: 0.15vh 0.15vh 0 var(--AudioTagColor),
		0.15vh 0.1vh 0 var(--AudioTagColor), 0.15vh 0.05vh 0 var(--AudioTagColor),
		0.15vh 0 0 var(--AudioTagColor), 0.15vh -0.05vh 0 var(--AudioTagColor),
		0.15vh -0.1vh 0 var(--AudioTagColor), 0.15vh -0.15vh 0 var(--AudioTagColor),
		0.1vh -0.15vh 0 var(--AudioTagColor), 0.05vh -0.15vh 0 var(--AudioTagColor),
		0 -0.15vh 0 var(--AudioTagColor), -0.05vh -0.15vh 0 var(--AudioTagColor),
		-0.1vh -0.15vh 0 var(--AudioTagColor),
		-0.15vh -0.15vh 0 var(--AudioTagColor),
		-0.15vh -0.1vh 0 var(--AudioTagColor),
		-0.15vh -0.05vh 0 var(--AudioTagColor), -0.15vh 0 0 var(--AudioTagColor),
		-0.15vh 0.05vh 0 var(--AudioTagColor), -0.15vh 0.1vh 0 var(--AudioTagColor),
		-0.15vh 0.15vh 0 var(--AudioTagColor), -0.1vh 0.15vh 0 var(--AudioTagColor),
		-0.05vh 0.15vh 0 var(--AudioTagColor), 0 0.15vh 0 var(--AudioTagColor),
		0.05vh 0.15vh 0 var(--AudioTagColor), 0.1vh 0.15vh 0 var(--AudioTagColor);
}

#AudioTagText {
	color: #1f5e3c;
}

#AudioPage > .category-page > .flex-column > h1 {
	color: #081910;
}

.category-page > .flex-column > h1::selection {
	color: white;
	text-shadow: 0.15vh 0.15vh 0 black, 0.15vh 0.1vh 0 black,
		0.15vh 0.05vh 0 black, 0.15vh 0 0 black, 0.15vh -0.05vh 0 black,
		0.15vh -0.1vh 0 black, 0.15vh -0.15vh 0 black, 0.1vh -0.15vh 0 black,
		0.05vh -0.15vh 0 black, 0 -0.15vh 0 black, -0.05vh -0.15vh 0 black,
		-0.1vh -0.15vh 0 black, -0.15vh -0.15vh 0 black, -0.15vh -0.1vh 0 black,
		-0.15vh -0.05vh 0 black, -0.15vh 0 0 black, -0.15vh 0.05vh 0 black,
		-0.15vh 0.1vh 0 black, -0.15vh 0.15vh 0 black, -0.1vh 0.15vh 0 black,
		-0.05vh 0.15vh 0 black, 0 0.15vh 0 black, 0.05vh 0.15vh 0 black,
		0.1vh 0.15vh 0 black;
}

.category-page > .flex-column {
	width: 95%;
	height: 100%;
}

.category-page > .flex-column > :first-child {
	padding-top: 5vh;
}

.category-page > .flex-column > :last-child {
	padding-bottom: 5vh;
}

.category-page > .flex-column > h1 {
	font-size: 6vh;
	margin: 0;
}

.category-page a,
.category-page audio {
	box-shadow: 0 0 1vh black;
}

.category-page a {
	transition: all 0.25s ease;
}

.category-page audio {
	margin-left: 0.5vh;
	margin-right: 0.5vh;
}

.category-page a:hover {
	transform: scale(1.025);
}

.nav {
	width: 57.78vh;
	height: 10vh;
	display: flex;
	justify-content: center;
	align-items: center;
}

.sideNav {
	position: fixed;
	height: 100%;
	width: 10vh;
	display: flex;
	align-items: center;
	opacity: 0.5;
	user-select: none;
}

.category-showcase {
	position: relative;
	width: 100%;
	height: 100%;
}

.showcase-img {
	position: absolute;
	min-width: 10vh;
	max-height: 30%;
}

.showcase-img > img {
	display: block;
	position: relative;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border: 0.5vh solid;
	border-radius: 0.5vh;
	pointer-events: none;
	box-shadow: 0 0 1vh black;
}

.tooltip {
	pointer-events: none;
	text-align: center;
	font-size: 1.5vh;
	bottom: -2vh;
	opacity: 0;
	height: 0;

	overflow: visible;
	user-select: none;
}

.tooltip > p {
	white-space: nowrap;
	text-align: center;
	line-height: 98%;
}

.contact-form {
	display: flex;
	flex-direction: column;
	border: 0.15vh solid;
	border-color: rgba(255, 255, 255, 0.25);
	border-radius: 4vh 0;
	padding: 5vh 4vh;
}

.flex-row {
	display: flex;
	flex-direction: row;
	justify-content: left;
	align-items: center;
}

.flex-column {
	display: flex;
	flex-direction: column;
	justify-content: left;
	align-items: left;
}

#projects,
#software {
	display: grid;
	top: 17.5vh;
	bottom: 10vh;
	justify-content: center;
	overflow-y: scroll;
}

#projects {
	grid-template-columns: 50vh 50vh;
}

#software {
	grid-template-columns: 46vh 46vh;
}

.project {
	margin: 2.5vh 5vh 0 5vh;
	height: max-content;
}

.project > hr {
	margin-top: 2.5vh;
	color: white;
	opacity: 0.25;
}

.project-gallery {
	width: 100%;
	display: grid;
	grid-template-columns: 49% 49%;
	justify-content: left;
	margin-top: 1.5vh;
	gap: 2%;
}

.project-gallery-single {
	width: 100%;
	margin-top: 1.5vh;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
}

.project-gallery > *,
.project-gallery > a > img {
	position: relative;
	width: 100%;
}

.project-gallery-single > * {
	position: relative;
	width: 75%;
}

.project > .flex-row > img {
	height: 5vh;
	margin-right: 2vh;
}

.project > .flex-row > .flex-column {
	height: max-content;
}

.project > .flex-row > .flex-column > p {
	opacity: 0.5;
}

.project:nth-last-child(1),
.software-category:nth-last-child(1) {
	margin-bottom: 2.5vh;
}

.project:nth-last-child(1) > hr {
	display: none;
}

.project > p {
	font-size: 1.25vh;
	opacity: 0.75;
	margin-bottom: 0.5vh;
}

.project > .flex-row {
	margin-bottom: 1vh;
}

.project > .flex-row > .flex-column > h2,
.project > .flex-row > .flex-column > p {
	margin-bottom: 0;
}

.projects-fade {
	width: 90vh;
	height: 2.5vh;
}

.category-fade {
	width: 80.75vh;
}

.software-category {
	margin: 5vh 5vh 0 5vh;
	height: max-content;
}

.software-category:nth-child(1) {
	margin-top: 2.5vh;
}

.software-grid {
	display: grid;
	grid-template-columns: 6vh 6vh 6vh 6vh 6vh;
	gap: 1.5vh;
	user-select: none;
}

.software-grid > a {
	cursor: unset;
	width: 6vh;
	height: 6vh;
}

.software-grid > a,
.software-grid > a > img {
	position: relative;
}

.software-grid > a > img {
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.software-tooltip {
	opacity: 0;
	font-size: 1.25vh;
	pointer-events: none;
	text-shadow: 0.1vh 0.1vh 0 black, 0.1vh 0 0 black, 0.1vh -0.1vh 0 black,
		0 -0.1vh 0 black, -0.1vh -0.1vh 0 black, -0.1vh 0 0 black,
		-0.1vh 0.1vh 0 black, 0 0.1vh 0 black;
	filter: drop-shadow(0 0 1.25vh black) drop-shadow(0 0 1vh black)
		drop-shadow(0 0 0.75vh black) drop-shadow(0 0 0.5vh rgba(0, 0, 0, 0.75));
	z-index: 5;
	text-align: center;
	line-height: 1.5vh;
	white-space: pre;
}

.software-category > .flex-column > .flex-row {
	margin-bottom: 1.25vh;
}

.software-category > .flex-column > .flex-row > h2 {
	margin-bottom: 0;
}

.header-line {
	margin-left: 1vh;
	width: 100%;
	height: 0.25vh;
	background-image: linear-gradient(to left, rgba(255, 255, 255, 0), white);
}

.category-page {
	width: 85vh;
	height: 90%;
	top: 5%;
	overflow-y: scroll;
}

.category-page a {
	position: relative;
}

.category-page-fadeDiv {
	width: 85vh;
	height: 90%;
	top: 5%;
	pointer-events: none;
}

.category-page-fadeDiv > * {
	width: 95%;
	height: 5vh;
}

.showcase-header {
	margin: 2vh 0;
}

.show-mobile {
	display: none;
}

.gallery-backdrop {
	align-self: center;
	padding: 2.25vh 3vh;
	border-radius: 2vh;
	margin: 1.5vh 0;
}

#UIPage .gallery-backdrop {
	background-color: #0c0006;
}

#AudioPage .gallery-backdrop {
	background-color: #000c05;
}

#UIPage h2,
#UIPage h3 {
	color: var(--UITagColor);
}

#UIPage .header-line {
	background-image: linear-gradient(to left, #be3e8200, #be3e82ff);
}

#UIPage .tooltip,
#AudioPage .tooltip {
	bottom: -0.25vh;
}

#UIPage .tooltip > p {
	color: var(--UITagColor);
}

#AudioPage .tooltip > p {
	color: var(--AudioTagColor);
}

#ui-grid {
	display: grid;
	width: 100%;
	justify-content: center;
	align-items: center;
	grid-template-columns: 30% 30% 30%;
	column-gap: 2.5vh;
	row-gap: 4.25vh;
	margin-bottom: 1vh;
}

#ui-grid > a,
#ui-grid > a > img {
	position: relative;
	width: 100%;
}

#sfx-grid {
	display: grid;
	width: 100%;
	justify-content: center;
	align-items: center;
	grid-template-columns: 30% 30% 30%;
	gap: 2vh;
}

#sfx-grid p {
	text-align: center;
	margin-bottom: 0.5vh !important;
}

#sfx-grid audio {
	align-self: center;
}

#AudioPage h2,
#AudioPage h3 {
	color: var(--AudioTagColor);
}

#AudioPage .header-line {
	background-image: linear-gradient(to left, #3ebc7900, #3ebc79ff);
}

#UIPage img,
#UIPage video {
	border: 0.25vh solid var(--UITagColor);
}

#AudioPage img,
#AudioPage video {
	border: 0.25vh solid var(--AudioTagColor);
}

.showcase-header > h2 {
	margin-bottom: 0;
}

.music-grid {
	display: grid;
	grid-template-columns: auto 25vh;
	gap: 1vh;
}

.music-grid > * {
	height: 2.5vh;
	margin-bottom: 0;
	text-align: right;
}

#slideshow {
	width: 40vh;
	height: 70vh;
	margin-left: 7.5vh;
	display: flex;
	position: relative;
	justify-content: center;
	align-items: center;
}

#slideshow > img {
	position: absolute;
	object-fit: contain;
	max-height: 100%;
	max-width: 100%;
}

/* Wide layout */
@media (min-aspect-ratio: 1.4) {
	#software {
		grid-template-columns: 53.5vh 53.5vh !important;
		overflow: hidden;
	}

	.software-grid {
		grid-template-columns: 6vh 6vh 6vh 6vh 6vh 6vh !important;
	}

	#subpage1 > .projects-fade {
		display: none !important;
	}
}

/* Mobile layout */
@media (max-aspect-ratio: 1.2) {
	.hide-mobile {
		display: none !important;
	}

	.show-mobile {
		display: block !important;
	}
	
	.no-bottom-on-mobile {
	    margin-bottom: 0 !important;
	}
	
	.top-on-mobile {
	    margin-top: 1vh !important;
	}

	.click-container {
		width: 15vh !important;
		height: 15vh !important;
	}

	#name-social {
		top: 35% !important;
	}

	.category-switcher-bg {
		width: 7.5% !important;
	}

	.category-switcher-tag:nth-child(2) {
		margin-top: 20vh !important;
		padding-left: 10vh !important;
	}

	.category-switcher-tag:nth-child(1) {
		padding-right: 10vh !important;
	}

	.nav {
		width: 75% !important;
	}

	.flex-flipper {
		flex-direction: column !important;
	}

	.flex-flipper-reverse {
		flex-direction: column-reverse !important;
	}

	.align-flipper {
		align-items: center !important;
		text-align: center !important;
	}

	.projects-fade {
		width: 40vh !important;
	}

	.category-page,
	.category-page-fadeDiv {
		width: 40vh !important;
	}

	#UIPage .category-page,
	#UIPage .category-page-fadeDiv {
		transform: translateX(calc(-50% - 2vh)) !important;
	}

	#ui-grid {
		grid-template-columns: 45% 45% !important;
		row-gap: 1.5vh !important;
	}

	#sfx-grid {
		grid-template-columns: 20vh !important;
	}

	#sfx-grid audio {
		align-self: center;
	}

	#AudioPage .category-page,
	#AudioPage .category-page-fadeDiv {
		transform: translateX(calc(-50% + 2vh)) !important;
	}

	.sideNav {
		background-image: none !important;
	}

	.category-page .flex-flipper {
		align-items: center !important;
	}

	#projects {
		grid-template-columns: 50vh !important;
	}

	#software {
		grid-template-columns: 46vh !important;
	}

	#projects > .flex-column:nth-child(2),
	#software > .flex-column:nth-child(2) {
		display: none !important;
	}

	#slideshow {
		width: 40vh !important;
		height: 30vh !important;
		margin-left: 0 !important;
		margin-bottom: 2.5vh !important;
	}

	#MusicGallery,
	#TSINO-gallery,
	#TSINO-music,
	#TSINO-countdown,
	audio {
		width: 30vh !important;
	}

	audio {
		margin-left: 0 !important;
	}

	.music-grid {
		grid-template-columns: 25vh;
	}

	#MusicGallery,
	#Hamster-music {
		padding: 2.25vh 3vh !important;
	}

	#Hamster-music {
		width: 30vh !important;
	}
}

#fg {
	pointer-events: none;
}

#noise {
	position: fixed;
	top: -50%;
	left: -50%;
	right: -50%;
	bottom: -50%;
	width: 200%;
	height: 200vh;
	background: transparent
		url("http://assets.iceable.com/img/noise-transparent.png") repeat 0 0;
	background-repeat: repeat;
	animation: noise-animation 0.25s infinite;
	opacity: 0.5;
	visibility: visible;
}

@keyframes noise-animation {
	0% {
		transform: translate(0, 0);
	}
	10% {
		transform: translate(-5%, -5%);
	}
	20% {
		transform: translate(-10%, 5%);
	}
	30% {
		transform: translate(5%, -10%);
	}
	40% {
		transform: translate(-5%, 15%);
	}
	50% {
		transform: translate(-10%, 5%);
	}
	60% {
		transform: translate(15%, 0);
	}
	70% {
		transform: translate(0, 10%);
	}
	80% {
		transform: translate(-15%, 0);
	}
	90% {
		transform: translate(10%, 5%);
	}
	100% {
		transform: translate(5%, 0);
	}
}

#bubbles {
	opacity: 0.02;
}

.bubble {
	position: absolute;
	aspect-ratio: 1;
	background: white;
	border-radius: 50%;
}
