
body {
    background: #333;
}

#all {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    background: #FFF;
}

#main_content {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-flow: row wrap;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

/* Links */
a:link {
    text-decoration: none;
    font-weight: bold;
    font-size: 1.12em;
    color: #960;
}

a:active,
a:hover {
    text-decoration: underline;
    font-weight: bold;
    font-size: 1.12em;
    color: #F90;
}

a:visited {
    text-decoration: none;
    font-weight: bold;
    font-size: 1.12em;
    color: #960;
}

/* Top navigation */
nav {
    border-bottom: solid 1.5px #FF9900;
}

nav ul {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
}

nav li {
    margin: .2em;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    word-break: break-all;
}

nav li.search-form {
    margin-right: 1em;
    margin-left: auto;
}

/* Sidebar */
aside {
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-flex: .5;
    -ms-flex: .5;
    flex: .5;
    align-items: flex-start;
}

.links {
    list-style: none;
    padding-left: 0;
    margin-top: 1.33em;
}

.links li {
    margin: .5em auto .5em -.5em;
}

.side:link,
.side:visited {
    text-decoration: none;
    font-weight: bold;
    font-size: .9em;
    color: #960;
}

.side:hover,
.side:active {
    text-decoration: underline;
    font-weight: bold;
    font-size: .9em;
    color: #F90;
}

/* Main content columns */
.left {
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: .5em;
    color: white;
    background-color: #24476B;
}

.center {
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: .5em;
    color: #222;
    background-color: #F5E6B8;
}

.right {
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: .5em;
    color: white;
    background-color: #315C43;
}

/* Footer */
footer {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
}

.footer_info {
    padding: .3em;
    font-size: 1.1em;
}

/* Responsive layout for screens under 700px */
@media screen and (max-width: 699px) {

    /* Stack sidebar and columns vertically */
    #main_content {
        flex-direction: column;
    }

    /* Display sidebar links horizontally */
    .links {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .links li {
        margin: auto .3em auto;
    }

    /* Footer stays in a row and wraps when needed */
    footer {
        flex-direction: row;
        flex-wrap: wrap;
    }
}
