/* General Page Styling */

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f7fb;
    color: #333;
}

/* Header */

header {
    background-color: #1d4e89;
    color: white;
    text-align: center;
    padding: 20px;
}

#title {
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    text-shadow: 2px 2px 2px #333;
}

/* Nav */

nav ul {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding: 0;
    margin: 20px 0 0 0;
}

nav li {
    list-style: none;
}

/* five states */

nav a:link {
    color: white;
    text-decoration: none;
}

nav a:visited {
    color: #d6e8ff;
}

nav a:hover {
    color: #ffd700;
    text-decoration: underline;
}

nav a:active {
    color: orange;
}

nav a:focus {
    color: yellow;
    outline: 2px solid yellow;
}

/*main*/

#main {
    display: flex;
    flex-direction: row;
    width: 90%;
    margin: 20px auto;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,.15);
}

/*column ord */

.column1 {
    flex: 1;
    border-right: 1px solid #999;
    padding: 15px;
    order: 3;
}

.column2 {
    flex: 2;
    border-right: 1px solid #999;
    padding: 15px;
    order: 2;
}

.column3 {
    flex: 1;
    padding: 15px;
    order: 1;
}

/* H2 styling */

h2 {
    text-align: center;
    text-decoration: underline;
    font-family: 'Montserrat', sans-serif;
    color: #1d4e89;
}

/* Images */

#main img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Footer */

footer {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    background-color: #1d4e89;
    color: white;
    padding: 20px;
    margin-top: 20px;
}

.footer-contact {
    text-align: center;
}

.social-icons img {
    width: 40px;
    height: 40px;
    margin: 0 5px;
}

.social-icons img:hover {
    opacity: .8;
}

/* Media Query - Under 1000px */

@media screen and (max-width: 1000px) {

    #main {
        width: 100%;
    }

}

/* Media Query - Under 700px */

@media screen and (max-width: 700px) {

    #main {
        flex-direction: column;
    }

    .column1,
    .column2,
    .column3 {
        border: none;
        padding: 0;
    }

    footer {
        flex-direction: column;
        gap: 15px;
    }
}