.navContainer {
    display: flex;
    align-items: center;
    gap: 35px;
    background-color: rgb(27, 61, 5);
    color: rgb(255, 251, 233);
    height: 175px;
}

.navLogo {
    margin-right: auto;
    height: 150px;
    padding-left: 20px;
}

.navLinks {
    display: flex;
    gap: 35px;
    padding-right: 20px;
}

.navLinks a {
    color: rgb(255, 251, 233);
    font-size: 30px;
    text-decoration: none;
    padding-right: 30px;
}

.navLinks a.selected {
    text-decoration: underline;
}

.navLog {
    margin-left: auto;
    color:rgb(255, 251, 233);
    font-size: 22px;
    text-decoration: none;
    padding-right: 20px;
}

.welcomeTitle {
    color: #8e778f;
    background-color: rgb(255, 251, 233);
    text-align: left;
    padding: 10px 40px;
    width: fit-content;
    margin: 0;
    font-size: 35px;
}

.welcomeText {
    background-color: rgb(255, 251, 233);;
}

.welcomeList {
    color:rgb(27, 61, 5);
}

.welcomeParagraph {
    color: #8e778f;
    background-color: rgb(255, 251, 233);
    text-align: left;
    padding: 10px 40px;
    width: fit-content;
    margin: 0;
    font-size: 40px;
}

.background {
    background-color:rgb(167, 167, 137);
    margin: 8px 20px;
}





.card {
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
    background-color: rgb(253, 247, 217);
    color: rgb(27, 61, 5);
}

.cardTitle {
    margin: 0 0 10px 0;
    font-size: 40px;          
}

.cardBody {
    margin: 0;
    font-size: 20px;          
}

.cardText {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 40px;
    overflow: hidden;            /* keeps long text from spilling out of the card */
}

.cardImg {
    width: 25%;
    aspect-ratio: 1 / 1;         /* keeps it square */
    height: auto;
    object-fit: cover;
}

.card.reverse {
    flex-direction: row-reverse;
    background-color: #fff;
}

.card.reverse .cardText {
    text-align: right;
}













.animalGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));  /* as many columns as fit */
    gap: 20px;
    margin: 20px 0;
    align-items: start;
}

.animalCard {
    background-color: rgb(255, 251, 233);   /* off white */
    color: rgb(27, 61, 5);
    overflow: hidden;
    border-radius: 8px;
}

.animalPhoto {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;                    /* square photo, cropped not stretched */
    object-fit: cover;
}

.animalInfo {
    padding: 15px 20px 20px 20px;
}

.animalName {
    margin: 0 0 8px 0;
    font-size: 26px;
    font-weight: bold;
}

.animalDetail {
    margin: 0 0 4px 0;
    font-size: 18px;
}

.animalStatus {
    display: inline-block;
    margin: 10px 0 0 0;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    background-color: rgb(27, 61, 5);
    color: rgb(255, 251, 233);
}

.animalStatus[data-status="Sold"] {
    background-color: #8a8a8a;
}

.animalStatus[data-status="Reserved"] {
    background-color: #b07d1a;
}

.animalEmpty {
    grid-column: 1 / -1;                    /* spans the whole row */
    text-align: center;
    font-size: 20px;
    color: rgb(27, 61, 5);
}

.animalInfo .deleteBtn {
    display: block;
    margin-top: 12px;
}




















.welcomeElements {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px;
    align-items: flex-start;
}

.sideImg {
    height: 350px;
    width: auto;
}
.stackImg{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px; 
}

.errorMsg{
  color: red;
  text-align: center;
}

.event {
  background-color: rgb(255, 251, 233);
  padding: 15px 20px;
  margin: 10px auto;
  width: 600px;
}

.eventsDate {
    font-size: 14px;
    color: rgb(27, 61, 5);
}

.eventsName {
    font-size: 22px;
    font-weight: bold;
    color: rgb(27, 61, 5);
}

.eventsTime {
    font-size: 14px;
    color: rgb(27, 61, 5);
}

.eventsLocation, .eventsDescription {
    font-size: 16px;
    color: rgb(27, 61, 5);
}

.eventsElements{
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin: 20px;
}

