@import url("https://fonts.googleapis.com/css2?family=Dosis:wght@200;300;400;500;600;700;800&display=swap");

/* ---------------------------------------------------------------------------------- GENERAL STYLING */

body {
    font-family: "Dosis", sans-serif;
    color: #000;
    background-color: #fafafa;
    margin: 0;
    letter-spacing: 1px;
}

:root {
    --blue: #0079AD;
    --border: #70D4FF;
    --background: #E5F7FF;
    --yellow: #F9F871;

}


/* ---------------------------------------------------------------------------------- HEADER */

header {
    height: 130px;
}

/* ------------------------------------------------------------- Header - Logo */
#logo {
    height: 110px;
    width: 110px;
    display: inline-block;
    margin: 10px 10px 10px 100px;
    vertical-align: unset;
}

/* ------------------------------------------------------------- Header - Navigation Menu */

.navbar-nav {
    align-items: center;
}

.navbar-links {
    color: #000 !important;
    font-size: 23px !important;
}

.navbar-links:hover {
    text-decoration: underline !important;
    color: var(--blue) !important;
}

.navbar {
    float: right;
    margin: 32px 100px 32px 0;
    z-index: 1;
}

.active {
    text-decoration: underline;
}

.nav-link i {
    font-size: 18px;
}


/* ---------------------------------------------------------------------------------- FOOTER */

footer {
    background-color: var(--blue);
    height: auto;
    padding: 50px;
    box-sizing: content-box;
}

/* ------------------------------------------------------------- Footer - Webpage Links */
.footer-links {
    margin: 0;
    text-align: center;
    padding: 0
}

.footer-links a {
    color: #fafafa;
    font-weight: 500;
    font-size: 18px;
}

.footer-links li {
    margin: 0 3% 0 3%;
    display: inline;
}

.footer-links a:hover {
    color: var(--yellow);
}

/* ------------------------------------------------------------- Footer - Social Media Links */

.social-links-footer {
    text-align: center;
    margin: 0;
    padding: 0
}

.social-links-footer li {
    display: inline;
}

.social-links-footer i {
    margin: 50px 4% 50px 4%;
    font-size: 24px;
}

.fa-brands-footer {
    color: #fafafa;
}

.fa-brands:hover {
    color: var(--yellow);
}

/* ------------------------------------------------------------- Footer - Copyright */

.copyright {
    margin: 0;
    text-align: center;
    color: #fafafa;
    font-size: 15px;
}

/* ---------------------------------------------------------------------------------- HOME PAGE */

/* ------------------------------------------------------------- Home Page - Hero Image */

#hero-image {
    height: 400px;
    background: url("../images/dog-bubbles.webp") no-repeat center center;
    background-size: cover;
    padding-top: 300px;
    padding-left: 50px;
    padding-right: 50px;
}

#hero-outer {
    width: 100%;
    height: 400px;
}

#hero-message-border {
    height: auto;
    width: auto;
    max-width: 700px;
    border: 3px solid rgb(0, 121, 173, 0.8);
    padding: 2px;
    border-radius: 10px;
    margin: auto;
}

#hero-message {
    background-color: rgb(0, 121, 173, 0.8);
    color: #fff;
    height: auto;
    width: auto;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

/* ------------------------------------------------------------- Home Page - Dog Preview Section */

/* --------------------------------------- Dog Card */

#dog-preview {
    display: flex;
    justify-content: center;
    margin: auto;
}

.dog-content {
    text-align: center;
}

.dog-image {
    height: 300px;
    width: 300px;
    object-fit: cover;
    padding: 7px;
    border-radius: 15px;
}

.meet-dogs-link h4 {
    margin: 0;
}

.dog-card {
    display: inline-block;
    width: 304px;
    padding: 1px;
    margin-top: 50px;
    border: 1px solid var(--blue);
    border-radius: 12px;
    background-color: var(--background);
}

#penny-card {
    margin-left: 100px;
    margin-right: 100px;
}

.meet-dogs-home {
    text-decoration: none;
    color: black;
    font-weight: 600;
    text-align: center;
    border-radius: 10px;
    display: block;
}

.meet-dogs-home:hover {
    text-decoration: underline;
    color: black;
}


.fa-arrow-right {
    margin-left: 10px;
}

.meet-dog-card {
    margin: 50px auto 0 auto;
}


