:root {
	--textbody: rgba(150, 175, 175);
	--titlehref: rgba(240, 240, 240);
	--menu: rgba(5, 5, 20, 0.25);
	--mainback: rgba(5, 5, 20);
	--footer: rgba(0, 0, 0);
}

html,
body {
	font-family: "Montserrat", sans-serif;
	color: var(--textbody);
	cursor: default;
	height: auto;
	min-height: 100%;
	overflow-y: scroll;
	overscroll-behavior: none;
}

html,
body,
#body {
	position: relative;
	margin: 0;
	padding: 0;
	z-index: 1;
	overflow: visible;
}

body.lock-scroll {
	overflow: hidden;
	height: 100%;
	-webkit-user-select: none; /* Safari */
	-ms-user-select: none; /* IE 10 and IE 11 */
	user-select: none; /* Standard syntax */
}

#starfield {
	position: fixed; /* lock to viewport */
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: -1; /* behind everything */
	background: var(--mainback);
	pointer-events: none; /* don’t block scrolling/clicks */
}

a {
	text-decoration: none;
	color: inherit;
	border-bottom: 1px var(--titlehref) dotted;
}
a:hover {
	border-bottom: 1px var(--titlehref) solid;
}

#mainmenu {
	color: var(--titlehref);
	background: var(--menu);
	width: 100vw;
	min-height: 1.2em;
	font-size: 1.2em;
	left: 50%;
	transform: translate(-50%, 0);
	margin-left: 50%;
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
	position: sticky;
	top: 0;
	z-index: 50;
}
#mainmenu ul {
	list-style: none;
}
#mainmenu a {
	padding: 5px 9px;
	margin: 5px;
	border: 0;
}
#mainmenu a:hover {
	filter: brightness(1);
}

.menuline {
	display: flex;
	align-items: center;
	justify-content: center; /* center everything */
	position: relative;
}

.hamburger {
	font-size: 3em !important;
	position: absolute;
	left: 0;
	top: -0.17em;
	line-height: 0;
}

#open,
#close,
#open:hover,
#close:hover {
	font-family: monospace;
	position: absolute;
}

#close {
	display: none;
}

#main {
	color: var(--textbody);
	left: 50%;
	transform: translate(-50%, 0);
	margin-left: 50%;
	/*white-space: pre-line;*/
	width: 90vw;
	max-width: 800px;
	line-height: 1.5em;
	-webkit-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
	z-index: 1;
	margin-top: -20px;
}

#sub {
	display: inline-block;
	color: var(--titlehref);
	font-size: 1.5em;
	padding: 35px 0 15px 0;
}

img {
	max-height: 90vh;
	max-width: 100%;
	height: auto;
	width: auto;
	display: block;
	margin: 0 auto;
}

#foot {
	padding: 30px 0;
	font-size: 1em;
	width: 100vw;
	text-align: center;
	color: var(--textbody);
	-webkit-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
	line-height: 2;
}

#foot ul {
	list-style: none;
}

#foot a {
	color: inherit;
	border-bottom: var(--titlehref) dotted 1px;
}

#foot a:hover {
	background: none;
	border-bottom: 0;
}

hr {
	border: 0.1px dashed var(--titlehref);
	margin: 10px 0;
}

#topBlock,
#bottomBlock {
	position: fixed;
	left: 0;
	width: 100vw;
	height: 100vh; /* big enough slab */
	background: var(--mainback);
	z-index: 9999;
	pointer-events: none; /* don’t block clicks */
	margin: 0;
	padding: 0;
}

#topBlock {
	top: -100vh; /* hide it above */
}

#bottomBlock {
	bottom: -100vh; /* hide it below */
}

