@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;
}


/*-------------
MAP
--------------- */

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	box-shadow: none;
	font-family: var(--font-primary);
	color: grey;
	border-radius: 0;
}

.leaflet-popup-content-wrapper {
	background: grey;
	color: #fff;
	/*text-align: center;*/
	font-size: 11px;
	/*padding: 0;*/
	margin: 0;
}

.leaflet-popup-tip {
	display: none;
}


.leaflet-container a.leaflet-popup-close-button {
	display: none;
}

/*.map {
	position: relative;
	height: 700px;
	width: 700px;
}*/

/* Needed for the map to appear */
#mapid { 
	height: 700px;
	width: 700px; 
}

/*.test {
	position: absolute;
	top: 25%;
	left: 0;
	z-index: 999;
	border: 1px solid red;
}
*/

.map__info {
	margin: 0 auto;
	padding: 24px;
}

.map__credit {
	font-family: var(--font-primary);
	color: grey;
	font-size: 12px;
}

.map__headline,
.map__subheadline {
	font-family: var(--font-primary);
}

.map__headline {
	margin: 0;
	font-weight: 700;
	color: #4a4a4a;
	/*margin-top: 24px;*/
}

.map__subheadline {
	font-size: 14px;
	margin-top: 4px;
	padding-bottom: 24px;
	border-bottom: 1px solid #ddd;
}

.map__subheadline span {
	font-style: italic;
}

/* 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;
}

.is-red { color: #ca0020; }
.is-pink { color: #f4a582; }

.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(3, 1fr);
	grid-column-gap: 16px;
	grid-row-gap: 16px;
	margin-bottom: 24px;

}

.legend__group {
	/*border: 1px solid red;*/
	display: flex;
	align-items: center;
}

.legend__square {
	background: #aaa;
	width: 15px;
	height: 15px;
	margin-right: 8px;
	opacity: 0.7;

	/*border: 1px solid #000;*/
}

.legend__line {
	height: 4px;
	width: 25px;
	margin-right: 8px;
	transform: rotate(-45deg);
}

.legend__image {
	height: 35px;
	margin-right: 8px;
}

.line-1 { background: #0571b0; }
.line-2 { background: #7b3294; }

/* Specific to this map */
.square-1 { background: #ca0020; }
.square-2 { background: #f4a582; }
.square-3 { background: grey; }
/*.square-4 { background: #797979; }*/
/*.square-5 { background: #3182bd; }
.square-6 { background: #08519c; }*/

.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;
}

.popup__title span {
	font-weight: 700;
}

@media (max-width: 700px) {
	#mapid {
		width: 100%;
	}
}