:root {
	--max: rgb( 208, 98, 2 );
	--min: rgb( 1, 101, 132 );
}

body {
    background: rgb( 5, 26, 36 );
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    line-height: 1.4;
	margin: 0;
	padding: 0;
	color: white;
}
div {
	max-width: 100%;
	box-sizing: border-box;
}

.container {
    max-width: 30em;
    margin: 0 auto;
	padding: 1em;
}

.results {
	display: none;
}

/* Span styles */

.smaller {
	font-size: 70%;
}
strong {
	font-weight: 600;
}

/* Success, warning and tip boxes */

.success,
.warning,
.tip {
	clear: both;
	display: block;
	padding: 0.4em 0.8em;
	margin: 1em auto;
	max-width: 960px;
	border: 2px solid transparent;
	border-radius: 0.3em;
	box-sizing: border-box;
}
.success {
	background: rgba( 0, 128, 0, 0.3 );
}
.warning {
	background: rgba( 255, 0, 0, 0.3 );
}
.tip {
	background: rgba( 255, 255, 255, 0.1 );
	font-size: 85%;
}

/* Links */

a {
	color: rgb( 71, 194, 249 );
	text-decoration: none;
	border-bottom: 1px solid rgba( 32, 115, 152, 0.2 );
	transition: all 500ms;
}
a:visited {
	color: rgb( 36, 153, 206 );
}
a:hover {
	color: rgb( 32, 115, 152 );
	text-decoration: none;
	border-bottom: 1px solid rgba( 32, 115, 152, 1 );
	transition: all 200ms;
}

/* Buttons */

button {
	border: 2px solid rgba( 255, 255, 255, 0.2 );
	border-radius: 0.3em;
	background: rgba( 255, 255, 255, 0.05 );
	padding: 0.3em 0.8em;
	margin: 0.2em 0;
	font-family: inherit;
	font-size: inherit;
	box-sizing: border-box;
	color: rgba( 255, 255, 255, 0.6 );
	outline: none;
}
button:hover {
	cursor: pointer;
	border-color: rgba( 255, 255, 255, 0.7 );
	color: white;
}
button:focus,
button:active {
	border-color: white;
}
button:disabled {
	border-color: transparent;
}
button.with-tick::before {
	content: '\f00c';
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	color: green;
	margin-right: 0.4em;
}
.change-place {
	float: right;
	margin-left: 0.5em;
	position: relative;
	top: -0.4em;
}
.remember-place {
	margin-bottom: 1em;
}

/* Headings */

h1 {
	font-size: 1.9em;
	margin-top: 0;
	margin-bottom: 0.4em;
	line-height: 1.2;
	color: rgba( 255, 255, 255, 0.8 );
}
h2 {
	margin-bottom: 0.7em;
	line-height: 1.2;
	color: rgba( 255, 255, 255, 0.3 );
}

/* Paragraphs */

p {
	color: rgba( 255, 255, 255, 0.6 );
}
h2 + p {
	margin-top: -0.3em;
}

/* Lists */

ul {
	padding-left: 0.8em;
}
li {
	list-style-type: none;
}

/* Form items */

.search-form {
	display: none;
}
label {
	display: block;
	margin-bottom: 0.5em;
}
input[type="text"] {
	border: 2px solid rgba( 255, 255, 255, 0.2 );
	border-radius: 0.3em;
	background: rgba( 255, 255, 255, 0.1 );
	width: 100%;
	padding: 0.4em 0.8em;
	margin: 0.2em 0;
	font-family: inherit;
	font-size: inherit;
	box-sizing: border-box;
	color: white;
	outline: none;
}
input:focus {
	border-color: rgba( 255, 255, 255, 0.5 );
}
label.checkbox-label {
	border: 2px solid rgba( 255, 255, 255, 0.1 );
	border-radius: 0.3em;
	width: 100%;
	padding: 0.4em 0.8em;
	margin: 0.2em 0;
	box-sizing: border-box;
}
label.checkbox-label:hover {
	cursor: pointer;
	border-color: rgba( 255, 255, 255, 0.5 );
}

/* Months */

.prev-months {
	padding: 1em;
	text-align: center;
}

