body {
	margin: auto;
	line-height: 1.5em;
	font-size: 1.2em;
}

main {
	max-width: 680px;
	margin: auto;
	padding: 0 5% 0% 5%;
}

nav {
	width: 100%;
	height: 3em;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background-color: #333;
	font-family: 'Franklin';
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Franklin';
	font-weight: 600;
}

figure figcaption {
	text-align: center;
	color: black;
	font-size: 0.8em;
}

/* Table of Contents, if wanted

Add to yaml:

output:
blogdown::html_page:
toc: true

*/

#TableOfContents, #TOC {
	border: 1px solid #eee;
	border-radius: 5px;
}

/* Header and Footer */
.menu li { display: inline-block; }
.article-meta, .menu a {
	font-family: 'Franklin';
	margin: 0 auto;
	max-width: 680px;
	text-decoration: none;
	color: black;
	text-align: center;
}

.terms { font-size: .8em; }
.menu, footer { text-align: center; }
.author { font-size: 0.8em; }
.date { font-size: 0.8em }
footer a { text-decoration: none; }

.pull-left {
	float: left
}
.pull-right {
	float: right
}

a {
	color: #613DC1;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* Adjust background at your leisure! */

header ul,
header ol {
	max-width: 860px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
	overflow: hidden;
	background-color: #333;
}

header li a {
	display: block;
	color: white;
	text-align: center;
	padding: 0.75em 0.75em;
	text-decoration: none;
}

header li a:hover {
	background-color: #111;
	text-decoration: none;
}

header a:hover,
header .current a {
	color: #fff
}

/* Code Boxes */
pre {
	border: 1px solid #ddd;
	box-shadow: 5px 5px 5px #eee;
	background: #f8f8f8;
	padding: 1em;
	overflow-x: auto;
}
code { background: #f9f9f9; }
pre code {
	background: none;
	font-family: courier new, Courier, monospace;
}

/* Images, tables, misc. */
img, iframe, video { max-width: 100%; }
main { hyphens: auto; }
blockquote {
	background: #f9f9f9;
	border-left: 5px solid #ccc;
	padding: 3px 1em 3px;
}

table {
	margin: auto;
	border-top: 1px solid #666;
	border-bottom: 1px solid #666;
}
table thead th { border-bottom: 1px solid #ddd; }
th, td { padding: 5px; }
tr:nth-child(even) { background: #eee }

/** LIGHTBOX MARKUP **/

.thumbnail {
	max-width: 100%;
}

.lightbox {
	/** Default lightbox to hidden */
	display: none;

	/** Position and style */
	position: fixed;
	z-index: 999;
	width: 100%;
	height: 100%;
	text-align: center;
	top: 0;
	left: 0;
	background: rgba(0,0,0,0.8);
}

.lightbox img {
	/** Pad the lightbox image */
	max-width: 90%;
	max-height: 80%;
	margin-top: 2%;
}

.lightbox:target {
	/** Remove default browser outline */
	outline: none;

	/** Unhide lightbox **/
	display: block;
}
