@CHARSET "UTF-8";

/* 
	Base CSS for tags/elements and and styles used in base.html (e.g., nav and menus)
*/

/* support z-index vars to keep track of stacking (see CID 7.4.3) */
--z-loading-indicator: 100; --z-nav-menu: 200; --z-dropdown-menu: 300; --z-modal-backdrop: 
	400; --z-modal-body: 410; :root {
	font-size: 1.0em;
	box-sizing: border-box;
}

/* See 3.6 in CID.  */
*, *::before, *::after {
	box-sizing: inherit;
}

@media ( min-width : 60em) {
	:root {
		font-size: 1.1em;
	}
}

/* defaults */
body {
	font-family: Helvetica, Arial, sans-serif;
	margin: 0;
}

header {
	margin: 0;
	padding: 0;
}

/* remember LVHA rule */
a:link {
	text-decoration: none;
	font-size: 1.0 rem;
	font-style: normal;
	font-weight: 500;
	color: #185aa5;
}

a:visited {
	color: #185aa5;
}

a:hover {
	
}

a:active {
	
}

label {
	text-align: left;
	padding: 0 1em;
}

button {
	font-size: 0.8rem;
	color: white;
	background-color: rgba(24, 90, 165, 1);
	box-shadow: 1px 1px 1px #888888;
	padding: 0.5em 0.8em;
	border-radius: 0.2em;
	text-decoration: none;
	cursor: pointer;
	border: none;
}

/* menu hamburger and modal close use this, not sure why it's called mc-quiet */
button.mc-quiet {
	box-shadow: inherit;
	padding: 5px;
}

input, textarea {
	width: 98%;
	margin: 0.5em 0.5em 0.5em 0;
	min-height: 3.5em;
	text-align: left;
	border-radius: 0.5em;
}

input::placeholder, textarea::placeholder {
	color: green;
}

input[type="checkbox"] {
	background-color: #185aa5;
}

select {
	margin: 1em 1em;
	min-width: 5em;
	max-width: 25em;
	font-size: 1rem;
	padding: 5px;
}

select+select {
	margin: 0 1em;
}

h1 {
	color: #185aa5;
	font-size: 1.3rem;
	padding-bottom: 0.4em;
}

h1.mc-center {
	text-align: center;
}

h2 {
	color: green;
	font-size: 1.2rem;
	padding-bottom: 0.2em;
}

h3 {
	color: #0B173B;
	font-size: 1.1rem;
	padding-bottom: 0.1em;
}

h4 {
	font-size: 1.05rem;
	padding-bottom: 0.1em;
}

h4.mc-center {
	padding: 0.5em 0 0.5em 0;
	text-align: center;
	font-size: 1.3rem;
}

form {
	padding: 0;
	margin: 0;
}

ul {
	padding-top: 0.3em;
}

ul.mc-no-bullets {
	list-style: none;
}

li {
	padding-bottom: 0.8em;
}

pre {
	margin: 1em;
	padding: 1em;
	font-size: 1.1rem;
	overflow: auto;
	border: 1px dashed #C1B496;
	font-family: UbuntuMono, courier, monospace;
	white-space: pre;
	word-wrap: normal;
	border-radius: 0.5em;
	width: 90%;
	height: auto;
}

math {
	padding: 1em 0;
}

mo {
	padding: 2px 0 1px 0;
}

figure, svg {
	border-style: none;
	display: block;
	margin: 2vh auto;
	padding-bottom: 0.5em;
	max-width: 90%;
	/* cursor: pointer; */
}

@media ( min-width : 60em ) {
	figure {
		max-width: 80%;
	}
}

figcaption, caption {
	font-weight: bold;
	font-size: 1rem;
	margin: 0.5em 0 0.5em 0;
	
}

footer {
	background: #e9e9e9;
	border-bottom: 2px solid #185aa5;
	border-top: 2px solid #185aa5;
	color: #111;
	text-align: center;
	padding: .5em 0;
	text-shadow: 0 1px 0 #eee;
	font-weight: 700;
	font-size: 0.8rem;
	display: flex;
	justify-content: center;
}

img {
	max-width: 100%;
}

img.mc-center {
	display: block;
	margin: 2vh auto;
}

img.mc-border {
	border: 1px dashed #C1B496;
	border-radius: 0.5em;
}

/* page minus the footer */
#mc-content {
	min-height: 97vh;
}

