/**************************
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: Arial;
    color: #333;
    background-color: #E2E2E2;
}
main {
    width: 80%;
    padding: 20px;
    margin: auto;
    display: block;
    background-color: white;
}
header {
    padding: 40px;
    background-color: azure;
}
h1 {
    text-align: center;
}
nav div {
    width: 120px;
    height: 120px;
    line-height: 120px;
    text-align: center;
    background-color: chocolate;
    font-size: 24px;
    font-weight: bold;
}
nav {
    display: flex;
    background-color: beige;
    align-items: baseline;
}
nav ul {
    width: 100%;
    display: flex;
    list-style-type: none;
}
li:last-of-type {
    margin-left: auto;
}
li form {
    padding: 5px 0;
}
input {
    padding: 5px;
    margin-right: 5px;
}
nav ul li a {
    display: block;
    padding: 0 10px;
    text-align: center;
    /*background-color: coral;*/
    /***change to border left*/
    border-left: #666 2px solid;
}
/**removed the first left borderline**/
nav ul li:first-of-type a {
    border: none;
}
#wrapper {
    position: relative;
    /*height: 0;*/
    padding-top: 50%;
}
#one {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: aqua;
    display: flex;
}
#one div {
    flex: 1;
    display: flex;
    flex-direction: column;
}
#one article {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
	padding: 10px;
}
#article1 {
    background-color: darkgoldenrod;
}
#article2 {
    background-color: darkgray;
}
#article3 {
    background-color: darkkhaki;
}
h2 {
    margin-bottom: 1em;
}
#two {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: #D5D5D5;
    padding: 20px;
}
#two h2 {
    text-align: center;
    flex: 100%;
}
#two article {
    width: 48%;
}
p {
    font-size: 1.4em;
    line-height: 1.2em;
    margin-bottom: 1em;
}
footer {
    padding: 40px;
    text-align: center;
    background-color: azure;
}
