*,
*::before,
*::after {
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body {
    font-family: 'Playfair Display', serif; /* Update the font for the entire body */
    margin: 0;
    padding: 0;
    background-color: #e9e5dc;
    color: #1d130e;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Header Section */
header {
    padding: 10px 20px;
    text-align: center;
    background-color: rgba(31, 30, 30, 0);
    transition: background-color .3s ease;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: auto;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif; /* Set Arial font for the nav bar */
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: #e9e5dc;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #cc9e7b;
}

.language-selector select {
    background-color: #815034;
    color: #e9e5dc;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.language-selector select:hover {
    background-color: #cc9e7b;
}


/* Hero Section */
.hero {
    text-align: left;
    color: #1d130e;
    background-size: cover;
    background-position: top center;
    position: relative;
    z-index: 1;
}

/* Text on top of the slideshow */
.hero-content {
    position: absolute;
    top: 60%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    text-align: left;
    z-index: 2;
    font-size: 3rem; /* Adjust size as needed */
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: last baseline;
    justify-content: center;
}

.hero h1{
    display: block;
    width: 100auto;
    font-size: 4rem;
    position: relative;
    letter-spacing: .1rem;
    color: transparent;
    animation: text_reveal .5s ease forwards;
    margin: 0; /* Remove any default margin */
    padding: 5px 0; /* Adjust padding to control spacing */
    line-height: 1.2;

}
.hero h1:nth-child(1){
    animation-delay: 1s;
}
.hero h1:nth-child(2){    
    animation: text_reveal_name .5s ease forwards;
    animation-delay: 2s;
}
.hero h1:nth-child(3){
    animation-delay: 3s;
}

.hero h1 span{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #cc9e7b;
    animation: text_reveal_box 1s ease;
    animation-delay: .3s;
}
.hero h1:nth-child(1) span{
    animation-delay: .5s;
}
.hero h1:nth-child(2) span{
    animation-delay: 1.5s;
}
.hero h1:nth-child(3) span{
    animation-delay: 2.5s;
}

@keyframes text_reveal_box {
    50% {
        width: 100%;
        left: 0;
    }
    100% {
        width: 0;
        left: 100%;
    }
}
@keyframes text_reveal {
    100%{
        color: white;
    }
}
@keyframes text_reveal_name {
    100%{
        color: #cc9e7b;
        font-weight: 500px;
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cta{
    display: inline-block;
    padding: 10px 30px;
    color: white;
    background-color: transparent;
    border: 2px solid #cc9e7b;
    font-size: 1.5rem;
    letter-spacing: .1rem;
    margin-top: 20px;
    transition: .3 ease;
    transition-property: background-color, color;
    text-decoration: none;
    text-align: left; 
    opacity: 0; /* Start hidden */
    animation: fadeIn 1s ease forwards; /* Apply fade-in animation */
    animation-delay: 3.5s; /* Delay animation to start after text animations */
}
.cta:hover{
    color: white;
    background-color: #cc9e7b;
}

/* Container for the slideshow */
.slideshow-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Slideshow images */
.slideshow-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    animation: slide 15s infinite; /* Adjust the timing as needed */
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Blackish overlay */
.slideshow-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(29, 19, 14, 0.6); /* Blackish overlay with 50% opacity */
    z-index: 1;
}

/* Slideshow animation */
@keyframes slide {
    0% { opacity: 1; }
    20% { opacity: 1; }
    25% { opacity: 0; }
    95% { opacity: 0; }
    100% { opacity: 1; }
}

/* Content */
.about, .contact, .puppies {
    padding: 40px 20px;
    text-align: center;
}

.dogs{
    padding: 20px 20px;
}

.about {
    background-color: #f4f4f4; /* Light background color for contrast */
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.1) 1.5px, transparent 1.5px);
    background-size: 30px 30px; /* Moderate size for a balanced look */
    padding: 60px 20px;
    color: #333;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2);
}


.about h2, .gallery h2, .contact h2, .puppies h2 {
    color: #815034;
    font-size: 2em;
    font-family: 'Playfair Display', serif; /* Apply font to section headings */
}

.about p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto;
    text-align: justify; /* Justify text alignment */
    line-height: 1.6; /* Adjust line-height for better readability */
}

.about-content {
    overflow: hidden;
    position: relative;
}

#aboutText {
    text-align: justify;
    line-height: 1.6;
    margin-top: 0;
    transition: max-height 0.5s ease, padding-bottom 0.5s ease; /* Add transition for smooth effect */
}

#moreText {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease; /* Smooth animation for expansion */
}

#moreText.show {
    max-height: 1000px; /* Arbitrarily large value to accommodate expanded content */
    opacity: 1;
}

