:root {
	--text-dark-mode: #f8f8f8;
	--text-light-mode: #222;
	--background-dark-mode: #222;
	--background-dark-mode-rgb: 34, 34, 34;
	--background-light-mode: #f8f8f8;

	--dialog-transition-timing: 0.5s;
}

body {
	background-color: #000;
	color: var(--text-dark-mode);

	font-family: "Source Sans 3", serif;
	font-optical-sizing: auto;
	font-style: normal;
	font-variation-settings: "wdth" 100;

	min-height: 100vh;
}

#root {
	height: 100%;
}

#root::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-image: url("./public/electric_node_currents_blur.png");
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	opacity: 0;
	animation: fadeInBackground 2s ease-in-out 1s forwards;
}

.mainBanner {
	min-height: 100vh;
	width: 100vw;
	padding: 20px;
	overflow: auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	animation: fadeIn 1s ease-in-out forwards;
}

.mainBanner .content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	flex: 1;
	width: 677px;
	max-width: 100%;
	animation: fadeIn 0.3s ease-in-out forwards;
}

footer {
	margin-top: 2rem;
}

footer .copyright {
	animation: fadeIn 1.5s ease-in-out forwards;
}

.mainBanner .content .top {
	width: 100%;
}

.mainBanner .content .top .logo {
	width: fit-content;
	border: 1px solid var(--text-dark-mode);
	border-radius: 100%;
	margin: 0 auto;
	width: 88px;
	height: 88px;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	background-image: url("./public//earth-black-and-white-round.png");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.mainBanner .content .top .verticalLine {
	height: 55px;
	width: 1px;
	background-color: var(--text-dark-mode);
	display: flex;
	justify-content: center;
	margin: 0 auto;
}

.mainBanner .content .top .horizontalLine {
	height: 1px;
	width: 100%;
	background-color: var(--text-dark-mode);
	display: flex;
	justify-content: center;
	margin: 0 auto;
}

.mainBanner .content .center {
	text-align: center;
	max-height: 0;
	overflow: hidden;
	padding: 0;
	width: 100%;

	animation: expand 1.25s ease 400ms forwards;
	transform-origin: center;

	h1 {
		font-size: 2.25rem;
		line-height: 1.3;
		letter-spacing: 0.5rem;
		margin: 0 0 1rem 0;
		padding: 0 48px;
	}

	p {
		text-transform: uppercase;
		letter-spacing: 0.2rem;
		font-size: 0.8rem;
		line-height: 2;
		padding: 0 24px;
	}
}

.mainBanner .content .bottom {
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.mainBanner .content .bottom .horizontalLine {
	height: 1px;
	width: 100%;
	background-color: var(--text-dark-mode);
	display: flex;
	justify-content: center;
	margin: 0 auto;
}

.mainBanner .content .bottom .verticalLine {
	height: 55px;
	width: 1px;
	background-color: var(--text-dark-mode);
	display: flex;
	justify-content: center;
	margin: 0 auto;
}

.buttonsContainer {
	display: flex;
	margin-right: 1px;

	button {
		width: 120px;
		height: 44px;
		border: 1px solid var(--text-dark-mode);
		border-right: none;
		margin: 0;
		transition: background-color 0.2s ease-in-out;

		&:hover,
		&:focus-visible {
			background-color: rgba(255, 255, 255, 0.075);
		}
	}

	button:first-child {
		border-radius: 4px 0 0 4px;
	}

	button:last-child {
		border-right: 1px solid var(--text-dark-mode);
		border-radius: 0 4px 4px 0;
	}
}

@media (max-width: 700px) {
	.mainBanner .content .center {
		h1 {
			font-size: 1.75rem;
			line-height: 1.4;
		}

		p {
			font-size: 0.8rem;
			line-height: 1.875;
		}
	}

	.buttonsContainer {
		button {
			width: 110px;
			height: 40px;
		}
	}
}

.copyright {
	letter-spacing: 0.2rem;
	font-size: 0.6rem;
	opacity: 0.75;
	margin-bottom: 0;
	text-align: center;
}

@media (max-width: 520px) {
	.mainBanner .content .top .logo {
		width: 70px;
		height: 70px;
	}

	.mainBanner .content .center {
		animation: expandSmallPadding 1.25s ease 400ms forwards;

		p {
			font-size: 0.75rem;
			padding: 0 12px;
		}
	}

	.buttonsContainer {
		flex-direction: column;

		button {
			border: 1px solid var(--text-dark-mode);
			width: 130px;
			height: 40px;
		}
	}
}

.dialog {
	transition-property: opacity, display, transform;
	transition-duration: var(--dialog-transition-timing);
	transition-timing-function: ease-out;
	transition-delay: 0s;
	transition-behavior: allow-discrete;

	display: none;
	opacity: 0;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -48%);
	width: 100%;
	height: 100%;
	max-height: calc(100vh - 32px);
	max-width: calc(100vw - 32px);

	background-color: #000;

	border-radius: 8px;
	border: none;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
	color: var(--text-dark-mode);
	padding: 0;
	overflow: auto;
}

.dialog.open {
	opacity: 1;
	transform: translate(-50%, -50%);
	transition-delay: 0.5s;
	display: block;

	@starting-style {
		opacity: 0;
		transform: translate(-50%, -48%);
	}
}

body:has(.dialog.open) {
	.mainBanner {

		.copyright,
		.content {
			animation: fadeOut 0.3s ease-in-out forwards;
		}
	}
}

.dialog-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	position: sticky;
	top: 0;
	padding: 16px;
	background-color: #000;
	box-shadow: 0 0px 20px 0px rgba(0, 0, 0, 1);
}

.dialog-body {
	padding: 0 16px 16px 16px;
	display: flex;
	flex-direction: column;

	p:first-of-type {
		margin-top: 8px;
	}
}

.close-modal {
	width: 25px;
	height: 25px;
	font-size: 1rem;
	border-radius: 8px;
	display: flex;
	justify-content: center;
	align-items: center;
	border: 1px solid var(--text-dark-mode);

	&:focus-visible {
		outline: 1px solid var(--text-dark-mode);
	}
}

@keyframes fadeInBackground {
	to {
		opacity: 1;
	}
}

@keyframes expand {
	from {
		max-height: 0;
		padding: 0;
	}

	to {
		max-height: 677px;
		padding: 48px 0;
	}
}

@keyframes expandSmallPadding {
	from {
		max-height: 0;
		padding: 0;
	}

	to {
		max-height: 645px;
		padding: 32px 0;
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes fadeOut {
	from {
		opacity: 1;
		transform: translateY(0) scale(1);
	}

	to {
		opacity: 0;
		transform: translateY(5px) scale(0.95);
	}
}

.kinetic-link {
	img {
		margin-left: 6px;
	}
}

.p-spacer {
	p {
		margin-bottom: 1rem;
	}
}

.kinetic-img {
	background-image: url(./public/kinetic-placeholder.webp);
	background-size: cover;
	width: 100%;
	height: 200px;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0.4;
}

.dialog-contact-body,
.build-dialog-body {
	display: flex;
	justify-content: center;
	align-items: center;
	height: calc(100% - 68px);
}

.build-dialog-body {
	font-size: 32px;
}