:root {
	--textbody: rgba(150, 175, 175);
	--titlehref: rgba(240, 240, 240);
	--menu: rgba(5, 5, 20, 0.25);
	--main: 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(--main);
	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;
}

input::-webkit-input-placeholder {
	font-family: "Montserrat", sans-serif;
	color: var(--titlehref);
	text-shadow: 0;
	text-align: center;
}

#topBlock,
#bottomBlock {
	position: fixed;
	left: 0;
	width: 100vw;
	height: 100vh; /* big enough slab */
	background: var(--main);
	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,
		#00b4ff,
		#6b00ff,
		#00b4ff,
		#ff0047,
		#ff8a00,
		#ffd400,
		#00d26a,
		#00b4ff,
		#6b00ff,
		#ff0047,
		#ffd400,
		#ff8a00,
		#00b4ff,
		#00b4ff
	);
	background-size: 1000% 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: #fff;
}

@keyframes rainbow-bounce {
	0% {
		background-position: 0% 50%;
	}
	50% {
		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 */
@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;
	}
}
