/*
 * html - base font-size
 * body - font-family, border-top that will go underneath header.
 * h1, h2, h3 p  - text-align, font-size,
 *
 *
 * section - 100% width, background color or image. -- each section could be independently idenfied with id - No content except a secbody div. No margins. No padding.
 * 		secbody - the actual body, may apply padding as needed and limit width when combined with lmtwdth
 * 			h1, h2, h3
 * 			secrow | gridltoc - flex model with flex-flow:row,   
 * 				secitem - if secrow 
 *
 *
 *
 * Pixel 3a : 352 x 644 approx
 * iPhone6: 375 x 667 aprox
 * breakpoints wisdom from website:
 * 480 736 980 1280 1680
 * phone 480, tablet 768, laptop 1024, desktop 1200:f
 *
 *
 * One site suggested using these breakpoints
 * (default is below 640?)
 *
 * @media (min-width: 640px) {
 *
 * }
 *
 * @media (min-width: 768px) {
 *
 * }
 *
 * @media (min-width: 1024px) {
 *
 * }
 *
 * @media (min-width: 1280px) {
 *
 * }
 *
 */

:root {
    --pageheader-bg: #eef7ff;
    --primary-color: #1a365d; /* Prussian Blue */
    --accent-color: #c02121;  /* Burnt Orange */
    --text-color: #000;
    --bg-color: #ffffff;
    --light-bg: #f7fafc;
    --border-color: #e2e8f0;
    --banner-text: #ffffff;
}


html { 
	font-size: 16px;
}

* {
	box-sizing: border-box;
}

body {
    font-family:  Libre Baskerville, Lora, Garamond, Noto Serif, Alegreya, PT Serif, Miller, Georgia, Tinos, Lato, Roboto, Khula, Manrope, 'Open Sans', Petrona, serif;
	border-top: 64px solid #fff; /* should be same color as header background color */
	font-weight: normal;
	background-color:#fff;
	color: #000;
	margin: 0 auto;
	padding:0; 
}

hr {
    width:35%; 
    border: 1px solid; 
    margin: 3em 0 0 0;; 
}


.lmtwdth {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

input {
    border-width: 1px;
}

.indent {
	padding-left:3rem;
}

select {
	font-family:inherit;
}

h1, h2, h3 {
	margin: 1em 0 0.5em 0;
	padding: 0;
	font-weight:normal;
}

hfirst {
	margin-top:0;
}

h1.hfirst, h2.hfirst, h3.hfirst {
	margin: 0 0 0.5em 0;
	padding: 0;
	font-weight:normal;
}


h1 {
	font-size:2.8rem;
	line-height:1.2em;
}

h2 {
	font-size: 2rem;
	line-height: 1.2em;
	margin-bottom: 0.2em;
}

h3 {
	font-size: 1.3rem;
	line-height: 1.3em;
	font-style: italic;
}

p, li {
	font-size: 1rem;
	text-align: left;
}

p {
	line-height: 1.8em;
}

li {
   	margin: 0 0 0.5em 0;
	line-height: 1.6em;
}


a, a.visited {
	text-decoration:none;
}


table {
    border-collapse: collapse;
}


td, th {
    border: 1px solid #00000036;
    text-align: left;
    padding: 3px 8px;
	line-height: 1.3em;
}

th {
    background-color:#eef;
	color:#222;
}


.progressbox {
    width:100%;
}

.progressbar {
    background-color:#28a745;
    line-height:24px;
    color:white;
}

.skybg {
	background-color:#f1f1f9;
}

.darkbg {
	background-color:#000;
	color:#fff;
}


.lightpink {
	background-color:#f8f0f8;
}

.emphwords {
	font-weight:normal;
	color:#111;
}

.article {
	column-count:3;
	column-gap:3rem;
}

#pageheader {
	z-index:100;
	position:fixed;
	top:0;
	margin:0;
	padding:0;
	background-color: var(--pageheader-bg);
    border-bottom: 1px solid #286aa5;
}

#pageheader .secbody {
	padding: 0.8rem 1rem;
	position: relative;
	margin:0 auto;
}


#header{
	width:100%; 
	margin:0;
	padding:1em;
	display:flex;
	flex-flow: row wrap;
	align-items:center;
	justify-content:space-between;
}

#pageheader .secitem { 
	align-items:center;
}

#pageheader .secrow { 
	display: flex;
    flex-flow: row nowrap;
    align-items: center;
	margin: 0;
}

#pagelogo {
    display: flex;  /* helps the logo image and title align better */
    font-size: 2rem;
    margin: 0;
    align-items: self-end;
    cursor:pointer;
}

#pagelogo img {
	margin-right:1rem;
	vertical-align:middle;
	max-height:40px;
}


#pagelogo li {
	font-size:1.5rem;
}

