/*
	(c) 2020-08-06 - Charlie Elgholm
*/


html, body
{
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
    font-family: Tahoma, Arial, Helvetica, sans-serif;
	font-size: 12px;
}

body.bg
{ 
  background: url(/static/map/bg.png) no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

h1, h2
{
	margin: 0 0 0.5em 0;
	padding; 0;
}

label { display: block; margin-top: 5px;}
input[type=text], input[type=password], input[type=file], input[type=number], select
{
	margin-bottom: 5px;
	display: block;
	border: 1px solid #f0f0f0;
	padding: 5px;
	width: 100%;
	box-sizing: border-box;
	border-radius: 5px;
	background-color: white !important;
}

input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active
{
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

input[type=button]
{
	display: block;
	min-width: 130px;
	margin: 10px auto;
	padding: 10px 20px;
	text-align: center;
}

input.error { background-color: #fee !important; border-color: #f00 !important; }

input[readonly] { background-color: #eee !important; }

form { margin: 0; }
form + form { margin-top: 20px; }

#buttons
{
	position: absolute;
	z-index: 10000;
	bottom: 20px;
	right: 8px;
	text-align: right;
	width: 32px;
}

#buttons img
{
	display: block;
	margin-top: 12px;
	width: 24px;
	height: 24px;
	cursor: pointer;
}

#buttons img.btnPOI
{
	margin-top: 4px;
	width: 32px;
	height: 32px;
	margin-left: -4px;
	margin-bottom: 8px;
}

#map
{
	width: 100%;
	height: 100%;
}

div.info
{
	display: none;
	position: absolute;
	top: 20%;
	left: 50%;
	width: 300px;
	margin-left: -150px;
	padding: 15px;
	box-sizing: border-box;
	max-width: 100%;
	background: rgba(255,255,221,0.9);
	box-shadow: 0 5px 20px rgba(0,0,0,0.33);
	max-height: 200px;
	overflow-y: auto;
	z-index: 500;
}

div.form
{
	position: absolute;
	top: 10%;
	left: 50%;
	margin-left: -150px;
	width: 300px;
	padding: 20px;
	box-sizing: border-box;
	background: rgba(255,255,255,0.9);
	border-radius: 8px;
	box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

div.mess
{
	background: #eee;
	font-weight: bold;
	padding: 10px;
	margin-bottom: 10px;
	border-radius: 8px;
}

div.mess.error
{
	background: #fee;
	color: red;
	border: 3px solid red;
}

#errorMessage
{
	position: absolute;
	left: 50%;
	bottom: 40px;
	width: 300px;
	box-sizing: border-box;
	padding: 10px;
	border-radius: 10px;
	margin-left: -150px;
	background: rgba(255,204,204,0.9);
	color: red;
	font-weight: bold;
	box-shadow: 0 5px 20px rgba(0,0,0,0.3);
	text-align: center;
	z-index: 20000;
	display: none;
}

div.mess.success
{
	background: #efe;
	color: green;
	border: 3px solid green;
}

#exit
{
	position: absolute;
	top: 8px;
	right: 8px;
	width: 24px;
	height: 24px;
	cursor: pointer;
	z-index: 10000;
}


img.leaflet-marker-icon
{
	width: 32px;
	height: 32px;
	border-radius: 16px;
	box-shadow: 0 0 1px 3px white, 0 2px 8px black;;
}

img.leaflet-marker-icon.white { box-shadow: 0 0 1px 3px white, 0 2px 8px black; }
img.leaflet-marker-icon.black { box-shadow: 0 0 1px 3px black, 0 2px 8px black; }
img.leaflet-marker-icon.red { box-shadow: 0 0 1px 3px red, 0 2px 8px black; }
img.leaflet-marker-icon.green { box-shadow: 0 0 1px 3px green, 0 2px 8px black; }
img.leaflet-marker-icon.yellow { box-shadow: 0 0 1px 3px yellow, 0 2px 8px black; }
img.leaflet-marker-icon.purple { box-shadow: 0 0 1px 3px purple, 0 2px 8px black; }
img.leaflet-marker-icon.blue { box-shadow: 0 0 1px 3px blue, 0 2px 8px black; }
img.leaflet-marker-icon.cyan { box-shadow: 0 0 1px 3px cyan, 0 2px 8px black; }

img.poi
{
	border-radius: 0;
	box-shadow: none;
}

div.popup { width: 256px; position: relative; }
div.popup img.picture { display: block; max-width: 256px; max-height: 341px; margin-bottom: 2px; }
div.popup div.name { position: relative; margin: 5px 0; }
div.popup img.country { position: absolute; right:-15px; top:-68px; width: 64px; height: 64px; }
div.popup div.oneliner
{
  font-size: 14px;
  margin: 5px 0;
  min-height: 17px;
}
div.popup div.links { position: relative; min-height: 22px; }
div.popup div.links a.googlemaps img
{
	position: absolute;
	right: 0;
	top: -12px;
	width: 32px;
	height: 32px;
	border: none;
}
div.popup div.links a.left
{
	display: inline-block;
	border: 1px solid #f0f0f0;
	border-radius: 3px;
	background-color: #f8f8f8;
	padding: 2px 5px;
	text-decoration: none;
	margin-right: 10px;
}	

#osmAttribution, #status
{
	position: absolute;
	z-index: 10000;
	bottom: 0;
	right: 0;
	font-size: 9px;
	color: #999;
	background-color: rgba(255,255,255,0.5);
	padding: 2px 5px;
	border-radius: 5px 0 0 0;
}
#osmAttribution a { text-decoration:none; color: inherit; }