/* Reset and background styles */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background-color: #87CEEB; /* Sky Blue */
}

/* Container to center the ground */
#container {
    width: 800px;
    margin: 0 auto;
}

/* Sky and Ground */
#sky {
    background-color: #87CEEB;
    height: 150px;
    width: 800px;
}

#ground {
    background-color: #AFE1AF;
    height: 600px;
    width: 800px;
    position: relative;
    overflow: hidden;
}

/* Unicorn Styles */
#unicorn {
    position: absolute;
    width: 100px;
    height: 100px;
    left: 0;
    top: 0;
    transition: left linear, top linear;
}

/* Flip the unicorn when facing left */
#unicorn-flip.face-left {
    transform: scaleX(-1);
}

/* Bounce Animation */
.bounce {
    animation: bounce 0.8s infinite;
    transform-origin: bottom center;
}

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

/* Walk Animation */
.walk {
    animation: walk 1s steps(4) infinite;
}

/* Dip Down Animation */
.dip-down #head-neck-group,
.dip-down #body {
    animation: dipDown 2s forwards;
}

@keyframes dipDown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(20px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Mushroom Styles */
.mushroom {
    position: absolute;
    width: 30px;
    height: 30px;
}

.mushroom svg {
    width: 100%;
    height: 100%;
}

/* Controls */
#controls {
    position: fixed;
    top: 10px;
    left: 10px;
}

#add-mushroom-button {
    padding: 10px 20px;
    font-size: 16px;
}

#mushroom-timer {
    margin-left: 10px;
    font-size: 16px;
}

/* Counter styling */
#mushrooms-eaten-counter {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    z-index: 10;
}

/* Enable dragging on ground */
#ground {
    cursor: grab;
    overflow: scroll; /* Make the field scrollable */
}

#ground:active {
