/* styles.css */

/* Reset default styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a; /* Darker background color */
    color: #ffffff; /* White text color */
}

header {
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 20px 0;
}

main {
    display: flex;
    flex-direction: column; /* Adjust to column layout */
    align-items: center; /* Center content horizontally */
    padding: 20px;
}

.species-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1800px;
    margin: 0 auto;
}

.species-card {
    background-color: #333333; /* Darker card background */
    border: 1px solid #555555; /* Darker border */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}

.species-card:hover {
    transform: translateY(-5px);
}

.species-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.species-details {
    padding: 10px;
}

.species-details h3 {
    margin: 10px 0;
    font-size: 1.4rem;
    text-align: center;
}

.species-details p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.btn {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: center;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 10px;
    text-decoration: none;
    transition: background-color 0.3s ease-in-out;
}

.btn:hover {
    background-color: #45a049;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.modal-content {
    background-color: #333333; /* Darker modal background */
    color: #ffffff; /* White text color */
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #555555; /* Darker border */
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #dddddd; /* Lighter close button color */
    transition: color 0.3s ease-in-out;
}

.close-btn:hover {
    color: #ffffff; /* White hover color */
}

/* Fun Facts Section */
#funFacts {
    background-color: #4CAF50;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
    max-width: 800px;
    border-radius: 8px;
}

#funFacts h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 10px;
}

#funFacts ul {
    list-style-type: none;
    padding: 0;
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

#funFacts li {
    font-size: 1.1rem;
}

/* Frog Decals Section */
#frogDecals {
    text-align: center;
    margin: 20px 0;
}

#frogDecals h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.decals {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.decals img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}

.decals img:hover {
    transform: scale(1.1);
}
