* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	border: 0;
}
*:focus {
	outline: none;
}
html {
	background-color: #fff;
}
body {
	font-family: 'Open Sans', sans-serif;
	font-size: 12px;
	color: #424242;
}
html, body {
	height: 100%;
	overflow: hidden;
}
a {
	color: #d32f2f;
	text-decoration: underline;
}
a:hover {
	color: #424242;
}
#container {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 1fr auto 1fr;
	gap: 0;
	grid-template-areas: 'header' 'content' 'footer';
	width: 100vw;
	height: 100vh;
}
#header {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-rows: 1fr;
	gap: 0;
	grid-template-areas: 'header-left header-right';
	grid-area: header;
}
#header-left {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 1fr auto;
	gap: 0;
	grid-template-areas: 'header-left-top' 'header-left-bottom';
	grid-area: header-left;
}
#header-left-top {
	display: flex;
	justify-content: start;
	align-items: start;
	grid-area: header-left-top;
}
#header-left-top h1 {
	display: none;
}
#header-left-top p {
	font-size: 0;
	letter-spacing: 0;
	word-spacing: 0;
	grid-area: header-left-top;
	margin-left: 20px;
}
#header-left-top p a {
	font-size: clamp(1rem, 1.5vw, 2.5rem);
	font-weight: 800;
	color: #fff;
	text-decoration: none;
	line-height: 1.5;
	display: inline-block;
	background-color: #d32f2f;
	padding: 20px 10px;
	white-space: nowrap;
}
#header-left-top p a:hover {
	background-color: #424242;
}
#header-left-bottom {
	display: flex;
	justify-content: start;
	align-items: end;
	grid-area: header-left-bottom;
}
#header-left-bottom p {
	font-size: 0;
	letter-spacing: 0;
	word-spacing: 0;
	text-align: left;
	margin-left: 30px;
}
#header-left-bottom p span {
	line-height: 1.5;
	white-space: nowrap;
}
#header-left-bottom p #time-result {
	font-size: clamp(1.2rem, 3vw, 4rem);
	font-weight: 800;
	color: #d32f2f;
}
#header-left-bottom p #time-stats {
	font-size: clamp(1rem, 1.5vw, 2.5rem);
}
#header-left-bottom p #location {
	font-size: clamp(1rem, 1.5vw, 2.5rem);
}
#header-left-bottom p #sync-box {
	margin-left: 5px;
}
#header-left-bottom p #geo-status span {
	font-size: clamp(1rem, 1.5vw, 2.5rem);
	color: #fafafa;
}
#header-left-bottom p #sync-box span {
	font-size: clamp(1rem, 1.5vw, 2.5rem);
	color: #fafafa;
}
#header-left-bottom p .gps-status-active span {
	color: #d32f2f !important;
}
#header-left-bottom p .sync-box-ok span {
	color: #d32f2f !important;
}
#header-right {
	display: flex;
	justify-content: end;
	align-items: start;
	grid-area: header-right;
}
#weather {
	display: grid;
	grid-template-columns: auto auto;
	grid-template-rows: 1fr;
	gap: 0;
	grid-template-areas: 'weather-left weather-right';
	background-color: #fafafa;
	padding: 10px;
	margin: 10px 20px 0 0;
}
#weather-left {
	display: flex;
	justify-content: center;
	align-items: start;
	grid-area: weather-left;
	margin-right: 10px;
}
#weather-left span {
	font-size: clamp(1.2rem, 3vw, 4rem);
	font-weight: 800;
	line-height: 1.5;
}
#weather-right {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: auto auto auto auto;
	gap: 0;
	grid-template-areas: 'temp-day' 'temp-night' 'temp-state' 'temp-wind';	
	grid-area: weather-right;
}
#weather-right span {
	font-size: clamp(0.875rem, 1vw, 1.5rem);
	line-height: 1.5;
	white-space: nowrap;
}
#weather-right span em {
	font-size: clamp(0.875rem, 1vw, 1.5rem);
	font-weight: normal;
	font-style: normal;
}
#temp-day {
	font-size: clamp(1.2rem, 3vw, 4rem) !important;
	font-weight: 800;
	color: #d32f2f;
	grid-area: temp-day;
}
#temp-night {
	grid-area: temp-night;
}
#temp-state {
	color: #d32f2f;
	grid-area: temp-state;
}
#temp-wind {
	grid-area: temp-wind;
}
#content {
	display: flex;
	justify-content: center;
	align-items: center;
	grid-area: content;
}
#clock {
	font-size: clamp(1.8rem, 12vw, 20rem);
	font-weight: 800;
	line-height: 1;
	text-align: center;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	letter-spacing: 0.05em;
}
#footer {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: 1fr;
	gap: 0;
	grid-template-areas: 'footer-left footer-right';
	grid-area: footer;
}
#footer-left {
	display: flex;
	justify-content: start;
	align-items: end;
	grid-area: footer-left;
}
#footer-left p {
	font-size: clamp(0.875rem, 1vw, 1.5rem);
	line-height: 1.5;
	margin: 20px 30px;
}
#footer-right {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: auto 1fr;
	gap: 0;
	grid-template-areas: 'footer-right-top' 'footer-right-bottom';
	grid-area: footer-right;
}
#footer-right-top {
	display: flex;
	justify-content: end;
	align-items: start;
	grid-area: footer-right-top;
}
#footer-right-top p {
	text-align: right;
	margin-right: 30px;
}
#footer-right-top p span {
	line-height: 1.5;
	white-space: nowrap;
}
#footer-right-top p #date {
	font-size: clamp(1.2rem, 3vw, 4rem);
	font-weight: 800;
	color: #d32f2f;
}
#footer-right-top p #date br {
	display: none;
}
#footer-right-top p #holiday {
	font-size: clamp(1rem, 2vw, 2.5rem);
	font-weight: 800;
}
#footer-right-top p #sunrise {
	font-size: clamp(0.875rem, 1vw, 1.5rem);
}
#footer-right-top p #sunrise br {
	display: none;
}
#footer-right-bottom {
	display: flex;
	justify-content: end;
	align-items: end;
	grid-area: footer-right-bottom;
}
#footer-right-bottom ul {
	list-style: none outside none;
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 0;
	margin: 0 15px 5px 0;
}
#footer-right-bottom ul li {
	font-size: clamp(0.875rem, 1vw, 1.5rem);
	line-height: 1.5;
	padding: 10px;
	margin: 5px;
	background-color: #fafafa;
}
#footer-right-bottom ul li strong {
	font-weight: 800;
	color: #d32f2f;
	display: block;
	text-align: right;
	white-space: nowrap;
}
#footer-right-bottom ul li em {
	font-style: normal;
	display: block;
	text-align: right;
	white-space: nowrap;
}
@media screen and (max-width: 1200px) {
	#header {
		grid-template-columns: 1fr;
		grid-template-rows: 1fr 1fr;
		grid-template-areas: 'header-left' 'header-right';
	}
	#header-left-top {
		justify-content: center;
	}
	#header-left-top p {
		margin-left: 0;
	}
	#header-left-bottom {
		justify-content: center;
	}
	#header-left-bottom p {
		text-align: center;
		margin-left: 0;
	}
	#header-right {
		justify-content: center;
		align-items: center;
	}
	#weather {
		margin: 0;
	}
	#footer {
		grid-template-columns: 1fr;
		grid-template-rows: 1fr auto;
		grid-template-areas: 'footer-right' 'footer-left';
	}
	#footer-right-top {
		justify-content: center;
		align-items: start;
	}
	#footer-right-top p {
		text-align: center;
		margin-right: 0;
	}
	#footer-right-top p #date br {
		display: inline;
	}
	#footer-right-top p #sunrise br {
		display: inline;
	}
	#footer-right-bottom {
		justify-content: center;
		align-items: center;
	}
	#footer-right-bottom ul {
		grid-template-columns: repeat(4, 1fr);
		margin: 0;
	}
	#footer-right-bottom ul li {
		padding: 3px;
		margin: 1px;
	}
	#footer-left {
		justify-content: center;
		align-items: center;
	}
}