:root {
	--ta-red: #ea4227;
	--ta-black: #131113;
	--ta-lilac: #cfa3fd;
	--ta-white: #f1f1f1;
}


/* Google fonts */
/* .museomoderno-<uniquifier> {
	font-family: "MuseoModerno", sans-serif;
	font-optical-sizing: auto;
	font-weight: <weight>;
	font-style: normal;
}

.montserrat-<uniquifier> {
	font-family: "Montserrat", sans-serif;
	font-optical-sizing: auto;
	font-weight: <weight>;
	font-style: normal;
} */

body {
	margin: 0;
	font-family: "Montserrat", sans-serif;
	font-optical-sizing: auto;
	min-height: 90vh;
	box-sizing: border-box;
	font-size: large;
	

	background-color: var(--ta-black);
	color: var(--ta-white);

	background-image: linear-gradient(180deg, var(--ta-black), var(--ta-lilac));
	background-size: 100% 400%;
	background-attachment: fixed;

	overflow-x: hidden;
}

#nav {
	background-color: var(--ta-red);
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: 250px;
	box-sizing: border-box;
	z-index: 20;
	
	padding: 2em;
	text-align: center;
	transition: left .25s;


	#logo {
		width: 150px;
		transition: all .5s;
	}

	#linkList {
		list-style-type: none;
		padding: 0;

		a {
			display: block;
			position: relative;
			text-decoration: none;
			color: currentColor;
			font-size: 28px;
			transition: color .25s;
			z-index: 10;
			margin: 1em 0 0;

			&.sublink {
				font-size: 18px;
				margin: .5em 0 0;
			}

			&.selected {
				color: var(--ta-black);
			}
		}

		a::before {
			content: "";
			background-color: var(--ta-white);
			position: absolute;
			inset: 0;
			right: 100%;

			z-index: -10;
			transition: right .25s;
		}

		a.selected::before {
			right: 0;
		}
	}
}

#main {
	margin-left: 250px;
	text-align: center;
}

#content {
	padding: 2em;
	transition: opacity .25s;
}

#phoneNav {
	display: none;
}

@media only screen and (max-device-width: 768px){

	#main {
		margin-left: 0;
	}

	#nav:not(.phoneOpen) {
		left: -300px;
	}

	#phoneNav {
		display: block;
		background-color: var(--ta-red);
		position: sticky;
		top: 0;
		padding: 5px 10px;
		z-index: 10;
	}

	#phoneLogo {
		max-height: 60px;
		transition: all .5s;
	}

	.preview-hub a {
		min-width: 80vw !important;
	}

}

/* TRANSITIONING ANIMATIONS */
.loading #logo, .transitioning #logo, .loading #phoneLogo, .transitioning #phoneLogo {
	scale: 1 -1;
}

.transitioning #content{
	opacity: 0;
}

.loading::after, .transitioning::after {
	content: "Loading...";

	position: fixed;
	inset: 0;
	display: flex;
	justify-content: center;
	align-items: center;

	background: black;
	font-size: 30px;
	opacity: 0.8;

	transition: opacity 2s;

	@starting-style {
		opacity: 0;
	}
}

/* Common Components */

.linkRow {

	margin-top: 1em;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2em;

	a {
		transition: all .25s;
	}

	a:hover {
		scale: 1.1;
	}

	img {
		width: 50px;
		max-width: 100%;
		filter: invert(1);
	}

	&.index {

		position: absolute;
		bottom: 2em;
		left: 2em;
		right: 2em;

		gap: 1em;
		justify-content: space-between;

	}

}

.selectionHub {
	display: grid;
	grid-template-columns: 1fr;
	justify-content: center;
	gap: 1em;
	flex-wrap: wrap;
	padding: 1em;

	& > a {
		display: block;
		max-height: 40vh;
		padding: 1em 2em;
		border-radius: 1em;
		transition: scale .25s;
		background-size: cover;
		background-position: center;

		&:hover {
			scale: 1.05;
			z-index: 10;

			img {
				scale: 1.1;
			}
		}
	}

	img {
		max-width: 100%;
		max-height: 100%;
		transition: scale .25s;
	}
}

.preview-hub {

	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 2em;
	margin: 1em;

	a {
		position: relative;
		flex-grow: 1;
		min-height: 50vh;
		min-width: 400px;
		background-size: cover;
		background-position: center;
		text-align: left;

		border-radius: 1em;
		overflow: hidden;
		padding: 1em 1em;

		transition: all .25s;

		.preview-title {
			position: absolute;
			bottom: 0;
			left: 0;
			right: 0;

			background-color: var(--ta-lilac);

			
			font-family: "Montserrat", sans-serif;
			padding: .5em 1em;
			font-size: x-large;
			text-align: right;
			font-weight: bold;
		}

		img.preview-logo {
			max-height: 20%;
			max-width: 100%;
			position: absolute;
			
			left: 50%;
			transform: translate(-50%);
		}

		img.preview-hero {
			max-height: 80%;
			position: absolute;
			bottom: 0%;

			left: 50%;
			transform: translate(-50%);
		}

		&:hover {
			scale: 1.1;
			z-index: 5;
		}
	}
}

#preview-voft {
	background-image: url(./assets/voft/background.png);
}

#preview-sound {
	background-image: url(./assets/soundpage/bannerNoLogo.png);
}

#preview-ghost {
	background-image: url(./assets/ghost/2026_TITLECARD_CEPPI_ARI_GhostTrip.png);
}

.shop {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	transition: all .25s;
	text-decoration: none;
	color: white;

	height: 300px;
	overflow: hidden;

	&:hover {
		scale: 1.1;
		text-decoration: underline;

		img {
			transform: translate(-450px) scale(1) rotate(5deg);
		}
		
		div + img {
			transform: translate(450px) scale(1) rotate(-5deg);
		}
	}

	img {
		max-height: 300px;
		transition: all .25s;

		position: absolute;
		left: 50%;
		transform: translate(-450px) scale(0.8);
	}

	div + img {
		left: unset;
		right: 50%;
		transform: translate(450px) scale(0.8);

	}

	div {
		font-size: x-large;
		font-weight: bold;
		padding: 1em 2em;
		border-radius: 1em;

		z-index: 5;
	}
	
}