#map {
	border: 1px solid black;
	width: 100%;
	max-height: 100%;
}

.map-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: flex-end;
}

.selection-info {
	border: 1px solid #adb5bd;
	background: #f8f9fa;
	margin: 8px 0;
	min-height: 44px;
	padding: 8px;
}

.selection-info a {
	margin-right: 8px;
}

#thing-tooltip {
	position: fixed;
	z-index: 10000;
	pointer-events: none;
	background: rgba(248,249,250,0.96);
	border: 1px solid #343a40;
	box-shadow: 0 2px 8px rgba(0,0,0,0.25);
	color: #111;
	font: 13px arial,sans-serif;
	max-width: 160px;
	padding: 6px;
	text-align: center;
}

#thing-tooltip canvas {
	display: block;
	margin: 0 auto 4px;
}

#thing-tooltip div:last-child {
	font-size: 12px;
	white-space: pre-line;
}

.view3d-toolbar {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 8px 0;
}

.view3d-status {
	color: #343a40;
	font-family: monospace;
	font-size: 13px;
}

.view3d-keys,
.view3d-gravity {
	color: #343a40;
	font-size: 13px;
}

.view3d-gravity {
	background: #e9ecef;
	border: 1px solid #adb5bd;
	border-radius: 4px;
	padding: 2px 6px;
}

.view3d-layout {
	align-items: flex-start;
	display: flex;
	gap: 12px;
	max-width: 1320px;
}

#view3d-frame {
	background: #000;
	border: 1px solid #000;
	flex: 1 1 auto;
	position: relative;
	min-width: 0;
}

#view3d-screen {
	aspect-ratio: 16 / 10;
	background: #000;
	cursor: crosshair;
	display: block;
	image-rendering: pixelated;
	width: 100%;
}

#view3d-crosshair {
	border-left: 1px solid rgba(255,255,255,0.75);
	border-top: 1px solid rgba(255,255,255,0.75);
	height: 13px;
	left: 50%;
	pointer-events: none;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%) rotate(45deg);
	width: 13px;
}

#view3d-minimap-panel {
	background: #f8f9fa;
	border: 1px solid #343a40;
	flex: 0 0 280px;
}

#view3d-minimap {
	background: #111;
	display: block;
	height: 280px;
	width: 280px;
}

@media screen and (max-width: 900px) {
	.view3d-layout {
		flex-direction: column;
	}

	#view3d-minimap-panel,
	#view3d-minimap {
		width: 100%;
	}

	#view3d-minimap-panel {
		flex-basis: auto;
	}
}

#forkongithub a {
	background: #000;
	color: #fff;
	text-decoration: none;
	font-family: arial,sans-serif;
	text-align: center;
	font-weight: bold;
	padding: 5px 40px;
	font-size: 1rem;
	line-height: 2rem;
	position: relative;
	transition: 0.5s;
}

#forkongithub a: hover {
	background: #c11;
	color: #fff;
}

#forkongithub a: :before,#forkongithub a: :after {
	content: "";
	width: 100%;
	display: block;
	position: absolute;
	top: 1px;
	left: 0;
	height: 1px;
	background: #fff;
}

#forkongithub a: :after {
	bottom: 1px;
	top: auto;
}

@media screen and (min-width: 800px) {
	#forkongithub {
		position: absolute;
		display: block;
		top: 0;
		right: 0;
		width: 200px;
		overflow: hidden;
		height: 200px;
		z-index: 9999;
	}

	#forkongithub a {
		width: 250px;
		position: absolute;
		top: 40px;
		right: -60px;
		transform: rotate(45deg);
		-webkit-transform: rotate(45deg);
		-ms-transform: rotate(45deg);
		-moz-transform: rotate(45deg);
		-o-transform: rotate(45deg);
		box-shadow: 4px 4px 10px rgba(0,0,0,0.8);
	}
}
