/**************************
RESET to ensure user agent padding and 
margin on elements do not affect layout.

Note this reset is not appropriate for
production websites.
***************************/

* {margin: 0; padding: 0;}

body {
	font-family: Calibri, san-serif;
	color:#333;
	background-color: #E2E2E2;
}

main {
	margin: auto;
	width: 1000px;
	padding: 20px;
	background-color: white;
	display: block;
}

header {
	background-color: azure;
	text-align: center;
	padding: 30px;
}

h1 {
	font-size: 1.8em;
}

h2 {
	font-size: 1.1em;
	margin-bottom: .9em;
}

h3 {
	font-size: .9em;
}

p {
	font-size: .95em;
	margin-bottom: .9em;
}

nav ul {
	display: flex;
	justify-content: center;
}

nav ul li {
	background-color: #BCDAE9;
	list-style-type: none;
	text-align: center;
	border-right: 2px solid #88A0B1;
	padding: 10px 15px;
	margin-bottom: 0px;
}

nav ul li a, nav ul li a:active {
	text-decoration: none;
	font-size: .9em;
	color: #444;
	text-transform: uppercase;
}

nav ul li a:hover {
	display: block;
	background-color: #A3E8DC;  /* what causes the text to jump??*/
}

nav ul li:last-of-type {
	border: none;
}

#section1 {
	display: flex;
	background-color: #ECCDB2;
	padding: 20px;
	justify-content: space-between;
}

#section1 article {
	background-color: bisque;
	width: 32%
}

#section1 article:nth-child(2) {
	background-color: beige;

}

#section2 {
	display: flex;
	flex-wrap: wrap;
	background-color: #E5F9A8;
	padding: 20px;
	justify-content: space-between;
}
#section2 h2 {
	flex: 100%;
	text-align: center;
}

#section2 article {
	width: 48%;
}

footer {
	font-size: .8em;
	background-color: azure;
	padding: 20px 20px 1px 20px;
	text-align: center;
}

