html {
	scroll-behavior: smooth;
}

/* This handles the main.content block */

article figure {
	display: inline-block;
	width: auto !important;
}

/* main.content figure {
	padding: 0px;
	margin: 0px;
	display: inline-block;
	width: auto !important;
} */

main.content p {
	font-size: 16px;
	line-height: 28px;
	padding-bottom: 8px;
}

main.content ul, main.content ol, main.content figure, main.content pre {
	padding-bottom: 8px;
}

main.content {
	max-width: 50em;
}

div.video {
	position: relative;
	display: block;
	width: 100%;
	overflow: hidden;
}

 
div.video:not(.dimensions)::before {
	display: block;
	content: "";
	padding-top: 56.25%;
}


div.video:not(.dimensions).four-three::before {
	display: block;
	content: "";
	padding-top: 75%;
}


div.video:not(.dimensions).sixteen-nine::before {
	display: block;
	content: "";
	padding-top: 56.25%;
}

div.video:not(.dimensions) iframe {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}



div.unity {
	position: relative;
	display: block;
	width: 100%;
	overflow: hidden;
}

 
div.unity:not(.dimensions)::before {
	display: block;
	content: "";
	padding-top: 56.25%;
}


div.unity:not(.dimensions).four-three::before {
	display: block;
	content: "";
	padding-top: 75%;
}


div.unity:not(.dimensions).sixteen-nine::before {
	display: block;
	content: "";
	padding-top: 56.25%;
}

div.unity:not(.dimensions) iframe {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

main.content article li {
	margin-left: 16px;
	list-style-image: url("images/list-item.png");
	list-style-position: outside;
}

/* main.content article li:before {
    content: "";
    padding-right: 16px;
    background-image: url(images/arrow-right.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
}

html.invert main.content article li:before {
    background-image: url(images/arrow-right-white.png);
} */

main.content article > h2:before, main.content article > h2:before, main.content article > h3:before {
	content: "";
	margin-left: -16px;
	padding-right: 16px;
	background-image: url(images/hash-gray.png);
	background-repeat: no-repeat;
	background-position: 1px 3px;
	background-size: 12px 12px;
}


@media (max-width: 480px) and (orientation: portrait) {

	main.content {
		max-width: 96%;
	}

	/* iframe {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
	} */

	main.content div img, main.content div figure, main.content div figure img, main.content div iframe, main content div a figure img {
		float: none !important;
		/*max-width: 20em;*/
		max-width: 100% !important;
		height: auto;
		display: block !important;
		clear: both !important;
	}

}

div.video {
	margin-bottom: 16px;
}

blockquote p:last-child {
	padding-bottom: 0px !important;
}

/* main.content h3:not(:first-of-type) {
	margin-top: 0px;
} */

main.content p code, main.content li code {
	/* border-bottom-color: lightgray !important; */
}

main.content p code, main.content li code {
	/* padding-bottom: 0.3em; */
	/* border-bottom: solid 1px; */
	font-size: 0.9em;

	background-color: rgb(245,245,245);
	color: black;

	padding: 0.1em;
	
	border-style: solid;
	border-color: transparent;
	border-width: 0.2em;
	border-radius: 0.3em;
	margin-left: -0.05em;
	margin-right: -0.05em;
	/* border-radius: 0.25em;
	padding: 0.1em;
	margin: -0.1em; */
}

main.content green, main.content green code {
	border-color: rgb(0,192,0);
	background-color: rgb(0,192,0);
	color: white;
}

main.content mint, main.content mint code {
	border-color: rgb(102, 255, 204);
	background-color: rgb(102, 255, 204);
	color: black;
}

main.content blueish, main.content blueish code {
	border-color: rgb(102,102,255);
	background-color: rgb(102,102,255);
	color: white;
}

main.content blue, main.content blue code {
	border-color: rgb(0,110,240);
	background-color: rgb(0,110,240);
	color: white;
}

main.content cyan, main.content cyan code {
	border-color: rgb(0,255,255);
	background-color: rgb(0,255,255);
	color: black;
}

main.content pink, main.content pink code {
	border-color: rgb(255,204,255);
	background-color: rgb(255,204,255);
	color: black;
}

main.content mud, main.content mud code {
	border-color: rgb(204,51,0);
	background-color: rgb(204,51,0);
	color: white;
}

main.content orange, main.content orange code {
	border-color: rgb(255,153,0);
	background-color: rgb(255,153,0);
	color: white;
}

main.content brown, main.content brown code { 
	border-color: rgb(153,102,51);
	background-color: rgb(153,102,51);
	color: white;
}

main.content purple, main.content purple code {
	border-color: rgb(180, 92, 255);
	background-color: rgb(180, 92, 255);
	color: white;
}

main.content red, main.content red code {
	border-color: rgb(255, 0, 0);
	background-color: rgb(255, 0, 0);
	color: white;
}

main.content fuchsia, main.content fuchsia code {
	border-color: rgb(255, 0, 255);
	background-color: rgb(255, 0, 255);
	color: white;
}

main.content yellow, main.content yellow code {
	border-color: rgb(250, 250, 9);
	background-color: rgb(250, 250, 9);
	color: black;
}

main.content sky, main.content sky code { 
	border-color: deepskyblue;
	background-color: deepskyblue;
	color: white;
}

main.content figure {
	margin-right: 8px;
	padding-bottom: 0px !important;
}

main.content figure a {
	padding-bottom: 0px !important;
}

main.content img {
	max-width: 100%;
	max-height: 480px;
	width: auto !important;
	height: auto !important;
	padding: 0px;
	margin: 0px;
}

main.content article figure > a {
	margin: 0px !important;
	padding: 0px !important;
	padding-right: 20px !important;
}

main.content article figure {
	margin: 0px !important;
	margin-right: -20px !important;
	padding: 0px !important;
}

main.content article figure.halfsize {
	width: 48% !important;
	height: auto !important;
}

main.content article figure.foureighty img {
	height: 480px !important;
	width: auto !important;
}

main.content article figure.threetwenty img {
	height: 320px !important;
	width: auto !important;
}

main.content article figure.twofiftysix img {
	height: 256px !important;
	width: auto !important;
}

main.content article figure.oneninetytwo img {
	height: 192px !important;
	width: auto !important;
}

main.content article figure.onetwentyeight img {
	height: 128px !important;
	width: auto !important;
}

main.content a {
	padding: 2px 4px 2px 4px;
	margin: -2px -4px 2px -4px;
}

main.content ul.thumbnails li a {
	padding: 0px;
	margin: 0px;
}


main.content article a, button.lesson {
	padding: 4px 20px 4px  6px !important;
	margin: -4px -6px 4px -6px;
}


/*main.content p code, main.content li code {
	font-size: 0.95em;
}*/
/*
main.content {
	overflow-wrap: break-word;
	word-wrap: break-word;
	-ms-word-break: break-all;
	word-break: break-word;
}*/