/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a{
    text-decoration: none;
}

nav{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 7vh;
    width: 100%;
    background-color: transparent;
    backdrop-filter: blur(2px);
    background-color: #aed581;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-white {
    color: white;
}

.menu a.navbar-white {
    color: white;
}


.menu{
    display: flex;
    width: 100%;
    justify-content: space-evenly;
}

.menu a{
    color: #468585;
    font-family: 'Verdana', sans-serif;
    font-weight: 500;
    font-size: 2vw;
}

/* Body Styling */
body {
    font-family: 'Verdana', sans-serif;
    background-color: #e8f5e9; /* Light green for a plant-friendly vibe */
    color: #2e7d32; /* Deep green for text */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: url(Service_Medicine_Donate_Feedback_page_images/3030625.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* Header Styling */
header {
    background-color: #2e7d32; /* Medium green for header */
    text-align: center;
}

header h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    padding: 10px;
}

/* Main Container Styling */
main {
    flex: 1;
    padding: 20px;
}

/* Search Container */
.search-container {
    text-align: center;
    margin-bottom: 20px;
}

input[type="text"] {
    padding: 12px;
    width: 70%;
    max-width: 500px;
    border: 2px solid #aed581; /* Soft green border */
    border-radius: 8px;
    font-size: 1rem;
    background-color: rgb(255, 255, 255, 0.5);
    backdrop-filter: blur(3px);
    color: #2e7d32;
    outline: none;
    transition: all 0.3s ease-in-out;
}

input[type="text"]:focus {
    border-color: #66bb6a; /* Highlighted green */
    box-shadow: 0 0 8px rgba(102, 187, 106, 0.5);
}

button {
    margin-top: 10px;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    background-color: #388e3c; /* Darker green */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #2e7d32; /* Even darker green on hover */
}

/* Results Container */
#results {
    margin: 20px auto;
    padding: 15px;
    width: 90%;
    max-width: 800px;
    background-color: rgb(255, 255, 255, 0.5);
    backdrop-filter: blur(3px);
    border: 1px solid #c8e6c9;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.plant-card {
    padding: 15px;
    border-bottom: 1px solid #c8e6c9;
    text-align: center; /* Centers all content, including the image */
}

.plant-card h3 {
    color: #4CAF50;
}

.plant-card .image-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    margin-bottom: 15px;
}

.plant-card img {
    max-width: 80%; /* Restrict the image width */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow */
}

#results div {
    padding: 15px;
    border-bottom: 1px solid #c8e6c9;
    text-align: center; /* Centers text and images in the result container */
}

#results img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 15px;
    margin-bottom: 15px;
    max-width: 80%; /* Restrict the image width */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow */
}


#results h3 {
    color: #388e3c;
    font-size: 1.2rem;
    margin-bottom: 10px;
}


#results p {
    font-size: 0.95rem;
    line-height: 1.5;
}

#results img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

details {
    background-color: rgb(255, 255, 255, 0.5);/* Light green background */
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

details summary {
    font-size: 18px;
    font-weight: bold;
    color: #2e7d32; /* Darker green for the text */
    cursor: pointer;
    padding: 10px 0;
    margin-bottom: 10px;
    border-bottom: 2px solid #2e8b57;
}

details summary:hover {
    color: #3cb371; /* Lighter green on hover */
}

details p {
    font-size: 16px;
    color: #555;
    margin: 5px 0;
}

details[open] {
    background-color: #e8f5e8; /* Slightly darker green when open */
}

details[open] summary {
    color: #228b22; /* Even darker green when open */
}


/* Footer Styling */
.copyright{
    width: 100%;
    padding-top: 2.5%;
    padding-bottom: 2.5%;
    background-color: #385A0C;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Verdana;
    font-size: 15px;
    flex-direction: column;
    gap: 10px;
}

.copyright a{
    color: white;
    text-decoration: underline;
}
