body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: sans-serif;
    background-color: #f0f0f0;
}

.pet-container {
    text-align: center;
}

.pet-status {
    margin-bottom: 20px;
    font-size: 1.2em;
}

.cat-pet {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 50px auto;
}

.cat-body, .cat-head {
    position: absolute;
    border-radius: 50%;
    background-color: #333;
}

/* Cat's body */
.cat-body {
    width: 100px;
    height: 80px;
    bottom: 0;
    left: 25px;
    transform-origin: center bottom;
    animation: breathing 3s ease-in-out infinite;
}

/* Cat's head */
.cat-head {
    width: 80px;
    height: 80px;
    top: 30px;
    left: 35px;
    z-index: 1;
}

/* Cat's ears using pseudo-elements */
.cat-head::before, .cat-head::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 20px solid #333;
    top: -15px;
}

.cat-head::before {
    left: 5px;
    transform: rotate(-20deg);
}

.cat-head::after {
    right: 5px;
    transform: rotate(20deg);
}

/* Cat's mouth and feeding animation */
.cat-pet.feeding .cat-head {
    animation: feeding 0.5s ease-in-out forwards;
}

/* Breathing animation */
@keyframes breathing {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Feeding animation */
@keyframes feeding {
    0% { transform: translateY(0); }
    50% { transform: translateY(10px); }
    100% { transform: translateY(0); }
}

.pet-controls button {
    padding: 10px 20px;
    margin: 0 10px;
    font-size: 1em;
    cursor: pointer;
}
