@import url('https://fonts.googleapis.com/css?family=Libre+Franklin:400,700|Montserrat:400,700');

:root {

	/* Colors */
	--color-primary: #c62828;
	--color-gray: #4a4a4a;
	--color-reggray: #777;
	--color-medgray: #ccc;
	--color-lightgray: #e9e9e9;


	/* Fonts */
	--font-primary: 'Libre Franklin', sans-serif;
	--font-secondary: 'Lato', sans-serif;
	--font-tertiary: 'Montserrat', sans-serif;

	--letter-spacing: 0.5px;
	--border-radius: 3px;
}

html {
	padding: 0;
	margin: 0;
	font-size: 100%;
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	font-family: var(--font-primary);
}

*, *:before, *:after {
	box-sizing: inherit;
}

a {
	color: var(--color-primary);
	text-decoration: none;
}

.desktop-text { display: inline; }
.mobile-text { display: none; }

/*-------------
GRID
--------------- */

.wrapper {
	width: 100%;
	position: relative;
	margin: 0;
	padding: 0;
}


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

/* Needed for the map to appear */
#interactive-map { 
	height: 500px;
}

.map__info {
	margin: 0 auto;
}


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

.map__headline {
	font-size: 1.25rem;
	margin: 0;
	font-weight: 700;
	color: var(--color-gray);
}

.map__date {
	margin-top: 4px;	
}

.map__subheadline {
	font-size: 1rem;
}

.map__date,
.map__note,
.map__credit,
.map__source {
	font-size: 0.875rem;
}

.map__source {
	font-style: italic;
}

/* Displays information when a polygon is clicked */
.map__sentence {
	font-family: var(--font-primary);
	font-size: 1rem;
	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: var(--color-gray);
	margin: 4px 0px 8px 0px;
	/*margin-top: 32px;*/
	/*margin-bottom: 8px;*/
}


/*-------------
LEGEND (above map)
--------------- */

.map__legend {
	display: grid;
	grid-template-rows: repeat(2, 1fr);
/*	grid-column-gap: 16px;
	grid-row-gap: 16px;
	margin-bottom: 24px;
*/
}

.legend__row {
	display: grid;
	grid-template-columns: repeat(9, 1fr);
	margin-bottom: 0.5rem;
}

.party__label {
	grid-column: span 4;
	text-align: center;
	/* background-color: #dedede; */
	text-transform: uppercase;
	font-size: 14px;
	font-weight: 700;
	color: var(--color-gray);
	border-bottom: 1px solid black;
	padding-bottom: 0.25rem;
}

.legend__group {
	text-align: center;
	line-height: 1;
/*	display: grid;
	grid-template-columns: 26px 1fr;
	align-content: center;
	align-items: center;
*/}

.legend__square, .legend__value {
	display: inline-block;
	margin: 0px;
	padding: 0px;
	line-height: 14px;
	height: 14px;
	vertical-align: middle;
}


.legend__square {
	background: #aaa;
	width: 14px;
	height: 14px;
	margin-right: 6px;
	opacity: 0.8;
	border: 1px solid #000;
}


.square-0 { background: #1b7837; } /* Dk green */
.square-1 { background: #5aae61; } /* Md green */
.square-2 { background: #a6dba0; } /* Lt green */
.square-3 { background: #d9f0d3; } /* Lt green */
.square-4 { background: #ffffff; } /* white */
.square-5 { background: #e7d4e8; } /* Lt purp */
.square-6 { background: #c2a5cf; } /* Lt purp */
.square-7 { background: #9970ab; } /* Md purp */
.square-8 { background: #762a83; } /* Dk purp */


.legend__value {
	margin: 0;
	font-size: 14px;
}


/*-------------
OTHER
--------------- */

.info {
	background: white;
	font-family: var(--font-secondary);
	font-size: 1rem;
	line-height: 1.8;
	border-radius: var(--border-radius);
	color: black;
	border: 2px solid black;
	max-width: 275px;
}

.legend {
	padding: 16px;
	font-family: var(--font-primary);
}

.legend h3 {
	margin: 0px 0px 0.875rem 0px;
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-gray);
	text-transform: uppercase;
}

.legend ul {
	margin: 0px 0px;
	padding-left: 0px;
	list-style-type: none;
}
.legend ul li {
	margin-left: 0px;
	padding-left: 0px;
	font-size: 0.8rem;
}


.legend i {
	width: 0.8rem;
	height: 0.8rem;
	border: 1px solid black;
	margin-right: 10px;
	display: inline-block;
}

.popup {
	font-family: var(--font-primary);
	background: white;
	padding: 1rem;
}

.popup__county,
.popup__pct-wrapper {
	border-bottom: 1px solid black;
}

.popup__name {
	font-weight: 900;
	text-transform: uppercase;
	margin: 0px;
}

.popup__county {
	margin: 0px 0px 1rem 0px;
	padding-bottom: 0.5rem;
}

.popup__margin {
	margin: 0.25rem 0px 0px;
}

.popup {
	border: 2px solid #000;
	padding: 16px;
}


.popup table {
	border-collapse: collapse;
}

.popup table tr:nth-child(even) {
	background-color: #e9e9e9;
} 

.popup table tr td, 
.popup table tr th {
	text-align: left;
}
.popup table tr td.data, 
.popup table tr th.data {
	text-align: right;
	padding-left: 0.75rem;
}



.leaflet-interactive.no-pointer {
	cursor: default;
}

.text-labels {
	text-align: center;
	font-family: var(--font-primary);
	font-size: 14px;
	font-weight: 900;
	color: #666666;
}


i.fa-check-circle,
i.fa-times-circle {
	margin-right: 6px;
}

span {
	padding-bottom: 2px;
	font-weight: 700;
}

/* Large devices */
@media (max-width: 1200px) {
}

/* Large devices */
@media (max-width: 1024px) {
}

/* Medium devices */
@media (max-width: 768px) {
}

/* Medium devices */
@media (max-width: 640px) {
	.legend__group {
		text-align: center;

	}
	.legend__square, .legend__value {
		display: block;
		text-align: center;
		vertical-align: auto;
		margin: 0 auto;
	}
	.legend__square {
		margin-bottom: 4px;
	}
	.legend__value {
		font-size: 0.75rem;
	}

}

/* Medium devices */
@media (max-width: 600px) {
	.desktop-text {
		display: none;
	}
	.popup {
		display: none;
	}
}

/* Small devices */
@media (max-width: 450px) {
	/*#interactive-map { 
		height: 300px;
	}*/
}

/* Small devices */
@media (max-width: 320px) {
}