.prev-month {
	display: inline-block;
	vertical-align: top;
	width: 30em;
	max-width: 100%;
	margin: 2em 0;
}

/* Observation boxes */

.observation-boxes {
	display: flex;
	align-items: stretch;
	width: 100%;
	overflow: hidden;
}
.prev-month .observation-boxes {
	margin-bottom: 1em;
}
.observation-box {
	width: 48%;
	border: 3px solid rgba( 255, 255, 255, 0.2 );
	border-radius: 0.2em;
	padding: 8px;
	margin: 0 2%;
	text-align: center;
	font-size: 4vw;
	font-weight: 600;
}
.observation-box:first-child {
	margin-left: 0;
}
.observation-box:last-child {
	margin-right: 0;
}
.observation-box.max {
	background: var( --max );
}
.observation-box.min {
	background: var( --min );
}
.observation-box .obs-value {
	display: block;
	font-size: 10vw;
	font-weight: 600;
	line-height: 1.2;
	margin-top: 0;
}
.temp::after {
	content: '°C';
	opacity: 0.5;
	font-size: 50%;
	position: relative;
	top: -0.7em;
	left: 0.1em;
}
.obs-type {
	font-size: 30%;
	opacity: 0.5;
	margin-left: -1.5em;
}
.compare-words {
	display: inline-block;
	background: rgba( 255, 255, 255, 0.1 );
	padding: 0 0.2em 0.1em;
}
.observation-box .compare-words {
	background: rgba( 255, 255, 255, 0.25 );
}

/* Expanding boxes */

.expanding-box {
	position: relative;
}
.expanding-box::after {
	content: '\f078';
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	color: rgba( 255, 255, 255, 0.4 );
	position: absolute;
	right: 0.8em;
	top: 0.4em;
	transition: content 500ms;
}
.expanding-box.expanded::after {
	content: '\f077';
	transition: content 500ms;
}
.expanding-box:hover {
	cursor: pointer;
	border-color: rgba( 255, 255, 255, 0.2 );
}
.expanding-box .extra-bit {
	display: none;
	margin-top: 0.5em;
}

/* Notable days */

.notable-days {
	height: 2.3em;
	font-size: 110%;
	background: rgba( 255, 255, 255, 0.05 );
	padding: 0.4em 0.8em;
	margin-bottom: 1em;
	border-radius: 5px;
}

/* Charts */

.ct-chart {
	background: rgba( 255, 255, 255, 0.05 );
	border-radius: 0.2em;
}
.ct-chart .ct-grid {
	stroke: rgba( 255, 255, 255, 0.08 );
}
.ct-chart .ct-label {
	color: rgba( 255, 255, 255, 0.2 );
}
.ct-chart .ct-series-a path,
.ct-chart .ct-series-c path {
	stroke: var( --max );
}
.ct-chart .ct-series-b path,
.ct-chart .ct-series-d path {
	stroke: var( --min );
}
.ct-chart .ct-series-c path,
.ct-chart .ct-series-d path {
	opacity: 0.3;
}

/* Change location link */

.change-link {
	display: none;
}

/* Station details and Google map */

.station-details {
	display: none;
}
.google-map {
	width: 100%;
	height: auto;
	border: 2px solid white;
	border-radius: 0.3em;
	box-sizing: border-box;
	margin: 0;
}
.google-map + .tip {
	margin-top: 0;
}
.station-marker,
.you-marker {
	display: inline-block;
	font-weight: 600;
}
.station-marker::before,
.you-marker::before {
	content: '\f3c5';
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	margin-right: 0.2em;
}
.station-marker::before {
	color: rgb( 126, 172, 254 );
}
.you-marker::before {
	color: rgb( 137, 174, 0 );
}

/* Copyright text */

.copyright {
	font-size: 80%;
	opacity: 0.6;
	margin-bottom: 0;
}

/* Responsive */

@media screen and ( min-width: 600px ) {
	
	.observation-box {
		font-size: 130%;
	}
	.observation-box .obs-value {
		font-size: 300%;
	}
	
	.prev-month {
		margin-left: 3em;
		margin-right: 3em;
	}
	
}