
/* General page styling */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #f4f7f6;
    color: #24333b;
    font-family: "Roboto", Arial, sans-serif;
    line-height: 1.6;
}

/* Header styling */
header {
    background-color: #123c3a;
    color: white;
    padding: 25px 0;
}

#title {
    width: 90%;
    margin: 0 auto;
    font-size: 2.8em;
    text-shadow: 2px 2px 3px #000;
}

.tagline {
    width: 90%;
    margin: 8px auto 20px;
    color: #c8e5d8;
}

/* Navigation styling */
nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 90%;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

nav a {
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
}

/* Five hyperlink states */
nav a:link {
    color: white;
}

nav a:visited {
    color: #d8d6ff;
}

nav a:hover {
    background-color: #f3b562;
    color: #123c3a;
}

nav a:active {
    background-color: #e77952;
    color: white;
}

nav a:focus {
    outline: 3px solid #f3b562;
    outline-offset: 3px;
}

/* Main three-column Flexbox layout */
#main {
    display: flex;
    flex-direction: row;
    gap: 24px;
    width: 90%;
    margin: 30px auto;
    align-items: stretch;
}

/* Column styling */
.column1,
.column2,
.column3 {
    flex: 1;
    min-width: 0;
    padding: 20px;
    background-color: white;
    border: 1px solid #d7e2de;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Reorder the columns */
.column3 {
    order: 1;
}

.column2 {
    order: 2;
    flex: 2;
}

.column1 {
    order: 3;
}

/* Google Font for h2 headings */
h2 {
    font-family: "Oswald", sans-serif;
    color: #17645b;
    text-align: center;
    text-decoration: underline;
}

/* Responsive images */
#main img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Footer Flexbox layout */
footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    padding: 30px 5%;
    background-color: #123c3a;
    color: white;
}

footer h2 {
    color: #f3b562;
    text-decoration: none;
}

footer a {
    color: #c8e5d8;
    text-decoration: none;
}

footer a:hover {
    color: #f3b562;
    text-decoration: underline;
}

.social-links {
    display: flex;
    flex-direction: row;
    gap: 20px;
    font-size: 2em;
}

.social-links a:hover {
    color: #f3b562;
}

footer p {
    margin: 8px 0;
}

/* Below 1000px */
@media screen and (max-width: 999px) {
    #title,
    .tagline,
    nav ul,
    #main {
        width: 100%;
    }

    #title,
    .tagline,
    nav ul {
        padding-left: 20px;
        padding-right: 20px;
    }

    #main {
        padding-left: 15px;
        padding-right: 15px;
        gap: 15px;
    }

    .column1,
    .column2,
    .column3 {
        padding: 15px;
    }
}

/* Below 700px */
@media screen and (max-width: 699px) {
    #main {
        flex-direction: column;
    }

    .column1,
    .column2,
    .column3 {
        border: none;
        padding: 0;
        box-shadow: none;
        background-color: transparent;
    }

    #main img {
        height: auto;
    }

    footer {
        flex-direction: column;
        gap: 20px;
    }
}
