/* # Fonts */

@font-face {
	font-family: 'Roboto Slab';
	font-weight: 100;
	font-style: normal;
	font-display: swap;
	src: url('../fonts/robotoslab-thin-webfont.woff2') format('woff2'),
		 url('../fonts/robotoslab-thin-webfont.woff') format('woff');
}

@font-face {
	font-family: 'Roboto';
	font-weight: 100;
	font-style: normal;
	font-display: swap;
	src: url('../fonts/roboto-thin-webfont.woff2') format('woff2'),
		 url('../fonts/roboto-thin-webfont.woff') format('woff');
}

@font-face {
	font-family: 'Roboto';
	font-weight: 100;
	font-style: italic;
	font-display: swap;
	src: url('../fonts/roboto-thinitalic-webfont.woff2') format('woff2'),
		 url('../fonts/roboto-thinitalic-webfont.woff') format('woff');
}

@font-face {
	font-family: 'Roboto';
	font-weight: 300;
	font-style: normal;
	font-display: swap;
	src: url('../fonts/roboto-light-webfont.woff2') format('woff2'),
		 url('../fonts/roboto-light-webfont.woff') format('woff');

}

@font-face {
	font-family: 'Roboto';
	font-weight: 500;
	font-style: normal;
	font-display: swap;
	src: url('../fonts/roboto-medium-webfont.woff2') format('woff2'),
		 url('../fonts/roboto-medium-webfont.woff') format('woff');
}

@font-face {
	font-family: 'Roboto';
	font-weight: 700;
	font-style: normal;
	font-display: swap;
	src: url('../fonts/roboto-bold-webfont.woff2') format('woff2'),
		 url('../fonts/roboto-bold-webfont.woff') format('woff');
}

@font-face {
	font-family: 'Roboto Condensed';
	font-weight: 700;
	font-style: normal;
	font-display: swap;
	src: url('../fonts/robotocondensed-bold-webfont.woff2') format('woff2'),
		 url('../fonts/robotocondensed-bold-webfont.woff') format('woff');
}

@font-face {
	font-family: 'Roboto Condensed';
	font-weight: 300;
	font-style: italic;
	font-display: swap;
	src: url('../fonts/robotocondensed-lightitalic-webfont.woff2') format('woff2'),
		 url('../fonts/robotocondensed-lightitalic-webfont.woff') format('woff');
}

@font-face {
	font-family: 'Roboto Condensed';
	font-weight: 300;
	font-style: normal;
	font-display: swap;
	src: url('../fonts/robotocondensed-light-webfont.woff2') format('woff2'),
		 url('../fonts/robotocondensed-light-webfont.woff') format('woff');
}


/* # Basis, Misc */

:root {
	--font-main: 'Roboto', sans-serif;
	--font-condensed: 'Roboto Condensed', sans-serif;
}

* {
	box-sizing: border-box;
}

body {
	font: 100 100%/1.2 var(--font-main);
	font-weight: 300;
	margin: 0;
}

p {
	margin: 0 0 1em;
}

.thin {
	font-weight: 100;
}

.container {
	margin: 0 auto;
	max-width: 100%;/*960px;*/
	width: 100%;
	padding: 26px;
}

button {
	font: 1em/1 var(--font-main);
}

.no-select {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none;
}

/* # Info */

.meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 38px;
	font-size: 1em;
	opacity: 0;
	transition: opacity 0.25s ease-out;
}

.meta-row.show {
	opacity: 1;
}

.meta-desc p {
	margin: 0;
	font-family: 'Roboto Slab', sans-serif;
}

.round-btn {
	width: 23px;
	height: 23px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: #777;
	color: #fff;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
}

.info-btn {
	margin-right: -0.15em;
	padding-left: 1px;
}


/* # Main */

.day-of-week-group {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	position: relative;
}

h1.day-of-week {
	order: 2;
	font-family: var(--font-condensed);
	margin: 0;
	display: inline;
	font-size: 4.3em;
	line-height: 1;
	padding-bottom: 12px;
	border-bottom: 1px solid #000;
}

.time-of-day {
	order: 1;
	flex-basis: 100%;
	font-family: var(--font-condensed);
	font-weight: 300;
	font-size: 2.3em;
	line-height: 1;
	display: block;
	opacity: 0;
	margin-bottom: 4px;
}

.time-of-day.show {
	opacity: 1;
	vertical-align: baseline;
}

.date-group {
	font-size: 2.9em;
	font-family: var(--font-condensed);
	font-weight: 300;
	line-height: 1.2;
}

.year {
	display: block;
}

.date-comma {
	display: none;
}

@media (min-width: 414px) {
	h1.day-of-week {
		font-size: 4.5em;
	}
}

