* { 
  -moz-box-sizing: border-box; 
  -webkit-box-sizing: border-box; 
   box-sizing: border-box; 
}

.imground { border-radius: 50%; }

.errorwin { width: 50%; margin: 50px auto; padding: 10px; border: 1px solid #f00; background: #fcc; color: #f00; }

html, body, #mapcontainer {
	height: 100%;
	width: 100%;
	margin: 0;
	padding: 0;
	font-family: "Source Sans Pro"
}

#mapcontainer {
	position: relative;
}

#mapcontrols {
	position: absolute;
	top: 0px;
	right: 0px;
	width: 100px;
	height: 50px;
	background: #fff;
}

#poimapdiv {
	height: 100%;
	width: 100%;
	background: #fff;
}

#devconsole {
	position: absolute;
	bottom: 100px;
	left: 0px;
	width: 200px;
	height: 400px;
	background: #000;
	color: #0f0;
	padding: 2px;
	font-family: "Courier New"
}

#iwtop {
	position: absolute;
	top: 0px;
	left: 0px;
	width: 100%;
}

#userhead {
	/*position: absolute;
	top: 0px;
	left: 0px;*/
	width: 100%;
	height: 32px;
	line-height: 24px;
	background: rgba(255,255,255,0.8);
	padding: 4px;
	text-align: center;
	color: #666;
}

#userhead img { vertical-align: -6px; height: 100%; margin: 0px; padding: 0px; border: 0px; }

#title {
	/*position: absolute;
	top: 32px;
	left: 0px;*/
	/*width: 100%;*/
	height: 54px;
	background: rgba(0,0,0,0.5);
	padding: 3px;
	text-align: center;
	line-height: 48px; font-size: 24px; text-shadow: 2px 2px #333;
	font-weight: 600; text-transform: uppercase;
	color: #fff;
}

.titlewithsidebar { margin-right:350px; }

#title > img { height: 30px; vertical-align: -6px; margin-right: 5px; }

#title > span { border-radius: 5px; vertical-align: 3px; line-height: 24px; font-size: 16px; display: inline-block; background: #fff; color: #666; padding: 2px 7px; text-shadow: none; margin-left: 10px; }
#title > span > img { vertical-align: -5px; margin-right: 5px; height: 21px; }

@media only screen and (min-width: 768px) {
	#title { line-height: 48px; font-size: 48px; }
	#title > img { height: 42px; vertical-align: -4px; }
	#title > span { line-height: 32px; font-size: 32px; vertical-align: 5px; }
	#title > span > img { vertical-align: -3px; height: 28px; }
}

#poiinfo {
	position: absolute;
	bottom: 0px;
	left: 0px;
	width: 100%;
	height: 120px;
	background: rgba(255,255,255,0.8);
	padding: 5px;
}

#sidebar {
	position: absolute;
	top: 0px;
	right: 0px;
	width: 350px;
	height: 100%;
	background: #fff;
	padding: 10px;
	z-index: 1000;
}

#sidebar > p:first-child { margin-top:0px; }

#sidebar > ul { list-style-type:none; }

#sidebar img.puimg { display: block; width: 100%; }

#poweredby {
	position: absolute;
	bottom: 0px;
	left: 0px;
	/*width: 100%;*/
	height: 32px;
	line-height: 24px;
	background: rgba(255,255,255,0.8);
	padding: 5px;
}

#poweredby img { height: 24px; vertical-align: -4px; }

.t2040mp .leaflet-popup-content-wrapper {
  background:#fff;
  color:#666;
  border-radius: 0px;
  width: 300px;
  padding: 0px;
}

.t2040mp .leaflet-popup-content-wrapper img.puimg { display: block; width: 100%; }

.t2040mp .leaflet-popup-content-wrapper img.usrimg { display: block; height: 48px; float: left; margin: 5px; }

.t2040mp .leaflet-popup-content-wrapper .poiminical {}
.t2040mp .leaflet-popup-content-wrapper .poiminical > div { float: left; background: #fff; margin: 8px; width: 52px; height: 52px; border-radius: 8px; font-weight: bold; text-align: center; font-size: 24px; box-shadow: 0px 0px 3px rgba(0,0,0,0.3); margin-right: 10px; }
.t2040mp .leaflet-popup-content-wrapper .poiminical > div > span { display: block; background: #f66; color: #fff; text-transform: uppercase; font-size: 12px; border-radius: 5px 5px 0 0; }

.t2040mp .leaflet-popup-content-wrapper .leaflet-popup-content { margin: 0px; padding: 0px; width: 300px !important; }
  
.t2040mp .leaflet-popup-content a, #sidebar a {
  color: #4b9649;
  text-decoration: none;
}

.t2040mp .leaflet-popup-content h3.poiname, #sidebar h3.poiname {
  margin: 0px; padding: 5px; font-weight: 600; font-size: 16px; border-bottom: 1px solid #ddd;
}

.t2040mp .leaflet-popup-content h3.evtname {
  margin: 0px; padding: 5px; font-weight: 600; font-size: 14px; border-bottom: 1px solid #ddd; min-height: 69px;
}

.t2040mp .leaflet-popup-content h3.usrname {
  margin: 0px; padding: 5px; font-weight: 600; font-size: 16px; line-height: 48px;
}

.t2040mp .leaflet-popup-content h3 > a {
  color: #4b9649;
  text-decoration: none;
}

.t2040mp .leaflet-popup-content p {
  margin: 0px; padding: 5px;
}

.t2040mp .leaflet-popup-content h4, #sidebar h4 {
  border-top: 1px solid #ddd;
  margin: 0px; padding: 5px;
  font-weight: normal;
  overflow: auto;
  line-height: 18px;
}

.t2040mp .leaflet-popup-content h4 > a {
  color: #4b9649;
  text-decoration: none;
}

.t2040mp .leaflet-popup-content .fv, #sidebar .fv {
  display: block;
  float: left; 
  position: relative;
  text-decoration: none;
  width: 96px; height: 54px;
  margin-right: 3px;
}

.t2040mp .leaflet-popup-content .fv > img, #sidebar .fv > img {
  position: absolute; top: 0xp; left: 0px; display: block; width: 100%;
}

.t2040mp .leaflet-popup-content .fv > a, #sidebar .fv > a { 
  position: absolute; top: 0xp; left: 0px; display: block;
  width: 96px; height: 54px;
  font-weight: 600; color: #fff;
  text-align: center;
  padding-top: 30px;
}

.t2040mp .leaflet-popup-content-wrapper a:hover { text-decoration: underline; }

/*.t2040mp .leaflet-popup-tip-container {
  width:30px;
  height:15px;
}*/

/*.t2040mp .leaflet-popup-tip {
  border-left:15px solid transparent;
  border-right:15px solid transparent;
  border-top:15px solid #2c3e50;
}*/