:root {
	font-size: 16px;
	--title-font: "Norican", cursive;
	--serif-font: "Source Serif Pro", serif;
	--sans-font: "Roboto", sans-serif;
	--monospace-font: "Roboto Mono", monospace;
	--font-awesome: "Font Awesome 5 Free";
	--font-awesome-brands: "Font Awesome 5 Brands";

	/* Generated by Paletton.com © 2002-2014 */
	/* http://paletton.com */
	--primary-white-color: #cce0fa;
	--primary-light-color: #689bdd;
	--primary-color: #306fc1;
	--primary-dark-color: #0c458e;
	--primary-black-color: #031a37;
	--complement-white-color: #ffebcb;
	--complement-light-color: #ffc76c;
	--complement-color: #ffaf2e;
	--complement-dark-color: #d88600;
	--complement-black-color: #533300;

	--color-red-font: #c00;
	--color-red-background: #fcc;
	--color-green-font: #529b20;
	--color-green-background: #d2eeca;
	--color-yellow-font: #7d7603;
	--color-yellow-background: #fff776;

	--icon-size: 1.5rem;
	--icon-space: 0.3em;

	--z-index-title: 5;
	--z-index-top-menu-floater: 4;
	--z-index-footer: 2;
	--z-index-overlays: 8;
	--z-index-bluebox: 10;
	--z-index-above-bluebox: 11;
	--z-index-loading-wrapper: 90;
	--z-index-topmost: 100;
}

html,
body,
h1,
h2,
h3,
h4,
p,
div,
span,
a,
table,
tr,
th,
td,
input,
select,
option,
textarea {
	font-style: normal;
	margin: 0px;
	padding: 0px;
	text-align: left;
	box-sizing: border-box;
}

body {
	overflow-x: hidden;
	width: 100%;
	/* background: linear-gradient(to bottom, #eee 0%,#fff 33%,#fff 100%); */
}

a {
	color: inherit;
	border-bottom: 0.1em dotted;
	text-decoration: none;
}
a:hover {
	color: white;
	background-color: rgba(255, 255, 255, 0.3);
}
a.light:hover {
	color: black;
	background: rgba(0, 0, 0, 0.1);
}
a[target="_blank"]:after {
	font-family: var(--font-awesome);
	font-weight: 900;
	content: "\00a0\f35d";
	font-size: 80%;
	vertical-align: 0.1em;
}

.viewport {
	margin-left: auto;
	margin-right: auto;
	max-width: 800px;
	padding: 0px 0.3em;
}

#title {
	color: white;
	background-color: var(--primary-color);
	background: linear-gradient(95deg, var(--primary-black-color) 0%, var(--primary-color) 20%, var(--primary-color) 100%);
	border-bottom: 0.15em solid var(--primary-dark-color);
	box-shadow: -0.4rem -0.8rem 0.5rem 0.8rem black;
	position: relative;
	z-index: var(--z-index-title);
	user-select: none;
}
#title h1,
#title h2,
#title div.tiny {
	font-family: var(--title-font);
	font-weight: normal;
	text-align: center;
	text-shadow: 0.1rem 0.2rem 0.5rem var(--primary-black-color);
}
#title h1 {
	padding-top: 1rem;
	font-size: 4rem;
}
#title h2 {
	margin: -0.3em auto 0px auto;
	font-size: 3rem;
	width: max-content;
}
#title hr {
	height: 0.15rem;
	border: none;
	background-color: white;
	border-radius: 0.3rem;
	box-shadow: 0.05rem 0.1rem 0.5rem var(--primary-black-color);
	margin: 0.5rem 0px 1rem 0px;
}
#title div.tiny {
	font-size: 1rem;
	display: inline-block;
	vertical-align: top;
	color: var(--primary-white-color);
}
#title #subline {
	font-family: var(--sans-font);
	color: var(--primary-white-color);
	font-size: smaller;
	text-align: center;
	padding-bottom: 1em;
	text-shadow: 0.05rem 0.1rem 0.5rem var(--primary-black-color);
}
@media screen and (max-width: 39rem) {
	#title h1 {
		font-size: 10vw;
	}
	#title h2 {
		font-size: 7.5vw;
	}
}

