@import url('https://fonts.googleapis.com/css?family=Libre+Franklin: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;
	border-bottom: 1px solid #000;
	padding-bottom: 2px;
}

a:visited {
	color: #000;
}

input {
	width: 95%;
}

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

.wrapper {
	max-width: 700px;
}


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

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

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


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

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

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

.map__link {
	color: #018571;
	border-bottom: 1px solid #018571;
}

.map__link:visited {
	color: #018571;
}

/* 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: #ca283b; }
.is-yellow { color: #cb8429; }

.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: 30% 30%;*/
	grid-template-columns: 20% 30% 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: 16px;
	height: 16px;
	margin-right: 8px;
	position: relative;
	/*opacity: 0.7;*/
	/*border: 1px solid #000;*/
}

.legend__triangle,
.triangle {
	width: 8px;
	height: 8px;
	/*background: #d95f0e;*/
	background: #dfc27d;
	background: #FF851B;
	/*background: #a6611a;*/
	position: absolute;
	width: 0;
	height: 0;
	border-top: 16px solid #dfc27d;
	border-top: 16px solid #FF851B;
	border-right: 16px solid #edf8fb;
}

.months {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-column-gap: 0;
	grid-row-gap: 24px;
	margin-top: 24px;
	margin-bottom: 24px;
	justify-items: start;
	align-items: end;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-row-gap: 4px;
    grid-column-gap: 4px;
    align-self: end;
}

.month__text {
	margin: 0;
	margin-top: 8px;
	font-family: var(--font-primary);
	font-size: 12px;
}

.day {
	background: #edf8fb;
	width: 16px;
	height: 16px;
	position: relative;
}

.blank {
	background: #fff;
	width: 16px;
	height: 16px;
	position: relative;
}

/*.square-1,
.square-2,
.square-3 {
	width: 16px;
	height: 16px;
}
*/
.square-1 { background: #80cdc1; }
.square-2 { background: #018571; }
.square-3 { background: #80cdc1; }

.square-1 > .triangle {
	border-right: 16px solid #80cdc1;
}

.square-2 > .triangle {
	border-right: 16px solid #018571;
}


.legend__value {
	margin: 0;
	font-size: 14px;
	font-family: var(--font-primary);
}
*/
@media (max-width: 700px) {
	#mapid {
		width: 100%;
	}
}

@media (max-width: 640px) {
	.months {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
	}

	.map__legend {
		/*display: grid;*/
		grid-template-columns: 1fr;
	}

	.square-1 > .triangle {
		border-right: 14px solid #80cdc1;
	}

	.square-2 > .triangle {
		border-right: 14px solid #018571;
	}

	.legend__square {
		width: 14px;
		height: 14px;
	}

	.blank {
		width: 14px;
		height: 14px;
	}

	.legend__triangle,
	.triangle {
		border-top: 14px solid #dfc27d;
		border-top: 14px solid #FF851B;
		border-right: 14px solid #edf8fb;
	}

	.day {
		width: 14px;
		height: 14px;
	}
}

@media (max-width: 480px) {
	.months {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
	}

	.square-1 > .triangle {
		border-right: 12px solid #80cdc1;
	}

	.square-2 > .triangle {
		border-right: 12px solid #018571;
	}

	.legend__square {
		width: 12px;
		height: 12px;
	}

	.blank {
		width: 12px;
		height: 12px;
	}

	.legend__triangle,
	.triangle {
		border-top: 12px solid #dfc27d;
		border-top: 12px solid #FF851B;
		border-right: 12px solid #edf8fb;
	}

	.day {
		width: 12px;
		height: 12px;
	}
}