/* CSS files add styling rules to your content */

:root {
	--highlightColor: #373fff;
	--fontColor: #000;
	--backgroundColor: #fff;
	--textHighlightColor: yellow;
	--widthNav: 300px;
}
* {
	box-sizing: border-box;
	position: relative;
}
body {
	font-family: "Space Mono", monospace;
	width: 100vw;
	font-size: 18px;
	display: flex;
	line-height: 1.4;
	overflow-x: hidden;
	background: var(--backgroundColor);
	color: var(--fontColor);
}
h1 {
	color: var(--highlightColor);
	font-size: 32px;
	font-weight: normal;
	margin-top: 10px;
	marign-bottom: 3rem;
}
h2 {
	font-size: 24px;
	font-weight: bold;
	margin-top: 3rem;
	margin-bottom: 1rem;
	color: var(--highlightColor);
}
h3 {
	font-size: 13px;
	margin-bottom: 0;
	opacity: 0.5;
}
h3 + h1 {
	margin-top: 0;
}
h4 {
	font-weight: bold;
	margin-top: 3rem;
	margin-bottom: 1rem;
	color: var(--highlightColor);
}
h5 {
	font-weight: bold;
	margin-top: 2rem;
	margin-bottom: 1rem;
	font-size: 0.8rem;
	letter-spacing: 0.05em;
	opacity: 0.6;
}
/* credit */
h6 {
	margin-top: -0.8rem;
	margin-bottom: 1rem;
	opacity: 0.5;
	font-style: italic;
	font-size: 13px;
}
h6 a {
	color: inherit;
}
p + p {
	margin-top: 0.7em;
}
i {
	font-style: italic;
}
b,
strong {
	font-weight: bold;
}
code {
	display: inline-block;
	padding: 0.05em 0.2em;
	border-radius: 2px;
	background: rgba(0, 0, 0, 0.1);
}
.highlight-text {
	background: var(--textHighlightColor);
}
.strikethrough {
	text-decoration: line-through !important;
}
a {
	color: var(--highlightColor);
}
a:hover {
	text-decoration: none;
}
.p5EditorLink {
	display: inline-block;
	padding: 0.3em 0.6em 0.4em 0.6em;
	background: var(--highlightColor);
	color: var(--backgroundColor);
	text-decoration: none;
	font-size: 14px;
}
.p5EditorLink:hover {
	opacity: 0.9;
}
.nav {
	width: var(--widthNav);
	max-height: 100vh;
	padding: 20px;
	display: block;
	position: sticky;
	top: 0px;
}
.nav h1 {
	font-size: 20px;
	font-weight: bold;
	margin-bottom: 10px;
}
.nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav ul li {
	margin-top: 0.3em;
	font-size: 14px;
}
.nav a {
	text-decoration: none;
}
.nav ul li a:hover {
	font-style: italic;
}
.nav ul li.isCurrent a:before {
	content: "→";
	padding-right: 0.5em;
}
.content {
	display: block;
	width: calc(100% - var(--widthNav));
	max-width: 720px;
	padding: 20px;
	padding-top: 40px;
	padding-bottom: 60px;
}
ol,
ul {
	list-style: disc;
	margin: 1rem 0;
	padding-left: 3rem;
}
ol li {
	list-style: decimal;
}
ol li,
ul li {
	margin-bottom: 0.5remM;
}
iframe {
	margin: 2rem 0;
	padding: 0;
	border: none;
	max-width: 100%;
	display: block;
}
img {
	display: block;
	margin: 2rem 0;
	width: auto;
	max-width: calc(100vw - var(--widthNav) - 40px);
	height: auto;
}
.imageBorder {
	border: solid 1px rgba(0, 0, 0, 0.1);
}
img + .imageCredits {
	margin-top: -1.5rem;
	font-size: 11px;
	margin-bottom: 2rem;
}
table {
	font-family: "Space Mono", monospace;
	font-size: 16px;
	line-height: 1.4;
	margin: 3rem 0;
}
table tr {
	border-bottom: solid 1px var(--fontColor);
}
table tr:last-child {
	border-bottom: none;
}
table td {
	padding: 16px 20px;
}
table td:first-child {
	padding-left: 0px;
}
table td:last-child {
	padding-right: 0px;
}
.keyPress {
	display: inline-block;
	padding: 0.1em 0.6em 0.2em 0.6em;
	border: solid 1px var(--fontColor);
	font-size: 14px;
	border-radius: 4px;
}

.video-container {
	position: relative;
	padding-bottom: 56.25%;
	padding-top: 0;
	height: 0;
	overflow: hidden;
	margin: 2rem 0;
}

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

.noTouchScroll {
	margin-bottom: 2rem;
	overflow: hidden;
}

@media only screen and (max-width: 720px) {
	body {
		flex-direction: column;
	}
	.nav,
	.content {
		display: block;
		width: 100%;
		max-width: initial;
	}
	.nav {
		position: relative;
	}
	img {
		max-width: 100%;
	}
	iframe {
		width: 100%;
	}
}
