* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

.container {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

h1 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #e74c3c;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.image-container {
    position: relative;
    margin: 2rem auto;
    width: 100%;
    max-width: 400px;
    height: 300px;
    overflow: hidden;
}

#horse {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.buttons {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
}

#eat-btn {
    background-color: #e74c3c;
    color: white;
}

#eat-btn:hover {
    background-color: #c0392b;
    transform: scale(1.05);
}

#reset-btn {
    background-color: #3498db;
    color: white;
}

#reset-btn:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}

.meter-container {
    margin-top: 2rem;
}

.hunger-meter {
    width: 100%;
    height: 20px;
    background-color: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.hunger-level {
    height: 100%;
    width: 100%;
    background-color: #e74c3c;
    transition: width 0.5s ease;
}

.hunger-text {
    font-weight: bold;
    color: #e74c3c;
}

.eaten {
    transform: scale(0.8);
    opacity: 0;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .image-container {
        height: 200px;
    }
    
    button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

