/* Reset styles */
* {
    padding: 0;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Base styles */
body {
    font: normal 100%/1.5em 'Trebuchet MS', Tahoma, sans-serif;
    color: #555;
    text-align: center;
    background-color: #FFF;
    background-repeat: repeat-x;
    font-size: 1.2em;
}

div#content {
    width: 60%;
}

div.main {
    margin: 1em 0 1em;
    padding: 0;
    border: 2px dotted #069;
    float: left;
    clear: both;
}

/* Links */
a {
    background: inherit;
    color: #069;
    text-decoration: none;
}

a:hover {
    background: inherit;
    color: #069;
    text-decoration: underline;
}

/* Headers */
h1,
h2 {
    font: bold 1em 'Trebuchet MS', Tahoma, sans-serif;
    letter-spacing: -2px;
    color: #069;
}

h1 {
    font-size: 2.4em;
}

h2 {
    font-size: 1.8em;
}


header {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

header:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: #069;
}

/* Paragraphs and headers */
p {
    margin: 10px 15px;
    line-height: 1.5em;
}

.firstn {
    color: #eee;
}

.lastn {
    color: #eee;
}

/* Images */
img {
    border: 1px solid #dadada;
    padding: 5px;
    background: #fafafa;
}

img.at {
    padding: 0;
    border: 0;
}

hr {
    border: 0;
    margin: 2px;
    border-top: 2px dotted #069;
}

/* Responsive layout */
@media (max-width: 767px) {

    div#content {
        width: 90%;
    }

    /* Make header and footer full width */
    #header-content,
    #footer-content {
        width: 100%;
    }

    /* Stack logo and navigation vertically */
    #header-content h1#logo {
        position: static;
        margin-bottom: 10px;
    }

    #header-content ul#nav {
        display: flex;
        flex-direction: column;
    }

    #header-content ul#nav li {
        display: block;
        margin-bottom: 5px;
    }

    /* Stack content columns vertically */
    #content {
        display: flex;
        flex-direction: column;
    }

    #content .column {
        width: 100%;
        margin-bottom: 20px;
    }

    #content .column.last {
        margin-bottom: 0;
    }

}