html {
	font-family: "PT Sans", Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
	margin-bottom: .5rem;
	font-weight: bold;
	line-height: 1.25;
	color: #313131;
	text-rendering: optimizeLegibility;
}
h1 {
	font-size: 2rem;
}
h2 {
	margin-top: 1rem;
	font-size: 1.5rem;
}
h3 {
	margin-top: 1.5rem;
	font-size: 1.25rem;
}
h4, h5, h6 {
	margin-top: 1rem;
	font-size: 1rem;
}

time {
  margin-left: 20px;
}

/* No `:visited` state is required by default (browsers will use `a`) */
a {
	color: #268bd2;
	text-decoration: none;
}
/* `:focus` is linked to `:hover` for basic accessibility */
a:hover,
a:focus {
	text-decoration: underline;
}

body {
	color: #515151;
	background-image: url('../img/background.jpg');
	background-repeat: no-repeat;
	background-color: #69410E;
	background-attachment: fixed;
	margin: 0;
	padding: 0;
}

body.homepage {
}

body.homepage .homediv {
	display: block;
	position: relative;
	margin: auto;
	background-color: rgba(255, 255, 255, 0.5);
	margin-top: 50px;
	padding: 50px;
	border-radius: 20px;
	box-shadow: 2px 2px 16px 0px rgba(0,0,0,0.75);
	width: 80%;
	max-width: 1000px;
	box-sizing: border-box;
}

a.rss {
	position: absolute;
	top: 15px;
	right: 15px;
}

body.homepage .homediv h1 {
	font-family: "Abril Fatface", serif;
	font-size: 3.25rem;
	display: block;
	margin: 0px;
	text-align: center;
}

body.homepage .homediv h2 {
	text-align: center;
	font-style: italic;
	font-weight: lighter;
	color: #656565;
	margin-top: 5px;
	font-size: 25px;
}

body.homepage nav {
	margin-top: 85px;
}

body.homepage nav ul {
	overflow: hidden;
	margin: 0;
	padding: 0;
}

body.homepage nav ul li {
	list-style: none;
	text-align: center;
	min-width: 32%;
	box-sizing: border-box;
	border-radius: 20px;
	display: inline-block;
}

body.homepage nav ul li a {
	display: block;
	text-decoration: none;
	color: #49280B;
	padding: 10px 0;
	font-size: 38px;
	font-weight: bolder;
}

body.homepage p {
	font-size: 22px;
	margin-top: 85px;
}

img {
	display: block;
	margin: 0 0 1rem;
	border-radius: 5px;
	max-width: 100%;
}

table {
	margin-bottom: 1rem;
	width: 100%;
	border: 1px solid #e5e5e5;
	border-collapse: collapse;
}
td,
th {
	padding: .25rem .5rem;
	border: 1px solid black;
}
tbody tr:nth-child(odd) td,
tbody tr:nth-child(odd) th {
	background-color: #f9f9f9;
}

hr {
	clear: both;
}

blockquote {
	padding: .5rem 1rem;
	margin: .8rem 0;
	color: #7a7a7a;
	border-left: .25rem solid #e5e5e5;
}

.menu li {
	list-style-type: none;
	display: block;
	font-size: 30px;
}

.menu a {
	margin-left: 4px;
}

.sidebar {
	text-align: center;
	color: rgba(255,255,255,.5);
	background-color: rgba(32, 32, 32, 0.9);
	box-shadow: 2px 2px 16px 0px rgba(0,0,0,0.75);
}

.sidebar a {
	color: #fff;
}

.sidebar-about h1 {
	color: #fff;
	margin-top: 0;
	font-family: "Abril Fatface", serif;
	font-size: 3.25rem;
}

.sidebar-nav {
	padding-left: 0;
	list-style: none;
}
.sidebar-nav-item {
	display: block;
}
a.sidebar-nav-item:hover,
a.sidebar-nav-item:focus {
	text-decoration: underline;
}
.sidebar-nav-item.active {
	font-weight: bold;
}

.content {
	padding-top:    15px;
	padding-bottom: 15px;
	position: relative;
}

.container {
	max-width: 38rem;
	padding-left:  1rem;
	padding-right: 1rem;
	margin-left:  auto;
	margin-right: auto;
}

.lead {
	font-size: 1.25rem;
	font-weight: 300;
}

.post-date {
	display: block;
	margin-top: -.5rem;
	margin-bottom: 1rem;
	color: #9a9a9a;
}

.container h2 {
	display: inline-block;
}

.toc {
	margin-bottom: 15px;
	border-radius: 5px;
	background-color: rgba(0, 0, 0, 0.04);
	padding: 15px;
}

.toc .title {
	font-size: 2.1em;
	margin-left: 30px;
	font-weight: bold;
}

.toc ul {
	list-style-type: none;
}

.content {
	max-width: 900px;
	min-width: initial;
	background-color: rgba(255,255,255,0.9);
	padding: 50px 20px;
	margin-top: 15px;
	border-radius: 30px;
	box-shadow: 2px 2px 16px 0px rgba(0,0,0,0.75);
	margin-right: 20px;
}

code {
	font-family: 'Source Code Pro', monospace, sans-serif;
	display: inline;
	background-color: #f7f7f7;
	border: 1px solid #DCDCDC;
	padding: 0px 2px;
	margin: 0px;
	border-radius: 5px;
}

pre code {
	padding: 5px;
	margin: 8px 0px;
	overflow: auto;
	max-height: 800px;
	display: block;
	border-color: gray;
}

code.language-console {
	background-color: black;
	color: #FFFBDE;
}

.slider {
	display: inline-block;
	position: relative;
	padding-bottom: 7px;
}
.slider:before {
	content: '';
	display: block;
	position: absolute;
	left: 0;
	bottom: 0;
	height: 7px;
	width: 0;
	transition: width 0s ease, background .5s ease;
}
.slider:after {
	content: '';
	display: block;
	position: absolute;
	right: 0;
	bottom: 0;
	height: 7px;
	width: 0;
	background: red;
	transition: width .3s ease;
}
.slider:hover:before {
	width: 100%;
	background: red;
	transition: width .3s ease;
}
.slider:hover:after {
	width: 100%;
	background: transparent;
	transition: all 0s ease;
}

a.next-post {
	float: right;
	margin-bottom: 20px;
}

.post h1 {
	display: inline-block;
}

.word-count {
	margin-left: 20px;
	font-size: 16px;
	color: #989898;
}

.project {
	display: inline-block;
	border: 1px solid #CEC6B6;
	margin-right: 30px;
	padding: 5px 35px;
	border-radius: 11px;
	margin-bottom: 30px;
}

@media (max-width: 47.9em) {
	.content {
		min-width: initial;
		margin: 5px;
	}

	.sidebar {
		padding: 2rem 1rem;
	}
}

@media (min-width: 48em) {
	body {
		background-size: 100% auto;
	}

	.sidebar {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: 290px;
		text-align: left;
	}

	.sidebar-sticky {
		position: absolute;
		right:  1rem;
		bottom: 1rem;
		left:   1rem;
	}

	.layout-reverse .sidebar {
		left: auto;
		right: 0;
	}
	.layout-reverse .content {
		margin-left: 2rem;
		margin-right: 20rem;
	}

	.content {
		margin-left: 305px; /* 290 + 15 */
		margin-right: 15px;
	}
}

@media only screen and (max-device-width: 480px) {
	body.homepage nav ul li {
		display: block;
	}
}

