* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.hidden {
	display: none;
}

.text-center {
	text-align: center!important;
}



/* Viz */
#viz {
	background-color: #FFF;
}
@media (min-width: 550px) {
	#viz { padding-bottom: 20px!important; }
}



/* Typo */
#viz h1,
#viz h2,
#viz h3,
#viz h4,
#viz h5,
#viz h6 {
	font-family: 'DharmaGothicE', 'sans-serif';
}

#viz h1 {
	font-size: 2.8rem;
	font-weight: 600;
	line-height: 1;
}
@media (min-width: 550px) {
	#viz h1 { font-size: 2.8rem; }
}
@media (min-width: 750px) {
	#viz h1 { font-size: 4rem; }
}
@media (min-width: 1000px) {
	#viz h1 { font-size: 5rem; }
}

#viz p {
	font-family: 'Droid Serif', 'serif';
	line-height: 1.35!important;
}

#viz a {
	backgroundfont-family: 'Droid Serif', 'serif';
}



/* Header */
#viz .header {
}

#viz .header h1 {
	margin-bottom: 20px!important;
}

#viz .header img {
	width: 100%;
	margin-bottom: 20px;
}

#viz .header p {
	line-height: 1.45!important;
	margin-bottom: 20px;
}



/* Attribution */
#viz .attribution {
	font-family: 'epocapro', 'sans-serif';
	font-size: 0.75rem!important;
}

#viz .attribution a {
	text-decoration: none;
	border-bottom: 5px solid #BDF;
	color: #444;
}




/* Legend */
#viz p.legend {
	font-family: 'epocapro', 'sans-serif';
	font-weight: normal!important;
	font-style: italic!important;
	font-size: 1rem!important;
	line-height: 1.4;
	padding: 0;
	margin: 0 0 10px 0;
}
.legend .label {
	position: relative;
	top: -2px;
	margin-right:  1px;
	font-style: normal;
	font-weight: 500;
}
.legend img {
	max-height: 1.6rem;
	vertical-align: bottom;
	padding: 0!important;
	display: inline!important;
}
@media (min-width: 550px) {
	#viz p.legend { padding: 0 10px; }
}




/* Maps */
#viz .map img{
  padding: 0;
}

#viz .map .leaflet-bar, .leaflet-control-layers {
	border:  none!important;
}

#viz .map .leaflet-control-attribution {
	font-family: 'epocapro', 'sans-serif';
	font-weight: 500;
	color: #000;
	font-style: italic;
}

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

#viz .map .leaflet-container {
	background-color: white;
	margin: 0;
	padding: 0;
}

#viz .map .popup {
	font-family: 'epocapro', 'sans-serif';
	font-weight: normal!important;
	font-style: normal;
	font-size: 1.3rem;
	
	position: relative;
	padding-bottom: 5px;
}

#viz .map .leaflet-popup-pane {
	background-color: white;
	margin: 0;
	padding: 0;
}

#viz .map .leaflet-popup-content-wrapper {
	background-color: white;
	margin: 0;
	border-radius: 0!important;
	border: 5px solid white;
}

#viz .map .leaflet-popup-content {
	background-color: white;
	margin: 0;
	padding: 5px!important;
	max-width: 270px;
}

@media (min-width: 550px) {
	#viz .map .leaflet-popup-content {
		max-width: 320px;
	}
}



/* #main-map */
#viz #main-map {
	height: 510px;
}
@media (min-width: 500px) {
	#viz #main-map { height:640px; }
}
@media (min-width: 750px) {
	#viz #main-map { height: 670px; }
}
@media (min-width: 1000px) {
	#viz #main-map { height: 720px; }
}

/* #main-map popup */
#viz #main-map .popup .ou-et-quand {
	font-family: 'DharmaGothicE', 'sans-serif';
	font-style: normal;
	text-align: center;
	background-color: #000;
	color: #FFF;
	padding: 10px 5px;
	margin-top: 7px;
}
#viz #main-map .popup .ou-et-quand .municipalite {
	font-size: 2.2rem;
	font-weight: 600;
	line-height: 1!important;
	margin-bottom: 5px;
}
#viz #main-map .popup .ou-et-quand .datetime {
	font-size: 1.4rem;
	font-weight: 500;
}

#viz #main-map .popup .info {
	max-height: 250px;
	overflow: auto;
}

@media (min-width: 550px) {
	#viz #main-map .popup .info {
		max-height: 320px;
	}
}

#viz #main-map .popup .info .temoin {
	font-family: 'epocapro', 'sans-serif';
	font-style: italic;
	line-height: 1.25;
	font-size: 0.75rem;
	font-weight: 500;
	color: #000;
	padding: 5px;
	margin: 0;
	margin-bottom: 5px;
}

#viz #main-map .popup .info table {
	font-family: 'epocapro', 'sans-serif';
	font-style: normal;
	width: 100%;
	border-collapse: separate!important;
	border-spacing: 1px;
}

#viz #main-map .popup .info table th, .popup .info table td {
	font-weight: 500;
	font-size: 0.8rem;
	line-height: 1.2;
}

#viz #main-map .popup .info table th {
	font-family: 'DharmaGothicE', 'sans-serif';
	font-style: normal;
	font-weight: 600;
	font-size:  1rem;

	text-align: center;
	letter-spacing: 1px;

	background-color: #000;
	color: #FFF;
	
	text-align: center;
	text-transform: uppercase;
	padding: 3px 0;
	width: 50%;
}

#viz #main-map .popup .info table td {
	vertical-align: top;
	padding: 3px;
	text-align: center;
}

#viz #main-map .popup .info table:not(:first-child) {
	margin-bottom: 10px;
}

#viz #main-map .popup .info p.description {
	font-family: 'Droid Serif', 'serif';
	font-weight: 500!important;
	font-size: 1rem;
	line-height: 1.3;
	color: #000;
	padding: 5px 10px;
	background-color: #EEE;
}



/* Media Queries
–––––––––––––––––––––––––––––––––––––––––––––––––– */
/*
Note: The best way to structure the use of media queries is to create the queries 
near the relevant code. For example, if you wanted to change the styles for buttons
on small devices, paste the mobile query code up in the buttons section and style it 
there. 
*/
/* Larger than mobile */
@media (min-width: 400px) {}

/* Larger than phablet (also point when grid becomes active) */
@media (min-width: 550px) {}

/* Larger than tablet */
@media (min-width: 750px) {}

/* Larger than desktop */
@media (min-width: 1000px) {}

/* Larger than Desktop HD */
@media (min-width: 1200px) {}

