@import url("https://fonts.googleapis.com/css2?family=League+Spartan:wght@300;400;500;600;700;800;900&display=swap");

@media screen and (max-width: 900px) {
	.desktop {
		display: none;
	}

	.mobile {
		display: flex !important;
	}

	h1 {
		font-size: 36px !important;
		line-height: 36px !important;
		margin-bottom: -10px !important;
	}

	i {
		font-size: 20px !important;
		line-height: 25px !important;
	}

	h4 {
		font-size: 18px !important;
		line-height: 20px !important;
	}

	vr {
		display: none;
	}

	header {
		flex-wrap: wrap;
		gap: 10px !important;

		.links:has(.button) {
			width: -webkit-fill-available;

			.button {
				width: -webkit-fill-available !important;
			}
		}
	}

	header.wide {
		margin-left: -5px;
		margin-right: -5px;
	}

	.hero {
		padding: 30px 25px 25px 25px !important;
	}

	.card:has(> img:not(.small)) {
		flex-direction: column !important;
		align-items: flex-start;

		> img {
			width: 100px !important;
			height: 100px !important;
		}

		.buttons {
			flex-direction: column !important;
			gap: 7px !important;
		}
	}

	.grid {
		grid-template-columns: repeat(1, minmax(100px, 1fr)) !important;

		> *:not(.half) {
			grid-column: span 1 !important;
		}
	}

	#modal .card {
		flex-direction: column !important;
	}
}

@keyframes wave {
	0% {
		transform: rotate(0deg);
	}

	25% {
		transform: rotate(-20deg);
	}

	75% {
		transform: rotate(20deg);
	}

	to {
		transform: rotate(0deg);
	}
}

