/* Reset */

html, body, div, span, h1, p, pre, a,
canvas, footer, header, nav, ul, li {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

ul {
	list-style: none;
}

/* Base */

html {
	box-sizing: border-box;
}

*, *:before, *:after {
	box-sizing: inherit;
}

body {
	background: #05050f;
	overflow: hidden;
	-webkit-text-size-adjust: none;
	color: #fff;
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 15pt;
	font-weight: 300 !important;
	letter-spacing: -0.025em;
	line-height: 1.75em;
}

body.is-preload *, body.is-preload *:before, body.is-preload *:after {
	animation: none !important;
	transition: none !important;
}

a {
	transition: border-color 0.2s ease-in-out;
	border-bottom: dotted 1px;
	color: inherit;
	outline: 0;
	text-decoration: none;
}

a:hover {
	border-color: transparent;
}

/* Icon */

.icon {
	text-decoration: none;
	position: relative;
}

.icon > .label {
	display: none;
}

/* Wrapper */

@keyframes wrapper {
	0%   { opacity: 0; }
	100% { opacity: 1; }
}

#wrapper {
	animation: wrapper 3s forwards;
	height: 100%;
	left: 0;
	opacity: 0;
	position: fixed;
	top: 0;
	width: 100%;
}

/* Main */

#main {
	height: 100%;
	left: 0;
	position: fixed;
	text-align: center;
	top: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-bottom: 10vh;
	align-items: center;
}

/* Header */

@keyframes header {
	0% {
		transform: translate3d(0,1em,0);
		opacity: 0;
	}
	100% {
		transform: translate3d(0,0,0);
		opacity: 1;
	}
}

#header {
	animation: header 1s 2.25s forwards;
	backface-visibility: hidden;
	transform: translate3d(0,0,0);
	cursor: default;
	opacity: 0;
	position: relative;
	width: 90%;
}

#header h1 {
	font-size: 4.35em;
	font-weight: 900;
	letter-spacing: -0.035em;
	line-height: 1em;
}

#header p {
	font-size: 1.25em;
	margin: 0.75em 0 0.25em 0;
	opacity: 0.75;
}

/* About Modal */

#about-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-bottom: 8em;
	background: rgba(0, 0, 0, 0.6);
	opacity: 1;
	transition: opacity 0.3s ease-in-out;
}

#about-modal.modal-hidden {
	opacity: 0;
	pointer-events: none;
}

#about-modal.modal-hidden #about-modal-content {
	transform: scale(0.95);
}

#about-modal-content {
	position: relative;
	transform: scale(1);
	transition: transform 0.3s ease-in-out;
	background: #05050f;
	border: 1px solid #30FE5E;
	border-radius: 12px;
	padding: 2em 2.5em;
	max-width: 650px;
	width: 90%;
	min-height: 200px;
	text-align: justify;
	font-size: 1.05rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.9);
}

#about-modal-content p + p {
	margin-top: 1em;
}

#about-close {
	position: absolute;
	top: 0.5em;
	right: 0.75em;
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.4);
	font-size: 1.4rem;
	cursor: pointer;
	transition: color 0.2s ease-in-out;
	line-height: 1;
}

#about-close:hover {
	color: #30FE5E;
}

/* Nav Links */

@keyframes nav-icons {
	0% {
		transform: translate3d(0,1em,0);
		opacity: 0;
	}
	100% {
		transform: translate3d(0,0,0);
		opacity: 1;
	}
}

#nav-links {
	margin: 1.5em 0 0 0;
	animation: nav-icons 0.5s 2.5s ease-in-out forwards;
	opacity: 0;
}

#nav-links li {
	animation: nav-icons 0.5s ease-in-out forwards;
	backface-visibility: hidden;
	transform: translate3d(0,0,0);
	display: inline-block;
	height: 5.35em;
	line-height: 5.885em;
	opacity: 0;
	position: relative;
	top: 0;
	width: 5.35em;
}

#nav-links li:nth-child(1) { animation-delay: 2.5s; }
#nav-links li:nth-child(2) { animation-delay: 2.75s; }
#nav-links li:nth-child(3) { animation-delay: 3s; }
#nav-links li:nth-child(4) { animation-delay: 3.25s; }
#nav-links li:nth-child(5) { animation-delay: 3.5s; }

#nav-links a {
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	border: 0;
	display: inline-block;
}

#nav-links a:before {
	transition: all 0.2s ease-in-out;
	border-radius: 100%;
	border: solid 1px #30FE5E;
	color: #30FE5E;
	display: block;
	font-size: 1.75em;
	height: 2.5em;
	line-height: 2.5em;
	position: relative;
	text-align: center;
	top: 0;
	width: 2.5em;
}

#nav-links a:hover {
	font-size: 1.1em;
}

#nav-links a:hover:before {
	background-color: rgba(48, 254, 94, 0.175);
	border-color: #00ff44;
	color: #00ff44;
}

#nav-links a:active {
	font-size: 0.95em;
}

#nav-links a:active:before {
	background-color: rgba(48, 254, 94, 0.35);
	border-color: #00ff44;
	color: #00ff44;
}

/* Footer */

#footer {
	bottom: 0;
	cursor: default;
	left: 0;
	padding: 1.5em 0;
	position: absolute;
	text-align: center;
	width: 100%;
	color: rgba(255, 255, 255, 0.25);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 0.85rem;
	letter-spacing: 0.02em;
}

#copyright-link {
	color: inherit;
	border: none;
	cursor: pointer;
	transition: color 0.2s ease-in-out;
}

#copyright-link:hover {
	color: rgba(255, 255, 255, 0.5);
}

/* Language Toggle */

#lang-toggle {
	position: fixed;
	top: 1.25em;
	right: 1.25em;
	z-index: 100;
	background: rgba(5, 5, 15, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: rgba(255, 255, 255, 0.6);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	padding: 0.4em 0.8em;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
}

#lang-toggle:hover {
	border-color: #30FE5E;
	color: #30FE5E;
}

/* Responsive — Wide */

@media screen and (max-width: 1680px) {
	body { font-size: 13pt; }
}

/* Responsive — Normal */

@media screen and (max-width: 1280px) {
	body { font-size: 12pt; }
}

/* Responsive — Mobile */

@media screen and (max-width: 736px) {
	body {
		min-width: 320px;
		font-size: 11pt;
	}
	#header h1 { font-size: 2.5em; }
	#header p { font-size: 1em; }
	#nav-links { font-size: 1em; }
	#nav-links a:hover { font-size: 1em; }
	#nav-links a:active { font-size: 1em; }
}

/* Responsive — Mobile Portrait */

@media screen and (max-width: 480px) {
	#nav-links { padding: 0 1em; }
}

/* Reduced Motion */

@media (prefers-reduced-motion: reduce) {
	*, *:before, *:after {
		animation-duration: 0.01ms !important;
		animation-delay: 0ms !important;
		transition-duration: 0.01ms !important;
	}
	#bg { display: none; }
}