/* --------------------------------------- See more Dogs button */

.meet-dogs-link {
    text-decoration: none;
    background-color: var(--blue);
    border: 2px solid var(--blue);
    color: #fafafa;
    width: 300px;
    text-align: center;
    margin: auto;
    margin-bottom: 50px;
    margin-top: 50px;
    border-radius: 15px;
    padding: 10px 0 10px 0;
    display: block;
}

.meet-dogs-link:hover {
    text-decoration: underline;
    background-color: #fafafa;
    color: var(--blue);
}


/* ------------------------------------------------------------- Home Page - About Us Section */

/* --------------------------------------- About Us Layout */

.grid-container {
    display: grid;
    border-radius: 15px;
    margin: 0 100px 50px 100px;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-row-gap: 30px;
    grid-template-areas:
        "about-us-top about-us-top about-us-top about-div-top about-div-top"
        "about-div-bottom about-div-bottom about-us-bottom about-us-bottom about-us-bottom";
}

#about-us-top {
    grid-area: about-us-top;
}

#about-us-bottom {
    grid-area: about-us-bottom;
}

#about-div-top {
    grid-area: about-div-top;
    margin-right: 0;
}

#about-div-bottom {
    grid-area: about-div-bottom;
    margin-left: 0;
}

.about-us {
    padding: 0 25px;
    border-radius: 15px;
    margin: auto auto;
    max-width: 800px;
}

/* --------------------------------------- About Us Content */
.about-us h2 {
    text-decoration: underline;
    text-align: center;
}

.about-image {
    width: 100%;
    border-radius: 15px;
    padding: 0;
    margin: auto auto;
    max-width: 600px;
}

#adoption-link {
    color: black;
    font-weight: 600;
}

#adoption-link:hover {
    color: var(--blue)
}


/* ---------------------------------------------------------------------------------- DOGS PAGE */

/* ------------------------------------------------------------- Dogs Page - Heading */


.meet-dog-heading {
    background-color: var(--yellow);
    height: auto;
    padding: 5px;
    margin: 0;
}

.meet-dog-heading h1 {
    text-align: center;
    font-size: 50px;
    margin: 0;
    letter-spacing: 3px;
    border-top: 3px solid #fff;
}

/* ------------------------------------------------------------- Dogs Page - Dog Information Cards */

/* --------------------------------------- Dog Information Cards Layout */

.meet-dog-grid {
    display: grid;
    grid-row-gap: 0;
    grid-template-columns: 1fr 1fr 1fr;
}

.dog-info-box {
    margin-bottom: 10px;
}

/* --------------------------------------- Dog Information Cards Content */

/* ------------------------- Dog Name */

.dog-info-box h2 {
    text-align: center;
}

/* ------------------------- Dog Information */

.dog-info-box p {
    margin: 10px 25px 0 25px;
}

.dog-info-block {
    display: inline-block;
    margin: 0;
    width: 100%;
}

.dog-info-block ul {
    list-style-type: none;
    padding: 0;
    display: inline-block;
}

.dog-info-left li,
.dog-info-right li {
    margin-top: 10px;
}

.dog-info-left {
    float: left;
    margin-left: 10px;
    margin-right: 5px;
}

.dog-info-right {
    float: right;
    margin-right: 10px;
    margin-left: 5px;
}

/* ------------------------- Dog Checkboxes */

.friends-list {
    margin: 0;
    text-align: center;
    padding: 0;
}

.friends-list li {
    display: inline-block;
    margin: 10px 5px 0 5px;
}

/* ------------------------- Back to Top link */

#back-to-top {
    text-align: right;
}

#back-to-top a {
    color: #000;
    text-decoration: none;
}

/* ------------------------------------------------------------- Dogs Page - Adoption Information */

/* --------------------------------------- Adoption Background Image */
#adoption-image {
    background: url("../images/adopt-dog.jpg") no-repeat center center;
    width: 100%;
    height: auto;
    margin-top: 0px;
}

#adoption-color {
    background-color: rgb(0, 0, 0, 0.7);
    height: auto;
    width: 100%;
}

/* --------------------------------------- Adoption Text Box */

#adoption-box {
    color: #fff;
    width: 70%;
    max-width: 820px;
    margin: auto;
    height: auto;
    padding-top: 20px;
    padding-bottom: 20px;
}

