@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css");

@font-face {
	font-family: "Burbank Big Condensed Black";
	src: url(Assets/Fonts/burbankbigcondensed_black.otf) format("opentype");
}

@font-face {
	font-family: "Burbank Big Condensed Bold";
	src: url(Assets/Fonts/burbankbigcondensed_bold.otf) format("opentype");
}

:root {
	--white-background: #ffffff90;
	--black-color: #000000;
	--accent-color: #ff8b71;
	--text-padding: max(5svw, calc((100svw - 980px) / 2));
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	min-height: 100%;
	margin: 0;
}

body {
	min-height: 100svh;
	display: flex;
	flex-direction: column;
}

.flooded {
	--hero-image: url(Assets/Images/FloodedZoneWars_1.png);
}

.welcome {
	--hero-image: none;
}

.uefnpage {
	--hero-image: url(Assets/Images/UEFN_1.png);
}

body {
	font-family: Arial, sans-serif;
	margin: 0;
	padding: 0;
	/* background-image: url(https://upload.wikimedia.org/wikipedia/commons/3/39/Typical_Street_In_The_Royal_Borough_Of_Kensington_And_Chelsea_In_London.jpg);*/
}

header {
	/* background-color: var(--white-background);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px); */

	color: var(--black-color);
	margin: 15px;
	padding: 10px 15px;

	text-align: center;

	position: fixed;
	top: 0;
	left: 0;

	height: 5svh;
	z-index: 50;
}

header img {
	width: clamp(40px, 8vw, 60px);
	cursor: pointer;
}

header div {
	display: flex;
	align-items: center;
	justify-content: left;
	gap: 10px;
	padding-left: 0.3%;
	padding-right: 1.5%;
}

header div .logo {
	justify-content: left;
	gap: 10px;
}

/* Style the topnav */
ul.topnav {
	display: flex;
	list-style-type: none;
	margin: 0;
	padding: 0;
	padding-right: 1.5%;
	/* background-color: #333333; */
	justify-content: center;
	gap: 5px;
	align-items: right;
}

/* Style links in topnav */
ul.topnav li a {
	display: flex;
	align-items: center;
	justify-content: center;
	/* background-color: rgb(255, 255, 255, 0.15); */
	color: #000000;
	width: 150px;
	height: 45px;
	/* padding: 14px 16px; */
	text-decoration: none;
	border-radius: 15px;
	text-align: center;
	box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1) inset;
}

/* Change color on hover */
ul.topnav li a:hover {
	background-color: var(--accent-color);
	color: var(--black-color);
}

.hero {
	position: static;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	/* padding-top: 90px; */

	min-height: 100svh;
	height: auto;

	background-attachment: fixed;
	background-color: var(--accent-color);
	background-image: var(--hero-image);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: white;
	text-align: center;
}

.hero h1 {
	padding: 0 20px;
	margin-bottom: 5px;
	text-transform: uppercase;
	font-size: 4em;
	color: white;

	/* text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5); */
}

.hero.flooded h1 {
	font-family: "Burbank Big Condensed Black", Arial, Helvetica, sans-serif;

	padding: 0 20px;
	margin-bottom: 5px;
	text-transform: uppercase;
	font-size: 4em;
	color: white;

	text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
	z-index: 1;
}

.uefnpage .hero h1 {
	font-family: "Burbank Big Condensed Black", Arial, Helvetica, sans-serif;
	text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
	font-size: 6em;
	z-index: 1;
}

.hero p {
	font-size: 1.2em;
}

.hero button {
	width: fit-content;
	height: 3em;
	padding: 10px 30px;
	background-color: var(--white-background);
	-webkit-backdrop-filter: blur(0.1em);
	backdrop-filter: blur(0.1em);
	border: none;
	border-radius: 0.75em;
	cursor: pointer;
	box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);

	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
	font-size: 1em;
	color: white;
	text-transform: uppercase;
	transition: 0.2s ease;
}

.hero button:hover {
	transform: scale(1.2);
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 1);
	background-color: var(--accent-color);
}

.hero button a {
	color: white;
	text-decoration: none;
}

.buttonRow {
	display: flex;
	flex-direction: column;
	gap: 1em;
	align-items: center;
}

.buttonRow button {
	width: 340px;
	height: 3em;
	padding: 10px 30px;
	background-color: var(--white-background);
	-webkit-backdrop-filter: blur(0.1em);
	backdrop-filter: blur(0.1em);
	border: none;
	border-radius: 15px;
	cursor: pointer;
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);

	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
	font-size: 1rem;
	color: white;
	text-transform: uppercase;
	transition: 0.2s ease;
	z-index: 0;
}

.buttonRow button:hover {
	transform: none;
	z-index: 1;
	width: 350px;
	background-color: var(--white-background);
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.container-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 20px 180px;
	background-color: var(--white-background);
}

.container {
	display: flex;
	flex-direction: row;
	box-sizing: border-box;
	justify-content: space-between;
	margin: 0px;
	padding: 0 var(--text-padding);
	background-color: var(--white-background);
	/* box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); */
}

