/**************************
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 {
	display: flex;
	flex-direction: row;
	align-items: baseline;
	background-color: #C8F4E5;
}

nav ul {
	display: flex;
	width: 100%;
	list-style-type: none;
}

nav ul li {
	background-color: #BCDAE9;  
	text-align: center;
	border-right: 2px solid #88A0B1;
	padding: 10px 15px;
}

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:nth-child(4) {
		border: none;
}

nav ul li:last-of-type {
	border: none;
	margin-left: auto;
	background-color: #C8F4E5;
}

#logo {
	text-align: center;
	width: 120px;
	height: 120px;
	line-height: 120px;
	color: white;
	background-color: cadetblue
}

.form input {
	padding: 2px 4px;
	border: 1px solid fff;
}

.form button {
	padding: 4px;
	background-color: cornflowerblue;
	color: white;
	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;
}

