html, body {
	height: 100%;
	margin: 0;
	overflow: hidden;
	background: url('/layout/images/backgroundTexture.png') no-repeat center center fixed;
	background-size: cover;
	font: normal normal normal 12pt 'Adventure';
	color: #1a1208;
}

.navigation {
	z-index: 2000;
}

#navigation_bar,
#navigation_bar ul,
#navigation_bar li,
#navigation_bar a,
#navigation_bar span,
#navigation_bar > ul > li,
#navigation_bar > ul > li > a,
#navigation_bar > ul > li > a span {
	line-height: unset !important;
}

#account_button {
	z-index: 2001;
}

.map-app {
	display: flex;
	height: 100vh;
	padding: 110px 18px 18px;
	box-sizing: border-box;
	gap: 14px;
}

.map-stage {
	flex: 1;
	min-width: 0;
	position: relative;
	border: 3px solid #5f4525;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
	background: #000;
}

#map {
	width: 100%;
	height: 100%;
	background: #000;
}

#streamStatus,
#followPlayerMenu {
	display: none !important;
}

.map-panel {
	width: 340px;
	flex-shrink: 0;
	overflow-y: auto;
	padding: 18px 18px 24px 14px;
	background-image: url('/layout/images/content_fill.png');
	background-repeat: repeat-y;
	background-position: top center;
	background-size: 100% auto;
	border: 3px solid #5f4525;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.map-panel h1 {
	margin: 0 0 12px 0;
	font-size: 26px;
	text-align: left;
	color: #111;
	text-transform: none;
}

.map-panel fieldset {
	border: 2px solid #917348;
	background: rgba(255, 248, 230, 0.72);
	margin: 0 0 12px;
	padding: 10px;
	min-width: 0;
}

.map-panel legend {
	font-size: 18px;
	color: #000000;
	padding: 0 4px;
}

.map-panel a {
	color: #5f4525;
	font-weight: bold;
}

.map-panel a:hover {
	color: #917348;
	text-decoration: underline;
}

.lvl-brackets {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 8px;
}

.lvl-bracket {
	border: 1px solid #917348;
	background: rgba(145, 115, 72, 0.18);
	color: #1a1208;
	border-radius: 4px;
	padding: 3px 6px;
	font: inherit;
	font-size: 11px;
	cursor: pointer;
}

.lvl-bracket:hover,
.lvl-bracket.is-active {
	background: #917348;
	color: #fff;
}

.location-links,
.town-links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	max-height: 130px;
	overflow-y: auto;
}

.location-links a,
.town-links a {
	border: 1px solid #917348;
	background: rgba(145, 115, 72, 0.18);
	color: #1a1208 !important;
	border-radius: 4px;
	padding: 3px 6px;
	font: inherit;
	font-size: 11px;
	cursor: pointer;
	text-decoration: none !important;
}

.location-links a:hover,
.town-links a:hover {
	background: #917348;
	color: #fff !important;
}

.map-btn {
	display: inline-block;
	background: #917348;
	color: #fff !important;
	border: 0;
	border-radius: 4px;
	padding: 6px 10px;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	text-decoration: none !important;
}

.map-btn:hover {
	background: #463000;
}

.floor-row {
	display: flex;
	align-items: center;
	gap: 6px;
}

.floor-row select,
.map-panel .form-control,
.map-panel input[type=text] {
	flex: 1;
	min-width: 0;
	border: 1px solid #917348;
	background: #fff;
	color: #111;
	font: inherit;
	font-size: 13px;
	padding: 5px;
}

.coords-box {
	width: 100%;
	font-size: 11px !important;
	font-family: monospace !important;
}

.search-mode {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 8px 0;
}

.search-mode-title {
	font-size: 14px;
	font-weight: bold;
}

.search-mode-hint {
	margin: 0;
	font-size: 12px;
	line-height: 1.35;
	color: #3a2a18;
}

.search-mode-btn {
	width: 100%;
}

.search-types {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 8px 0 6px;
}

.search-type {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: bold;
	color: #1a1208;
}

.search-type-btn {
	width: 100%;
	border: 1px solid #917348;
	background: rgba(145, 115, 72, 0.12);
	border-radius: 4px;
	padding: 4px 6px;
	cursor: pointer;
	text-align: left;
	font: inherit;
}

.search-type-btn:hover {
	background: rgba(145, 115, 72, 0.28);
}

.search-type img {
	width: 36px;
	height: 36px;
	image-rendering: pixelated;
	background: #111;
	border-radius: 4px;
	flex-shrink: 0;
}

.search-locs {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-height: 240px;
	overflow-y: auto;
}

.spawn-jump {
	width: 100%;
	border: 1px solid #917348;
	background: rgba(145, 115, 72, 0.18);
	color: #1a1208;
	border-radius: 4px;
	padding: 4px 8px;
	font: inherit;
	font-size: 13px;
	cursor: pointer;
	text-align: left;
}

.spawn-jump:hover {
	background: #917348;
	color: #fff;
}

#monsterSearchResults {
	margin-top: 8px;
}

.leaflet-div-icon {
	background: transparent;
	font-size: 13px;
	font-weight: bold;
	border: none;
	text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000;
	text-align: center;
	z-index: 999999 !important;
	font-family: 'Adventure', sans-serif;
}

.name-town {
	color: #ff9a1f;
}

.name-island {
	color: #fff;
}

.name-monster {
	color: #3dff3d;
}

.name-npc {
	color: #4da6ff;
}

.leaflet-container img.leaflet-tile {
	image-rendering: pixelated;
}

.chosen-container {
	width: 100% !important;
	margin-bottom: 8px;
}

.chosen-container-multi .chosen-choices li.search-field input[type=text] {
	color: #888 !important;
}

@media (max-width: 900px) {
	.map-app {
		flex-direction: column;
		padding: 78px 8px 8px;
	}
	.map-panel {
		width: 100%;
		max-height: 42vh;
	}
}
