* {
	box-sizing: border-box;
}

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

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
a,
p,
span,
em,
small,
strong,
sub,
sup,
mark,
del,
ins,
strike,
abbr,
dfn,
blockquote,
q,
cite,
code,
pre,
ol,
ul,
li,
dl,
dt,
dd,
div,
section,
article,
main,
aside,
nav,
header,
hgroup,
footer,
img,
figure,
figcaption,
address,
time,
audio,
video,
canvas,
iframe,
details,
summary,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
	margin: 0;
	padding: 0;
	border: 0;
}

:root {
	--module-gap: 2rem;
}

html {
	font-size: 62.5%;
	line-height: 1.15;
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* inter-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/inter-v18-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/inter-v18-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/inter-v18-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

body {
	font-size: 1.6rem;
	/* max-width: 768px; */
	color: #222222;
	margin: 0 auto;
	text-align: center;
	font-weight: normal;
	font-family: "Inter", sans-serif;
	padding: 0 2.5vw;
	transition: all 100ms linear;
}

body.dark-mode {
	background: #000;
	color: #fff;
}

* {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}

a,
a:visited {
	color: inherit;
}

code,
pre {
	font-family: "Inconsolata", Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
}

small {
	font-size: 80%;
}

p {
	margin-bottom: 1rem;
	padding: 3rem 2rem;
	text-align: center;
}

.padded {
	padding: 2rem;
}

.date-and-time {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 4.5rem;
	text-align: justify;
	font-weight: 300;
	text-align: initial;
	margin-bottom: 0;
	padding-bottom: 3rem;
}

.date,
.time {
	display: inline-block;
}

#time {
	float: right;
	font-variant-numeric: tabular-nums;
}

.modules {
	font-size: 0;
	display: flex;
	flex-wrap: wrap;
	gap: calc( var(--module-gap) / 2 ) var(--module-gap);
}

.module {
	padding-left: 0.25rem;
	padding-right: 0.25rem;
	text-align: center;
	flex: 1;
	font-size: 1.6rem;
}

.module.padded {
	padding-top: 2rem;
	padding-bottom: 0rem;
}

.module-outdoor {
	padding-left: 0;
	padding-right: 0;
	width: 100%;
	max-width: 100%;
	flex-basis: 100%;
}

.module__details--name {
	/* text-transform: uppercase; */
	letter-spacing: .03em;
	display: inline-block;
	font-size: 110%;
}

.module-outdoor .module__details--name {
	font-size: 140%;
}

.module-outdoor .module__details--timediff {
	display: inline-block;
	margin-left: 1rem;
}

.module__details--temp {
	font-size: 400%;
	position: relative;
	margin-bottom: .75rem;
}

.module__details--temp__integer {
	font-weight: 700;
}

.module__details--temp__decimal {
	font-size: 40%;
	opacity: .7;
	margin-left: .7rem;
}

.module-outdoor .module__details--temp__decimal {
	margin-left: 1.5rem;
}

.module-outdoor .module__details--temp {
	font-size: 1350%;
	line-height: 1;
	/* margin-top: -3%; */
}

.module-outdoor .module__details--temp-verycold {
	font-size: 1100%;
	line-height: 1.3;
}

.module__details--time,
.module__details--time+span {
	font-size: 80%;
	opacity: .7;
	letter-spacing: .02em;
}

.module-indoor {
	padding-left: 0.5rem;
	padding-right: 0.5rem;
}

.module-indoor .module__details--time,
.module-indoor .module__details--time+span {
	display: none;
}

.module-indoor .module__details--temp {
	margin-top: .75rem;
}

.module-outdoor .module__details {
	float: left;
	width: 50%;
	position: relative;
}

.module-outdoor .flot-chart {
	display: inline-block;
	width: 50%;
	height: 281px;
}

.module-indoor .module__details {
	margin-bottom: 1rem;
}

.module-indoor .flot-chart {
	height: 151px;
}

.module__details--co2 {
	display: inline-block;
	width: 11px;
	height: 11px;
	border-radius: 1em;
	margin: 0 .3em;
	vertical-align: baseline;
	background-color: currentColor;
	-webkit-box-shadow: 0px 0px 6px currentColor;
	box-shadow: 0px 0px 6px currentColor;
}

.module__details--humidity {
	display: inline-block;
	opacity: .7;
}

.co2-level-green {
	color: #1faf4e;
}

.co2-level-light-green {
	color: #98c93c;
}

.co2-level-yellow {
	color: #fbc412;
}

.co2-level-orange {
	color: #f39323;
}

.co2-level-red {
	color: #eb1d27
}

.update-timer {
	background-image: linear-gradient(to right, hsla(0, 0%, 60%, 0.2) 90%, transparent 90.001%, transparent 100%);
	background-size: 4.166666666666667%;
	margin-bottom: 2rem;
}

.update-timer__bar {
	background-color: rgb(200, 20, 30);
	display: block;
	width: 0;
	height: 2px;
	transition-property: width;
	transition-timing-function: linear;
	box-shadow: -3px 0 0 white inset;
	position: relative;
}

.dark-mode .update-timer__bar {
	box-shadow: -3px 0 0 black inset;
}

.update-timer__bar::after {
	content: '';
	position: absolute;
	right: 0;
	width: .5rem;
	height: .5rem;
	outline: solid 2px rgb(200, 20, 30);
	border-radius: 1rem;
	background-color: #fff;
	top: 0;
	transform: translateY(calc(-50% + 1px));
}

