/* RESET */

html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-size: 100%;
	vertical-align: baseline;
	background: transparent;
}
body {
	line-height: 1;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
	display: block;
}
nav ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after {
	content: '';
	content: none;
}
a {
	margin: 0;
	padding: 0;
	font-size: 100%;
	vertical-align: baseline;
	background: transparent;
}
ins {
	background-color: #ff9;
	color: #000;
	text-decoration: none;
}
mark {
	background-color: #ff9;
	color: #000;
	font-style: italic;
	font-weight: bold;
}
del {
	text-decoration: line-through;
}
abbr[title], dfn[title] {
	border-bottom: 1px dotted;
	cursor: help;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
hr {
	display: block;
	height: 1px;
	border: 0;
	border-top: 1px solid #cccccc;
	margin: 1em 0;
	padding: 0;
}
input, select {
	vertical-align: middle;
}

/* GLOBAL */

:focus {
	outline: none;
}
::-moz-focus-inner {
	border: 0;
}
strong {
	font-weight: bold;
}
.cssfader {
	-webkit-transition: all .15s ease-in-out;
	-moz-transition: all .15s ease-in-out;
	-ms-transition: all .15s ease-in-out;
	-o-transition: all .15s ease-in-out;
	transition: all .15s ease-in-out;
}
a, a:active, a:focus, a:hover, a:visited {
	text-decoration: none;
}
.clear-both {
	clear: both;
	height: 65px;
}

/* TYPOGRAPHY */

body {
	background: #f4ecd8;
	background-image:
		radial-gradient(ellipse at 20% 10%, rgba(212, 165, 116, .08) 0%, rgba(212, 165, 116, 0) 55%),
		radial-gradient(ellipse at 80% 90%, rgba(27, 40, 64, .06) 0%, rgba(27, 40, 64, 0) 60%);
	color: #1b2840;
	font-size: 60px;
	font-family: 'Frank Ruhl Libre', Georgia, serif;
}

/* CLOCK */

.hebtime {
	position: relative;
	display: block;
	background-color: #1b2840;
	background-image:
		linear-gradient(160deg, rgba(244, 236, 216, .04) 0%, rgba(244, 236, 216, 0) 35%),
		linear-gradient(330deg, rgba(212, 165, 116, .07) 0%, rgba(212, 165, 116, 0) 45%),
		linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, .18) 100%);
	margin: auto;
	color: #f4ecd8;
	border: 1px solid rgba(244, 236, 216, .12);
	box-shadow:
		0 24px 60px rgba(27, 40, 64, .28),
		0 2px 6px rgba(27, 40, 64, .12),
		inset 0 0 0 1px rgba(244, 236, 216, .04),
		inset 0 -10px 36px rgba(0, 0, 0, .22);
}
.hebtime .clockrow {
	display: block;
	height: calc(100%/12);
}
.hebtime .clockrow span {
	font-family: 'Frank Ruhl Libre', Georgia, serif;
	font-weight: 700;
	opacity: .16;
	width: calc(100%/12);
	float: right;
	overflow: hidden;
	display: block;
	text-align: center;
	font-size: .72em;
	color: #e8dec3;
	-webkit-transition: opacity 1s ease-in-out, color 1s ease-in-out, text-shadow 1s ease-in-out;
	-moz-transition: opacity 1s ease-in-out, color 1s ease-in-out, text-shadow 1s ease-in-out;
	-ms-transition: opacity 1s ease-in-out, color 1s ease-in-out, text-shadow 1s ease-in-out;
	-o-transition: opacity 1s ease-in-out, color 1s ease-in-out, text-shadow 1s ease-in-out;
	transition: opacity 1s ease-in-out, color 1s ease-in-out, text-shadow 1s ease-in-out;
	cursor: default;
}
.hebtime .clockrow div.active span {
	color: #faf3df;
	opacity: 1;
	font-weight: 900;
	text-shadow:
		0 0 12px rgba(244, 236, 216, .28),
		0 0 2px rgba(244, 236, 216, .4);
}
.hebtime .htb.shown span {
	color: #d4a574;
	opacity: 1;
	text-shadow: 0 0 10px rgba(212, 165, 116, .42);
}

/* ABOUT POPUP */

.hebtime .about-popup {
	color: #f4ecd8;
	display: none;
	text-align: left;
	direction: ltr;
	background-color: rgba(15, 22, 38, .95);
	position: absolute;
	top: 5%;
	right: 5%;
	bottom: 5%;
	left: 5%;
	padding: 10%;
	border: 1px solid rgba(212, 165, 116, .18);
	border-radius: 4%;
	box-shadow: inset 0 0 0 1px rgba(244, 236, 216, .04);
	font-size: .75em;
	font-family: 'Shadows Into Light', cursive;
}
.hebtime .about-popup h1 {
	margin-bottom: 15%;
	font-size: 1.25em;
	color: #d4a574;
}
.hebtime .about-popup a {
	color: #f4ecd8;
}
.hebtime .about-popup a:hover {
	font-size: 1.3em;
	text-shadow: 0 0 4px rgba(212, 165, 116, .6);
}
.hebtime .about-popup .fb-like {
	position: absolute;
	bottom: 5%;
	left: 11%;
	transform: scale(1em,1em);
}
.hebtime .about-popup .about-close {
	position: absolute;
	cursor: pointer;
	right: 5%;
	bottom: 5%;
	color: #d4a574;
}
.hebtime .about-popup .about-close:hover {
	text-transform: uppercase;
}

/* FOOTER */

footer {
	font-family: 'Shadows Into Light', cursive;
	margin-top: .4em;
	text-align: center;
	font-size: .4em;
}
footer nav span {
	cursor: pointer;
	color: #1b2840;
}
footer nav span:hover {
	color: #a07845;
	text-shadow: 0 0 4px rgba(160, 120, 69, .35);
}

footer nav .sep {
	cursor: default;
}
footer nav .sep:hover {
	text-shadow: none;
}

/* MOBILE (<=640px) */

@media (max-width: 640px) {
	body {
		margin-top: 0 !important;
		font-size: 7.5vw !important;
	}
	.hebtime {
		width: 100vw !important;
		height: 100vw !important;
		padding: 5vw !important;
		box-sizing: border-box !important;
	}
	.hebtime .about-popup {
		padding: 6%;
		font-size: .6em;
		line-height: 1.4;
		overflow-y: auto;
	}
	.hebtime .about-popup h1 {
		margin-bottom: 10%;
		font-size: 1.2em;
	}
	.hebtime .about-popup .about-close {
		right: 6%;
		bottom: 4%;
	}
	footer {
		margin-top: 1em;
		font-size: .5em;
	}
	footer nav {
		display: flex;
		flex-direction: column;
		gap: .5em;
		line-height: 1.2;
	}
	footer nav .sep {
		display: none;
	}
	footer nav > span,
	footer nav > a {
		display: block;
		font-size: 2em;
		padding: .35em 0;
	}
	footer nav > a .soon {
		font-size: 1em;
	}
}
