
body {
    background: #333;
}

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

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

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

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

nav ul {
    display: flex;
    flex-wrap: wrap;
    word-break: break-all;
}

nav li {
    margin: .2em;
    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;
    align-items: flex-start;
}

.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 {
    flex: 1;
    padding: .5em;
    background-color: #E3F2FD;
    color: #123456;
}

.center {
    flex: 1;
    padding: .5em;
    background-color: #E8F5E9;
    color: #24552A;
}

.right {
    flex: 1;
    padding: .5em;
    background-color: #FFF3E0;
    color: #663C00;
}

/* Footer */

footer {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* Media query for screens under 700px */

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

    #main_content {
        flex-direction: column;
    }

    aside {
        flex-direction: row;
    }

    .links {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        padding-left: 0;
    }

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

    footer {
        flex-direction: row;
        flex-wrap: wrap;
    }
}
