*,
*:after,
*:before {
    box-sizing: border-box;
}
body {
    margin: 0 auto;
    background: #eee;
    max-width: 64rem;
    font-family: Roboto, sans-serif;
}

/* GENERIC --------- */
h1,
h2,
h3 {
    font-family: "Literata", serif;
}
h1 {
    font-weight: 300;
    font-size: 1.5rem;
}
h2 {
    background-color: #ddd;
    padding: 1rem 2rem;
    font-size: 1.5rem;
    font-weight: 200;
    margin: 0;
}
h3 {
    margin-top: 3rem;
}
li,
p {
    line-height: 1.7;
}

/* HEADER --------- */
.header {
    padding: 1rem 0 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.header h1 {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
}
.header a {
    text-decoration: none;
    color: #333;
}
.header a:hover {
    color: #53a669;
}

/*  NAVIGATION --------- */
nav ul {
    background: #333;
    border-collapse: collapse;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
}
li.nav-item {
    flex: 1;
}
li.nav-item a {
    display: block;
    text-align: center;
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 1rem;
}
li.nav-item a:hover {
    background-color: #000;
}
li.nav-item.selected a {
    background-color: #2c5e39;
    color: #fff;
}

/* Responsive Menu Placeholder --------- */
nav .handle {
    width: 100%;
    background-color: #333;
    cursor: pointer;
    color: white;
    display: flex;
    align-content: center;
    height: 0;
    overflow: hidden;
}
nav .handle .menu {
    margin-left: 1rem;
}
nav .menu_icon div {
    background-color: white;
    border-radius: 2px;
    width: 35px;
    height: 3px;
    margin-bottom: 5px;
}

/* CONTENT --------- */
.page-wrapper {
    background-color: #fff;
    min-height: 100vh;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}
.content {
    padding: 2rem 4rem;
}
.content-home h1 {
    font-size: 2rem;
}

/* FOOTER --------- */
.footer {
    margin-top: 5rem;
    padding: 1rem 4rem;
    color: #777;
}

/* Responsive Styles ------ */
@media screen and (max-width: 600px) {
    /* Header --- */
    .header {
        padding: 0.25rem 0;
    }
    .header h1 {
        font-size: 1.25rem;
    }

    /* Navigation --- */
    nav .handle {
        height: auto;
        padding: 1rem 1.5rem 0.75rem;
    }
    nav ul {
        height: 0;
        overflow: hidden;
        transition: all 1s;
    }
    nav ul.showing {
        height: auto;
        flex-direction: column;
    }
    nav ul.showing li a {
        text-align: left;
        padding: 0.5rem 2rem;
        border-top: 1px solid #444;
    }

    /* Content --- */
    .content {
        padding: 2rem;
    }
    .content-home h1 {
        margin-top: 0;
    }

    /* Footer --- */
    .footer {
        padding: 1rem 2rem;
        line-height: 1.5;
    }
    .footer span {
        display: block;
    }
}