/* rainbow title */
.rainbow-title {
	display: block;
	aspect-ratio: 1920 / 360;
	margin: 2rem auto;
	z-index: 60;
	font-size: 0;
	/* rainbow background */
	background: linear-gradient(
		-45deg,
		#00ffff,
		#00ffff,
		#00ffff,
		#007fff,
		#0000ff,
		#7f00ff,
		#8b00ff,
		#ff00ff,
		#ff007f,
		#ff0000,
		#ff7f00,
		#ffff00,
		#7fff00,
		#00ff00,
		#00ff7f,
		#00ffff,
		#00ffff,
		#00ffff
	);
	background-size: 1500% 100%;
	animation: rainbow-bounce 60s cubic-bezier(0.55, 0.05, 0.45, 0.95) infinite;
	/* mask */
	-webkit-mask-image: url("title.gif");
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;
	-moz-mask-image: url("title.gif");
	-moz-mask-repeat: no-repeat;
	-moz-mask-position: center;
	-moz-mask-size: contain;
	mask-image: url("title.gif");
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;
	background-color: #00ffff;
}

.rainbow-border {
	position: relative;
	border: 2px solid transparent;
	border-radius: 12px;
	background-image: linear-gradient(var(--mainback), var(--mainback)),
		linear-gradient(
			-45deg,
			#00ffff,
			#00ffff,
			#00ffff,
			#007fff,
			#0000ff,
			#7f00ff,
			#8b00ff,
			#ff00ff,
			#ff007f,
			#ff0000,
			#ff7f00,
			#ffff00,
			#7fff00,
			#00ff00,
			#00ff7f,
			#00ffff,
			#00ffff,
			#00ffff
		);
	background-origin: border-box;
	background-clip: padding-box, border-box;
	background-size: 1500% 100%;
	animation: rainbow-bounce 30s cubic-bezier(0.55, 0.05, 0.45, 0.95) infinite;
	color: var(--textbody);
	transition:
		background 0.3s ease,
		color 0.3s ease;
}

form {
	text-align: center;
	line-height: 4em;
}

/* Input, dropdown, button consistent sizing */
input.rainbow-border,
button.rainbow-border {
	padding: 8px 12px;
	font-size: 1rem;
	background-color: transparent;
	outline: none;
	cursor: pointer;
}

div.rainbow-border {
	position: relative;
	display: inline-block;
	line-height: 1em;
}

.rainbow-border select {
	appearance: none; /* hide default arrow */
	background: transparent;
	border: none;
	font-size: 1rem;
	padding: 8px 12px;
	border-radius: 6px;
	width: 100%;
	cursor: pointer;
}

/* Table */
table.rainbow-border {
	border-collapse: collapse;
	margin: 20px auto;
	background-color: transparent;
}

table.rainbow-border th,
table.rainbow-border td {
	padding: 10px 16px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background-color: transparent;
}

@keyframes rainbow-bounce {
	0% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

/* desktop */
@media only screen and (min-width: 800px) {
	.rainbow-title {
		max-width: 640px;
		width: 80vw;
	}
	.hamburger {
		display: none;
	}
	#mainmenu {
		text-align: center;
		padding: 12px 0;
	}
	#mainmenu li {
		display: inline;
	}
	#menulist {
		margin: 0;
		display: block !important;
		padding-inline-start: 0;
	}
	#foot li {
		display: inline;
		padding: 0 10px 0 0;
	}
	.mobile {
		display: none;
	}
}

/* mobile */
@media only screen and (max-width: 799px) {
	.hamburger a:hover {
		filter: brightness(0.5);
	}
	#menulist {
		display: none;
		position: absolute;
		top: 0;
		-webkit-transition: all 0.3s ease-in-out;
		transition: all 0.3s ease-in-out;
	}
	#mainmenu {
		text-align: left;
		padding: 12px 0;
	}
	#mainmenu ul {
		margin: 50px 0 0 0;
		padding: 0;
		line-height: 2.5em;
	}
	#mainmenu li {
		margin: 0 0 0 20px;
	}
	#mainmenu a {
		padding: 15px;
	}
	.blurredout {
		-webkit-filter: blur(100px);
		-moz-filter: blur(100px);
		-o-filter: blur(100px);
		-ms-filter: blur(100px);
		filter: blur(100px);
	}
	.blurred {
		-webkit-filter: blur(20px);
		-moz-filter: blur(20px);
		-o-filter: blur(20px);
		-ms-filter: blur(20px);
		filter: blur(20px);
		padding: 0 30px;
		opacity: 0.5;
	}
	.rainbow-title {
		top: 0;
		margin: 10px auto;
		position: sticky;
	}
	.desktop {
		display: none;
	}
}
