* {
	box-sizing: border-box;
}

body {
	font-family: sans-serif;
	background: #DDD;
}

#main {
	overflow: hidden;
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	margin: 0;
	background: black;
	display: grid;
	grid-template-columns: 1fr auto;
}

#map-container {
	background: black;
}

#map {
	position: absolute;
	z-index: 1;
	transform-origin: 0 0;
	image-rendering: pixelated;
}

#controls {
	background: #AAF;
	display: grid;
	z-index: 100;
	grid-template-columns: 1fr 1fr;
}

.template {
	padding: 10px;
	line-height: 0;
}

input,
button div {
	font-size: 150%;
	font-weight: bolder;
	line-height: 150%;
}

input {
	width: 8em;
	text-align: center;
}

#marker {
	fill: transparent;
	stroke: lime;
	stroke-width: 15;
	cursor: not-allowed;
}

.template img {
	width: 96px;
}

.selected {
	background: #AFF;
}

.noarea .area,
.noclaim .claim {
	display: none;
}

.claim {
	fill: transparent;
	stroke: #AFF;
	stroke-width: 0.1px;
}

.area {
	fill: transparent;
	stroke: blue;
	stroke-width: 0.2px;
}

svg {
	position: absolute;
	z-index: 2;
	transform-origin: 0 0;
}

.cover {
	z-index: 10;
	position: fixed;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.6);
	cursor: not-allowed;
}

.cover-content {
	position: fixed;
	z-index: 20;
	max-height: 80%;
	padding: 15px;
	width: 75%;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background: #EEE;
	overflow-y: scroll;
}