@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&family=Roboto+Mono:wght@400;500&family=Oswald&family=Nunito:wght@400;700&display=swap');
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
	overflow-x: hidden;
}

body {
    font-family: "Roboto",-apple-system,Helvetica,Arial,sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
	color: #313131;
	background-color: #fafafa;
	height: 100vh;
	margin: 0;
	display: flex; 
	flex-direction: column; 
}

hr {
	margin-bottom: 1em;
}

object {
	pointer-events: none;
}

img {
	max-width: 80%;
	display: block;
	margin: auto;
    border-radius: 0.5em;
}

footer {
	margin-top: auto;
}

pre, code {
	font-family: 'Consolas', monospace;
	background-color: rgb(244, 244, 244);
	overflow: auto;
}

pre {
	padding: 1em;
	margin: 1.5em 0;
	max-height: 21em;
	font-size: 14px;
}

table {
	margin: auto;
}

abbr[title] {
    cursor: help;
}

cloudflare-app .toggler {
	right: 0.5em !important;
	bottom: 0.5em !important;
}

.wrapper {
	min-width: 80%;
	min-height: fit-content;
	padding: 0 2em;
	margin-top: 2em;
}

.content {
	max-width: 750px;
	margin: auto;
	margin-bottom: 3em;
}

.content-date {
	font-weight: 300;
	margin-bottom: 0;
}

.content-header {
	margin-top: 0;
	margin-bottom: 0.8em;
}

.content-subheader, h2 {
	font-size: 1.4em;
	border-bottom: 1px solid #ddd;
	margin-top: 1.5em;
}

h1, h2, h3 {
    font-family: 'Nunito', 'Roboto', sans-serif;
}

h3 {
	margin-top: 1.5em;
}

.flex-center, #navbar * {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
}

.flex-start {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	flex-wrap: wrap;
}

.flex-end {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	flex-wrap: wrap;
}

.post-nav {
	margin-top: 5em;
	padding-top: 1em;
	display: flex;
	justify-content: space-between;
	border-top: 1px solid #ddd;
}

.post-nav a {
	max-width: 50%;
}

.next-post {
	padding-right: 1em;
}

.prev-post {
	padding-left: 1em;
}

@media (max-width: 500px) {
	img {
		max-width: 100%;
	}

	.post-nav a {
		min-width: 100%;
		min-height: 2em;
	}
	
	.next-post {
		padding-bottom: 0.5em;
	}

	.prev-post {
		text-align: right;
		padding-left: 0;
	}

	.post-nav {
		flex-direction: column;
	}
}

#navbar {
	padding: 0.6em;

	background-color: inherit;
	box-shadow: 0 1px 2px rgb(0 0 0 / 15%);

    display: flex;
	flex-direction: row;
    justify-content: space-evenly;

    width: 100%;
}

@media screen and (max-width: 600px) {
	#navbar {
		flex-direction: column;
	}

	#navbar #navbar-logo {
		padding-bottom: 6px;
	}
}

#navbar ul {
	margin: 0;
	padding: 0;
}

#navbar-logo li a {
	font-family: Oswald, sans-serif;
	color: #313131;
	font-size: 18px;
}

#navbar-link li {
	min-width: 5rem;
	font-size: 14px;
	font-weight: 500;
}

#navbar-link li a {
	color: #313131;
	font-family: "Roboto Mono", monospace;
	font-weight: 500;
}

#logo-home {
	margin: 0 0.8em 0 0em;
}

#logo-home object {
	height: 32px;
	width: 32px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

footer {
	flex-direction: column;
	font-size: 0.6em;
}

a {
    color: #07a;
	text-decoration: none;
}

a:hover {
	color: #d00000 !important;
}