.dark-mode .update-timer__bar::after {
	background-color: #000;
}

.data-time {
	opacity: .4;
	letter-spacing: .02em;
	margin-bottom: 0;
}

form {
	text-align: center;
	display: inline-block;
}

button,
.button {
	-webkit-appearance: button;
	border: 0;
	padding: 1rem;
	border-radius: 1rem;
	font-family: "HelveticaNeue-Medium", sans-serif;
	text-transform: uppercase;
	letter-spacing: .02em;
	cursor: pointer;
	font-family: inherit;
	background-color: hsla(0, 0%, 60%, 0.2);
	font-size: 2rem;
	width: 5rem;
	height: 4rem;
	transition: background-color 100ms ease-in-out;
	color: #666;
	display: inline-block;
}

button:hover,
.button:hover {
	background-color: hsla(0, 0%, 20%, 0.2);
}

#actions button,
#actions .button {
	transform: translateY(-0.5rem);
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

#refresh.updating svg {
	animation-name: spin;
	animation-duration: 1s;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

.dark-mode button,
.dark-mode .button {
	color: #666;
}

.module__details--minmax {
	line-height: 2;
}

.minmax__measurement {
	margin: 0 1em -0.15em .25em;
}

svg[class*="icon-"] {
	vertical-align: baseline;
	height: 1em;
	width: 1em;
}

.module__details--minmax .icon-filled path {
	fill: rgb(200, 20, 30);
}

.icon-stroked>* {
	stroke: currentColor;
	stroke-width: 3;
	fill: none;
}

.module__details--minmax .icon-stroked,
.sunrise-sunset .icon-stroked {
	color: rgb(200, 20, 30);
}

.sunrise-sunset {
	position: relative;
	margin-top: -3rem;
	padding-bottom: 4rem;
}

.sunrise-sunset>* {
	position: absolute;
	transform: translateX(-50%);
	text-align: center;
}

.sunrise-sunset svg {
	margin-left: 0;
	margin-right: 0;
	margin-bottom: .25rem;
	background-color: #fff;
	box-shadow: -3px 0 0 white, 3px 0 0 white;
	transition: all 100ms linear;
}

.dark-mode .sunrise-sunset svg {
	background-color: #000;
	box-shadow: -3px 0 0 black, 3px 0 0 black;
}

.sunrise-sunset span {
	display: block;
	font-size: 80%;
	opacity: .7;
}

.sunrise-sunset .icon-stroked {
	width: 1.2em;
	height: 1.2em;
}

.forecast__data-point--hmdy {
	margin-top: 5px;
	width: 100%;
	height: 20px;
	border-collapse: collapse;
}

.forecast__data-point--hmdy-value {
	font-size: 80%;
	color: #0a95d7;
}

.forecast__data-point--hmdy-bar {
	width: 32%;
	margin-right: 1px;
	vertical-align: bottom;
	padding: 0 1px;
	position: relative;
}

.forecast__data-point--hmdy-bar > div {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
}

.forecast__data-point--hmdy-bar > .precipitation {
	background-color: #0a95d7;
}

.forecast__data-point--hmdy-bar > .precipitation--max {
	background-image: linear-gradient(-45deg, #0a95d7 20%, transparent 20%, transparent 50%, #0a95d7 50%, #0a95d7 70%, transparent 70%, transparent 100%);
	background-size: 5px 5px;
}

.forecast__data-point--hmdy-bar .forecast__data-point--hmdy-bar__null {
	height: 1px;
	background-color: hsla(0, 0%, 50%, 0.3);
}

.forecast__data-point--wind {
	display: block;
	font-size: 1.3rem;
	height: 2.2rem;
	width: 2.2rem;
	padding: .4rem;
	text-align: center;
	position: relative;
	margin-top: 1rem;
	margin-left: .55rem;
}

.forecast__data-point--wind:after {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	color: hsla(0, 0%, 60%, 0.2);
	border-top-right-radius: 2rem;
	border-top-left-radius: 2rem;
	border-bottom-left-radius: 2rem;
	border: 2px solid hsla(0, 0%, 50%, 0.4);
	transform: rotate(45deg);
	height: 2.2rem;
	width: 2.2rem;
	box-shadow: 1px 1px 0 hsla(0, 0%, 60%, 0.6);
}

.forecast__data-point--wind-value {
	display: block;
	color: hsla(0, 0%, 50%, 1);
}

#forecast {
	display: table;
	margin: 0 auto;
	padding-bottom: 0;
}

.forecast__data-point {
	display: table-cell;
	padding: 0.5rem 1px;
	vertical-align: bottom;
}

.weather-symbol {
	max-width: 100%;
	height: auto;
	padding: .5em 0;
	display: block;
}

.forecast__data-point--weekday,
.forecast__data-point--hour {
	display: block;
}

[data-precipitation-subtotal="0"] {
	opacity: 0;
}

.colored-bg {
	background-color: hsla(0, 0%, 60%, 0.1);
}

.colored-bg--start {
	border-top-left-radius: .5rem;
	border-bottom-left-radius: .5rem;
}

.colored-bg--end {
	border-top-right-radius: .25rem;
	border-bottom-right-radius: .25rem;
}

.forecast__data-point--weekday {
	text-transform: uppercase;
	margin-bottom: .5rem;
	font-size: 80%;
}

.forecast__data-point--hour {
	opacity: .7;
	font-size: 90%;
	margin-top: .25rem;
}

.forecast__data-point--celcius {
	opacity: .5;
}