#hamburger {
	display: none;
}


#navitems,
#navitems ul {
	list-style: none;
}


#navitems li a{
	font-size:1rem;
	text-decoration : none;
	color:inherit;
}



#navitems.standard {
	display:flex;
	flex-flow: row wrap;
	justify-content: space-around;
	margin: 0;
	padding : 0;
	text-align : center;
	color:#000;
}

#navitems.standard li {
	position:relative;
	cursor:pointer;
	margin:0;
}

#navitems.standard li a{
	font-size:1rem;
	text-align:center;
	text-transform : uppercase;
    padding: 0.6em 1em;
    margin: 0;
}

#navitems.standard > li a {
  display: block; /* Makes the link expand to fill the li element */
  width: 100%;    /* Fills the horizontal space */
  height: 100%;   /* Fills the vertical space */
}


#navitems.standard li ul {
	display:none; /* will be display:block on hover */
	padding:0;
	margin:0;
	background-color:#fff;
	position:absolute;
	top:100%;
}

#navitems.standard li:hover ul{
	display:block;
	border:1px solid #aaf;
}	

#navitems.standard li ul li {
	margin:0px;
	line-height:1.2em;
	padding:0 0.8em;
}	

#navitems.standard li ul li a{
	display:block;
	font-style:normal;
	font-size:0.95rem;
	text-align:left;
}

#navitems.standard li:hover{ /* cascades to  the dropdown submenus li also */		
    background-color:#aaf;
}	

#hamburger {
	display: none;
	border-radius: 5px;
	background-color: transparent;
	float: right;
	height: 38px;
	width: 38px;
	cursor: pointer;
	padding: 8px 8px;
}

#hamburger span {
	position: relative;
	display: block;
	height: 3px;
	width: 100%;
	margin-top: 4px;
	background-color: black;
	transition: all .25s;
}

#hamburger.responsive span:first-child {
	transform: rotate(45deg) translate(5px, 5px);
}
#hamburger.responsive span:nth-child(2) {
	width: 0%;
	opacity: 0;
}
#hamburger.responsive span:last-child {
	transform: rotate(-45deg) translate(5px, -5px);
}


ul#navitems.responsive {
	margin:  0;
	padding : 0;
	text-align : left;
	display:block;
	position:absolute;
	right:0;
	top:100%;
	background-color:#358;
	color:#fff;
	z-index:1000;
}


ul#navitems.responsive li a{
	font-size:1rem;
	font-weight:normal;
	margin-left:10px;
	text-align:left;
	text-decoration : none;
	text-transform : uppercase;
	padding:0.5em 0.7em;
	border-radius:0.3em;
	color:#fff;
}


ul#navitems.responsive li ul {
	display:block;
	padding:0px;
	margin:0px 0px 0px 1.5rem;
}


ul#navitems.responsive li ul li a{
	display:block;
	font-size:1rem;
	font-style:normal;
	margin:0px;
	padding:0.1em 0.9em;
	text-align:left;
	color:#fff;
}


ul#navitems.sidebar {
	margin: 3rem 0;
	padding : 0;
	text-align : center;
	color:#888;
}

ul#navitems.sidebar > li {
	margin: 0;
	padding:0.4em 0.7em;
}

ul#navitems.sidebar li a{
	font-size:1.2rem;
	text-align:left;
	text-transform : uppercase;
}


ul#navitems.sidebar li ul {
	display:none; /* will be display:block on hover */
	padding:0;
	margin:0.4em 0 0 0;
	background-color:#501550;
	position:absolute;
}


#flashboard {
	background-size: cover;
	background-position: center center;
	text-align:center;
	font-weight:normal;
}


#flashboard h1, #flashboard h2, #flashboard h3 {
	/* custom for the channel site */
}


.pgtitle { 
    font-size:3rem;
    margin: -1rem 0 1rem 0;
    border-bottom: 1px solid;
}


.section {
	width:100%;
	margin:0 auto; /* auto is useful, in case width is modified by another class or id */
}



.secbody {
	width:100%;
	margin:0 auto; /* auto is useful, in case width is modified by another class or id */
	padding:3% 3rem;
}

.secbody h1,
.secbody h2 {
	text-align:center;
}

.secrow {
	display:flex;
	flex-flow: row wrap;
	justify-content:space-between;
	padding:0; 
}


.secitem {
	padding:0;
	margin:1.5rem;
	text-align:center;
/*	flex:1 1 0%; /* grow, shrink, start with 0 size */
}

.secitem h1 {
	font-size:2.5rem; /* slightly smaller than default h1 */
	margin: 1em 0;
	text-align:center;
}

.secitem h2 {
	font-size:1.8rem; /* slightly smaller than default h2 */
	margin: 1em 0;
	text-align:center;
}


.secitem  p {
	text-align:left;
}