.container ul {
	padding-left: 1em;
}

.container li {
	padding-bottom: 1em;
}

.container.alt {
	background-color: var(--accent-color);
	color: #eeeeee;
}

.container-text {
	flex: 1;
	justify-content: baseline;
	align-content: center;
	/* padding-left: var(--text-padding); */
}

.container h1 {
	margin-bottom: 0;
}

.container p {
	margin-top: 0.5em;
}

.container img {
	float: right;
	width: 50svw;
	margin-right: calc(var(--text-padding) * -1);
	height: auto;
	display: block;
	object-fit: cover;
	object-position: center;
}

.container button {
	flex: 1;
	width: 90%;
	height: 3em;
	padding: 1em 30px;
	background-color: var(--accent-color);
	-webkit-backdrop-filter: blur(0.1em);
	backdrop-filter: blur(0.1em);
	border: none;
	border-radius: 0.75em;
	cursor: pointer;
	box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);

	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
	font-size: 1em;
	color: white;
	text-transform: uppercase;
	transition: 0.2s ease;
	text-align: start;
}

.container button:hover {
	transform: scale(1.05);
	box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
	background-color: var(--white-background);
	color: black;
}

.container button a {
	color: white;
	text-decoration: none;
}

.container button:hover a {
	color: black;
}

.section-container {
	display: flex;
	gap: 50px;
	padding: 0 var(--text-padding);
	justify-content: left;
}

.section-container .cards {
	display: flex;
	flex-direction: row;
	gap: 50px;
	margin: 50px;
	margin-left: auto;
	margin-right: 0;
}

.footer {
	margin-top: auto;
	display: flex;
	flex-direction: row;
	background-color: lightgray;
}

.footer .copyright {
	display: flex;
	flex-direction: column;
	margin: 1em var(--text-padding);
	font-size: 0.7em;
	justify-self: left;
	gap: 0.01rem;
	width: 70%;
}

.copyright h1 {
	font-size: 1.5em;
	margin: 0;
}

.copyright p {
	margin-bottom: 5;
	text-align: left;
}

.socialmenu {
	background-color: lightgray;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-end;
	gap: 1em;
	margin-right: var(--text-padding);
	margin-left: auto;
}

.fa {
	padding: 5px;
	font-size: 30px;
	color: darkgray;

	text-align: center;
	text-anchor: middle;
	text-decoration: none;
	align-content: center;
	width: 2em;
	height: 2em;

	border-radius: 2.5em;
	background-color: var(--white-background);
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
	transition: 0.1s;
}

.fa:hover {
	color: white;
	background-color: var(--accent-color);
}

.content {
	margin: 20px;
	text-align: center;
}

.content .testAnim:hover {
	display: inline-block;

	font-size: 1em;

	line-height: 1em;

	height: 1em;
	width: 7%;
	text-anchor: middle;
	text-align: center;

	vertical-align: baseline;

	color: #000000;

	animation: testAnim 1s infinite;

	text-transform: uppercase;
}

@keyframes testAnim {
	/* 0% {color: black;}
    20% {color: red;}
    50% {color: blue;}
    80% {color: green;}
    100% {color: black;} */

	0% {
		font-family: Arial, Helvetica, sans-serif;
	}
	20% {
		font-family: "Courier New", Courier, monospace;
	}
	40% {
		font-family:
			"Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
			"Lucida Sans Unicode", Geneva, Verdana, sans-serif;
	}
	60% {
		font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
	}
	80% {
		font-family: "Times New Roman", Times, serif;
	}
}
.typewriter-card {
	width: 60vw;
	max-width: 900px;
	min-width: 280px;

	margin: 20px auto;
	padding: 1vw;

	background-color: var(--white-background);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);

	border-radius: 1vw;
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);

	text-align: left;
}

.typewriter-card p {
	margin: 0;
	font-weight: bold;
	color: black;
	/* text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5); */
	gap: 0.25em;

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

	white-space: nowrap;
}

#typewriter {
	display: inline-block;
	text-align: left;
}

.cursor {
	display: inline-block;
	line-height: 1;
	margin: -0.25em;
	transform: translateY(-0.08em);
	animation: blink 0.7s infinite;
}

@keyframes blink {
	0%,
	50% {
		opacity: 1;
	}

	51%,
	100% {
		opacity: 0;
	}
}

/*
Leave below at bottom of page
Sidebar, Overlay, etc etc

*/

/* The sidepanel menu */
.sidepanel {
	height: 100svh; /* Specify a height */
	width: 0; /* 0 width - change this with JavaScript */
	position: fixed; /* Stay in place */
	z-index: 999; /* Stay on top */
	top: 0;
	left: 0;

	background-color: var(--white-background); /* Black*/
	background-color: var(--white-background);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);

	overflow-x: hidden; /* Disable horizontal scroll */
	padding-top: 60px; /* Place content 60px from the top */
	transition: 0.3s ease; /* 0.5 second transition effect to slide in the sidepanel */
}

