body
{
	padding:0;
	margin:0;

	font-family: "Calibri", "Carlito", "Arial";

	background: #5e8c92;
}

.loading-modal {
	background-color: #3f586e;
	padding: 2rem;
	min-width: 600px;
	border-radius: 18px;
	border: solid 1px rgba(255, 255, 255, 0.1);

	display: flex;
	flex-direction: column;
	justify-content: start;
	align-items: center;
}

h3 {
	margin: 0;
	color: white;
}

.loadbar {
	width: 100%;
	height: 2rem;
	background: gray;
	margin-top: 2rem;
	display: flex;
	align-items: center;
	position: relative;
}

.loadbar-filler {
	background: #ffd300;
	height: 100%;
}

.loadbar-counter {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: auto;
	text-align: center;
	pointer-events: none;
	font-weight: bold;
	font-size: 1.2rem;
}

main {
	width: 100vw;
	height: 100vh;

	display: flex;
	flex-direction: row;
}

#sidenav {
	background: rgba(0, 0, 0, 0.6);
	width: 40rem;
	height: 100vh;
	transition: width 0.3s ease-out;
	top: 0;
	right: 0;
	position: fixed;
	z-index: 100;

	backdrop-filter: blur(1rem);
}

#sidenav.hidden {
	width: 0;
}

#filterbox {
	position: absolute;
	top: 2rem;
	left: 2rem;
	z-index: 100;

	border: solid 1px rgba(255, 255, 255, 0.4);
	border-radius: 0.5rem;

	padding-left: 1.5rem;
	padding-right: 1.5rem;
	padding-top: 0.5rem;

	background-color: rgba(0, 0, 0, 0.53);
	font-weight: bold;
	user-select: none;

	backdrop-filter: blur(0.5rem);
}

#filterbox h2 {
	margin: 0;
	padding-bottom: 0.5rem;
	font-size: 1rem;
	text-transform: uppercase;
	color: #f5f5f5;
	font-weight: 500;
	font-family: Segoe UI, Roboto, serif;
	letter-spacing: 0.05em;
	opacity: 0.9;

	display: flex;
	flex-direction: row;
	justify-content: start;
	align-items: center;
}

#filterbox h2 > label {
	flex: 1;
	display: flex;
	flex-direction: row;
	align-items: center;
	cursor: pointer;
	transition: color 0.3s, text-shadow 0.3s;
}

#filterbox h2 > label:hover {
	color: white;
	text-shadow: white 0 0 1px;
}

#filterbox h2 svg {
	display: inline;
	height: 1.5rem;
	fill: #f5f5f5;
	margin-right: 0.5rem;
}

#filterbox h2 + .col {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.5s;
}

#filterbox h2:has(input:checked) + .col {
	max-height: 100vh;
}

#filterbox .col {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 0.7rem;
}

#filterbox .row {
	display: flex;
	flex-direction: row;
	justify-content: space-evenly;
	gap: 0.5rem;
}

#filterbox .col > .row:last-child {
	margin-bottom: 1rem;
}

#filterbox .button {
	flex: 1;
	display: flex;
}

#filterbox input {
	display: none;
}

#filterbox .button label {
	display: flex;
	justify-content: center;
	align-items: center;
	flex: 1;

	padding: 0.5rem;
	background-color: rgba(255, 255, 255, 0.5);
	text-align: center;
	border-radius: 0.4rem;
	cursor: pointer;
	vertical-align: center;

	transition: background-color 0.3s, color 0.3s;
}

#filterbox .button label:hover {
	background-color: rgba(255, 255, 255, 0.7);
	color: rgba(0, 0, 0, 0.81);
}

#filterbox .button:has(input:checked) > label {
	background-color: white;
	color: rgba(0, 0, 0, 0.81);
}

.row:has(#provinces-filter-checkbox) + .row {
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.3s;
}

.row:has(#provinces-filter-checkbox:checked) + .row {
	max-height: 5rem;
}

#map {
	flex-grow: 1;
}

#map > svg {
	display: block;
	width: 100%;
	height: 100%;
}

path.continent {
	stroke: none;
	fill: #c7d29a;
	filter: drop-shadow(0px 0px 90px rgb(0 0 0 / 0.6));
	/*filter: drop-shadow(0px 0px 600px rgba(150, 218, 227, 0.7)) drop-shadow(0px 0px 1000px rgba(150, 218, 227, 0.8)) ;*/
}

.province {
	fill: transparent;
}

.province[type='land'],
.province[type='littoral'] {
	stroke: #867c66;
	stroke-width: 10px;
	display: inline;
	visibility: visible;
}

.province[type='sea'], .province[type='void'], .province[type='lake'] {
	stroke: rgb(84, 127, 133);
	stroke-width: 20px;
}

.country {
	stroke: none;
}

.show-biomes .country {
	fill-opacity: 0.8;
}

.country-border {
	stroke: #655100;
	stroke-width: 80px;
	stroke-dasharray: 100 50;
	fill: none;
}

.biome {
	stroke: none;
}

.biome[biome='Plaine'] {
	fill: #c7d29a;
	stroke: #c7d29a;
	stroke-width: 5px;
}

.biome[biome='Foret'] {
	fill: #5E7552;
	stroke: #5E7552;
	stroke-width: 5px;
}

.biome[biome='Montagne'] {
	fill: #9A948C;
	stroke: #9A948C;
	stroke-width: 5px;
}