#readMoreBtn {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 20px;
    border: none;
    background-color: #cc9e7b;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#readMoreBtn:hover {
    background-color: #a87d5f;
}

/* Style for welcome message and sign-off text */
.welcome-message {
    font-size: 1.1rem; /* Slightly smaller than h1 but still prominent */
    font-weight: 300; /* Lighter weight for a refined look */
    text-align: center; /* Centered for emphasis */
    color: #3e3e3e; /* Dark grey for a sophisticated look */
    margin: 20px 0; /* Space above and below */
    line-height: 1.5; /* Improve readability */
}

.welcome-message span {
    display: block; /* Makes each part appear on a new line */
    margin: 5px 0; /* Space between lines */
    font-weight: 600; /* Slightly bolder for emphasis */
    color: #815034; /* Slightly lighter grey for variation */
}

.signature {
    font-size: 1rem; /* Same size as body text for balance */
    font-style: italic; /* Italic for a distinct sign-off style */
    text-align: center; /* Centered alignment */
    color: #815034; /* Medium grey for a soft contrast */
    margin-top: 10px; /* Space above */
    font-weight: 400; /* Regular weight for a clean look */
}


/* DOGS SECTION */
.logo {
    margin: -6% 20% 0 auto; /* Center the logo */
    display: block;
    width: 25%;
}

/* OUR DOGS SECTION STYLES */
.dogs-section {
    padding: 40px;
    background-color: #f8f9fa; /* Light background color */
    box-shadow: 30px 30px 30px 40px rgba(0, 0, 0, 0.2);
}

.dogs-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

.dogs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.dog-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    position: relative;

    width: 100%; /* Or a specific width depending on your layout */
    max-width: 300px; /* Example max-width, adjust as needed */
    margin: 10px auto; /* Center the card, optional */
}

.dog-card:hover {
    transform: translateY(-5px);
}

.dog-image-container {
    position: relative; /* Ensures the overlay is positioned relative to this container */
    width: 100%;
    height: 200px; /* Set the height of the container */
    overflow: hidden; /* Ensures the image does not overflow */
}

.dog-image {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    
    object-fit: cover; /* Ensures the image covers the container without distortion */
    border-radius: 8px 8px 0 0; /* Optional: Matches the card's rounded corners */
}

.dog-card:hover .dog-image {
    transform: scale(1.1);
}

.dog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.dog-card:hover .dog-overlay {
    opacity: 1;
    visibility: visible;
}

.dog-btn, .gallery-btn {
    background-color: #cc9e7b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dog-btn:hover, .gallery-btn:hover {
    background-color: #a87d5f;
}

.dog-info {
    padding: 15px;
}

.dog-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #444;
}

.dog-info p {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #555;
}

.dog-info ul {
    list-style-type: disc;
    padding-left: 20px;
}

.dog-info ul li {
    margin-bottom: 5px;
    font-size: 1rem;
    color: #555;
}

@media (max-width: 768px) {
    .dogs-container {
        grid-template-columns: 1fr;
    }
}



/* Full Screen Modal */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100vw; /* Full viewport width */
    height: 100vh; /* Full viewport height */
    background-color: rgba(0, 0, 0, 0.8); /* Black background with opacity */
    overflow: hidden; /* Hide scrollbars */
}

.modal2 {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%; /* Limit size of image */
    max-height: 90%; /* Limit size of image */
}

.modal-content2 {
    position: relative;
    margin: 1% auto auto auto;
    padding: 20px;
    width: 60%;
    max-width: 700px;
    text-align: center;
    align-items: center; /* Center vertically */
}

.modal-image {
    width: 100%;
    max-width: 600px; /* Limit the maximum width of images */
    max-height: 80vh; /* Limit the height to avoid overflow */
    object-fit: contain; /* Maintain aspect ratio */
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

#caption {
    margin: 10px 0;
    color: #ccc;
    font-size: 16px; /* Adjust font size if needed */
    padding: 5px;
    text-align: center;
}

#caption2 {
    margin: 5px 0; /* Reduce margin */
    color: #ccc;
    font-size: 16px; /* Adjust font size if needed */
    padding: 5px;
    text-align: center;
    position: absolute; /* Absolute positioning */
    bottom: 60px; /* Position above the pagination dots */
    left: 50%;
    transform: translateX(-50%);
}

/* Arrow Styles */
.prev, .next {
    cursor: pointer;
    position: fixed; /* Fixed position relative to the viewport */
    top: 50%; /* Vertically center */
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 10; /* Ensure arrows are above the image */
}
.prev {
    left: 20px; /* Adjust as needed */
    border-radius: 3px 0 0 3px;
}