#top-menu-floater {
	width: 100%;
	position: sticky;
	top: 0px;
	z-index: var(--z-index-top-menu-floater);
}

#top-menu-stripe {
	background: linear-gradient(95deg, var(--complement-color) 0%, var(--complement-light-color) 100%);
	color: var(--complement-black-color);
	border-bottom: 0.15rem solid var(--complement-dark-color);
	box-shadow: -0.4rem -0.8rem 0.5rem 0.8rem black;
}
#top-menu-stripe .flex-box {
	display: flex;
	flex-wrap: wrap;
}
#top-menu-stripe .flex-box i {
	font-size: var(--icon-size);
	padding: var(--icon-space);
	margin: var(--icon-space);
	cursor: pointer;
	box-sizing: content-box;
}
#top-menu-stripe .flex-box i#top-menu-toggle-button {
	flex-grow: 1;
}
#top-menu-stripe .flex-box i:hover {
	color: var(--complement-dark-color);
	text-shadow: 0px 0px 0.2em var(--complement-white-color);
	/* background-color: var(--complement-white-color); */
}

#top-menu-substripe {
	text-align: right;
	height: 0.1rem;
	margin-bottom: 3rem;
}
#top-menu-substripe i {
	font-size: var(--icon-size);
	padding: var(--icon-space);
	margin: var(--icon-space);
	cursor: pointer;
	box-sizing: content-box;
	text-shadow: -0.1em 0.1em 0.1em #fff, -0.1em -0.1em 0.1em #fff, 0.1em -0.1em 0.1em #fff, 0.1em 0.1em 0.1em #fff;
}
#top-menu-substripe #undo-button {
	display: inline-block;
}
#top-menu-substripe #undo-button.disabled {
	color: #d0d0d0;
	cursor: not-allowed;
}
#top-menu-substripe #undo-button.animated {
	animation: undo-button-animation 0.2s ease 0s 1 alternate;
}
@keyframes undo-button-animation {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.5);
	}
	100% {
		transform: scale(1);
	}
}

#didyouknow {
	margin-top: 3em;
	margin-left: auto;
	margin-right: auto;
	max-width: 600px;
	border: 3px solid #baba82;
	background-color: #ffffe8;
	padding: 0.3em;
	box-shadow: 0.2rem 0.2rem 0.5rem silver;
	border-radius: 0.3rem;
	font-family: var(--sans-font);
}
#didyouknow h1,
#didyouknow p {
	font-size: 1rem;
	margin: 0.5em;
}
#didyouknow h1 {
	font-weight: bold;
}
#didyouknow p#didyouknow_next {
	color: blue;
	text-decoration: underline;
	cursor: pointer;
}

#footer {
	--light-color: #cdcdd3;
	--dim-color: #888;
	font-family: var(--sans-font);
	color: var(--light-color);
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	background-color: #55575a;
	margin-top: 8rem;
	padding-top: 2rem;
	padding-bottom: 1rem;
	box-shadow: -0.4rem 0.8rem 0.5rem 0.8rem black;
	position: relative;
	z-index: var(--z-index-footer);
}
#footer .flex-container {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}
#footer .flex-container > div {
	width: calc(50% - 2em);
	margin: 0px 1em 1.5em 1em;
}
@media screen and (max-width: 600px) {
	#footer .flex-container {
		flex-direction: column;
	}
	#footer .flex-container > div {
		width: calc(100% - 2em);
	}
}
#footer .flex-container div.block {
	margin-bottom: 1.5em;
}
#footer .flex-container div.block.iconic {
	position: relative;
	padding-left: 1.5em;
}
#footer .flex-container div.block span:nth-of-type(1) {
	text-transform: uppercase;
}
#footer .flex-container div.block span:nth-of-type(2) {
	color: var(--dim-color);
}
#footer .flex-container div.block i.fab,
#footer .flex-container div.block i.fas {
	position: absolute;
	top: 0.2em;
	left: 0px;
}

#print-footer {
	margin-top: 1rem;
}

