/* Slideshow Container */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
}

/* Slides */
.slide {
    display: none;
    position: relative;
    text-align: center;
}

.slide img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

/* Make slides clickable */
.slide a {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.slide a:hover {
    opacity: 0.9;
}

/* Animal Info Overlay */
.animal-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 5px;
    text-align: left;
}

.animal-info h3 {
    margin: 0;
    font-size: 1.5em;
    color: #2e7d32; /* Match the green theme */
}

.animal-info p {
    margin: 5px 0;
    font-size: 1.2em;
    color: #333;
}

.animal-info .tags {
    margin-top: 5px;
}

.animal-info .tags span {
    display: inline-block;
    background: #d7ccc8;
    color: #333;
    padding: 2px 8px;
    margin-right: 5px;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Navigation Buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s ease;
    user-select: none;
    background: rgba(0, 0, 0, 0.5);
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Dots for Navigation */
.dots {
    text-align: center;
    position: absolute;
    bottom: 10px;
    width: 100%;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: #2e7d32; /* Match the green theme */
}

/* Fade Animation */
.fade {
    animation: fade 1s ease-in-out;
}

@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .animal-info {
        bottom: 10px;
        left: 10px;
        padding: 8px 15px;
    }

    .animal-info h3 {
        font-size: 1.2em;
    }

    .animal-info p {
        font-size: 1em;
    }

    .prev, .next {
        padding: 10px;
        font-size: 14px;
    }

    .dot {
        height: 10px;
        width: 10px;
    }
}