/* spinner */
#mc-loading {
	position: fixed;
	display: none;
	top: 49%;
	left: 49%;
}

.mc-banner-top {
	display: flex;
	align-items: center; /* centers children along cross axis */
}

.mc-banner-top-left {
	flex-basis: 33%;
	display: flex;
	align-items: center;
}

.mc-banner-top-center {
	flex-basis: 33%;
}

.mc-banner-top-right {
	flex-basis: 33%;
}

.mc-banner-top-left img {
	padding-left: 0.5em;
}

@media ( min-width : 35em) {
	.mc-banner-top-left img {
		padding-left: 0.5em;
	}
}

.mc-banner-top-center {
	text-align: center;
	color: rgba(24, 90, 165, 1);
}

.mc-banner-top-right {
	text-align: center;
	padding-right: 1em;
	font-size: 0.9rem;
}

.mc-banner-icons {
	height: 20px;
	padding-right: 5px;
	padding-left: 2px;
}

@media ( min-width : 35em) {
	.mc-banner-top-right {
		text-align: right;
		padding-right: 2em;
	}
}

/* 	top container for menu */
#mc-menu {
	position: relative;
	width: 100%;
}

/* hamburger */
#mc-menu-hamburger {
	position: absolute;
	top: -1.4em;
	right: 0.1em;
	border: 0;
	background-color: transparent;
	font-size: 2.5em;
	width: 1em;
	height: 1em;
	line-height: 0.4;
	text-indent: 4em;
	white-space: nowrap;
	overflow: hidden;
}

#mc-menu-hamburger::after {
	font-size: 0.8em;
	position: absolute;
	color: #185aa5;
	top: 0.5em;
	left: 0.2em;
	display: block;
	content: "\2261";
	text-indent: 0;
}

#mc-menu-bar-mobile {
	margin: 0;
	padding: 0.3em 0 0.3em 0.5em;
	border: 1px solid #ccc;
	background-color: #185aa5;
	color: white;
	font-size: 0.9rem;
}

@media ( min-width : 35em) {
	#mc-menu-hamburger {
		display: none;
	}
	#mc-menu-bar-mobile {
		display: none
	}
}

/* div parent for mc-menu-list */
#mc-menu-dropdown {
	z-index: 20;
	display: none;
	position: absolute;
	right: 0;
	margin: 0;
}

@media ( max-width : 35em) {
	#mc-menu.is-open #mc-menu-dropdown {
		display: block;
	}
}

@media ( min-width : 35em) {
	#mc-menu-dropdown {
		display: block;
		position: static;
	}
}

#mc-menu-list {
	margin: 0;
	padding: 0;
	border: 1px solid #ccc;
	list-style: none;
	background-color: #185aa5;
	color: white;
}

#mc-menu-list>li {
	text-align: center;
	border-top: 2px solid #185aa5;
	border-bottom: 2px solid #185aa5;
}

#mc-menu-list>li a {
	display: inline-block;
	color: white;
	font-size: 0.9rem;
	font-weight: normal;
	padding: 0.1em 1em 0.1em 1em;
	margin: 0 auto;
}

@media ( min-width : 35em) {
	#mc-menu-list {
		display: flex;
		position: static;
		border: 0;
	}
	#mc-menu-list>li {
		flex: 1;
		padding-bottom: 0;
	}
	#mc-menu-list>li a {
		display: inline-block;
		border-top: 5px solid #185aa5;
		border-bottom: 5px solid #185aa5;
		transition: border-bottom 0.3s ease-out;
	}
	#mc-menu-list>li a:hover {
		border-bottom: 5px solid #00cc00;
	}
}

/* body container div for each page's contents */
#mc-body {
	margin: 0 auto;
	width: 90%;
	background-color: #fff;
}

@media ( min-width : 120em) {
	#mc-body {
		width: 80%;
	}
}

#mc-body p {
	margin: 1em;
	width: 90%;
	line-height: 1.4em;
	text-align: justify;
}

#mc-body ul {
	margin: 0.5em;
	width: 85%;
	line-height: 1.4em;
	text-align: justify;	
}

/* dialogs */
.mc-dlg-btn {
	max-width: 10.0em;
}

#mc-footer-left {
	flex: 1;
}

#mc-footer-center {
	flex: 1;
}

#mc-footer-right {
	flex: 1;
	display: flex;
	font-size: small;
}

