/* ---------------------------------------------------------------------- 
    Footer Content
------------------------------------------------------------------------- */

.footer-main {
    background-color: var(--color-accent-peach);
    width: 100%;
    left: 0;
    bottom: 0;
    position: relative;
    margin-top: 10px;
    border-top: var(--border-width) ridge var(--color-border);
}

.footer-main h6 {
    font-size: 8px;
    font-weight: 700;
}

/* Background image for the footer */
#footer-background-image {
    position: relative;
    z-index: 1;
}

#footer-background-image::before {
    content: "";
    position: absolute;
    background-image: url("../images/footer-overlay.e65c642ee128.jpg");
    background-size: cover;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.2;
    z-index: -1;
}

/* Style for back-to-top class */
.back-to-top {
    text-align: center;
    position: sticky;
    bottom: 0;
    padding-top: 2px;
    margin-bottom: 0;
    font-size: 120%;
}

.back-to-top a {
    color: var(--color-dark-brown);
}

.back-to-top a:hover {
    color: rgb(221, 189, 102);
}

/* Subscribe newsletter */
.subscribe-newsletter h2 {
    font-size: 14px;
}

#email-newsletter-help {
    padding-left: 5px;
}

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

.social-networks {
    padding: 10px 0 20px;
    margin: 5px 4%;
}

.social-networks > ul {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    list-style-type: none;
    padding: 0;
}

.social-networks li {
    text-align: center;
}

.social-networks a {
    font-size: 2em;
    color: var(--color-dark-brown);
}

/* Footer Address Styles */
#footer-box {
    padding-top: 0.5%;
    padding-bottom: 1%;
}

#footer-address {
    color: var(--color-dark-brown);
    letter-spacing: 0.5mm;
    padding-left: 2%;
    align-self: end;
    font-size: 12px;
}

#footer-address h6 {
    margin-bottom: 0.2rem;
    font-size: 12px;
}

#footer-address p {
    margin: 0.04rem;
    font-size: var(--font-size-xsmall);
}

#footer-directions {
    color: var(--color-dark-brown);
    font-size: 32px;
    padding-top: 30px;
}

#footer-directions a {
    color: var(--color-dark-brown);
    font-size: 30px;
}

#footer-directions p {
    text-align: center;
}

.footer-contact {
    align-self: end;
}

.footer-contact p {
    font-size: 12px;
    margin-bottom: 2px;
}

#footer-contact-links {
    padding: 0;
    text-transform: uppercase;
    font-weight: 400;
}

.footer-contact a {
    font-size: var(--font-size-xsmall);
    margin-bottom: 2px;
}

.small-print {
    font-size: 60%;
    color: var(--color-dark-brown);
    padding-bottom: 10px;
}

/* ------------------ Modal Container ------------------ */

.modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-backdrop.show {
    z-index: 1040;
}

.modal-dialogue {
    z-index: 9999;
}

/* ------------ Modal Content -------------- */

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    border-radius: 5px; /* Add rounded corners for a modern look */
    width: 80%; 
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow for depth */
}

/* Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.3s; /* Smooth transition for hover effect */
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
    outline: none; /* Remove default outline */
}

/* ------------------------ Buttons ------------------------ */

button {
    padding: 10px 20px;
    margin: 10px;
    border: none;
    border-radius: 4px; /* Add rounded corners for buttons */
    cursor: pointer;
    font-size: 16px; /* Make text larger for better readability */
    transition: background-color 0.3s, box-shadow 0.3s; /* Smooth transition for hover effect */
}

#accept {
    background-color: #4CAF50; 
    color: white;
}

#accept:hover {
    background-color: #45a049; /* Slightly darker green on hover */
}

#decline {
    background-color: #f44336; 
    color: white;
}

#decline:hover {
    background-color: #e53935; /* Slightly darker red on hover */
}

/* ------------------------------------- Medium devices such as tablets (768px and up) ---------------------------------------*/
@media screen and (min-width: 768px) {

    .back-to-top {
        padding-bottom: 10px;
        font-size: 32px;
    }

    /* Subscribe newsletter */
    .subscribe-newsletter {
        padding-top: 5px!important;
        padding-bottom: 5px!important;
        width: 100%;
        align-items: center;
    }

    .subscribe-newsletter h2 {
        font-size: 18px;
        margin-bottom: 8px!important;
    }

    #email-newsletter-help {
        font-size: 16px;
        padding-left: 6px;
    }

    #newsletter-sign-up {
        margin-bottom: 20px;
    }

    /* Social media links */
    .social-networks {
        font-size: 16px;
    }

    /* Address */
    #footer-address h6 {
        margin-bottom: 0.2rem;
        font-size: 1rem;
    }
    
    #footer-address p {
        margin: 0.04rem;
        font-size: 0.9rem;
    }

    /* Directions */
    #footer-directions {
        font-size: 32px;
        padding-top: 30px;
    }
    
    #footer-directions a>i {
        font-size: 30px;
    }
    
    /* Contact */
    .footer-contact p {
        font-size: 1rem;
        margin-bottom: 2px;
    }
    
    #footer-contact-links {
        padding: 0;
        text-transform: uppercase;
        font-weight: 400;
    }
    
    .footer-contact a {
        font-size: 0.9rem;
        margin-bottom: 2px;
        margin-left: 5px;
    }
}

/* -------------------------- Mid to large devices such as large tablets or small laptops (1024px and up) ------------------------ */
@media screen and (min-width: 1024px) {

    .back-to-top {
        font-size: 46px;
    }

    .subscribe-newsletter {
        padding-top: 5px!important;
        padding-bottom: 5px!important;
        width: 100%;
    }

    .subscribe-newsletter h2 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    #email-newsletter-help {
        font-size: 16px;
        padding-left: 6px;
    }

    /* Address */

    #footer-address {
        padding-left: 4%;
    }

    #footer-address h6 {
        margin-bottom: 0.2rem;
        font-size: 1.3rem;
    }
    
    #footer-address p {
        margin: 0.04rem;
        font-size: 1.2rem;
    }

    /* Directions */
    
    #footer-directions {
        font-size: 32px;
        padding-top: 30px;
    }
    
    #footer-directions a > i {
        font-size: 60px;
    }
    
    /* Contact */

    .footer-contact p {
        font-size: 1.8rem;
        margin-bottom: 2px;
    }
    
    #footer-contact-links {
        padding: 0;
        text-transform: uppercase;
        font-weight: 400;
    }
    
    .footer-contact a {
        font-size: 1.5rem;
        margin-bottom: 2px;
        margin-left: 10px;
    }
}

/* ------------------------------------- Large devices such as laptops (1280px and up) -------------------------------- */
@media screen and (min-width: 1280px) {

    .back-to-top {
        font-size: 56px;
    }

    .subscribe-newsletter h2 {
        font-size: 26px;
    }

    #email-newsletter-help {
        font-size: 16px;
        padding-left: 6px;
    }

    /* Address */
    #footer-address {
        padding-left: 6%;
    }
}

/* ------------------------------------- Larger devices such as large desktops (1400px and up) */
@media screen and (min-width: 1400px) {

    #footer-address {
        padding-left: 6%;
    }
}