/* The sidepanel links */
.sidepanel a {
	font-family: Arial, Helvetica, sans-serif;
	padding: 8px 8px 8px 32px;
	text-decoration: none;
	font-size: 1.5em;
	font-weight: 600;
	color: black;
	display: block;
	text-wrap-mode: nowrap;

	width: 100%;
	transition: 0.5s;

	background-color: var(--white-background);
	background: transparent;

	text-transform: uppercase;
}

/* When you mouse over the navigation links, change their color */
.sidepanel a:hover {
	color: rgb(255, 255, 255);
	background-color: var(--accent-color);
	transition: 0.1s;
	cursor: pointer;
}

.sidepanel a.coming-soon {
	cursor: not-allowed;
}

.sidepanel a.coming-soon::before {
	content: attr(data-text);
}

.sidepanel a.coming-soon:hover::before {
	content: attr(data-hover);
}

.sidepanel .closebtn {
	position: absolute;
	top: 10px;
	right: 20px;

	width: auto;
	height: auto;
	padding: 0;

	font-size: 36px;
	line-height: 1em;

	background: transparent;
	box-shadow: none;
	border: none;

	text-decoration: none;
	color: black;
	transition: 0.3s;
}

.sidepanel .closebtn:hover {
	width: auto;
	height: auto;
	background: transparent;
	color: red;
	transition: 0.3s;
}

#overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: transparent;
	z-index: 998;
}

.popup {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);

	background-color: var(--white-background);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);

	padding: 25px;
	border-radius: 20px;
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);

	z-index: 2000;
	text-align: center;
}

.popup button {
	padding: 10px 20px;
	border: none;
	border-radius: 12px;
	background-color: var(--accent-color);
	cursor: pointer;
	font-weight: bold;
}

.model-window {
	display: flex;
	flex: 1;
	box-sizing: border-box;
	width: 100%;
	min-height: 25svh;

	justify-content: flex-end;
}

.container-grid .model-window {
	width: 100%;
	justify-content: center;
}

.container-grid model-viewer {
	flex: 1;
	width: 100%;
}

model-viewer {
	box-sizing: border-box;
	/* box-shadow: 0 0 10px rgba(0, 0, 0, 0.5) inset; */
	width: 100%;
	height: 50svh;
	background-color: #eeeeee;
	margin: 0;
}

model-viewer.banner {
	background-color: transparent;
}

@media (max-width: 980px) {
	.hero {
		min-height: 100svh;
		height: auto;
		padding: 80px 16px 40px;
		background-attachment: scroll;
	}

	.footer {
		flex-direction: column;
		gap: 0;
	}

	.container {
		flex-direction: column;
	}

	.container img {
		width: calc(100% + (var(--text-padding) * 2));
		margin: calc(var(--text-padding) * -1);
		margin-top: 1em;
		margin-bottom: auto;
		padding: 1em, 0;
		height: auto;
		display: block;
		object-fit: cover;
		object-position: center;
	}

	.footer .copyright {
		width: 90svw;
	}

	.socialmenu {
		background-color: lightgray;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: center;
		gap: 1em;
		margin: 10px;
	}

	.section-container {
		display: flex;
		gap: 20px;
		align-content: center;
	}

	.section-container .cards {
		display: flex;
		flex-direction: column;
		justify-content: center;
		width: 100%;
		gap: 20px;
		/* margin: var(--text-padding); */
		margin-top: 0;
		margin-bottom: 0;
	}

	.container-grid {
		display: grid;
		grid-template-columns: repeat(1, minmax(0, 1fr));
		gap: 20px;
		box-sizing: border-box;
		width: 100%;
		margin: 0;
		padding: calc(var(--text-padding) / 2) var(--text-padding);

		background-color: var(--white-background);
	}

	.hero h1 {
		font-size: clamp(3rem, 16vw, 5rem);
		line-height: 0.9;
	}

	.uefnpage .hero h1 {
		font-size: clamp(4rem, 20vw, 6rem);
	}

	.hero p {
		font-size: 1rem;
		padding: 0 10px;
	}

	.hero button {
		min-width: 9em;
		min-height: 3em;
		font-size: 0.95rem;
	}

	.hero button:hover {
		transform: scale(1.05);
		background-color: var(--white-background);
	}

	header {
		margin: 10px;
		padding: 8px;
	}

	header img {
		width: clamp(38px, 10vw, 50px);
	}

	.sidepanel {
		max-width: 85vw;
	}

	.sidepanel a {
		width: 100%;
		font-size: 1.2rem;
		padding: 12px 20px 12px 28px;
		white-space: nowrap;
	}

	.sidepanel a:hover {
		width: 100%;
	}

	.sidepanel .closebtn {
		font-size: 34px;
	}
}

.fn {
	font-family: "Burbank Big Condensed Bold";
}

h1.fn {
	font-size: 3em;
}
