*{
    font-family: monospace;
}

body {
    margin: 0;
    height: 100vh;
    background-color: pink;
    /* background-image: url("img/image.png"); */
    background-size: 15%;
    backdrop-filter: blur(5px);
    overflow: hidden;
}

.container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

input[type="range"] {
    width: 200px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

/* input[type="range"]::-moz-range-thumb {
    height: 30px;
    width: 30px;
    background-image: url('img/image.png');
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transform: translateY(-10px);
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.3));
} */
input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    background: brown;
    border-radius: 5px;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.8);
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 30px;
    width: 30px;
    background-image: url('img/image.png');
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transform: translateY(-10px);
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.3));
}




/* --------------------------------------- */

#background {
    position: fixed;
    width: 100%;
    height: 30%;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    /* Imagen de fondo de otoño del repositorio */
    background-image: url('https://raw.githubusercontent.com/tonybaloney/vscode-pets/main/media/backgrounds/autumn/background-light-large.png');
    background-size: contain;
    background-position: bottom;
    background-repeat: repeat-x;
}

#foreground {
    position: fixed;
    width: 100%;
    height: 25%;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    /* Primer plano de otoño */
    background-image: url('https://raw.githubusercontent.com/tonybaloney/vscode-pets/main/media/backgrounds/autumn/foreground-light-large.png');
    background-size: contain;
    background-position: bottom;
    background-repeat: repeat-x;
}

#petsContainer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.totoro {
    position: absolute;
    pointer-events: auto;
    cursor: pointer;
    z-index: 2;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.bubble {
    position: absolute;
    background: rgba(255, 248, 220, 0.95);
    border: 3px solid #8B4513;
    border-radius: 15px;
    padding: 8px 15px;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #5D4037;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 4;
    box-shadow: 0 4px 6px rgba(139, 69, 19, 0.3);
}

.bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid rgba(255, 248, 220, 0.95);
}

.bubble.show {
    opacity: 1;
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

#leavesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

/* Hoja que cae - animación CSS adicional */
.leaf {
    position: absolute;
    width: 20px;
    height: 20px;
    font-size: 20px;
    pointer-events: none;
    z-index: 3;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.3;
    }
}