#adoption-box h2 {
    text-align: center;
    font-size: 44px;
}

#adoption-box a {
    color: var(--yellow);
    text-decoration: none;
}

#adoption-box a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------------------------------- CONTACT PAGE */

#contact-text {
    text-align: center;
    margin: 25px 5%;
}

/* ------------------------------------------------------------- Contact Page - Contact Form */

.contact-form {
    width: 50%;
    margin: 0 25% 50px 25%;
    padding: 2vw;
    border: 1px solid var(--blue);
    border-radius: 12px;
    background-color: var(--background);
    text-align: center;
}

.form-div label,
.form-div p {
    margin-top: 0.8rem;
    margin-bottom: 0.2rem;
}

.form-control {
    width: 100%;
}

/* --------------------------------------- Text Input */

.form-control.is-invalid,
.was-validated .form-control:invalid {
    border-color: var(--blue);
    background-image: none;
    color: #000;
}

.form-control.is-invalid,
.was-validated .form-control:valid {
    border-color: #28a745;
    background-image: none;
    color: #000;
}

.form-control.is-invalid:focus,
.was-validated .form-control:invalid:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 0.1rem var(--border);
}

.form-control.is-invalid:focus,
.was-validated .form-control:valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.1rem rgba(40, 167, 69, .25)
}

/* --------------------------------------- Date Input */

.visit-date-input {
    border: 1px solid var(--blue);
    border-radius: 0.25rem;
    color: #000;
}

#visit-date {
    cursor: pointer;
}

/* --------------------------------------- Checkbox Input */

.dog-checkbox {
    line-height: 40px;
}

.dog-checkbox label {
    margin: 0 20px 0 0;
}

.checkbox {
    display: inline-block;
}

#checkbox-willow {
    margin: 0;
}

.checkbox input,
.checkbox label {
    cursor: pointer;
}

/* --------------------------------------- Submit Input */

#submit {
    border: none;
    border-radius: 0.25rem;
    color: #fff;
    background-color: var(--blue);
    text-align: center;
    width: 14%;
    margin: 20px 43% 0 43%;

}

#submit:hover {
    color: var(--yellow);
}

#thanks-box {
    position: absolute;
    top: 50px;
    padding: 20px 10px;
}

#thanks-box a:hover {
    color: var(--blue);
}


/* ------------------------------------------------------------- Contact Page - Find Us Section */

#find-us-section {
    margin-bottom: 50px;
}

#find-us {
    width: 28%;
    height: 400px;
    float: right;
    margin: 0 9% 0 0;
}

/* --------------------------------------- Address & Contact Details */

.fa-brands-contact {
    margin: 0 10px 0 10px;
    font-size: 20px;
    color: var(--blue);
}

.fa-brands-contact:hover {
    color: #004F70;
}

#find-us-line {
    border-top: 1px solid #c4c4c4;
}

.contact-link {
    color: var(--blue);
}

.contact-link:hover {
    text-decoration: underline;
    color: var(--blue);
}

/* --------------------------------------- Opening Hours */

#opening-hours {
    display: inline-block;
}

#opening-hours table {
    margin-bottom: 16px;
}

.tr-border {
    border-bottom: 1px solid var(--blue);
    padding: 10px;
}

.td-border {
    border-right: 1px solid var(--blue);
}

.td-space {
    padding: 5px;
}

/* --------------------------------------- Map */

#map {
    width: 50%;
    height: 400px;
    margin: 0 0 0 9%;
}

/* --------------------------------------------------------------------------------------------------- MEDIA QUERIES */

/* ---------------------------------------------------------------------------------- MQ - GENERAL STYLING */

@media screen and (min-width: 1450px) {
    #logo {
        margin-left: 150px;
    }

    .navbar {
        margin-right: 150px;
    }
}


/* ---------------------------------------------------- MQ - General Styling - Header - Desktop */

@media screen and (min-width: 992px) {

    .nav-link {
        margin-left: 50px;
        font-size: 25px;
        font-weight: 600;
    }

}