#loading-wrapper {
	position: fixed;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	top: 35vh;
	left: 30%;
	width: 40%;
	background-color: #ffffff;
	padding: 1em 1.5em;
	border-radius: 1em;
	box-shadow: 1rem 1rem 4rem rgba(0, 0, 0, 0.4);
	cursor: wait;
	z-index: var(--z-index-loading-wrapper);
}
@media screen and (max-width: 1000px) {
	#loading-wrapper {
		left: 10%;
		width: 80%;
	}
}
#loading-wrapper .loading-text {
	font-family: var(--sans-font);
	margin-bottom: 0.5em;
}
#loading-wrapper .loading-gradient {
	width: 100%;
	background-size: 150% 100%;
	border-radius: 1em;
	background-image: repeating-linear-gradient(100deg, #d0dcf4 0%, #f3f7fe 35%, #ffde7e 35.1%, #ffde7e 50%, #ff8e00 50.1%, #ff8e00 60%, #f3f7fe 60.1%, #d0dcf4 100%);
}
#loading-wrapper .loading-gradient.animated {
	animation: loading-gradient linear 1s infinite;
}
@keyframes loading-gradient {
	0% {
		background-position: 200% 0%;
	}
	100% {
		background-position: -100% 0%;
	}
}
#blur {
	position: fixed;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	top: 0px;
	left: 0px;
	height: 100%;
	width: 100%;
	z-index: var(--z-index-overlays);
	visibility: hidden;
	display: block;
}
#blur.editor-only {
	z-index: calc(var(--z-index-top-menu-floater) - 1);
}
#blur.dim {
	background-color: #00000062;
}
#blur.stubborn {
	z-index: var(--z-index-above-bluebox);
}
#printoverlay {
	position: fixed;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	top: 0px;
	left: 0px;
	height: 100%;
	width: 100%;
	z-index: var(--z-index-topmost);
	display: block;
	cursor: default;
}

.only-print {
	font-family: var(--serif-font);
}

div.tooltip {
	display: block !important;
	position: absolute !important;
	visibility: hidden !important;
	max-width: 20em !important;
	font-family: var(--sans-font) !important;
	font-size: 0.8rem !important;
	white-space: normal !important;
	color: black !important;
	padding: 0.4rem !important;
	margin-top: 0.5em !important;
	background-color: #ffffd0 !important;
	box-shadow: 0.2rem 0.2rem 0.7rem #00000080 !important;
	z-index: 99999 !important;
	border-radius: 0.5em;
}
div.tooltip * {
	color: black !important;
	padding: 0px !important;
	margin: 0px !important;
}
*:hover > div.tooltip {
	visibility: visible !important;
}

.notification {
	font-family: var(--sans-font) !important;
	font-weight: normal;
	border: 0.2rem solid;
	padding: 0.5em;
	box-shadow: 0.3rem 0.3rem 1rem #00000080;
	border-radius: 0.8em;
	display: block;
	text-indent: -1.24em;
	padding-left: 1.7em;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	z-index: var(--z-index-topmost);
	cursor: default;
}
.notification.popup {
	font-size: 1.3rem;
	top: 35vh;
	max-width: 60vw;
	position: fixed;
	animation-name: popin-flyout;
	animation-duration: 4s;
}
.notification.green {
	border-color: var(--color-green-font);
	background-color: var(--color-green-background);
	color: var(--color-green-font);
}
.notification.green:before {
	font-family: var(--font-awesome);
	font-weight: 900;
	content: "\f058\20";
}
.notification.yellow {
	border-color: var(--color-yellow-font);
	background-color: var(--color-yellow-background);
	color: var(--color-yellow-font);
}
.notification.yellow:before {
	font-family: var(--font-awesome);
	font-weight: 900;
	content: "\f05a\20";
}
.notification.red {
	border-color: var(--color-red-font);
	background-color: var(--color-red-background);
	color: var(--color-red-font);
}
.notification.red:before {
	font-family: var(--font-awesome);
	font-weight: 900;
	content: "\f057\20";
}
@keyframes popin-flyout {
	0% {
		opacity: 0;
	}
	5% {
		transform: scale(1.2);
	}
	10% {
		transform: scale(1);
		opacity: 1;
	}
	75% {
		opacity: 1;
		transform: translate(0px, 0px);
	}
	100% {
		opacity: 0;
		transform: translate(0px, -25vh);
	}
}
#warbandCanvas .notification {
	font-size: 1.4rem;
}