:root {
	--gradient-tl: linear-gradient(to top left, #1f1f1f 0%, #111 100%);
	--gradient-tr: linear-gradient(to top right, #111 0%, #1f1f1f 100%);
	--gradient-bl: linear-gradient(to bottom left, #1f1f1f 0%, #111 100%);
	--gradient-br: linear-gradient(to bottom right, #111 0%, #1f1f1f 100%);
	--gradient-br-header: linear-gradient(
		to bottom right,
		#1f1f1f59 0%,
		#11111159 100%
	);
	--gradient-r: linear-gradient(90deg, #1f1f1f 0%, #333333 50%, #1f1f1f 100%);
}

::-webkit-scrollbar {
	display: none;
}

html {
	color: #fff;
	background: #0a0a0a;
	font-family: League Spartan;
	scroll-behavior: smooth;
	scroll-padding: 125px;
}

body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 80px;
	background: url(background.png) transparent center / 50px 50px repeat;
	z-index: 1;
	padding: 20px;
	min-height: 100vh;
}

body:not([loaded]) {
	opacity: 0;
	transition: 0s opacity;
}

body[loaded] {
	opacity: 1;
	transition: 0.5s opacity;
}

body > * {
	width: -webkit-fill-available;
	max-width: 900px;
}

body > div:not([id]) {
	display: none;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	color: #fff;
	font-family: League Spartan;
	position: relative;
}

.mobile {
	display: none;
}

a {
	color: #fff;
	font-family: League Spartan;
	text-decoration: none;
}

h1 {
	font-size: 70px;
	font-weight: 700;
	line-height: 65px;
	margin-bottom: -15px;
}

h2 {
	font-size: 48px;
	font-weight: 700;
	line-height: 48px;
}

h3 {
	font-size: 36px;
	font-weight: 700;
	line-height: 36px;
}

h4 {
	font-size: 30px;
	font-weight: 600;
	line-height: 32px;
}

h5 {
	font-size: 25px;
	font-weight: 500;
	line-height: 30px;
}

h6 {
	font-size: 20px;
	font-weight: 500;
	line-height: 25px;
}

b {
	font-size: 17px;
	font-weight: 600;
	line-height: 20px;
}

.button {
	display: flex;
	padding: 10px 15px 7.5px 15px;
	justify-content: center;
	align-items: center;
	gap: 10px;
	border-radius: 5px;
	border: 1px solid #333;
	background: #111;
	font-size: 17px;
	font-weight: 700;
	min-width: fit-content;
	height: fit-content;
	cursor: pointer;
	transition: 0.25s;
}

.button.full {
	width: -webkit-fill-available;
}

.button:hover {
	transition: 0.25s;
	background: #333;
}

.button:has(i),
.button:has(svg),
.button:has(img) {
	width: 45px;
	height: 45px;
	min-width: 45px;
	min-height: 45px;
	padding: 0;
	border-radius: 7.5px;
	background: #1f1f1f;

	i,
	svg,
	img {
		font-size: 28px;
		max-height: 28px;
		max-width: 28px;
		color: #a3a3a3;
		border-radius: 4px;

		path {
			fill: #a3a3a3;
		}
	}
}

.inlineLink {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 5px;
	border-radius: 100%;
	background: #181818;
	border: 1px solid #333;
	height: 35px;
	width: 35px;
	font-size: 15px;
	margin-left: 10px;
	transition: 0.25s;
}

.inlineLink:hover {
	transition: 0.25s;
	background: #333;
}

#error {
	background: var(--gradient-bl);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	border-radius: 5px;
	font-size: 20px;
	margin: auto;
}

header {
	display: flex;
	align-items: stretch;
	gap: 15px;
	position: sticky;
	padding: 10px 15px;
	top: 20px;
	z-index: 10;
	border-radius: 8px;
	border: 1px solid #333;
	background: var(--gradient-br-header);
	box-shadow: 0px 0px 30px 2.5px #0a0a0a;
	backdrop-filter: blur(12px);
	transition: 0.25s ease-in-out;

	.logo {
		width: 40px;
		height: 40px;
		border-radius: 5px;
	}

	.links {
		display: flex;
		align-items: center;
		justify-content: flex-start;
		flex-wrap: wrap;
		gap: 5px;

		a {
			font-size: 18px;
			font-weight: 600;
			transition: 0.25s;
			display: flex;
			align-items: center;
			gap: 5px;
			padding: 10px 10px 7.5px 10px;
			background: transparent;
			border-radius: 5px;

			img {
				height: 18px;
			}
		}

		a:hover {
			transition: 0.25s;
			background: rgba(255, 255, 255, 0.1);
		}
	}

	.links.autoRight {
		margin-left: auto;
	}
}

header.wide {
	transition: 0.25s ease-in-out;
	max-width: 950px;
}

.card {
	display: flex;
	padding: 25px 25px 20px 25px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 10px;
	border-radius: 8px;
	border: 1px solid #333;
	background: var(--gradient-tl);
	box-shadow: 0px 0px 30px 2.5px #0a0a0a;
	text-align: center;

	i {
		opacity: 0.5;
		font-size: 20px;
		font-weight: 700;
		line-height: 65px;
	}

	h1 i {
		margin-left: -10px;
		margin-right: -10px;
	}

	.dim {
		opacity: 0.5;
		display: inline;
	}

	.wave {
		display: inline-block;
		animation: wave 0.8s linear;
	}

	.inner {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		width: -webkit-fill-available;
	}

	img.small {
		height: 50px;
		width: 50px;
		border-radius: 10px;
	}
}

.card.hero {
	padding: 52px 55px;
	align-items: flex-start;
	background: var(--gradient-br) !important;
	text-align: left;
}

.card.left {
	align-items: flex-start;
	text-align: left;
}

.card:has(> img:not(.small)) {
	flex-direction: row;
	gap: 20px;
	text-align: left;

	> img {
		width: 200px;
		height: 200px;
		border-radius: 10px;
	}
}

.card.topleft {
	background: var(--gradient-tl);
}

.card.topright {
	background: var(--gradient-tr);
}

.card.bottomleft {
	background: var(--gradient-bl);
}

.card.bottomright {
	background: var(--gradient-br);
}

.card.centered {
	background: var(--gradient-r);
}

.buttons {
	display: flex;
	align-items: center;
	align-content: center;
	gap: 10px;
	width: -webkit-fill-available;
	flex-wrap: wrap;
}

section {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;

	.grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(100px, 1fr));
		gap: 16px;
		width: -webkit-fill-available;

		> *:not(.half) {
			grid-column: span 2;
		}
	}
}

hr {
	height: 1px;
	width: -webkit-fill-available;
	background: var(--gradient-r);
	border: none;
}

vr {
	width: 2.5px;
	background: var(--gradient-r);
	border: none;
}

.carousel {
	display: flex;
	padding: 10px 0;
	justify-content: center;
	align-items: center;
	gap: 7px;
	width: -webkit-fill-available;

	.chip {
		display: flex;
		padding: 7px 10px;
		justify-content: center;
		align-items: center;
		gap: 10px;
		border-radius: 7.5px;
		border: 1px solid #333;
		background: #1f1f1f;
		font-size: 17px;
		font-weight: 700;
		width: fit-content !important;
		transition: 0.25s;

		i,
		svg,
		img {
			fill: #a3a3a3;
			height: 20px;
		}
	}

	.chip:hover {
		transition: 0.25s;
		background: #333;
	}
}

.carousel::before {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	background: var(--gradient-r);
	width: -webkit-fill-available;
	height: 1px;
}

.carousel::after {
	content: "";
	display: block;
	position: absolute;
	bottom: 0;
	left: 0;
	background: var(--gradient-r);
	width: -webkit-fill-available;
	height: 1px;
}

footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	padding: 25px 10px 5px 10px;
}

footer::before {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	background: var(--gradient-r);
	width: -webkit-fill-available;
	height: 1px;
}

#modal {
	position: fixed;
	top: 0;
	left: 0;
	width: -webkit-fill-available;
	height: -webkit-fill-available;
	max-width: unset;
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: -1;
	opacity: 0;
	padding: 20px;
	transition: 0.25s ease-in-out;

	.card {
		flex-direction: row;
		align-items: stretch;
		gap: 20px;
		max-width: 900px;
		transform: scale(0.8);
		transition: 0.3s ease-in-out;
	}
}

#modal[open] {
	opacity: 1;
	z-index: 10;
	transition: 0.25s ease-in-out;

	.card {
		transform: scale(1);
		transition: 0.3s ease-in-out;
	}
}