.schedule {
    display: none;
}

.selectedLogin {
    margin-left: auto;
    color:rgb(255, 251, 233);
    font-size: 22px;
    text-decoration: underline;
    padding-right: 20px;
}

.loginElements{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    color:rgb(27, 61, 5);
    background-color: rgb(255, 251, 233);
    width: 400px;
}

.adminLogin {
    display: none;
    color: rgb(255, 251, 233);
    font-size: 22px;
    text-decoration: none;
    padding-right: 20px;
}

.adminLogout {
    display: none;
    margin-left: auto;
    color:rgb(255, 251, 233);
    font-size: 22px;
    text-decoration: none;
    padding-right: 20px;
}

.scheduleContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px auto;
    color:rgb(27, 61, 5);
    background-color: rgb(255, 251, 233);
    width: 600px;
}

.detailsBtn {
    background-color: rgb(27, 61, 5);
    color: rgb(255, 251, 233);
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    margin-right: 5px;
}

.deleteBtn {
    background-color: rgb(27, 61, 5);
    color: rgb(255, 251, 233);
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    margin-right: 5px;
}

.editBtn {
    background-color: rgb(27, 61, 5);
    color: rgb(255, 251, 233);
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    margin-right: 5px;
}

.eventTemplate{
    color: rgb(27, 61, 5);
    background-color: rgb(255, 251, 233);
    text-align: left;
    padding: 10px 40px;
    width: 900px;
    margin: 0 auto;
    font-size: 20px;
}

.submit {
    background-color: rgb(27, 61, 5);
    color: rgb(255, 251, 233);
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    margin-right: 5px;
}

@media (max-width: 600px) {
    .card,
    .card.reverse {
        flex-direction: column;      /* image on top, text below */
        height: auto;                /* let the card grow to fit its content */
    }

    .cardImg {
        width: 100%;                 /* image spans the full card width */
        height: auto;
        aspect-ratio: 1 / 1;         /* stays square */
    }

    .cardText,
    .card.reverse .cardText {
        padding: 20px;
        text-align: left;            /* undo the right-align on reversed cards */
    }
    .navContainer {
    height: 90px;                /* shorter bar, same row layout */
    gap: 10px;
    }

    .navLogo {
        height: 60px;
        padding-left: 10px;
    }

    .navLinks {
        gap: 10px;
        padding-right: 10px;
    }

    .navLinks a {
        font-size: 14px;
        padding-right: 0;
    }

    .adminLogin,
    .adminLogout {
        font-size: 12px;
        padding-right: 10px;
    }
}









.dropdown {
  position: relative;
  display: inline-block;
}
.dropdownMenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 100%;
  z-index: 1000;
  background: #3f5d3a; /* change to match your nav bar color */
  border-radius: 0 0 6px 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.dropdownMenu a {
  display: block;
  white-space: nowrap;
  padding: 0.6rem 1rem;
}
.dropdown:hover .dropdownMenu,
.dropdown:focus-within .dropdownMenu {
  display: block;
}

.dropdownToggle.selected {
  text-decoration: underline;
}

.addAnimalActions { text-align: center; margin: 0 0 1.5rem; }
.addAnimalBtn {
  display: inline-block; padding: .6rem 1.2rem; border-radius: 6px;
  background: #3f5d3a; color: #fff; text-decoration: none; font-weight: 600;
}
.addAnimalBtn:hover, .addAnimalBtn:focus-visible { background: #2f472c; }

.heroCard {
    position: relative;
    height: clamp(320px, 40vw, 520px);   /* taller than the other cards */
    overflow: hidden;
}

.heroImg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;                    /* crops the photo instead of stretching it */
}

.heroTitle {
    position: absolute;
    left: 0;                              /* starts at the left edge of the card */
    bottom: 40px;
    margin: 0;
    padding: 10px 40px;
    background-color: rgb(255, 251, 233); /* same cream as your page titles */
    color: rgb(27, 61, 5);                /* your dark green */
    font-size: 40px;
}

@media (max-width: 600px) {
    .heroCard { height: 240px; }
    .heroTitle { font-size: 24px; padding: 8px 20px; bottom: 20px; }
}