
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
body {
    font-family: "Lato", sans-serif;
}
.nav-link {
    text-decoration: none;
    font-weight: bold;
    color: #000;
}
.nav-link:hover {
    color: #ff6347;
}
.btn-primary {
    background-color: #1abc9c;
    color: white;
    border: none;
}
.btn-primary:hover {
    background-color: #89a016;
}
.category-btn {
    margin: 0 8px;
}
.category-btn img {
    margin-right: 8px;
    width: 24px;
    height: 24px;
}
.category-btn.active {
    background-color: #f04238;
    color: white;
    border-color: #f04238;
}
#categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}


@media (max-width: 1024px) {
    #categories {
        gap: 12px;
    }
}
@media (max-width: 768px) {
    #categories {
        gap: 10px;
    }
}
@media (max-width: 640px) {
    #categories {
        gap: 8px;
    }
}
@media (min-width: 1024px) {
    .category-btn {
        font-size: x-large;
        padding-left: 95px;
        padding-right: 95px;
        font-weight: bold;
    }
}
.adopt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.adopt-subtitle {
    display: inline-block;
    text-align: left;
}
.sort-button {
    text-align: right;
}
#modal {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
#modal > div {
    background: white;
    padding: 15px;
    border-radius: 10px;
    max-width: 80vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow-y: auto;
}
@media (max-width: 600px) {
    #modal > div {
        padding: 10px;
        height: auto;
    }
    #modal h2 {
        font-size: 1.2rem;
    }
    #modal img {
        margin: 10px 0;
        width: 60px;
        height: auto;
    }
    #modal p {
        font-size: 0.9rem;
    }
    #modal button {
        margin-top: 10px;
        width: 100%;
    }
}
@media (min-width: 1200px) {
    #modal > div {
        padding: 20px;
        max-width: 70vw;
        height: auto;
    }
    #modal h2 {
        font-size: 1.8rem;
    }
    #modal img {
        margin: 20px 0;
        width: 80px;
        height: auto;
    }
    #modal p {
        font-size: 1rem;
    }
}
.card {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: white;
}

.card-body {
    padding: 16px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.card p {
    display: flex;
    align-items: center;
    margin: 4px 0;
}

.card p i {
    margin-right: 8px;
}

@media (max-width: 640px) {
    .card-body {
        padding: 12px;
    }
    .card-title {
        font-size: 1.1rem;
    }
    .card .flex {
        flex-direction: column;
        gap: 8px;
    }
    .card .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .card .flex {
        flex-direction: column;
        gap: 8px;
    }
    .card .btn {
        width: 100%;
    }
}

#liked-pets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    border: 2px solid #e8e7e7;
    padding: 8px;
    border-radius: 10px;
    max-height: 150vh;
    overflow-y: auto;
    width: 20%;
    margin-right: 10px;
}

#liked-pets img {
    border: 2px solid #1abc9c;
    padding: 4px;
    border-radius: 8px;
}

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    text-transform: uppercase;
}

.btn:hover {
    opacity: 0.8;
}

.btn-warning {
    background-color: #ff9800;
    color: white;
}

.btn-info {
    background-color: #03a9f4;
    color: white;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 0.875rem;
}

#pets {
    display: grid;
    gap: 16px;
}

@media (min-width: 640px) {
    #pets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    #pets {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    #pets {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    #liked-pets {
        grid-template-columns: repeat(1, 1fr);
        width: 50%;
    }
}

.card p i {
    margin-right: 8px;
}

#modal, #modal-details, #modal-adopt {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 20px;
}

#modal.hidden, #modal-details.hidden, #modal-adopt.hidden {
    display: none;
}

#modal button, #modal-details button, #modal-adopt button {
    margin-top: 20px;
}

#modal > div, #modal-details > div, #modal-adopt > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 1024px) {
    #modal > div, #modal-details > div, #modal-adopt > div {
        flex-direction: row;
    }
    #modal img, #modal-details img, #modal-adopt img {
        width: 50%;
        margin-right: 20px;
    }
    #modal .details, #modal-details .details, #modal-adopt .details {
        flex: 1;
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}
