
body {
    background: #333;
}

#all {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    background: #FFF;
}

#main_content {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}

/* Link Styles */

a:link {
    text-decoration: none;
    font-weight: bold;
    font-size: 1.12em;
    color: #960;
}

a:active {
    text-decoration: underline;
    font-weight: bold;
    font-size: 1.12em;
    color: #F90;
}

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 Styles
-------------------------------- */

nav {
    border-bottom: solid 1.5px #FF9900;
}

nav ul {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
    word-break: break-all;
    padding: 0.5em;
}

nav li {
    margin: .2em;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    align-items: center;
    word-break: break-all;
}

nav li.search-form {
    margin-right: 1em;
    margin-left: auto;
}

/* --------------------------------
   Sidebar
-------------------------------- */

aside {
    display: flex;
    flex-direction: column;
    flex: .5;
}

.links {
    list-style: none;
    padding-left: 0;
    margin-top: 1.33em;
}

.links li {
    margin: .5em auto .5em 0;
}

.side:link {
    text-decoration: none;
    font-weight: bold;
    font-size: .9em;
    color: #960;
}

.side:active {
    text-decoration: underline;
    font-weight: bold;
    font-size: .9em;
    color: #F90;
}

.side:hover {
    text-decoration: underline;
    font-weight: bold;
    font-size: .9em;
    color: #F90;
}

.side:visited {
    text-decoration: none;
    font-weight: bold;
    font-size: .9em;
    color: #960;
}

/* --------------------------------
   Main Content Columns
-------------------------------- */

.left {
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: .5em;
    background-color: #D6EAF8;
    color: #154360;
    min-width: 0;
}

.center {
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: .5em;
    background-color: #D5F5E3;
    color: #145A32;
    min-width: 0;
}

.right {
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: .5em;
    background-color: #FCF3CF;
    color: #7D6608;
    min-width: 0;
}

/* --------------------------------
   Footer
-------------------------------- */

footer {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    justify-content: center;
}

.footer_info {
    padding: .3em;
    font-size: 1.1em;
}

/* --------------------------------
   Media Query - Under 700px
-------------------------------- */

@media screen and (max-width: 699px) {

    #main_content {
        flex-direction: column;
    }

    aside {
        flex-direction: row;
        width: 100%;
    }

    .links {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0;
        width: 100%;
    }

    .links li {
        margin: auto .3em auto;
    }

    .left,
    .center,
    .right {
        flex: 1;
        width: auto;
    }

    footer {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}