/* to flag a form  field as error */
.flag {
	border-bottom: solid 2px #f00;
}

.grid3x3 {
	display:grid;
	grid-template-rows: auto auto auto; 
	grid-template-columns: 1fr 1fr 1fr;
	column-gap: 40px;
	row-gap: 15px;
	grid-auto-flow: column;
}

.grid3x4 {
	display:grid;
	grid-template-rows: auto auto auto auto; 
	grid-template-columns: 1fr 1fr 1fr;
	column-gap: 40px;
	row-gap: 15px;
	grid-auto-flow: column;
}

.grid3x4 h1,
.grid3x3 h1 {
	margin-top: 0;
}


@media screen and (max-width: 768px) {

.grid3x4,
.grid3x3 {
	display:block;
}

.grid3x3>:nth-child(3n + 1) {
	margin-top:3rem;
}

.grid3x4>:nth-child(4n + 1) {
	margin-top:5rem;
}
}

.gridrtoc {
	display: grid;
	grid-template-columns: 60% 35%;
	column-gap: 5%;
	row-gap: 30px;
	grid-template-areas: "content aside";
}

.gridltoc {
	display: grid;
	grid-template-columns: 35% 60%;
	column-gap: 5%;
	row-gap: 30px;
	grid-template-areas: "aside content";
}

.secbody .gridltoc h1,
.secbody .gridltoc h2 {
	text-align:left;
}

.grid3x4x {
	grid-template-columns: 3fr 4fr;
}

.grid4x3x {
	grid-template-columns: 4fr 3fr;
}

.grid3x4x,
.grid4x3x {
	display: grid;
	column-gap: 30px;
	row-gap: 10px;
}

.acard {
	padding:1rem 1.1rem 1rem 1.4rem;
	background-color:#fafafa;
	border-left:2rem solid hsl(179,61%,27%); 
	box-shadow: 4px 4px 6px rgba(0,10,30, 0.2);
	height:fit-content;
	margin-bottom:2.5rem;
}

.acard h1 {
	margin-top: 0;
}

.acard h1, .acard h2, .acard h3 {
	text-align: left;
}


.acard  h2 {
	margin: 0;
	padding: 1.4rem 0;
}


.acard ul {
    padding: 0 0 0 1.89em;
}

.book h1 {
	text-align:left;
}

#frmsearch {
	display: flex;
	flex-flow:row nowrap;
	justify-content: space-between;
	margin: 0 0 2rem 0;
}

#feedbacksubmit {
	color:#fff;
	padding:15px ;
	background-color:#254674;
	text-align:left;
	text-decoration:none;
	cursor: pointer;
	max-width:200px;
	font-size:1.2rem;
	font-weight:bold;
}



#searchbox {
	background: #eee;
	padding:10px;
	border-radius:20px;
	margin: 0 6px 0 0;
	flex: 1 0;
}

#searchbtn {
	background-color:#254674;
	color: white;
	padding: 10px 20px;
	border: 0 none;
	font-weight: bold;
	cursor: pointer;
	border-radius:50%;
	flex: 0 0 60px; 
}
 

.qalist {
	display:block;
	font-size:1.2rem;
	margin: 0.5em 0;
	text-decoration: none;
	white-space: nowrap; 
	overflow: hidden;
	text-overflow: ellipsis;
}

.qalist:hover {
	text-decoration: underline;
	overflow: visible;
}

#qaquestion {
	font-size:1.8rem;
	line-height:1.5em;
}

#qaanswer h1 {
	font-size:2.5em;
}


#qaanswer h2 {
	font-size:2rem;
}

#qaanswer h3 {
	font-size:1.5rem;
}




#qaanswer {
	margin: 3rem 0 0 0;
	font-size:1rem;
	line-height:1.8em;
	padding-bottom:3rem;
}

.pageindex {
	margin: 2rem 0 0 0;
	font-weight:bold;
}




ul.feedbacks {
	list-style-type:none;
	padding: 0;
}

ul.feedbacks li {
	width:100%;
}

.feedback {
	display:flex;
	flex-flow: row nowrap;
	padding: 15px 0;
}

.feedbackpic {
	flex: 0 0 auto;
	
}

.feedbackpic  img {
	width:100px;
	padding: 0 10px 0 0;
}

.feedbackfull-pic {
	float:left;
}


.feedbackfull-pic  img {
	max-width:200px;
	border:1px solid #202; 
	margin: 6px 14px 6px 0;
}



.feedbackauthor {
	display:block;
	font-size:1.5rem;
}

.feedbackfull-author {
	display:block;
	font-size:1.8rem;
	font-weight:bold;	
	margin:30px 0;
	text-align:left;
}


.feedbackevent {
	margin:30px 0;
}

.feedbackdate {
	margin:30px 0;
	display:none;
}

