/*
Here are some commonly used CSS class selectors which 
-class rules can applied to multiple elements on a page
-can be applied in any combination
*/
@font-face {/*instructions to browser where to find your custom font*/
    font-family: titleFont;/*use any name but don't start with a number and don't use spaces or strange characters*/
    src:	url(../fonts/titleFont2.ttf);/*.ttf for non-IE browsers - the comma is very important!!!!*/ 
}
@font-face {/*instructions to browser where to find your custom font*/
    font-family: textFont;/*use any name but don't start with a number and don't use spaces or strange characters*/
    src:	url(../fonts/textFont.ttf);/*.ttf for non-IE browsers - the comma is very important!!!!*/ 
}
@font-face {/*instructions to browser where to find your custom font*/
    font-family: nameFont;/*use any name but don't start with a number and don't use spaces or strange characters*/
    src:	url(../fonts/nameFont2.ttf);/*.ttf for non-IE browsers - the comma is very important!!!!*/ 
}
@font-face {/*instructions to browser where to find your custom font*/
    font-family: dropCapFont;/*use any name but don't start with a number and don't use spaces or strange characters*/
    src:	url(../fonts/dropCapFont.ttf);/*.ttf for non-IE browsers - the comma is very important!!!!*/
}
* {
    box-sizing:border-box;/*This allows you to set and border width and padding but the div will retain its set width and set height*/
    position: relative;
    margin: 0px;
    padding: 0px;
}
html, body {
    width:100%;
    min-height:100%;
    height:auto;
}
header, nav, section, article, figure, figcaption, aside, footer {/*ensures older browsers display these tags correctly*/
    display:block;
    /*DON'T ADD anything else in this selector block - only this property should be in this CSS selector set*/
}
body {/*these are the 5 basic CSS properties and values to start a website*/
    font-family: Verdana, sans-serif;/*change this for your design*/
    font-size:100%;/*DON'T CHANGE THIS VALUE HERE - you can set font sizes in other selector styles*/
    color:rgba(0,0,0,1.00);/*main text color, default black, change as needed*/    
    margin: 0px;/*removes default edges*/
    padding: 0px;/*removes default settings*/
    z-index:0;/*stacking order - small numbers a below high numbers*/
}
#nameBox {
	width: 100%;
	height: 100vh;
	position: fixed;
	top:0px;
	left: 0px;
	z-index: 1000000;
	font-family: nameFont;
	font-size: 16em;
	background-position: top center;
	background-repeat: no-repeat;
	background-size: cover;
	display: -webkit-flex;
	display: flex;
	justify-content: center;
	align-items: center;
	color: lightgoldenrodyellow;
	background-image: url(../images/bg1.jpg);
	cursor: pointer;
}
#centeringDiv, .centeringDiv{
    max-width:980px;/*optimum width for both desktops, laptops, and tablets*/
    width:100%;/*allows the page to resize it's width to fit smaller devices*/
    height: auto;/*optimum height for both desktops, laptops, and tablets*/    
    margin:0 auto;/*0 = no margin for top and bottom and auto = same margin for left and right*/
    z-index:1;/*stacking order - small numbers a below high numbers*/
}

nav {
    width:100%;/*change as needed*/
	background-color: white;
    z-index:1001;/*stacking order, bigger numbers are on top*/
    display:-webkit-flex;/*allows elements in nav to have flexible locations*/
    display:flex;/*allows elements in nav to have flexible locations*/
    justify-content: space-between;/*horizontally centers all elements in nav*/
    align-items:center;/*vertically centers all elements in nav for a single row of elements*/
    flex-direction:row;/*places all elements in nav in a row - other option is column*/
    flex-wrap:no-wrap;/*ensures that elements in nav do NOT wrap to a 2nd row*/ 
	position: absolute;
	top: 0px;
	left: 0px;
}

*,
*:after,
*::before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
nav div a {
	position: relative;
	display: inline-block;
	margin: 15px auto;
	outline: none;
	color: #fff;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 400;
	text-shadow: 0 0 1px rgba(255,255,255,0.3);
	font-size: 1em;
	font-family: titleFont;
}
nav a:hover,
nav a:focus {
	outline: none;
}