.mc-footer-item {
	flex: 1;
}

/* outer modal container */
#mc-modal {
	display: none;
}

/* disable the viewport behind the modal box */
#mc-modal-backdrop {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 50;
}

/* modal box */
#mc-modal-body {
	position: fixed;
	border-radius: 1em;
	border: 2px #185aa5 solid;
	top: 20%;
	bottom: 20%;
	right: 20%;
	left: 20%;
	padding: 2em 3em 2em 3em;
	background-color: white;
	overflow: auto;
	z-index: 60;
}

/* offsets are calculated in js */
#mc-modal-body.mc-image {
	
}

#mc-modal-body.mc-large {
	top: 10%;
	bottom: 10%;
	right: 10%;
	left: 10%;
}

#mc-modal-body.mc-small {
	padding: 1em 1.5em;
	margin: 0;
	top: 10%;
	bottom: 10%;
	right: 10%;
	left: 10%;
	overflow: scroll;
}

#mc-modal-body.mc-xtra-small {
	padding: 1em 1.5em;
	margin: 0;
	top: 15%;
	bottom: 15%;
	right: 15%;
	left: 15%;
	overflow: scroll;
}

@media ( min-width : 45em) {
	#mc-modal-body.mc-small  {
		top: 15%;
		bottom: 15%;
		right: 15%;
		left: 15%;
	}
	
	#mc-modal-body.mc-xtra-small {
		top: 35%;
		bottom: 35%;
		right: 25%;
		left: 25%;	
	}
}

@media ( min-width : 80em) {
	#mc-modal-body.mc-small  {
		top: 25%;
		bottom: 25%;
		right: 25%;
		left: 25%;
	}
	
	#mc-modal-body.mc-xtra-small {
		top: 35%;
		bottom: 35%;
		right: 30%;
		left: 30%;	
	}
}

/* modal close button */
button#mc-modal-close {
	position: absolute;
	background-color: white;
	color: black;
	top: 0.1em;
	right: 0.1em;
	cursor: pointer;
	font-size: 2em;
	height: 1em;
	width: 1em;
	text-indent: 10em;
	overflow: hidden;
	border: 0;
}

/* modal close button */
#mc-modal-buttons {
	position: absolute;
	bottom: 1em;
	left: 3em;
	padding: 0.3em;
	border: 0;
}

#mc-modal-close::after {
	position: absolute;
	line-height: 0.5;
	top: 0.2em;
	left: 0.1em;
	text-indent: 0;
	content: "\00D7";
}

/* outer calendar container */
.mc-cal {
	display: none;
}

/* disable the viewport behind the modal box */
.mc-cal-backdrop {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.2);
}

.mc-cal-body {
	background-color: white;
	display: grid;
	position: absolute;
	top: 20%;
	left: 20%;
	grid-template-columns: 3em 3em 3em 3em 3em 3em 3em;
	grid-template-rows: repeat(8, 2.5em);
	grid-gap: 0.1em;
	margin: 10px;
	border: 0.5em solid white;
	z-index: 100;
}

.mc-cal-body>* {
	text-align: center;
	color: white;
	padding: 0.5em 0.5em;
	border-radius: 0.1em;
}

.mc-cal-hdr-icon+.mc-cal-hdr-month {
	grid-gap: 0em;
	margin: 0;
}

.mc-cal-hdr-icon {
	background-color: #297ac5;
	display: block;
}

.mc-cal-hdr-icon>img {
	text-align: center;
	vertical-align: center;
}

.mc-cal-hdr-month {
	grid-column: span 5;
	background-color: #297ac5;
}

.mc-cal-hdr2 {
	background-color: navy;
}

.mc-cal-day {
	background-color: #185aa5;
}

.mc-cal-day:hover {
	font-style: italic;
	font-weight: bold;
}

.mc-cal-spare {
	background-color: #297ac5;
}

/* used with calendar */
.mc-clicked {
	background-color: silver;
	color: black;
}

/* 120 x 360 */
#mc-button-more {
	margin-top: -90px;
	position: fixed;
	left: -15px;
	top: 80%;
	transition-property: all;
	transition-duration: 1s;
}

#mc-button-more:hover {
	left: 0px;
	transition-duration: 0.1s;
}

.mc-todo {
	color: SeaGreen;
	font-size: 0.9rem;
}
