/* Page layout */
* {
    box-sizing: border-box;
}

body {
    width: 90%;
    margin: 0 auto;
    background-color: #eeeeee;
    color: #111111;
    font-family: Georgia, "Times New Roman", serif;
}

/* Header */
#title {
    font-family: Arial, sans-serif;
    font-size: 38px;
    font-weight: bold;
    text-shadow: 2px 2px 2px #4f8565;
}

/* Navigation */
nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    padding: 15px 0;
    margin: 25px 0;
}

nav a {
    display: block;
    padding: 8px 12px;
    font-size: 18px;
    text-decoration: none;
}

/* Five hyperlink states */
nav a:link {
    color: #111111;
}

nav a:visited {
    color: #52694a;
}

nav a:hover {
    color: white;
    background-color: #52694a;
}

nav a:focus {
    outline: 2px solid #52694a;
    outline-offset: 3px;
}

nav a:active {
    color: white;
    background-color: #263d2b;
}

/* Main section */
#main {
    display: flex;
    flex-direction: row;
    background-color: #c0ccb7;
    border: 3px solid #a3a99d;
    border-radius: 18px;
    overflow: hidden;
}

.column1,
.column2,
.column3 {
    flex: 1;
    min-width: 0;
    padding: 10px;
}

.column1 {
    order: 3;
}

.column2 {
    order: 2;
    border-right: 1px solid #7c8676;
}

.column3 {
    order: 1;
    border-right: 1px solid #7c8676;
}

h2 {
    font-family: "Roboto", Arial, sans-serif;
    font-size: 26px;
    text-align: center;
    text-decoration: underline;
    margin: 20px 0 25px;
}

#main img {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

#main p {
    font-size: 18px;
    line-height: 1.5;
    margin: 20px 0;
}

/* Footer */
footer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    padding: 20px 10px;
}

address {
    font-style: normal;
}

footer a {
    color: #111111;
    text-decoration: none;
    overflow-wrap: anywhere;
}

footer a:hover {
    text-decoration: underline;
}

.social {
    display: flex;
    gap: 10px;
}

.social img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* Below 1000px */
@media (max-width: 999px) {
    body {
        width: 100%;
    }
}

/* Below 700px */
@media (max-width: 699px) {
    #main {
        flex-direction: column;
    }

    .column1,
    .column2,
    .column3 {
        border: none;
        padding: 0;
    }

    #title {
        font-size: 30px;
    }

    nav ul {
        gap: 5px;
    }
}