/* General */

html {
	margin-top: 0;
}

@font-face {
	font-family: hattonFonts;
	src: url(../fonts/hatton-font-family/PP\ Hatton\ Medium\ 500.otf);
}

@font-face {
	font-family: neueMontrealFonts;
	src: url(../fonts/neue-montreal-font-family/NeueMontreal-Light.otf);
}

@font-face {
	font-family: ppneuemontrealMedium;
	src: url(../fonts/pp-neue-montreal-cufonfonts/ppneuemontreal-medium.otf);
}

@font-face {
	font-family: avenirFonts;
	src: url(../fonts/avenir-font/AvenirLTStd-Light.otf);
}

@font-face {
	font-family: ppneuemontrealThin;
	src: url(../fonts/pp-neue-montreal-cufonfonts/ppneuemontreal-thin.otf);
}

.avenirFonts {
	font-family: avenirFonts;
}

.hattonFonts {
	font-family: hattonFonts;
	letter-spacing: 1px;
}

.neueMontrealFonts {
	font-family: neueMontrealFonts;
	letter-spacing: 1px;
	font-weight: 500;
}

.ppneuemontrealThin {
	font-family: ppneuemontrealThin;
	font-weight: 400;
	letter-spacing: 1px;
}

.ppneuemontrealMedium {
	font-family: ppneuemontrealMedium;
	letter-spacing: 0.5px;
	font-weight: 500;
}

/* AQI Popup */
.gauge {
	display: inline-block;
}

.gauge > div[role=meter] {
	border-radius: 8rem 8rem 0 0;
	border: 1px solid black;
	width: 16rem;
	height: 8rem;
	background-color: black;
	position: relative;
	overflow: hidden;
	background: conic-gradient(from 0deg at 50% 100%,
		red 30deg, #8f3f97 30deg 60deg,
		#7e0023 60deg 91deg, transparent 91deg 269deg,
		#00e400 269deg 300deg, #ffff00 300deg 330deg,
		#ff7e00 330deg 360deg);
}

.gauge > label {
	font-size: 14px;
	text-align: center;
	background-color: #3a442b;
	padding: .2rem 0;
	display: block;
	color: #ece7dc;
}

.dial {
	background-color: #00ff00;
	transition: background-color 1s, color .25s;
	border-radius: 10rem 10rem 0 0;
	width: 70%;
	height: 70%;
	display: flex;
	flex-direction: column;
	align-content: center;
	justify-content: center;
	position: absolute;
	bottom: 0;
	left: 15%;
	z-index: 2;
	overflow: hidden;
	box-shadow: 0px 0px 0px 1rem #000;
	border-bottom: none;
	box-sizing: border-box;
	color: #000;
}

.dial.white {
	color: #fff;
}

.dial > span {
	text-align: center;
	font-family: sans-serif;
}

.dial > .arrow {
	position: absolute;
	left: calc(50% - .25rem);
	bottom: 0;
	width: .5rem;
	height: calc(100% + 1px);
	background-color: transparent;
	transform-origin: bottom center;
	transform: rotate(-90deg);
	transition: transform 1s;
}

.dial > .arrow:after {
	content: "";
	border-left: .5rem solid transparent;
	border-right: .5rem solid transparent;
	border-top: .5rem solid #000;
	position: absolute;
	left: calc(50% - .5rem);
	top: 0;
	width: 0;
	height: 0;
	transition: border-color .25s;
}

.dial.white > .arrow:after {
	border-top-color: #fff;
}

.aqi-num {
	font-weight: bold;
	font-size: 120%;
	margin-top: 1.25rem;
}

@media (forced-colors: active) {
	.dial {
		border: 2px solid black;
		border-bottom: none;
	}

	.gauge > div[role=meter] {
		border-width: 2px;
		border-bottom: none;
	}

	.gauge > label {
		border: 2px solid black;
	}
}