.feedbackcontact {
	margin:50px 0;
}



.feedbacktext {
	line-height: 1.5em;
	margin:5px 0px 0px 0px;
	padding: 0px;
	text-align: left ;
}


.feedbackmore {
	padding: 10px 0 0 0 ;
}



ul.eventposts {
	list-style-type:none;
	padding: 0;
}

ul.eventposts li {
	width:100%;
}


.eventpostpic {
	float:left;
	margin-top:1rem;
}

.eventpostpic  img {
	width:100%;
}

.eventpostfull-pic {
	float:left;
}


.eventpostfull-pic  img {
	max-width:400px;
	border:1px solid #202; 
	margin: 6px 14px 6px 0;
}

.eventposttitle {
	display:block;
	font-size:1.5rem;
	margin: 1rem 0 ;
}

.eventpostfull-title {
	display:block;
	font-size:1.5rem;
	margin: 1rem 0 ;
}


.eventpostauthor {
	display:none;
	font-size:0.9rem;
}

.eventpostfull-author {
	display:none;
	font-size:.9rem;
	margin:30px 0;
	text-align:left;
}


.eventpostevent {
	margin:30px 0;
}

.eventpostdate {
	margin:30px 0;
	display:none;
}

.eventpostcontact {
	margin:50px 0;
}



.eventposttext {
	line-height: 1.5em;
	color:#444;
	margin:5px 0px 0px 0px;
	padding: 0px;
	text-align: left ;
}


.eventpostmore {
	padding: 10px 0 0 0 ;
}


.backlink {
	font-weight:bold;
	text-decoration:underline;
}


ul.checklist li { background: none; padding-left: 0; }

/* CSS for checklists */
ul.checklist {
	border: 0px solid #ccc;
	list-style: none;
	overflow: auto;
	display: inline;
	padding: 0px 0px 0px 0px;
}
ul.checklist, ul.checklist li { 
	display:inline; 
	margin-left: 0; 
}


.actbutton {
	font-size:1.2rem;
	background-color:#fff;
	white-space:nowrap;
	border-radius:5px;
	color:#333;
	padding:0.4rem 1rem;
	width:fit-content;
	margin: 1rem auto;
 	cursor:pointer;
}


.actbutton:hover {
	background-color:#a1a;
}

.actbutton p {
	font-size:1.5rem;
	margin: 0;
	text-align:center;
}

#references .h2 {
	font-size:2.0rem;
	font-weight:normal;
	font-style:normal;
	margin: 1em 0 0.5em 0;
}


.floatr {
    float:right;
}

.floatl {
    float:left;
}


#references .h3 {
	font-size:1.0rem;
	font-weight:normal;
	font-style:normal;
	margin: 1em 0 0.5em 0;
}

#references .h4 {
	font-size:0.9rem;
	font-weight:normal;
	font-style:italic;
	margin: 0.5em 2em;
}

#references .hfirst {
	margin-top:0;
}


#references a {
	display:block;
	font-size:0.9rem;
	margin: 0;
	padding: 0 0 0 2em;
	line-height: 1.1em;
	text-decoration:none;
}


#pagefooter {
	background-color:#224;
	padding: 0;
	text-align:center;
	font-weight:bold;
	color:#fff;
}


/* The Modal (background) */
.modalbox {
	display: none; /* Hidden by default */
	position: fixed; /* Stay in place */
	z-index: 10000; /* Sit on top */
	left: 0;
	top: 0;
	margin:15%;
	width: 80%;
	height: 60%;
	overflow: auto; /* Enable scroll if needed */
	background-color: rgb(0,0,0); /* Fallback color */
	background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modalcontent {
	background-color: #fefefe;
	margin: auto;
	padding: 3rem;
	border: 1px solid #888;
}

/* The Close Button */
.modelclose {
	color: #999;
	margin: 1rem;
	font-size: 28px;
 	cursor: pointer;
	font-weight: bold;
}

.modelclose:hover,
.modelclose:focus {
	color: #000;
	text-decoration: none;
}

.modalbox h1 {
	font-size:2.5rem;
}



@media screen and (max-width: 768px) {

html {
	font-size: 80%;
}

#hamburger {
	display: inline;
}

ul#navitems.standard {
	display: none;
}

#pageheader {
	position:absolute;
	z-index: 0;
}

#header {
	align-items:center;
}

#flashboard {
	padding:4em 0 1em 0;
}

#flashboard h1 {
	font-size:4rem; 
}

.secbody {
	padding:3rem 2%;
}

.grid3x4x,
.grid4x3x,
.gridltoc,
.gridrtoc,
.secrow {
	display:block;
	margin:1rem;
}

.secitem {
	display: block;
	width:98%;
	margin: 0 auto;
	padding:0;
}

.article {
	column-count:1;
}

}
