/* @import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400;1,700&display=swap'); */
@import url('https://fonts.googleapis.com/css?family=Libre+Baskerville');
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
	--color-highlight-bright: #6024f3;
	--bg-color-light: #EAEAF5;
	--bg-color-dark: #1C1F5A;
	--bg-color-semi-dark: #3D44C3;
	--fg-color-light: #f6f6f6;
	--fg-color-semi-light: #ccc;
	--fg-color-dark: #000;
	--subtle-border: 1px solid var(--bg-color-dark);
	--container-child-margin-hor: 40px;
	--header-height: 115px;
}

html {
	box-sizing: border-box;
	font-family: 'Open Sans', san-serif;
	font-size: 13pt;
	background-color: #fff;
	color: var(--fg-color-dark);
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-height); /* height of sticky header, for internal links to account for the sticky header */
}

body {
	margin: 0;
	padding: 0;
}

.body-container {
	margin: 0 auto;
	max-width: 1200px;
	/*padding: 0 var(--container-padding-hor);*/
	background-color: #fff;
	/* box-shadow: 12px 0 15px -4px rgba(60, 60, 60, 0.8), -12px 0 8px -4px rgba(60, 60, 60, 0.8); */
	flex-grow: 1;
	
	display: flex;
	flex-direction: column;
}

header,
header .body-container, 
footer,
footer .body-container {
	background-color: var(--bg-color-dark);
}

*, *:before, *:after {
	box-sizing: inherit;
}

.page-not-found {
	margin: auto;
}

header .body-container {
	display: flex;
	flex-direction: row;
}

body.under-construction .page-content {
	margin: auto;
	background: no-repeat center url("/images/under-construction-puck.png");
	filter: grayscale(100%) opacity(25%);
}

.page-not-found h1 {
	font-size: 50pt;
	font-style: normal;
}

.page-not-found .subtext {
	font-size: 20pt;
}

h1 {
	font-family: 'Open Sans';
	font-size: 30pt;
	font-weight: 400;
	color: #000;
	margin: 50px 0 30px;
	display: inline;
}

.title-subtext {
	display: inline;
}

header {
	margin: 0;
	background-color: var(--bg-color-dark);
	display: flex;
	flex-direction: row;
}

.header-main {
	background-color: var(--bg-color-dark);
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	width: 100%;
}

header img.gary {
	max-height: 150px;
	display: block;
}

header h1 {
	display: block;
	margin: 0 0 20px;
	padding: 0;
	font-family: "Libre Baskerville", Helvetica, serif;
	font-size: 28pt;
	color: #e1e1e1;
	padding: 0;
}

footer {
	width: 100%;
	margin-top: 20px;
	text-align: center;
	font-family: arial, helvetica, san-serif;
	font-size: 11pt;
	background-color: var(--bg-color-dark);
	color: var(--fg-color-semi-light);
	align-items: center;
}


#seasonSelector {
	display: inline-block;
}

body {
	margin: 0;
	padding: 0;
	height: 100vh;
}

.full-height-grow {
	display: flex;
	flex-direction: column;
}

.page-content {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

#back-to-top {
    position: fixed;
    bottom: 30px;
	right: 30px;
    z-index: 9999;
    text-align: center;
    line-height: 30px;
    color: #888;
    cursor: pointer;
    border: 0;
    border-radius: 2px;
    text-decoration: none;
    transition: opacity 0.2s ease-out;
    opacity: 0;
	font-size: 1.0rem;
}

#back-to-top.show {
    opacity: 1;
}

nav {
	width: 100%;
	margin: 0 var(--container-padding-hor-neg);
}

nav, .nav, .nav ul, .nav li {
	height: 50px;
	line-height: normal;
	display: flex;
	justify-content: flex-end;
	background-color: var(--color-bg-dark);
}

.nav li {
	align-items: center;
}

.nav li.active a {
	border-bottom: 3px solid var(--color-highlight-bright);
	padding-bottom: 7px;
}

.nav ul {
	border-radius: 0;
	background-color: var(--bg-color-dark);
}

.nav a 
, .nav a:active
, .nav a:visited
{
	color: #fff;
	border-radius: 0;
}

.nav a:hover 
, .nav li:hover > a
, .nav li.nav-active > a
{
	color: var(--fg-color-semi-light) !important;
	background-color: var(--bg-color-dark) !important;
}

.nav .home {
	display: none;
}

a.nav-button 
, a.nav-button:active
, a.nav-button:visited {
	color: var(--fg-color-semi-light) !important;
}

a.nav-button:hover {
	color: #fff !important;
}


a, a:focus, a:visited, a:active, a:hover {
	text-decoration: none;
}

a, a:focus, a:visited, a:active {
	color: #3238b3;
}

a:hover {
	color: #782529;
	/* color: var(--bg-color-highlight-bright); */
}

.container p:first-of-type {
	margin-top: 0;
}

.hover-text {
	display: none;
	
	position: absolute;
	top: 0;
	right: -20px;
	color: black;
	background-color: #fff;
	padding: 2px;
	border: 1px solid #aaa;
	margin: 0 3px;
	z-index: 10;
}

/* .hover-text.enabled { */
	/* display: block; */
/* } */

header div.env {
	font-size: 14pt;
	font-weight: bold;
	min-height: 20px;
	display: inline-block;
	margin-left: 10px;
	position: absolute;
	top: 0;
	left: 0;
	text-transform: uppercase;
}

header div.env.dev {
	color: #f00;
}

header div.env.test {
	color: #03a103; /* green */
}

header div.env.production {
	opacity: 0;
}

header h1 a
, header h1 a:hover
, header h1 a:visited
, header h1 a:active
, header h1 a:focus
{
	text-decoration: none;
	color: #434343;
}

header div.env.dev {
	opacity: 1;
	color: #F00;
}

header .page-title {
	font-size: 2rem;
	/* This behaves differently between browsers, so use PHP ucwords() instead.
	/* text-transform: capitalize; */
	height: 40px;
	display: inline-block;
	margin-left: 20px;
}

footer .child-with-margin {
}

.infobox.biography th[scope="row"] {
	text-align: right;
	padding: 0 20px 10px 0;
}

.infobox.biography th,
.infobox.biography td {
	vertical-align: top;
	padding-top: 1px;
}

.modal h1 {
	font-style: normal;
	font-size: 16pt;
}

.modal {
	font-size: 11pt;
}

.bib-entry {
	margin-bottom: 10px;
}

.bib-title {
	font-style: italic;
}

a.book-cover img {
	width: 200px;
}

body.articles article .headline {
	font-size: 13.5pt;
	font-weight: 500;
}

body.articles article .teaser {
	margin: 0 0 20px;
}

body.article .title {
	margin: 0 0 20px 0;
}

body.article .date-published {
	font-style: italic;
}

@media (max-width: 1200px) {
	.body-container.main {
		margin: 0 20px;
	}
	
	header img.gary {
		max-height: 100px;
	}
	
	header h1 {
		font-size: 17pt;
	}
	
	nav, .nav {
		height: 100%;
	}
	
	.nav {
		display: none;
	}

	nav, .nav, .nav ul, .nav li {
		background-color: var(--bg-color-dark);
		justify-content: flex-start;
	}

	.nav ul, .nav li {
		display: block;
	}
	
	.nav li.active a {
	}
	
	.nav .home {
		display: block !important;
	}

	.page-content.child-with-margin {
		margin: 0;
	}
	
	.nav-button, .nav-close {
		background-color: transparent;
	}

	.nav li.active a {
		border: none;
	}	
}
