/*******************************************************************************

  CSS for michaelminn.*

  Started 30 December 2016

  Rev. 31 May 2021

  (c) 2016 - 2021 by Michael Minn

*******************************************************************************/

body {
	color: #202020;
	font-size: 16px;
	line-height: 1.4em;
	background-color: white;
	font-family: Arial, Helvetica, sans-serif; }

main {
	width: 90%;
	padding: 0px;
	display: block;
	max-width: 900px;
	min-height: 80vh;
	margin-left: auto;
	margin-right: auto;
	border-radius: 12px;
	background-color: white; }

header {
	width: 90%;
	min-height: 30px;
	min-width: 300px;
	max-width: 900px; 
	margin: 0 auto 18px auto;
	text-align: center;
	border-bottom: 1px solid gray;
	background-repeat: no-repeat;
	background-color: transparent;
	background-position: left center, right center;
	background-image: url('https://michaelminn.net/graphics/header-left.png'), 
		url('https://michaelminn.net/graphics/header-right.png'); }

@media all and (max-width: 800px) {
	header {
		height: 60px;
		background-position: center top, center bottom; } }

footer {
	width: 90%;
	height: 40px;
	min-width: 300px;
	max-width: 900px; 
	margin: 18px auto 0 auto;
	text-align: center;
	border-top: 1px solid gray;
	background-repeat: no-repeat;
	background-color: transparent;
	background-position: center center;
	background-image: url('https://michaelminn.net/graphics/footer.png'); }

p {
	margin-top: 12px; }

li {
	margin-top: 12px; }

i {	
	font-style: italic; }

a {
	color: #004d3c; /* HSV 00a172 compliment of #a10022 */
	/* color: #00325b; */
	/* color: #002040; */
	/* color: #020202; */
	/* color: #6d6e71; */
	text-decoration: underline;
	text-decoration-color: #6d6e71; }

a:hover {
	text-decoration-color: #202080; }


h1 {	
	color: #a10022;
	font-size: 2em; 
	margin-top: 3px;
	margin-bottom: 36px;
	text-align: left;
	font-style: normal; 
	line-height: normal; 
	font-weight: bold; }

h2 {	
	color: #a10022;
	margin-top: 36px;
	font-size: 1.5em; 
	padding-top: 12px;
	border-top: 1px solid silver;
	text-align: left;
	font-style: normal; 
	line-height: normal; 
	font-weight: bold; }

h3 {	
	margin-top: 24px;
	font-size: 1.2em; 
	color: #007350;
	/* color: #a10022; */
	text-align: left;
	font-style: normal; 
	line-height: normal; 
	font-weight: bold; }

pre {
	width: 100%;
	padding: 12px;
	font-size: 14px; 
	line-height: 1.2em;
	border-radius: 6px;
	border: 1px solid silver;
	background-color: #f8f8f8;
	font-family: "Courier New", Courier, fixed; }

/* Place information at the top of the page - address, city, opened, etc. */

.placeinfo {
	margin: 0px 0px 24px 0px; }

.placeinfo p {
	margin: 0px; 
	color: #808080; }


/* Special cases for headers and footers */

.aphorism {
	color: #646464;
	margin-top: 36px;
	font-size: 0.95em;
	font-style: italic;
	text-align: center; }

.breadcrumbs {
	font-size: 10px;
	margin: -18px 3px 12px 3px;
	color: gray; }

/* Special case for centered mathematical formulas */

.formula {
	font-family: "Times New Roman", Times, serif;
	margin-left: 1in;
	font-style: italic;
	font-size: 1.6em; 
	line-height: 2em; }

/* Special case list for syllabus schedule subtopics */

ul.subtopics li { 
	color: #404040; 
	margin-top: 0pt; 
	font-size: 0.8em; 
	line-height: 1.2 em; }


/* Centered and floated images and figures */

.center {
	display: block;
	margin-left: auto;
	margin-right: auto; 
	margin-top: 12px;
	margin-bottom: 12px;
	max-width: 90%;
	border: none; }

.floatright {
	float: right;
	margin: 6px 12px 12px 24px;
	max-width: 33%;
	border: none; }

@media all and (max-width: 500px) {
	.floatright {
		float: none;
		display: block;
		min-width: 300px;
		margin: 6px auto 6px auto; } }

figure img, figure iframe {
	border: none; 
	display: block;
	height: auto;
	max-width: 90%;
	margin: 12px auto 12px auto; }

figure video {
	border: none; 
	display: block;
	max-width: 90%;
	width: 800px;
	height: auto;
	/* YouTube defaults 
	width: 516px; 
	height: 315px; 
	*/
	margin: 12px auto 12px auto; }

figure figcaption { 
	text-align: center; 
	max-width: 267px;
	font-style: italic;
	margin: 6px auto 24px auto; }

/* Thumbnail tables */

div.blockwrap {
	width: 100%; 
	overflow: auto; }

.thumbwrap {
	margin-top: 16px;
	width: 100%;
	text-align: center; }

.thumbwrap div, .thumbwrap figure {
	display: inline-block;
	vertical-align: top;
	max-width: 90%;
	margin: 6px 6px 18px 6px;
	text-align: center; }

.thumbwrap div img, .thumbwrap figure img {
	height: 200px;
	max-width: inherit !important; /* Override figure img width limit */
	border-radius: 6px;
	border: 1px solid silver; }

/* So wide images do not cause browser scroll on mobile */

@media all and (max-width: 500px) {
	.thumbwrap div img, .thumbwrap figure img {
		height: auto;
		width: 267px; }
}

.thumbsrap figure figcaption {
	max-width: 267px; } /* forces text wrap with long text */


/* Tables with alternating row shading */

table {
	width: 100%;
	margin-top: 12px;
	margin-bottom: 12px;
	/* white-space: nowrap; */
	table-layout: fixed; }

td {
	padding: 6px; 
	vertical-align: top; }

th {
	padding: 6px;
	color: white;
	text-align: left;
	font-weight: bold;
	border: 1px solid #6d6e71;
	background-color: #a10022; }


tr:nth-child(even) {
	color: #202020;
	background-color: white; }

tr:nth-child(odd) {
	color: #202020;
	background-color: #EAE9E5; }

/* Inputs */

input[type=submit], input[type=button], input[type=file], button {
	padding: 6px;
	color: white;
	font-size: 16px;
	font-weight: bold;
	border-radius: 3px;
	margin-top: 12px;
	margin-bottom: 12px;
	background-color: #a10022;
	border: 1px solid #6d6e71; }

/* Leaflet maps */

#leafletmap { 
	width: 100%;
	max-width: 600px;
	height: 400px;
	margin: 6px auto 6px auto; }