/* ---------------------------------------------------- MQ - General Styling - Header - Tablet and Phone */

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

    #logo {
        margin-left: 50px;
    }

    .navbar-nav {
        margin-top: 50px;
        width: 200px;
        font-size: 1.1rem;
        background-color: var(--background);
        border: 1px solid var(--blue);
        border-radius: 5px;
    }

    .navbar {
        height: auto;
        position: absolute;
        top: 0;
        right: 0;
        margin-right: 50px;
    }

    .navbar:focus-visible {
        background-color: #fff;
    }

    .navbar-toggler {
        position: absolute;
        right: 20px;
    }


    #toggler {
        border: 1px solid var(--blue);
        background-color: var(--background);
    }
}

/* ---------------------------------------------------- MQ - General Styling - Header - Tablet */

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

    .navbar-toggler {
        top: 15px;
    }

}

/* ---------------------------------------------------- MQ - General Styling - Header - Phone */

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

    header {
        height: 110px;
    }

    #logo {
        height: 90px;
        width: 90px;
        margin-left: 30px;
    }

    .navbar {
        margin-right: 30px;
    }

    .navbar-toggler {
        top: 10px;
    }
}

/* ------------------------------------------------------------- MQ - Home Page - Smallest Phones */

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

    #logo {
        margin-left: 20px;
    }

    .navbar {
        margin-right: 20px;
    }
}

/* ---------------------------------------------------- MQ - General Styling - Footer - Tablet and Phone */

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

    .footer-links li {
        display: block;
        line-height: 40px;
    }

}

/* ---------------------------------------------------- MQ - General Styling - Footer - Tablet */

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

    .footer-links {
        column-count: 2;
        margin: 0 30%;
    }

    .footer-one {
        text-align: left;
    }

    .footer-two {
        text-align: right;
    }

    .footer-links li {
        margin: 0;
    }
}

/* ---------------------------------------------------------------------------------- MQ - HOME PAGE */

/* ------------------------------------------------------------- MQ - Home Page - Extra Large Desktop */
@media screen and (min-width: 1650px) {
    #penny-card {
        margin-left: 200px;
        margin-right: 200px;
    }
}

/* ------------------------------------------------------------- MQ - Home Page - Large Desktop */
@media screen and (min-width: 1450px) {

    .grid-container {
        margin-left: 150px;
        margin-right: 150px;
    }

    #penny-card {
        margin-left: 150px;
        margin-right: 150px;
    }
}

/* ------------------------------------------------------------- MQ - Home Page -  Desktop */

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

    #hugh-card {
        display: none;
    }

    .dog-card {
        margin: 50px auto 0 auto;
    }

    #penny-card {
        margin-left: auto;
        margin-right: auto;
    }

    #dog-preview {
        margin-left: 50px;
        margin-right: 50px;
    }

}

/* ------------------------------------------------------------- MQ - Home Page - Tablet and Phone */

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

    /* ------------------------------------ About Us */

    .grid-container {
        grid-template-columns: 1fr;
        grid-template-areas: "about-us-top"
            "about-div-top"
            "about-us-bottom"
            "about-div-bottom";
        margin-right: 50px;
        margin-left: 50px;
    }

    #about-div-top {
        margin-right: auto;
    }

    #about-div-bottom {
        margin-left: auto;
    }

    .about-us {
        padding: 0;
    }

    .about-us h2 {
        font-size: 22px;
    }

    .about-us p {
        font-size: 18px;
    }

    #about-div-top {
        margin-bottom: 25px;
    }
}

/* ------------------------------------------------------------- MQ - Home Page - Tablet */

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

    /* ------------------------------------ About Us Section */

    .about-image {
        width: 70%;
        max-width: 500px;
    }
}

/* ------------------------------------------------------------- MQ - Home Page - Phone */

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

    /* ------------------------------------ Hero Image */
    #hero-image {
        height: 300px;
        padding: 195px 0 0 0;
    }

    #hero-outer {
        height: 300px;
    }

    #hero-message h3 {
        font-size: 20px;
    }

    #hero-message-border {
        margin-left: 30px;
        margin-right: 30px;
    }

    /* ------------------------------------ Dog Preview Section */

    .meet-dogs-link {
        width: 200px;
        margin-top: 50px;
        margin-bottom: 50px;
    }

    .about-image {
        max-width: 450px;
    }

    #dog-preview {
        flex-direction: column;
        margin: 0;
    }

}

/* ------------------------------------------------------------- MQ - Home Page - Smallest Phones */

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

    #hero-message h3 {
        font-size: 18px;
    }

    .grid-container {
        margin-left: 20px;
        margin-right: 20px;
    }

    #hero-message-border {
        margin-left: 20px;
        margin-right: 20px;
    }

}


