/* Styles used for Donner Party Diary website */
/* For responsive site, keep padding and border inside width  */
 {
    box-sizing: border-box;
}
/* Styles for headings */
h1 {
	text-align: center;
	font-family: sans-serif;
	padding-top: 0.3em;
	padding-bottom: 0.3em;
	margin-top: 0;
	margin-bottom: 0;
	background-color: DarkBlue;
	color: white;
}
h2 {
	text-align: left;
}
h3 {
	text-align: left;
}
/* Styles for structutral elements and divisions */
/* Change colors if OS is dark theme */
@media (prefers-color-scheme: dark) {
	body {
		background-color: Black;
		color: white;
	}
	a:link, a:link:active {
		color: DodgerBlue;
	}
	a:visited, a:visited:active {
		color: SlateBlue;
	}
}
header {
	position: relative; 
/*	width: 100%;   */
	background-color: DarkBlue;
	z-index: 10;
}
nav {
	position: sticky;  
	top: 0;
	padding-top: 0.3em;
	padding-bottom: 0.3em; 
	z-index: 8;
	background-color: DarkBlue;
	color: white;
	text-align: center;
}
article {
	position: relative;
	z-index: 1;
	margin-left: 2em;
	margin-right: 2em;
}
div.top-nav {
	position: sticky;
	top: 0;
	z-index: 10;
}
p.footer {
	position: relative;
	text-align: center;
	font-family: sans-serif;
	padding-top: 0.5em;
	padding-bottom: 0.5em;
	background-color: DarkBlue;
	color: white;
	z-index: 5;
}
/* Styles for navigation links */
a.horiz {
	display: inline  ;  /*  -block;  */
	font-family: sans-serif;
	text-decoration: none;
	padding-top: 0.3em;
	padding-bottom: 0.3em;
	padding-left: 0.5em;
	padding-right: 0.5em;
	background-color: DarkBlue;
	color: white;
}
a.horiz:hover:not(.active) {
	background-color: white;
	color: DarkBlue;
}
/* Styles for dropdown menu   */
/*  Container <div> to position the dropdown content  */
.dropdown {
	position: relative;
	display: inline-block;
	font-family: sans-serif; 
	padding: 0.1em 0.5em;
}
/* Dropbox content hidden by default  */
.dropdown-content {
	display: none;
	position: absolute;
	color: white;
	background-color: DarkBlue;
	padding: 1px;
}
/* Links inside the dropdown  */
.dropdown-content a {
	color: white;
	padding: 0.3em 0.5em;
	font-family: sans-serif; 
	text-decoration: none;
	display: block;
	z-index: 20;
}
/* Change color of dropdown links on hover */
.dropdown-content a:hover {
	color: DarkBlue;
	background-color: white;
}
/* Show the dropdown menu on hover */
 .dropdown:hover .dropdown-content {
	display: block;
	min-width: 10em;
	overflow-y: visible;
	z-index: 20;
}
/*  Styles for text  */ 
p.center {
	text-align: center;
}
p.caption {
	text-align: center;
	font-weight: bold;
}
.bordered {
	padding: 0.5em;
	border-width: thin;
	border-style: solid;
	border-color: DarkBlue;
}
/* Styles for tables  */
table th td {
	border-style: none;
}
.blue-border {
	border-collapse: collapse;
	border-width: thin;
	border-style: solid;
	border-color: DarkBlue;
}
td.blue-border {
	padding-left: 1em;
	padding-right: 1em;
	padding-top: 0.3em;
	padding-bottom: 0.3em;
}
.full-border {
	border-collapse: collapse;
	border-width: thin;
	border-style: solid;
	border-color: Black;
}
td.full-border {
	padding-left: 1em;
	padding-right: 1em;
	padding-top: 0.3em;
	padding-bottom: 0.3em;
}
.full-border-center {
	border-collapse: collapse;
	border-width: thin;
	border-style: solid;
	border-color: Black;
}
td.full-border-center {
	padding-left: 1em;
	padding-right: 1em;
	padding-top: 0.3em;
	padding-bottom: 0.3em;
	text-align: center
}
td.full-border-right {
	padding-left: 1em;
	padding-right: 1em;
	padding-top: 0.3em;
	padding-bottom: 0.3em;
	text-align: right
}
/*   Style for photo captions   */
caption {
	padding-bottom: 0.5em;
}
/* Display images at full width of window, up to full size */
img {
	max-width: 90%;
	height: auto;
}
/* Expand centered images to a minimum size, limit to a maximum size */
img.center {
	min-width: 15%
	max-width: 80%
}
/* Wrap text around embedded photos  */
img.emb-left {
	margin-right: 1em;
	margin-bottom: 0.3em;
	float: left
}
img.emb-right {
	margin-left: 1em;
	margin-bottom: 0.3em;
	float: right
}
/* Extend container to height of embedded photo  */
.clearfix::after {
	content: "";
	clear: both;
	display: block;
}
/* Display div elements quickly on small devices, stacked vertically at 100%  */
/*.left, .main, .right, .bottom {
    width: 100%;
}*/
/* Display div elements horizontally on large screens */
/* @media (min-width: 768px) {   /* Media query to add a breakpoint for mobile phones */
/*	.left {
		float: left;
		max-width: 20%; /* The width is 20%, by default */
/*		overflow: auto;
	}
	nav.left {
		padding-top: 0;
		padding-bottom: 0;
	}
	.right {   /* Not used  */
/*		float: left;
		max-width: 20%; /* The width is 20%, by default */
/*		overflow: auto;
	}
	.main {
		float: left; 
		width: 60%; /* The width is 60%, by default */
/*		overflow: auto;
	}
	.bottom {
		float: left;
		width: 100%;
		overflow: auto;
	}
/*}*/