.next {
    right: 20px; /* Adjust as needed */
    border-radius: 0 3px 3px 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Pagination/Dots */
.pagination {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 5px; /* Adjust spacing between dots */
}

.dot {
    cursor: pointer;
    height: 10px; /* Smaller size for dots */
    width: 10px; /* Smaller size for dots */
    margin: 0 3px; /* Adjust margin for better spacing */
    background-color: #cc9e7b;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #a87d5f;;
}






.toggle-dogs-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #cc9e7b; /* Adjust to match `readMoreBtn` */
    color: #fff;
    border: none;
    font-size: 20px;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    margin: auto auto auto 0;
    display: block;
    transition: background-color 0.3s ease; /* Optional: Add transition for hover effect */
}

.toggle-dogs-btn:hover {
    background-color: #a87d5f; /* Darker shade on hover */
}

.hidden-dogs {
    opacity: 0;
    display: none; /* Hide by default, will use transition to show */
    transition: opacity 0.5s cubic-bezier(0.42, 0, 0.58, 1); /* Duration and easing function */
}

.visible-dogs {
    opacity: 1;
    display: block; /* Ensure the items are visible */
}

.dog-card[data-status="passed"] {
    position: relative;
    overflow: hidden;
}

.dog-card[data-status="passed"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 30, 30, 0.24);
    z-index: 1;
    pointer-events: none; /* Allows clicks through the overlay if needed */
}


/* GALLERY */
#gallery {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 10px 20px 40px 20px;
    text-align: center;
    box-shadow: 30px 30px 30px 40px rgba(0, 0, 0, 0.2);
    background-color: #f8f9fa; /* Light background color */}

    
    
#gallery h2 {
    color: #815034;
    font-size: 2em;
    font-family: 'Playfair Display', serif; /* Apply font to section headings */
}

.gallery-container {
    overflow: hidden;
    position: relative;
    height: 200px; /* Fixed height for the gallery container */
}

.gallery-wrapper {
    display: flex;
    flex-wrap: nowrap;
    width: fit-content;
    animation: scroll 300s linear infinite; /* Slow down the scrolling speed */
    transition: animation-play-state 0.5s; /* Smooth transition for hover effect */
}

.gallery-item {
    position: relative;
    height: 200px; /* Fixed height for each picture */
    margin-right: 15px; /* Space between images */
}

.gallery-item img {
    width: auto;
    height: 100%;
    display: block;
}

.gallery-wrapper:hover {
    animation-play-state: paused; /* Pause animation on hover */
}

.gallery-item:hover::before {
    content: attr(data-caption);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
    z-index: 1; /* Ensure overlay is above the image */
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); } /* Scroll through 100% of the width */
}


/* Contact*/
.contact p{
    font-size: 1.5rem;
}
.contact form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
    padding-top: 30px;
}

.contact label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif; /* Apply font to form labels */
}

.contact input, .contact textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #815034;
    border-radius: 5px;
}

.contact button {
    background-color: #815034;
    color: #e9e5dc;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact button:hover {
    background-color: #cc9e7b;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px; /* Adjust space between columns */
}

.contact-info {
    padding: 20px;
    text-align: left;
}

.contact-info h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.contact-info a {
    text-decoration: none;
    color: #1d130e;
}

.contact-info a:hover {
    color: #815034;
}

#map {
    width: 100%;
    height: 130px; /* Adjust as needed */
    background: #e0e0e0; /* Placeholder color for the map */
}

/* Footer */    

footer {
    background-color: #1d130e;
    color: #e9e5dc;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-family: 'Playfair Display', serif; /* Apply font to footer text */
}

/* Scroll to Top Button */
#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px; /* Equal width and height to maintain circle shape */
    height: 40px; /* Equal width and height to maintain circle shape */
    background-color: #815034;
    color: #e9e5dc;
    border: none;
    border-radius: 50%; /* Ensures the button is circular */
    display: flex; /* Flexbox to center content */
    align-items: center; /* Vertically center the arrow */
    justify-content: center; /* Horizontally center the arrow */
    cursor: pointer;
    z-index: 100;
    transition: background-color 0.3s ease;
}

#scrollToTopBtn:hover {
    background-color: #cc9e7b;
}

/* Ensure the button's arrow is centered and properly sized */
#scrollToTopBtn::before {
    content: '\2191'; /* Unicode character for the up arrow */
    font-size: 18px; /* Adjust size if necessary */
    line-height: 1; /* Ensure proper vertical alignment */
}


/* SECURITY MEASURES */
@media print {
    body {
        visibility: hidden;
    }
    .no-print {
        display: none;
    }
}

/* Prevent Image Copying */
img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}
