body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
}

header {
    text-align: center;
    padding: 20px;
    background-color: #000000;
   
}
footer {
    text-align: center;
    padding: 20px;
    background-color: #000000;
}

header img {
    width: 150px;
}

.bird-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

.bird-box {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 10px;
    padding: 15px;
    width: calc(100% / 2 - 40px); /* Adjust for two columns */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.bird-box img {
    max-width: 48%; /* Ensures image occupies half of the space */
    height: auto;
    border-radius: 8px;
    margin-right: 15px; /* Space between image and text */
}
.bird-box a href{
    padding: 0;
    margin: 0;
    width: auto;

}
.details {
    flex: 1;
    max-width: 48%; /* Ensures text occupies half of the space */
    text-align: left;
}

.details h2 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.details p {
   
    text-align: left; /* Aligns text left within centered container */
    max-width: 80%; /* Limits width for readability */
}

.details-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.details-button:hover {
    background-color: #218838;
}
.gallery-image {
     display: block;
    margin: 0 auto; /* Centers the image horizontally */
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.bird-details {
    text-align: center; /* Centers text and elements within this container */
    margin-top: 20px; /* Adds some space above details */
}
.button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.action-button {
    display: inline-block;
    margin: 0 10px;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    cursor: pointer;
    border: none; /* For button type */
}

.action-button:hover {
    background-color: #0056b3;
}
@media (max-width: 768px) {
    .bird-box {
        width: calc(100% - 40px); /* Adjust for single column on smaller screens */
    }
}