/* Effect 7: second border slides up */
.cl-effect-7 a {
	padding: 12px 10px 10px;
	color: #566473;
	text-shadow: none;
	font-weight: 700;
}
.cl-effect-7 a::before,
.cl-effect-7 a::after {
	position: absolute;
	top: 100%;
	left: 0px;
	width: 100%;
	height: 3px;
	background: #566473;
	content: '';
	-webkit-transition: -webkit-transform 0.3s;
	-moz-transition: -moz-transform 0.3s;
	transition: transform 0.3s;
	-webkit-transform: scale(0.85);
	-moz-transform: scale(0.85);
	transform: scale(0.85);
}
.cl-effect-7 a::after {
	opacity: 0;
	-webkit-transition: top 0.3s, opacity 0.3s, -webkit-transform 0.3s;
	-moz-transition: top 0.3s, opacity 0.3s, -moz-transform 0.3s;
	transition: top 0.3s, opacity 0.3s, transform 0.3s;
}
.cl-effect-7 a:hover::before,
.cl-effect-7 a:hover::after,
.cl-effect-7 a:focus::before,
.cl-effect-7 a:focus::after {
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	transform: scale(1);
}
.cl-effect-7 a:hover::after,
.cl-effect-7 a:focus::after {
	top: 0%;
	opacity: 1;
}
/*----header styles------*/
header, #allArticles {
	width: 100%;/*This is changed by javascript*/
	margin: auto;
}
header {
	width:100%;
    height:250px;
    z-index:1000;/*stacking order - small numbers a below high numbers*/
	background-repeat: no-repeat;
	background-position: top center;
	background-size: cover;/*REQUIRED to completely cover the entire width of headers*/
    display:-webkit-flex;/*allows elements in nav to have flexible locations*/
    display:flex;/*allows elements in nav to have flexible locations*/
    align-items:center;/*vertically centers all elements in header for a single row of elements*/
}
.headerTitle {
	font-family: titleFont;
	text-align: center;
	color: #000000;/*Text color*/
	font-size: 3em;
	margin: auto;/*REQUIRED to vertically and horizontally center*/
	z-index: 202;
}
#header0 {
	background-image: url(../images/bg0.jpg);
}
#header1 {
	background-image: url(../images/bg1.jpg);
}
#header2 {
	background-image: url(../images/bg2.jpg);
}
#header3 {
	background-image: url(../images/bg3.jpg);
}
#header4 {
	background-image: url(../images/bg4.jpg);
}
#header5 {
	background-image: url(../images/bg5.jpg);
}
#header6 {
	background-image: url(../images/bg6.jpg);
}
#header7 {
	background-image: url(../images/bg7.jpg);
}
#header8 {
	background-image: url(../images/bg8.jpg);
}
#header9 {
	background-image: url(../images/bg9.jpg);
}
/*----Main content styles -------*/
#allArticles {
	width: 100vw;
	height: auto;
	margin: 0 auto;
	z-index: 100;
	padding-top: 100px;
}
#allArticlesWrapper {
	z-index: 200;
}
article {
	float: left;
	z-index: 300;
	height: auto;
}
section h1 {
	text-align: center;
	font-size: 2em;
}
section h2 {
	display: none;
}
section p {
	margin-bottom: 1em;
	text-indent: 0em;
}
section {/*used for the main content area*/
    clear:both;/*clears away and floating or text wrapping*/
    width:100%;
    height:auto;
    padding:10px;
    z-index:901;/*stacking order - below nav and .btn but above section*/ 
	font-family: textFont;
	font-size: 1.7rem;
}
section p {
    text-indent: 2rem;/*an rem is the size of a letter m relative to what's set in the body css rule*/
}
.thumbnail{
	max-width: 296px;
	cursor: pointer;
	z-index: 227;
	float: left;
	margin-right: 20px;
	height: auto;
}
#img0 {
	cursor: default;
}
footer {
    clear: both;/*clears away and floating or text wrapping*/
    display: -webkit-flex;/*allows elements in btn to have flexible locations*/
	display: flex;/*allows elements in btn to have flexible locations*/
	justify-content: center;/*horizontally centers all elements in btn*/
	align-items: center;/*vertically centers all elements in btn for a single row of elements*/
    font-size: 1rem;
    width: 100%; 
    height: 40px;
    z-index: 900;/*stacking order - below article, nav, and .btn*/
	position: fixed;
	bottom: 0px;
	left: 0px;
	background: white;
	font-family: textFont;
}
/*===========Class rules to apply to multiple elements in the HTML===============================*/
figure {max-width:500px; width:100%; height: auto; }/*change if needed for global figure widths*/
figure, figure p, figcaption p {text-indent: 0px; text-align:center;}/*for any captions or paragraphs inside figure tags*/
figure img {width: 100%; height:auto;}/*forces image in figure to fit a specific figure width set with other CSS - default is 500px wide*/
.floatLeft {float: left;}/*positions an element on the left of parent div and have text wrap around it*/
.floatRight {float: right;}/*positions an element on the right of parent div and have text wrap around it*/
.centerText {text-align: center;}/*apply to p, h1, h2, h3, h4, h5, h6 tags - positions text in center of parent div*/
.clearFloats {clear: both; width:100%; position:relative; height:1px;}/*apply to div tags - clears away and floating or text wrapping*/


/*Styles for small moblie devices*/
@media screen and (max-width : 708px ){
	nav, header {
		display: none;
	}
	#nameBox {
		font-size: 3rem;
	}
	#allArticles, #allArticlesWrapper {
		width: 100%;
		height: auto;
		overflow: visible;
		padding-top: 20px;
	}
	article {
		float: none;
		width: 100%;
		min-height: 50vh;
		height: auto;
	}
	section figure img{
		max-width:480px;
		width:100%;
		height:auto;
		border-radius:50%;
		cursor:pointer;
	}
	section h2 {
		text-align:center;
		font-size:2em;
		font-family:titleFont;
		display: block;
	}	
	section{
		min-height:50vh;
		height:auto;
	}
	section p{
		line-height:1.5em;
	}
	section figure figcaption{
		font-size:0.8em;
	}
	.dropCap {
		display: block;
		font-family:titleFont;
		font-size: 4em;
		font-weight:bold;
		color:cadetblue; 
		margin-right:-30px;
		float: left;
		margin-top: -31px;
		padding-top: 20px;
		margin-left: -35px;
	}
	body{
		background-color: bisque
	}
}
