/* RESET - Cancel some browser defaults to get consistent styling from one browser
     to another. */

html, body, div, span, h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, img, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, a, article, aside, details, figcaption, figure, footer, header, hgroup, menu, #menu, section {
    margin: 0;
    padding: 0;
    border: 0;
}
 
* {
    box-sizing: border-box;
}


/* TYPOGRAPHY */

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1rem;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    margin-bottom: 0.75em;
}

p {
    margin-bottom: 1em;
}

/* COLOUR SCHEME */

#menu {
    background-color: darkgreen;
}


/* LAYOUT */

body {
    display: grid;
    grid-template-columns: 1fr 40rem 1fr;
    max-width: 80rem;
    width: 100%;
    margin: 0 auto;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}

#header {
    grid-column: 1 / span 3;
}

#menu {
    grid-column: 1 / span 3;
    grid-row: 2;
}

#content {
    grid-column: 2;
    grid-row: 3;
}

aside {
    background-color: #efefef;
}

#aside_one {
    grid-column: 1;
    grid-row: 3;
    border-right: 1px solid #ccc;
}

#aside_two {
    grid-column: 3;
    grid-row: 3;
    border-left: 1px solid #ccc;
}

#aside_two p {
    margin-bottom: 0.5em;
}

#aside_two a {
    display: inline-block;
    margin-bottom: 1.5em;
}

#aside_two a:last-child {
    margin-bottom: 0;
}

#footer {
    grid-column: 1 / span 3;
    padding: 1em;
    background-color: #333;
}

#header,
#content,
#aside_one,
#aside_two {
    padding: 1.5em;
}

/* #MENUS/NAVIGATION */

#menu ul {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
}

#menu li {
    padding: 0;
}

nav a:hover {
    background-color: #008000; 
}

footer a:hover {
    background-color: #555;
}

#menu a, footer a {
    text-decoration: none;
    color: #fff;
    display: block;
    padding: 0.5em 2em;
}

nav {
    display: flex;
    justify-content: space-evenly;
}

footer {
    display: flex;
    justify-content: space-around;
}

a {
    color: #0044CC;
    text-decoration: underline;
}


/* IMAGES */

img {
    max-width: 100%;
    height: auto;
}

#content img {
    width: 33%;
}

#content img.left {
    float: left;
    clear: both;
    margin-right: 2em;
    margin-bottom: 2em;
}

#content img.right {
    float: right;
}

aside img {
    margin-bottom: 1em;
}
