@charset "utf-8";

/* Main Website Styles */

html {
    background-color: rgb(255, 248, 236);
}

body {
    font-family: Verdana, Geneva, sans-serif;
    color: rgb(61, 48, 51);
    background-color: rgb(255, 248, 236);
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Header */

header {
    text-align: center;
    padding: 65px 20px;
    background-color: rgb(120, 47, 64);
    background-image: url(card-corner-header.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    color: rgb(255, 248, 236);
}

h1, h2 {
    font-size: 1.3em;
    color: rgb(120, 47, 64);
    text-shadow: none;
}

header h1 {
    color: rgb(255, 248, 236);
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgb(61, 48, 51);
}

header p {
    color: rgb(255, 248, 236);
    font-size: 1.1em;
    text-shadow: 1px 1px 3px rgb(61, 48, 51);
}

/* Navigation */

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    float: left;
    width: 25%;
    display: block;
}

nav ul::after {
    content: "";
    display: block;
    clear: both;
}

nav a {
    text-decoration: none;
    display: block;
    background-color: rgb(120, 47, 64);
    line-height: 2.8em;
    text-align: center;
    color: rgb(255, 248, 236);
}

nav a:hover {
    background-color: rgb(217, 173, 112);
    color: rgb(61, 48, 51);
}

/* Main Content */

main {
    padding: 20px;
    margin-top: 35px;
}

main img {
    width: 25%;
    padding: 25px;
    float: right;
}
main img.homeImage {
    display: block;
    width: 100%;
    height: auto;
    padding: 0;
    float: none;
    border: 2px solid rgb(217, 173, 112);
    box-sizing: border-box;
    margin: 20px auto;
}

/* Footer */

body > footer {
    background-color: rgb(120, 47, 64);
    color: rgb(255, 248, 236);
    font-weight: bold;
    font-size: 0.9em;
    line-height: 3em;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    clear: both;
}
/*About Us Team Members*/
.teamMember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 25px;
    margin-bottom: 25px;
    background-color: rgb(255, 248, 236);
    border: 2px solid rgb(217, 173, 112);
    border-radius: 10px;
}
.teamInfo {
    flex: 1;
    min-width: 0;
}
.teamInfo h2 {
    color: rgb(120, 47, 64);
}
.teamMember > img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    padding: 0;
    float: none;
    border-radius: 10px;
    flex-shrink: 0;
}
.familyPhoto {
    margin: 0;
    text-align: center;
    width: 300px;
    max-width: 100%;
    flex-shrink: 0;
}
.familyPhoto img {
    display: block;
    width: 100%;
    height: auto;
    padding: 0;
    float: none;
    border-radius: 10px;
}
.familyPhoto figcaption {
    margin-top: 8px;
    font-size: 0.85em;
    color: rgb(61, 48, 51);
    font-style: italic;
}

/* Pokemon Gallery */

.pokemonGallery {
    display: flex;
    flex-wrap: wrap;
}

.gallery {
    width: 25%;
    box-sizing: border-box;
    padding: 10px;
}

.gallery img {
    width: 100%;
    padding: 0;
    float: none;
    height: auto;
}

/* Responsive Layout */

@media only screen and (max-width: 768px) {

    header {
        padding: 35px 15px;
    }

    body {
        width: 100%;
        margin: 0;
    }

    nav li {
        float: none;
        font-size: x-large;
        width: 100%;
    }

    nav a {
        border-bottom: 1px solid black;
    }

    main img {
        width: 100%;
        float: none;
    }

    .gallery {
        width: 50%;
    }
    .teamMember {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .teamMember > img {
        width: 180px;
        height: 180px;
        padding: 0;
        float: none;
    }
    .familyPhoto {
        width: 100%;
        max-width: 300px;
    }
}

@media only screen and (max-width: 480px) {
    .gallery {
        width: 100%;
    }
}

/* Services Table */

.servicesTable {
    width: 100%;
    background-color: rgb(255, 248, 236);
    border-collapse: collapse;
    border: 2px solid rgb(217, 173, 112);
}

.servicesTable th,
.servicesTable td {
    border: 1px solid rgb(91, 91, 91);
    padding: 10px;
}

.servicesTable th {
    background-color: rgb(120, 47, 64);
    color: rgb(255, 248, 236);
    text-align: center;
}

.servicesTable td {
    background-color: rgb(255, 248, 236);
}

.servicesTable tfoot td {
    background-color: rgb(120, 47, 64);
    color: rgb(255, 248, 236);
    font-weight: bold;
    text-align: center;
}

/* Contact Form */

.clear {
    clear: both;
}

form {
    width: 90%;
}

fieldset {
    width: 90%;
    padding: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
}

input,
select {
    display: block;
    position: relative;
    left: 30%;
    padding: 5px;
    height: auto;
    width: 60%;
}

textarea {
    display: block;
    position: relative;
    left: 30%;
    width: 60%;
    min-height: 100px;
    padding: 5px;
}

label {
    display: block;
    position: absolute;
    padding: 5px;
    width: 30%;
}

label[for="referrer"] {
    width: 30%;
    height: auto;
    white-space: normal;
    line-height: 1.2em;
}

input[type="submit"],
input[type="reset"] {
    display: block;
    float: left;
    left: 0;
    text-align: center;
    width: 40%;
    padding: 10px;
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Form Element Focus */

input:focus,
select:focus,
textarea:focus {
    background-color: rgb(245, 230, 205);
}

/* Valid Form Data */

input#name:focus:valid,
input#phone:focus:valid,
input#email:focus:valid {
    background-color: rgb(245, 230, 205);
}

/* Invalid Form Data */

input#name:focus:invalid,
input#phone:focus:invalid,
input#email:focus:invalid {
    background-color: rgb(255, 232, 233);
}

/* Responsive Services Table and Contact Form */

@media only screen and (max-width: 768px) {

    .servicesTable thead {
        display: none;
    }

    .servicesTable,
    .servicesTable tbody,
    .servicesTable tr,
    .servicesTable td {
        display: block;
        width: 100%;
    }

    .servicesTable tr {
        margin-bottom: 15px;
        border: 1px solid rgb(91, 91, 91);
    }

    .servicesTable td {
        box-sizing: border-box;
        border: none;
        border-bottom: 1px solid rgb(217, 173, 112);
    }

    .servicesTable td::before {
        display: block;
        font-weight: bold;
        color: rgb(91, 91, 91);
        margin-bottom: 5px;
    }

    .servicesTable tbody td:nth-child(1)::before {
        content: "Service";
    }

    .servicesTable tbody td:nth-child(2)::before {
        content: "Description";
    }

    .servicesTable tbody td:nth-child(3)::before {
        content: "Price";
    }

    .servicesTable tfoot,
    .servicesTable tfoot tr,
    .servicesTable tfoot td {
        display: block;
        width: 100%;
    }

    /* Contact Form Mobile */

    form {
        width: 100%;
        font-size: large;
    }

    fieldset {
        width: 100%;
        padding: 5px;
        margin: 0;
        box-sizing: border-box;
    }

    input,
    select {
        position: inherit;
        display: block;
        height: 50px;
        padding: 5px;
        width: 90%;
    }

    label {
        position: inherit;
        display: block;
        height: auto;
        width: 90%;
    }

    textarea {
        position: inherit;
        display: block;
        width: 90%;
        min-height: 100px;
        padding: 5px;
    }

    input[type="submit"],
    input[type="reset"] {
        float: none;
        width: 90%;
        margin: 10px;
        font-size: 1.2em;
    }
}


