
/* General styling */
body {
    width: 90%;
    margin: auto;
    font-family: Arial, sans-serif;
    background-color: #f4f7f4;
}

/* Header */
#title {
    color: darkgreen;
    text-align: center;
    font-family: "Palatino Linotype", Palatino, serif;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
}

nav li {
    list-style: none;
    margin: 1em;
}

/* Five hyperlink states */
nav a:link {
    color: darkgreen;
}

nav a:visited {
    color: purple;
}

nav a:hover {
    color: green;
}

nav a:active {
    color: red;
}

nav a:focus {
    outline: 2px solid green;
}

/* Main section */
#main {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.column1 {
    flex: 1;
    order: 3;
    border-right: 1px solid gray;
    padding: 10px;
    min-width: 0;
}

.column2 {
    flex: 2;
    order: 2;
    border-right: 1px solid gray;
    padding: 10px;
    min-width: 0;
}

.column3 {
    flex: 1;
    order: 1;
    padding: 10px;
    min-width: 0;
}

h2 {
    text-align: center;
    font-family: 'Oswald', sans-serif;
    color: darkgreen;
}

/* Keep images inside columns */
#main img {
    max-width: 100%;
    height: auto;
}

/* Footer */
footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background-color: darkgreen;
    color: white;
    padding: 15px;
    margin-top: 20px;
}

.social img {
    width: 30px;
    height: 30px;
    margin: 5px;
    filter: invert(1);
}

/* Under 1000px */
@media screen and (max-width: 999px) {
    body {
        width: 100%;
    }
}

/* Under 700px */
@media screen and (max-width: 699px) {
    #main {
        flex-direction: column;
    }

    .column1, .column2, .column3 {
        border: none;
        padding: 0;
    }
}
