body {
    color: #4A3F35;
    background-color: #F5EFE6;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    margin: 0;
}

a {
    color: #8A6D46;
    text-decoration: none;
}

a:visited {
    color: #6F573B;
    text-decoration: none;
}

a:hover {
    color: #C5A46D;
    text-decoration: underline;
}

h1 {
    color: #8A6D46;
    font-size: 36px;
    text-align: center;
}

h2 {
    color: #9A7B4F;
    font-size: 26px;
    margin-bottom: 5px;
}

h3 {
    color: #9A7B4F;
    font-size: 20px;
}

p, li, td, a, label, input, textarea, button {
    font-size: inherit;
    font-family: inherit;
}

p {
    margin-top: 5px;
}

.small {
    font-size: 14px;
    font-style: italic;
}


/* IMAGES */

.logo {
    width: 130px;
    height: auto;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.rounded-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.headshot {
    width: 200px;
    max-width: 100%;
    height: auto;
    float: right;
    margin-left: 20px;
    margin-bottom: 15px;
}

.associates-gif {
    float: left;
    width: 200px;
    height: 160px;
    object-fit: cover;
    object-position: center;
    margin-right: 25px; 
    border-radius: 8px;
}

.childhood-photo {
    float: right;
    width: 250px;
    max-width: 100%;
    height: auto;
    margin-left: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
}

/* MAIN LAYOUT */

#main {
    position: relative;
    margin: auto;
    max-width: 1200px;
    width: 100%;
    background-color: #F5EFE6;
}


/* HEADER */

#header {
    position: relative;
    width: 100%;
    min-height: 100px;
    background: linear-gradient(
        to right,
        #e9dccb 0%,
        #d9c1ac 55%,
        #b89771 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

#header h1 {
    color: #513d35;
    margin: 0;
}


/* BOOTSTRAP NAVIGATION */

.navbar {
    width: 100%;
    background-color: #513d35;
    padding: 10px;
}

.navbar .navbar-collapse {
    justify-content: center;
}

.navbar .nav-link {
    color: white;
    font-size: 14px;
    font-weight: bold;
    margin-right: 20px;
    text-decoration: none;
}

.navbar .nav-link:visited {
    color: white;
}

.navbar .nav-link:hover {
    color: #F5EFE6;
    text-decoration: underline;
}

.navbar .nav-link.active {
    color: white;
    font-weight: bold;
    text-decoration: underline;
}

.navbar .navbar-toggler {
    border: 1px solid white;
}

.navbar .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}


/* CONTENT SECTION */

#section {
    position: relative;
    width: 90%;
    margin: auto;
    padding-top: 20px;
    padding-bottom: 30px;
    background-color: #F5EFE6;
}


/* TABLES */

table {
    width: 80%;
    max-width: 100%;
    margin: 20px auto;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    border: 1px solid #CBBBA7;
}

th {
    background-color: #E5D4BD;
}


/* FORMS */

form {
    background-color: #EDE2D3;
    padding: 25px;
    max-width: 600px;
    margin: 20px auto;
    border-radius: 10px;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    margin-bottom: 15px;
    border: 1px solid #CBBBA7;
    border-radius: 5px;
    box-sizing: border-box;
}

textarea {
    height: 100px;
}

input[type="submit"] {
    background-color: #9A7B4F;
    color: white;
    border: none;
    width: 150px;
}

input[type="submit"]:hover {
    background-color: #6F573B;
}


/* CONTACT PAGE */

.contact-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.form-container {
    width: 100%;
    max-width: 600px;
    min-width: 0;
}

.contact-image {
    display: block;
    max-width: 100%;
    height: auto;
}


/* FOOTER */

footer {
    position: relative;
    width: 100%;
    min-height: 40px;
    background-color:  #513d35;
    text-align: center;
    color: white;
}

footer p {
    font-size: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-top: 1px solid #CBBBA7;
    margin: 0;
}

footer a,
footer a:visited {
    color: white;
    text-decoration: none;
}

footer a:hover {
    color: #C5A46D;
    text-decoration: underline;
}


/* TABLET RESPONSIVE DESIGN */

@media screen and (max-width: 768px) {

    #header {
        min-height: 90px;
    }

    .logo {
        width: 120px;
        left: 15px;
    }

    #header h1 {
        margin-left: 105px;
        margin-right: 10px;
    }

    #section {
        width: 95%;
        padding-top: 10px;
        padding-bottom: 20px;
    }

    table {
        width: 100%;
    }

    .contact-layout {
        flex-direction: column;
    }

    .navbar .navbar-collapse {
        justify-content: flex-start;
    }

    .navbar .nav-link {
        margin-right: 0;
        padding: 10px;
    }
}


/* MOBILE RESPONSIVE DESIGN */

@media screen and (max-width: 550px) {

    #header {
        min-height: 80px;
    }

    .logo {
        width: 85px;
        left: 10px;
    }

    #header h1 {
        font-size: 26px;
        margin-left: 85px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 18px;
    }

    #section {
        width: 95%;
    }

    .headshot {
        float: none;
        display: block;
        margin: 15px auto;
    }

    .childhood-photo {
        width: 120px;
    }

    table {
        width: 100%;
    }

    th, td {
        padding: 6px;
        overflow-wrap: anywhere;
    }

    form {
        padding: 15px;
    }

    .contact-image {
        max-width: 100%;
        height: auto;
    }
}

