body {
    font-family: 'Comic Sans MS', cursive, sans-serif; /* Friendly font */
    background-color: #f7f7f7;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.pet-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 450px;
    border: 5px solid #ffcc00; /* Yellow border */
}

h1 {
    color: #333;
    margin-bottom: 25px;
}

/* Pet Display */
#pet-display {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fffbe6;
    border-radius: 50%;
    display: inline-block;
}

#pet-emoji {
    font-size: 6em;
    display: block;
    transition: transform 0.3s;
}

/* Stats Panel */
.stats-panel {
    margin-bottom: 30px;
    padding: 15px;
    border: 1px dashed #ccc;
    border-radius: 10px;
}

.stat-group {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.stat-group label {
    font-weight: bold;
    color: #555;
    width: 100px; /* Align labels */
    text-align: left;
}

progress {
    flex-grow: 1;
    height: 25px;
    margin-right: 10px;
    /* Custom styling for different browsers */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Styling the progress bar fill */
progress::-webkit-progress-bar {
    background-color: #eee;
    border-radius: 5px;
}

progress::-webkit-progress-value {
    background-color: #6c5ce7; /* Default purple */
    border-radius: 5px;
    transition: background-color 0.5s;
}

/* Custom colors for low stats (using JS to change class) */
progress.low::-webkit-progress-value {
    background-color: #ff7675; /* Red for low */
}

#hunger-value, #happiness-value {
    font-weight: bold;
    width: 40px;
    text-align: right;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.action-buttons button {
    padding: 12px 15px;
    font-size: 1em;
    border: none;
    border-radius: 8px;
    background-color: #6c5ce7;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    font-family: inherit;
    flex-grow: 1;
}

.action-buttons button:hover {
    background-color: #483d8b;
}

.action-buttons button:active {
    transform: scale(0.98);
}

/* Status Message */
.status-message {
    margin-top: 20px;
    font-style: italic;
    color: #555;
}

.critical {
    color: #dc3545; /* Red for critical status */
    font-weight: bold;
}