body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9fc; /* Slightly lighter background */
    color: #444; /* Softer text color */
}

header {
    background-color: #4a90e2; /* Lighter blue */
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 24px; /* Slightly larger font */
    font-weight: bold;
}

header .logo a {
    text-decoration: none !important; /* Forcefully remove underline */
    color: white; /* Inherit color from parent styles */
    text-transform: none; /* Ensure case sensitivity */
    font-size: 24px; /* Slightly larger font */
    font-weight: bold;
}

header .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header .menu li {
    margin-left: 15px;
}

header .menu a {
    color: white;
    text-decoration: none;
    font-size: 16px; /* Increased font size */
    padding: 8px 12px;
    display: inline-block;
}

header .menu a:hover {
    background-color: #357ab7; /* Slightly darker hover effect */
    border-radius: 3px;
}

.content {
    padding: 20px; /* Increased padding */
    text-align: center;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1); /* Lighter shadow */
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative;
    width: 100%;
    font-size: 14px; /* Slightly larger font */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 30px; /* Ensure it doesn’t overlap content */
}

/* Style for the menu */
.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.menu li {
    position: relative;
    margin-left: 15px;
}

.menu a {
    text-decoration: none;
    color: white;
    font-size: 16px; /* Increased font size */
    padding: 8px 10px;
    display: inline-block;
}

.menu a:hover {
    background-color: #357ab7;
    border-radius: 3px;
}

/* Dropdown styles */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #3c7cbf; /* Darker submenu background */
    min-width: 160px; /* Adjusted width */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Softer shadow */
    z-index: 1;
    padding: 0;
    border-radius: 5px; /* Rounded corners */
}

.dropdown-content a {
    color: white;
    padding: 8px 10px; /* Reduced padding */
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #275c96;
}

/* Show the dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Filter group styles */
.filter-group {
    margin-bottom: 15px; /* Reduced spacing */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

label {
    font-weight: bold; /* Bold descriptions */
    margin-bottom: 5px;
    font-size: 16px; /* Increased font size */
    color: #333; /* Slightly darker text */
}

select {
    width: 100%;
    max-width: 350px;
    padding: 10px; /* Slightly larger padding */
    font-size: 16px; /* Increased font size */
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fdfdfd; /* Slightly lighter background */
}

select:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5); /* Lighter focus shadow */
}

/* Panel styling for form sections */
.panel {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px; /* Reduced margin */
}

.panel-heading {
    background-color: #4a90e2;
    color: white;
    padding: 10px 15px; /* Increased padding */
    border-bottom: 1px solid #ddd;
    border-radius: 8px 8px 0 0;
}

.panel-title {
    font-size: 16px; /* Increased size */
    margin: 0;
}

.panel-body {
    padding: 10px;
}

button {
    font-size: 16px; /* Increased font size */
    padding: 10px 16px;
    border-radius: 3px;
}

button[type="submit"] {
    background-color: #4a90e2;
    color: white;
    border: none;
}

button[type="submit"]:hover {
    background-color: #357ab7;
}

button[type="reset"] {
    background-color: #f9f9fc;
    color: #333;
    border: 1px solid #ccc;
}

button[type="reset"]:hover {
    background-color: #e6e6f2;
}

/* Basic Filtering Form Styling */
.basic-filter-container {
    margin: 30px auto;
    max-width: 700px; /* Consistent width across pages */
    background-color: #fff;
    border-radius: 10px;
    padding: 20px; /* Internal padding */
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    overflow: hidden; /* Prevent content overflow */
}

.filter-frame {
    border: 1px solid #4a90e2; /* Frame border */
    border-radius: 10px; /* Rounded corners */
    padding: 15px; /* Internal padding */
    margin: 20px 0; /* Vertical spacing between elements */
    width: calc(100% - 5px); /* Adjust width to account for padding */
    background-color: #f9f9f9; /* Subtle background color */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Shadow for depth */
    box-sizing: border-box; /* Include padding and borders in the width */
}


.column {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two-column grid */
    gap: 20px; /* Space between items */
    width: 100%; /* Full width of the parent */
    box-sizing: border-box; /* Include padding and borders in the grid width */
}


.filter-box {
    margin-bottom: 15px;
}

label {
    font-weight: bold; /* Bold descriptions */
    margin-bottom: 5px;
    font-size: 16px;
}

select {
    width: 100%;
    padding: 10px; /* Larger padding */
    font-size: 16px; /* Increased font size */
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fdfdfd;
}

/* Results Container */
.result-container {
    margin: 20px auto; /* Centered with vertical spacing */
    padding: 20px; /* Internal padding */
    max-width: 95%; /* Almost full-width */
    background-color: #ffffff;
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}


/*Pagination*/
.pagination {
    text-align: center; /* Center pagination */
    margin: 20px 0;
}

