
body {
    background: #333;
}

#all {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    background: white;
}

/* Main content */
#main_content {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: stretch;
}

/* Links */
a:link {
    text-decoration: none;
    font-weight: bold;
    font-size: 1.12em;
    color: #960;
}

a:visited {
    color: #960;
}

a:hover {
    text-decoration: underline;
    color: #F90;
}

a:active {
    text-decoration: underline;
    color: #F90;
}

/* Navigation */
nav {
    border-bottom: solid 1.5px #FF9900;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    word-break: break-all;
    padding: 10px;
    margin: 0;
    list-style: none;
}

nav li {
    display: flex;
    align-items: center;
    margin: .2em;
}

nav li.search-form {
    margin-right: 1em;
    margin-left: auto;
}

/* Sidebar */
aside {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: .5;
}

.links {
    list-style: none;
    padding-left: 10px;
    margin-top: 1.33em;
}

.links li {
    margin: 0 auto .5em;
}

.links a {
    font-size: .9em;
}

/* Left Column */
.left {
    flex: 1;
    min-width: 0;
    padding: .5em;
    background: lightblue;
    color: #222;
}

/* Center Column */
.center {
    flex: 1;
    min-width: 0;
    padding: .5em;
    background: lightyellow;
    color: #333;
}

/* Right Column */
.right {
    flex: 1;
    min-width: 0;
    padding: .5em;
    background: lightgreen;
    color: #234;
}

/* Footer */
footer {
    display: flex;
    justify-content: center;
}

.footer_info {
    padding: .3em;
    font-size: 1.1em;
}

/* Screens below 700px */
@media (max-width: 699px) {

    #main_content {
        flex-direction: column;
    }

    aside {
        flex-direction: row;
    }

    .links {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .links li {
        margin: auto .3em auto;
    }

    footer {
        flex-direction: row;
        flex-wrap: wrap;
    }
}
