/* Global Defaults */
html {
	color: #f9f9f9;
	font-family: "Source Code Pro", "Courier New", "Courier", monospace;
}

/* Body Layout */
body {
	background: url("/assets/images/starsky.png"), #212e40;
	background-repeat: repeat-x;
	margin: 0 auto;
	max-width: 67rem;
	display: grid;
	grid-template-areas: "head head nav"
						 "hero hero hero"
						 "main main main"
						 "about about about"
						 "foot foot foot";
	grid-template-rows: auto 1fr auto auto 70px;
	/*animation: backgroundScroll 80s linear infinite;*/ /* fancy but lots of CPU usage! */
}
@media (max-width: 768px) {
	body {
		grid-template-rows: auto auto 1fr auto auto 70px;
		grid-template-areas: "head head head"
							 "nav nav nav"
							 "hero hero hero"
							 "main main main"
							 "about about about"
							 "foot foot foot";
	}
}
/*@keyframes backgroundScroll {
	from {background-position: 0 0;}
	to   {background-position: -1920px 0;}
}*/

/* Page Layout */
body > header {
	/* background-color: #8ca0ff; */
	grid-area: head;
	padding: 30pt 30pt;
}
img#icon {
	max-height: 75px;
	padding-right: 20pt;
}
body > nav {
	/* background-color: #ffa08c; */
	grid-area: nav;
	display: flex;
	align-items: center;
	justify-content: right;
	font-size: 15pt;
	padding: 30pt 30pt;
}
body > nav > a {
	margin: 0 20pt;
}
@media (max-width: 768px) {
	body > header {
		text-align: center;
	}
	body > header > img {
		max-width: 100%;
		width: auto;
		height: auto;
	}
	body > nav {
		justify-content: center;
		font-size: 25pt;
	}
}

body > hero {
	grid-area: hero;
	display: grid;
	align-items: center;
	column-gap: 40pt;
	padding: 40px;
}

body > main {
	grid-area: main;
	display: grid;
	align-items: center;
	column-gap: 40pt;
	padding: 40px;
}
body > #about {
	background-color: #0e305a;
	grid-area: about;
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 18pt;
}

body > footer {
	background-color: #2b496f;
	grid-area: foot;
	display: flex;
	justify-content: center;
	align-items: center;
	color: #8c9dbb;
	font-size: 11pt;
}
body > footer > div > #reduced {
	display: none;
}
@media (max-width: 768px) {
	body > footer {
		padding: 10pt;
		font-size: 20pt;
	}
}

/* Buttons */
button {
	color: #0f1934;
	background-color: #f9f9f9;
	font: bold 16px "Source Code Pro", monospace;
	text-align: center;
	text-transform: uppercase;
	border: none;
	border-radius: 4px;
	padding: 9px 19px;
	border: 1px solid #f9f9f9;
	transition: 0.15s;
}
button:hover {
	color: #f9f9f9;
	background-color: #0f1934;
}

/* Links */
a {
	color: #b9d3e8;
	font-weight: bold;
	text-decoration: none;
}
a:hover {
	color: white;
}
a:active {
	color: #cecece;
}
div#socialold {
	display: none;
}

/* Blog */
p, ul, ol {
	margin: 0.65em 0;
}
.image {
	text-align: center;
}
div.image, figure.image {
	margin-top: 1em;
	margin-bottom: 1em;
	margin-left: 0px;
	margin-right: 0px;
}
img.heading {
	max-width: 100%;
	width: auto;
	height: auto;
}
img.image {
	max-width: 100%;
	width: auto;
	height: auto;
}
div.imagecaption {
	display: inline;
}
div.imagecaption > p {
	margin-top: 0.5em;
	margin-bottom: 0px;
}
hr {
	border-color: #808080;
	width: 100%;
}
h1.blogpost, h2, h3 {
	margin-bottom: 0.5em;
}
h2.bloglist {
	margin: 0.5em 0.33em 0 0;
	margin-bottom: 0.33em;
}
p.blogspacer {
	margin-bottom: 0.5em;
}
span.emoji {
	font-family: Twemoji Mozilla,     /* try to work around Windows' lack of flags if any better emoji */
				 EmojiOne,            /* fonts are installed and the browser supports them (not Chrome */
				 Twitter Color Emoji; /* as of writing; Firefox provides and uses Twemoji Mozilla) */
}
div.scroll {
	max-height: 500px;
	padding-right: 1px; /* make border less ugly on Chrome on Windows */
	overflow-y: scroll;
}
@media (max-width: 768px) {
	div.scroll {
		max-width: 100vh-60pt;
		overflow-x: scroll;
	}
}
table {
	border: 1px solid #808080;
}
tr:nth-child(odd) {
	background: #1c293a;
}
tr:hover {
	background: #202040;
}
th, td {
	border: 1px solid #808080;
	padding: 5px;
}
div.scroll > table > thead > tr > th {
	position: sticky;
	top: 0;
	background: #1c293a;
}
div.td2nowrap > table > tbody > tr > td:nth-child(2) {
	white-space: nowrap;
}
code {
	font-size: 11pt;
	background: #404040;
	border-radius: 3pt;
	padding-left: 3pt;
	padding-right: 3pt;
}
iframe {
	display: block;
	border: none;
}
iframe.youtube {
	text-align: center;
	margin: auto;
	width: 640px;
	height: 360px;
	padding-bottom: 8pt;
}