@media (min-width: 480px) {
	.container {
		max-width: 80%;
	}

	.time-of-day {
		font-family: var(--font-main);
		font-weight: 100;
	}

	.date-group {
		font-family: var(--font-main);
		font-weight: 100;
	}
}

@media (orientation: landscape) and (min-width: 736px) {
	.container {
		max-width: 90%;
	}
}

@media(min-width: 740px) {

	.meta-row {
		font-size: 16.66667px;
	}

	.day-of-week-group {
		display: inline-flex;
		align-items: flex-end;
		width: auto;
		border-bottom: 1px solid #000;
		padding-bottom: 12px;
		margin-bottom: 8px;
	}

	h1.day-of-week {
		order: 1;
		font-family: var(--font-main);
		border-bottom: 0;
		display: inline-block;
		font-size: 70px;
	}

	.time-of-day {
		order: 2;
		flex-basis: auto;
		display: inline-block;
		font-size: 38px;
		width: 0;
		padding: 0 0 12px 0;
		white-space: nowrap;
	}

	.time-of-day::before {
		content: '';
		display: inline-block;
		width: 12px;
	}

	.time-of-day.show {
		width: auto;
	}

	.date-group {
		font-size: 56px;
		margin-top: 0;
	}

	.year {
		display: inline;
	}

	.initialized .date-comma {
		display: inline;
	}

}


@media(min-width: 810px) {
	h1.day-of-week {
		font-size: 75px;
	}

	.time-of-day {
		font-size: 45px;
	}

	.date-group {
		font-size: 63px;
	}

	.time-of-day::before {
		width: 0.33333em;
	}
}

@media (min-width: 992px) {
	.container {
		max-width: 75%;
	}

	h1.day-of-week {
		font-size: 83px;
	}

	.time-of-day {
		font-size: 53px;
	}

	.date-group {
		font-size: 71px;
	}

}

@media (min-width: 1099px) {
	.container {
		max-width: 65%;
	}
}

/* Smaller size causes line break when day is Wednesday (longest) */
@media(min-width: 1190px) {
	.container {
		max-width: 60%;
	}
}


@media (min-width: 1600px) {
	.container {
		max-width: 50%;
	}

	h1.day-of-week {
		font-size: 92px;
		padding-bottom: 11px;
	}

	.time-of-day {
		font-size: 62px;
		padding-bottom: 14px;
	}

	.date-group {
		font-size: 80px;
		margin-top: -3px;
	}
}

@media (min-width: 1790px) {
	h1.day-of-week {
		font-size: 98px;
	}

	.time-of-day {
		font-size: 70px;
	}

	.date-group {
		font-size: 88px;
		margin-top: -4px;
	}
}

@media (min-width: 1980px) {

	h1.day-of-week {
		font-size: 111px;
		padding-bottom: 16px;
	}

	.time-of-day {
		font-size: 81px;
		padding-bottom: 16px;
	}

	.date-group {
		font-size: 99px;
		margin-top: -5px;
	}
}

/* # Modal */

.modal {
	position: fixed;
	top: 0;
	right: 101%;
	bottom: 0;
	left: -100%;
	z-index: 10;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	opacity: 0;
	/* transition: opacity 0.15s linear; */
}

.modal.expanded {
	right: 0;
	left: 0;
	opacity: 1;
}

.modal.expanded::after {
	content: '';
	display: block;
	position: absolute;
	height: 100vh;
	width: 100vw;
	background-color: rgba(15, 15, 15, 0.9);
	backdrop-filter: blur(12px);
}

.modal__container {
	position: relative;
	z-index: 1;
	width: 100%;
	height: auto;
	max-width: 460px;
	margin: 2vh 20px 0;
	color: #fff;
	background-color: #4b4b4b;
	border-radius: 11px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
	overflow: hidden;
	opacity: 0;
	transition: margin-top 0.25s ease-out;
}

.modal.expanded .modal__container {
	opacity: 1;
	margin: 5vh 20px 0;
}

.modal__content {
	margin: 9px;
	padding: 14px;
	color: #fff;
	text-align: center;
	letter-spacing: 0.66px;
}

.modal__content p {
	font-size: 16px;
	line-height: 1.45;
	font-weight: 300;
	margin-bottom: 1.5em;
}

.modal__content p:last-child {
	margin-bottom: 1em;
}

.modal__content h4 {
	margin: 0 0 16px;
	font-size: 22px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.7px;
}

.btn {
	padding: 16px 12px;
	border: 0;
	letter-spacing: 0.7px;
	cursor: pointer;
}

.btn-gray {
	background-color: #777;
	color: #fff;
	font-weight: bold;
	text-transform: uppercase;
	font-size: 16px;
}

.close-modal {
	height: 48px;
}

.btn-gray:hover {
	background-color: #7f7f7f;
}

.fill-width {
	width: 100%;
}
