.tiledImageViewer {
	background: url(images/maploading.png);
	position: relative;
	overflow: hidden;
}

.tiledImageViewer div.image {
	position: absolute;
}

.tiledImageViewer .rect {
	position: absolute;
	border: 1px solid #F00;
	-moz-opacity: 0.5;
}

.tiledImageViewer .rect div {
	background-color: #FFF;
}

.tiledImageViewer div.dpad {
	position: absolute;
	top: 14px;
	left: 14px;
	width: 44px;
	height: 44px;
	background: url(images/dpad.png) top left no-repeat;
}

.tiledImageViewer div.dpad div {
	position: absolute;
	width: 15px;
	height: 15px;
	cursor: pointer;
}

.tiledImageViewer div.dpad div.up {
	top: 0;
	left: 14px;
}

.tiledImageViewer div.dpad div.right {
	top: 14px;
	left: 28px;
}

.tiledImageViewer div.dpad div.down {
	top: 28px;
	left: 14px;
}

.tiledImageViewer div.dpad div.left {
	top: 14px;
	left: 0;
}

/* THANK YOU IE!! */

/* END OF CRUCIAL STUFF */
#map map
{
	border: 0px solid blue;
}

div.minimap
{
	bottom: 0px;
	left: 0px;
	border: 1px solid black;
}

/* Moving objects layer (armies in Dolumar), see javascript/mapobjects.js */
div.mapobjects
{
	position: absolute;
	left: 0;
	top: 0;
	width: 0;
	height: 0;
	overflow: visible;
	z-index: 20;
	pointer-events: none;
}

div.mapobjects svg.mapobjects-routes
{
	position: absolute;
	left: 0;
	top: 0;
	overflow: visible;
	pointer-events: none;
}

div.mapobjects div.mapobject
{
	position: absolute;
	width: 40px;
	height: 40px;
	background-repeat: no-repeat;
	background-position: 0 0;
	pointer-events: auto;
}

div.mapobjects div.mapobject.facing-left
{
	background-position: -40px 0;
}

div.mapobjects div.mapobject.clickable
{
	cursor: pointer;
}

div.mapobjects div.mapobject-label
{
	position: absolute;
	min-width: 120px;
	padding: 4px 8px;
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
	font-size: 12px;
	border-radius: 4px;
	pointer-events: auto;
	z-index: 21;
}

div.mapobjects div.mapobject-label p
{
	margin: 0 0 4px 0;
}

div.mapobjects div.mapobject-label a
{
	display: inline-block;
	min-height: 32px;
	line-height: 32px;
	color: #ffd700;
}

/* Choosing a location in the mobile layout: Place/Cancel bar at the bottom of the map */
#map_select_actions
{
	position: fixed;
	left: 0;
	right: 0;
	bottom: var(--sheet-bottom, 0);
	z-index: 100000;
	display: flex;
	gap: 12px;
	padding: 12px 16px;
	background: rgba(0, 0, 0, 0.6);
	box-sizing: border-box;
}

#map_select_actions button
{
	flex: 1 1 0;
	min-height: 44px;
	font-size: 16px;
	border-radius: 6px;
	border: 1px solid #333;
	cursor: pointer;
}

#map_select_actions button.cancel
{
	background: #eee;
	color: #222;
}

#map_select_actions button.place
{
	background: #3a7d2c;
	color: #fff;
}