/* ---------------------------------------------------------------------------------- MQ - DOGS PAGE */


/* ------------------------------------------------------------- MQ - Home Page -  Desktop */

@media screen and (min-width: 992px) {
    #back-to-top {
        display: none;
    }

    #adoption-image {
        margin-top: 50px;
    }

}

/* ------------------------------------------------------------- MQ - Dogs Page - Tablet and Phone */

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

    #back-to-top a:hover {
        text-decoration: underline;
    }

    #back-to-top {
        margin: 25px 50px;
    }

}

/* ------------------------------------------------------------- MQ - Dogs Page - Tablet */

@media screen and (min-width: 768px) and (max-width: 991px) {
    .meet-dog-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ------------------------------------------------------------- MQ - Dogs Page - Phone */

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

    .meet-dog-heading {
        padding-left: 20px;
        padding-right: 20px;
    }

    .meet-dog-heading h1 {
        font-size: 40px;
    }

    .meet-dog-grid {
        grid-template-columns: 1fr;
    }

    #back-to-top {
        margin-right: 30px;
    }

    /* ------------------------------------ Adoption Section */

    #adoption-box {
        width: 80%;
    }

    #adoption-box h2 {
        font-size: 32px;
    }

    #adoption-box h4 {
        font-size: 24px;
    }

    #adoption-image {
        background: url("../images/dog-paw-prints.jpg") no-repeat center center;
    }

    #adoption-color {
        background-color: rgb(0, 0, 0, 0.6);
    }

}

/* ------------------------------------------------------------- MQ - Dogs Page - Smallest Phones */

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

    #back-to-top {
        margin-right: 20px;
    }

    #adoption-box {
        width: auto;
        padding-left: 20px;
        padding-right: 20px;
        margin-left: 0;
        margin-right: 0;
    }
}


/* ---------------------------------------------------------------------------------- MQ - CONTACT PAGE */

/* ---------------------------------------------------- MQ - Contact Page - Large Desktop */

@media screen and (min-width: 1450px) {

    #find-us {
        width: 21%;
        margin-right: 11%;
    }

    #map {
        margin-left: 11%;
    }

    .contact-form {
        width: 40%;
        margin: 0 30% 50px 30%;

    }
}



/* ------------------------------------------------------------- MQ - Contact Page - Tablet and Phone */

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

    #find-us-section {
        height: 700px;
        display: flex;
        flex-direction: column-reverse;
    }

    #find-us {
        width: auto;
        margin: 0;
    }

    #map {
        width: 100%;
    }
}


/* ------------------------------------------------------------- MQ - Contact Page - Tablet */

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

    .contact-form {
        width: 70%;
        margin: 0 15% 50px 15%;
    }

    /* ------------------------------------ Find Us Layout */
    #find-us {
        display: flex;
        justify-content: center;
        height: auto;
    }

    #find-us-section {
        padding-left: 10%;
        padding-right: 10%;
    }

    #map {
        margin: 30px 0;
    }

    /* ------------------------------------ Find Us Content */

    #find-us-hours {
        text-align: left;
        padding-left: 6%;
        border-left: 1px solid #c4c4c4;
        min-width: 45%;
    }

    #find-us-contact {
        text-align: right;
        padding-right: 6%;
        min-width: 45%;
    }

}

/* ------------------------------------------------------------- MQ - Contact Page - Phone */

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

    /* ------------------------------------ Contact Us Form */
    .contact-form {
        width: 86%;
        margin: 0 7% 50px 7%;
    }

    #submit {
        width: 16%;
        margin-left: 42%;
        margin-right: 42%;
    }

    /* ------------------------------------ Find Us Section */

    #find-us {
        align-items: center;
    }

    #find-us-section {
        align-items: center;
    }

    #map {
        margin: 30px 0 0 0;
    }
}

/* ------------------------------------------------------------- MQ - Contact Page - Smallest Phones */

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

    #submit {
        width: 24%;
        margin-left: 38%;
        margin-right: 38%;
    }

    #thanks-box {
        width: 90%;
        margin-left: 5%;
        margin-right: 5%;
    }

    #contact-text {
        margin-left: 20px;
        margin-right: 20px;
    }

    #find-us {
        padding-left: 20px;
        padding-right: 20px;
    }

}