body {
     background: url('https://images.unsplash.com/photo-1621468635836-494461c17b64?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MzJ8fG5hdHVyYWx8ZW58MHx8MHx8fDA%3D') no-repeat center center fixed; 
    font-family: 'Poppins', sans-serif;
    background-size: cover;
    color: #ffffff;
    text-align: center;
    padding: 20px;
}



.container::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('bg.jpg') center/cover no-repeat;
    filter: blur(2px);
    z-index: -1;
}

.container {
    position: relative;
    /* Keep content in flow */
    z-index: 1;
}

.search-box,
.explore-card {
    position: relative;
    backdrop-filter: none;
    filter: none;
}
nav {
    display: block !important;
    position: relative;
    z-index: 10; /* Ensure it's above other elements */
}

nav ul li {
    margin: 0 15px;
    text-align: right;
    font-size: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #00ffea;
    font-weight: bold;
    transition: 0.3s;
}


h1 {
    color: #1eb3b39c;
    /* Cyan to match search bar */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.back-link {
    color: #d3d37c;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #84e2eb;
}



p {
    text-align: justify;
}


.search-box {
    color: #ffffff;
    background: #4b454525;
    margin-bottom: 20px;
    padding: 12px;
    width: 80%;
    border: 2px solid #84e2eb;
    border-radius: 20px;
    outline: none;
    transition: all 0.3s ease;
}

.search-box:focus {
    border-color: #84e2eb;
    box-shadow: 0px 0px 8px rgba(15, 163, 177, 0.5);
}

#searchResults {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

/* Common Name Styling - Align to Left */
.common-name {
    font-size: 22px;
    font-weight: bold;
    color: #f5f4f0;
    /* Highlight common name with a different color */
    /* text-align: left; */
    /* margin-left: 1rem; */

}

.details {
    display: none;
    text-align: left;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.1);
    /* Fully transparent, only blur remains */
    backdrop-filter: blur(2px);
    /* Reduce blur effect */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 750px;
    /* Increased width */
    margin: auto;
    transition: all 0.3s ease-in-out;
}


button {
    padding: 10px 20px;
    margin-top: 20px;
    cursor: pointer;
    background-color: #424040;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #84e2eb;
}

.explore-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    margin: 10px;
    border-radius: 10px;
    width: 250px;
    transition: all 0.4s ease-in-out; /* Smooth transition */
    border: 2px solid transparent; /* Default border */
}

.explore-card:hover {
    border: 2px solid #84e2eb; /* Change border color on hover */
    transform: scale(1.08); /* Slight zoom effect */
    box-shadow: 0px 6px 15px rgba(132, 226, 235, 0.6); /* Softer glow effect */
}



/* Responsive Fixes */
@media (max-width: 768px) {

    body::before,
    body::after {
        width: 20vw;
    }

    .details {
        max-width: 90%;
    }
}