@import url('https://fonts.googleapis.com/css?family=Libre+Franklin:400,700|Montserrat:400,700');

:root {

	/* Colors */
	--color-primary: #c62828;
	/*#aaa;*/
	/*#4a4a4a;*/


	/* Fonts */
	--font-primary: "Libre Franklin", sans-serif;
	--font-secondary: 'Lato', sans-serif;
	--font-teritary: 'Montserrat', sans-serif;

	--letter-spacing: 0.5px;
	--border-radius: 3px;
}


body {
	margin: 0;
}

a {
	color: var(--color-primary);
	text-decoration: none;
}

input {
	width: 95%;
}

/*-------------
GRID
--------------- */

.wrapper {
	/*max-width: 700px;*/
	width: 100%;
	position: relative;
}


/*-------------
MAP
--------------- */

/* Needed for the map to appear */
#mapid { 
	height: 700px;
	/*width: 700px;*/
}

.map__info {
	margin: 0 auto;
	padding: 24px;
}


.map__headline,
.map__date,
.map__subheadline,
.map__source {
	font-family: var(--font-primary);
}

.map__headline {
	margin: 0;
	font-weight: 700;
	color: #4a4a4a;
	/*margin-top: 24px;*/
}

.map__date {
	margin-top: 4px;	
}

.map__subheadline,
.map__date,
.map__source {
	font-size: 14px;
}

.map__source {
	font-style: italic;
	padding-bottom: 24px;
	border-bottom: 1px solid #ddd;
}

/* Displays information when a polygon is clicked */
.map__sentence {
	font-family: var(--font-primary);
	font-size: 18px;
	margin-top: 0;
	/*margin-top: 32px;*/
	/*margin-bottom: 32px;*/
}

.map__sentence span {
	font-weight: 700;
}

.prompt {
	font-family: var(--font-primary);
	/*font-weight: 700;*/
	color: #4a4a4a;
	margin-top: 32px;
	/*margin-bottom: 8px;*/
}


/* This paragraph is hidden by default */
/*.map__sentence.is-hidden {
	display: none;
}
*/
/*-------------
OTHER
--------------- */
/*???*/
.info {
	background: white;
	font-family: var(--font-secondary);
	font-size: 14px;
	line-height: 1.8;
	border-radius: var(--border-radius);
	color: black;
	border: 2px solid black;
	max-width: 250px;
}


/*-------------
LEGEND
--------------- */

/* Legend title */
h4 {
	margin-top: 8px;
}

.legend {
	padding: 16px;
}

.map__legend {
	/*border: 1px solid blue;*/
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-column-gap: 16px;
	grid-row-gap: 16px;
	margin-bottom: 24px;

}

.legend__group {
	/*border: 1px solid red;*/
/*	display: flex;
	align-items: center;*/

	display: grid;
	grid-template-columns: 30px 1fr;
	align-content: center;
	align-items: center;
}

.legend__square {
	background: #aaa;
	width: 15px;
	height: 15px;
	margin-right: 8px;
	opacity: 0.8;
	border: 1px solid #000;
}


/* Specific to lead poisoning map */
.square-0 { background: rgba(222,238,248,0.9); }
.square-1 { background: rgba(153,216,206,0.9); }
.square-2 { background: rgba(63,173,118,0.9); }
.square-3 { background: rgba(0,109,44,0.9); }


.legend__value {
	margin: 0;
	font-size: 14px;
	font-family: var(--font-primary);
}

/* The tiny squares in the legend */
.legend i {
	width: 18px;
	height: 18px;
	border: 1px solid black;
	margin-right: 10px;
	float: left;
}

/* Legend attribution */
.source {
	margin-top: 8px;
	font-style: italic;
	line-height: 1.4;
}

@media (max-width: 700px) {
	#mapid {
		width: 100%;
	}
}