/* Pixel Art Style Virtual Pet Simulator */

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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #87CEEB, #98FB98);
    color: #2F4F4F;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.container {
    background: #FFFACD;
    border: 4px solid #8B4513;
    border-radius: 8px;
    padding: 20px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    text-align: center;
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #8B4513;
    text-shadow: 2px 2px 0px #DAA520;
}

.pet-container {
    margin: 20px 0;
}

.pet {
    background: #F0E68C;
    border: 3px solid #8B4513;
    border-radius: 8px;
    padding: 20px;
    display: inline-block;
    position: relative;
}

.pet-sprite {
    font-size: 80px;
    filter: drop-shadow(2px 2px 0px #8B4513);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.mood {
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #FF6347;
}

.stats {
    margin: 20px 0;
}

.stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.bar {
    width: 150px;
    height: 20px;
    background: #D3D3D3;
    border: 2px solid #8B4513;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 10px;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #32CD32, #FFD700);
    transition: width 0.3s ease;
}

.actions {
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    max-width: 600px;
    margin: 20px auto;
}

button {
    background: #FF6347;
    border: 2px solid #8B4513;
    color: white;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.2s ease;
    box-shadow: 0 4px 0px #8B4513;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    gap: 4px;
    line-height: 1.2;
}

button:hover {
    background: #FF4500;
    transform: translateY(-2px);
    box-shadow: 0 6px 0px #8B4513;
}

button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0px #8B4513;
}

.evolution {
    margin-top: 20px;
    font-size: 16px;
    font-weight: bold;
    color: #8B4513;
}

/* Pixelated effect */
.pet-sprite, .container, .pet {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}
