/* General
–––––––––––––––––––––––––––––––––––––––––––––––––– */
* {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}


/* Viz
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#viz {
	position: relative;
	font-size: 16px;
}

#viz h1, #viz h2, #viz h3, #viz h4, #viz h5, #viz h6 {
	font-family: 'DharmaGothicE', sans-serif;
	margin: 0;
	padding: 0;
	line-height: 1.35;
}

#viz p {
	font-family: "Droid Serif", serif;
	margin: 0;
	margin-bottom: 1rem;
	padding: 0;
	line-height: 1.35;
}

#viz .hidden {
	display: none!important;
}

#viz .hot {
	color: #F00;
}

#viz #debug {
	position: fixed;
	top: 3px;
	left: 3px;
	color: #F00;
	opacity: 0.1;
	font-family: sans-serif;
	font-size: 0.8rem;
	z-index: 1;
}


/* Labels
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#viz .label {
	font-family: 'epocapro', sans-serif;
	font-weight: 400!important;
	font-style: normal;
	padding: 0px 4px;
	background-color: #000;
	color: white;
}


/* Legend
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#viz p.legend {
	font-family: 'epocapro', sans-serif;
	font-weight: normal!important;
	font-style: italic!important;
	font-size: 0.85rem;
	line-height: 1.5;
	margin: 0;
	margin-bottom: 10px;
}

#viz .legend .label {
	position: relative;
	top: -1px;
	margin-right:  1px;
	font-style: normal;
	font-weight: 500;
}

#viz .legend img {
	max-height: 1.4rem;
	vertical-align: middle;
}

#viz ul.legend {
	padding: 0;
	margin: 0;
	margin-bottom: 5px;
}

#viz #main ul.legend li {
	display: inline-block;
	margin-right: 3px;
	font-size: 0.75rem;
}

#viz ul.legend li .block {
	display: inline-block;
	width: 1rem;
	height: 0.8rem;
	margin-right: 5px;
	border: 1px solid #FFF;
}


/* Sources
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#viz p.attribution {
	margin-top: -15px;
	font-family: "epocapro", sans-serif;
	font-size: 0.9rem;
	font-weight: 400;
}

#viz p.attribution a {
	font-style: normal;
	text-decoration: none;
}


/* Select
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#viz select {
	margin-right: 5px!important;
}

/* Input
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#viz input {
	width: 90%;
	max-width: 320px;
	margin: 0;
	border: 1px solid #ddd;
	font-size: 0.8rem;
}

/* ul.popover
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#viz ul.popover {
	margin: 0;
	display: block;
	background-color: #FAFAFC;
	box-shadow: 0px 1px 3px #444;
	list-style-type: none;
	padding: 0;
	max-width: 270px;
	position: absolute;
	z-index: 10000;
}

#viz ul.popover li {
	padding: 5px;
	border-bottom: 1px solid #444;
	font-family: "epocapro", sans-serif;
	font-size: 1rem;
	line-height: 1.1;
	cursor: pointer;
}

#viz ul.popover li:hover {
	background-color: #000;
	color: #FFF;
}


/* Footnote
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#viz p.footnote {
	font-family: "epocapro", sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: #444;
	background-color: #eee;
	position: relative;
	padding: 20px;
}

#viz p.footnote .asterisk {
	position: absolute;
	left: 12px;
	top: 8px;
	font-size: 1rem;
	font-weight: 100;
}


/* Social
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#viz .social-link {
    background-color: #eee;
    height: 25px;
}

#viz .social-link.facebook {
    background-color: #3C599B;
}

#viz .social-link.twitter {
    background-color: #5EAADE;
}



/* map and popups
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#viz .map {
	width: 90%;
	height: 380px;
	background-color: #FFF;
	margin-bottom: 30px;
}

#viz .map .leaflet-control-locate a {
	margin: 0;
	padding: 0;
	line-height: 26px;
	width: 26px;
	text-align: center;
}

#viz .map .leaflet-control-attribution {
	font-family: 'epocapro', 'Whitney SSm A', 'Whitney SSm B';
	font-weight: 500;
	color: #000;
	font-style: italic;
}

#viz .map .leaflet-control-attribution a {
	color: #00549E;
	font-weight: 500;
	font-style: normal;
}

#viz .map .leaflet-popup-content-wrapper {
	border-radius: 0;
}

#viz .map .leaflet-popup-content {
/*	background-image: url(noisy-texture-100x100-3.png);*/
	background-color: #FAF9F6;
	padding: 20px;
}

#viz .map .leaflet-popup-content .info {
	max-height: 320px!important;
	overflow: auto;
}

@media (min-width: 400px) {
	#viz .map {
		width: 100%;
		height: 450px;
	}
	#viz .map .leaflet-popup-content {
	}
	#viz .map .leaflet-popup-content .info {
		max-height: 350px!important;
	}
}

@media (min-width: 550px) {
	#viz .map {
		height: 500px;
	}
	#viz .map .leaflet-popup-content {
	}
	#viz .map .leaflet-popup-content .info {
		max-height: 375px!important;
	}
}

@media (min-width: 750px) {
	#viz .map {
		height: 600px;
	}
	#viz .map .leaflet-popup-content {
		width: 350px!important;
	}
	#viz .map .leaflet-popup-content .info {
	}
}

@media (min-width: 1000px) {
	#viz .map {
		height: 700px;
	}
	#viz .map .leaflet-popup-content {
		width: 400px;
	}
	#viz .map .leaflet-popup-content .info {
		max-height: 400px!important;
	}
}


/* lightbox
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#viz .lightbox {
	background-color: rgba(0,0,0,0.8);
	position: fixed;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 10000000;
	overflow: auto;
}

#viz .lightbox a {
	text-decoration: none;
	position: absolute;
	top:  10px;
	right: 15px;
	z-index: 1;
	font-size: 1.5rem;
	font-style: normal!important;
	color: #FFF;
}

#viz .lightbox a:not(active):hover {
	color:  #F00;
}

#viz .lightbox .info {
	margin-top: 45px;
}
