* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

.header {
    background: #2a9d8f;
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 4px 2px -2px gray;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.header .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.header .nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.header .nav a:hover {
    color: #e9c46a;
}

.hero {
    background: url('hero-image.jpg') no-repeat center center/cover;
    color: #fff;
    height: 60vh;
    position: relative;
}

.hero .overlay {
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.search-bar {
    display: flex;
    margin-top: 20px;
}

.search-bar input {
    padding: 10px;
    font-size: 1rem;
    border: none;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.search-bar button {
    padding: 10px;
    font-size: 1rem;
    border: none;
    background: #e9c46a;
    color: #333;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    transition: background 0.3s;
}

.search-bar button:hover {
    background: #f4a261;
}

.results-section {
    padding: 20px;
    background: #fff;
    margin-top: 20px;
}

.results-section .container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.results-section h2 {
    margin-bottom: 20px;
}

.species-info {
    margin-bottom: 20px;
    padding: 20px;
    background: #f4f4f4;
    border-radius: 5px;
}

.species-info p {
    margin-bottom: 10px;
}

.footer {
    background: #2a9d8f;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 20px;
}

.error {
    color: red;
    font-weight: bold;
}

.loading-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #2a9d8f;
    animation: spin 1s ease infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
