* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: white;
    font-family: 'Times New Roman', Times, serif;
    color: black;
}

.foreground {
    max-width: 960px;
    padding: 20px;
    border-radius: 20px;
    margin-left: auto;
    margin-right: auto;
}

/* lines up the header horizontally */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#header-logo {
    max-width: 150px;
    padding: 20px;
}

/* lines up the nav horizontally */
nav ul {
    list-style: none;
    margin-left: 20px;
}

nav ul li {
    margin-right: 20px;
    white-space: nowrap;
    overflow: hidden;
}

nav ul li a {
    text-decoration: none;
    color: black;
    text-align: center;
}

nav ul li a:hover {
    text-decoration: underline;
}

.bold-span {
    font-weight: bold;
}

/* defines the link buttons */
#link-buttons li {
    margin-right: 20px;
    margin-bottom: 10px;
}

#link-buttons li a {
    display: inline-block;
    width: 120px;
    padding: 10px 10px;
    border-radius: 50px;
    background-color: white;
    color: black;
    border: 1px solid black;
    text-decoration: none;
}

#link-buttons a:hover {
    background-color: #888;
}

/* shrinks the main element inside the forground element */
main {
    max-width: 640px;
    padding: 20px;
    border-radius: 20px;
    margin-left: auto;
    margin-right: auto;
}

/* sets out the forms */
form {
    padding: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

label {
    display: inline-block;
    width: 20%;
    text-align: left;
  }

form input {
    padding: 10px;
    margin-bottom: 10px;
    width: 75%;
}

#enquiry {
    vertical-align: top;
    padding: 10px;
    width: 75%;
    height: 200px;
    resize: none;
}

#submit {
    float: right;
    background-color: #fff;
    font-weight: bold;
    width: 120px;
    border-radius: 20px;
    margin-right: 30px;
    border: #000 1px solid;
}

#submit:hover {
    background-color: #888;
}

#ml-submit {
    float: right;
    background-color: #fff;
    font-weight: bold;
    width: 120px;
    border-radius: 20px;
    margin-right: 30px;
    border: #000 1px solid;
}

#ml-submit:hover {
    background-color: #888;
}

/* formats the privacy articles */
article p {
    margin-bottom: 1em;
}

article ul li {
    margin-left: 20px;
}

article a {
    color: black;
    text-align: center;
}

article a:hover {
    color: blue;
}

/* sets out the footer */
footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}

footer #footer-logo {
    margin-left: auto;
    margin-right: auto;
    max-width: 150px;
    padding: 20px;
}

footer #proud-p {
    margin: 20px 20px 20px 0px;
    white-space: nowrap;
}

footer ul {
    list-style-type: none;
    padding-left: 20px;
    padding-right: 20px;
    border-left: 1px solid black;
}

footer ul li a {
    text-decoration: none;
    color: black;
}

footer ul li a:hover {
    text-decoration: underline;
}

footer #social-media {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: 20px;
}

footer #social-media p {
    margin-right: 10px;
}

footer #social-media img {
    max-width: 150px;
}

/* sets out how the header and the footer re-align at various widths */
@media (min-width: 640px) {
    nav {
        display: flex;
        align-items: center;
    }
}

@media (min-width: 960px) {
    nav ul {
        display: flex;
        align-items: center;
    }

    #link-buttons {
        display: flex;
        align-items: center;
    }
}

@media (max-width: 960px) {

    #contact-list li:first-child {
        margin-top: 0px;
        margin-bottom: 10px;
    }

    #contact-list li:last-child {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex-wrap: wrap;
    }

    footer #footer-logo {
        flex-basis: 100%;
    }

    footer #proud-p {
        flex-basis: 100%;
        text-align: center;
    }

    footer ul {
        list-style-type: none;
        flex-basis: 100%;
        text-align: center;
        margin-bottom: 20px;
        margin-top: 20px;
        border: none;
        border-left: none;
    }

    footer #social-media {
        align-items: center;
        margin-top: 10px;
        flex-basis: 100%;
        text-align: center;
    }
}