.pagination a {
    display: inline-block;
    margin: 0 10px; /* Space between links */
    padding: 10px 15px; /* Better clickable area */
    font-size: 14px; /* Readable size */
    color: #4a90e2;
    background-color: #fff;
    border: 1px solid #4a90e2;
    border-radius: 5px; /* Smooth corners */
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.pagination a:hover {
    color: white;
    background-color: #4a90e2;
    border-color: #357ab7;
}

.pagination a.active {
    font-weight: bold;
    background-color: #4a90e2;
    color: white;
    border-color: #357ab7;
}


.taxonomy-search-container {
    margin: 30px auto;
    max-width: 700px; /* Match the narrower frame of basis-search.php */
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.taxonomy-filter-frame {
    border: 1px solid #4a90e2;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}


.filter-group label {
    display: block; /* Ensure the label is above the select box */
    font-weight: bold;
    margin-bottom: 8px; /* Space between label and input */
    font-size: 16px; /* Consistent font size */
}

.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.taxonomy-results-container {
    margin: 30px auto;
    max-width: 700px;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.api-call-display p {
    font-size: 16px;
    word-wrap: break-word;
    color: #4a90e2;
}

.api-call-display a {
    text-decoration: none;
    color: #4a90e2;
}

.api-call-display a:hover {
    text-decoration: underline;
    color: #357ab7;
}

/* error message */
.error-message {
    color: red;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
    background-color: #ffe6e6;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ffcccc;
}


.large-input {
    width: 100%;
    max-width: 350px;
    font-size: 16px; /* Align with select */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fdfdfd;
}


input[type="number"] {
    width: 100%;
    max-width: 350px; /* Match select box width */
    padding: 10px; /* Same as select */
    font-size: 16px; /* Match font size */
    border: 1px solid #ccc; /* Match border */
    border-radius: 5px; /* Match border radius */
    background-color: #fdfdfd; /* Match background */
    box-sizing: border-box; /* Ensure consistent sizing */
}

.uniform-input {
    width: 100%; /* Ensure full-width input */
    max-width: 350px; /* Set a consistent max width */
    padding: 10px; /* Add padding for uniform look */
    font-size: 16px; /* Same font size for consistency */
    border: 1px solid #ccc; /* Same border style */
    border-radius: 4px; /* Slightly rounded corners */
    box-sizing: border-box; /* Include padding in width calculation */
}

/* Species */
.detail-container {
    margin: 20px auto;
    max-width: 80%;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.taxonomy, .morphology {
    margin-bottom: 20px;
}
.images-row {
    display: flex;
    flex-wrap: wrap; /* Allows images to wrap to the next row */
    gap: 10px; /* Adds space between images */
    justify-content: flex-start; /* Align images to the left */
}

.images-row img {
    width: 200px; /* Fixed width for images */
    height: auto; /* Maintain aspect ratio */
    border-radius: 5px; /* Optional: rounded corners */
    border: 1px solid #ddd; /* Optional: border for better visuals */
}

.common-name {
    font-size: 1.2em;
    font-style: italic;
    color: #555;
    margin-top: -10px;
    margin-bottom: 20px;
}


/*contact form */

.contact-container {
    margin: 30px auto;
    max-width: 700px;
    background: #fff;
    border-radius: 10px;
    padding: 20px; /* Internal padding */
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    overflow: hidden; /* Prevent content overflow */
}

.contact-frame {
    padding: 20px; /* Internal padding */
    margin: 20px 0; /* Vertical spacing between elements */
    width: calc(100% - 5px); /* Adjust width to account for padding */
    background-color: #f9f9f9; /* Subtle background color */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Shadow for depth */
    box-sizing: border-box; /* Include padding and borders in the width */
    border: 1px solid #4a90e2; /* Frame border */
    border-radius: 10px; /* Rounded corners */
}

.contact-frame input, .contact-frame textarea {
    margin-right: 5px; /* Ensure the input is 5px away from the container's right border */
    box-sizing: border-box; /* Maintain consistency with padding and margin calculations */
    width: calc(100% - 10px); /* Adjust the width to account for both left and right spaces */
}

.contact-frame label {
    margin-right: 5px; /* Optional: Adjust label alignment */
}


/*index form */
.index-container {
    margin: 30px auto;
    max-width: 700px;
    background: #fff;
    border-radius: 10px;
    padding: 20px; /* Internal padding */
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    overflow: hidden; /* Prevent content overflow */
}

.index-frame {
    padding: 20px; /* Internal padding */
    margin: 20px 0; /* Vertical spacing between elements */
    width: calc(100% - 5px); /* Adjust width to account for padding */
    background-color: #f9f9f9; /* Subtle background color */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Shadow for depth */
    box-sizing: border-box; /* Include padding and borders in the width */
    border: 1px solid #4a90e2; /* Frame border */
    border-radius: 10px; /* Rounded corners */
}
