:root {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #FDF8ED;
    color: #3E2723;
    background-image: radial-gradient(#EAD5BE 1px, transparent 1px);
    background-size: 24px 24px;
}

h1,
h2,
h3,
.font-heading {
    font-family: 'Fredoka', cursive, sans-serif;
}

/* Storybook Outline Utility */
.storybook-border {
    border: 3px solid #2C1810;
    box-shadow: 4px 5px 0px #2C1810;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.storybook-border:hover {
    transform: translateY(-3px);
    box-shadow: 6px 8px 0px #2C1810;
}

.storybook-card {
    background-color: #FFFDF6;
    border: 3px solid #2C1810;
    border-radius: 20px;
    box-shadow: 5px 6px 0px #2C1810;
}

.storybook-btn {
    background-color: #D94E34;
    color: #FFFDF6;
    border: 3px solid #2C1810;
    box-shadow: 3px 4px 0px #2C1810;
    font-family: 'Fredoka', sans-serif;
    transition: all 0.15s ease;
}

.storybook-btn:hover {
    background-color: #C0392B;
    transform: translateY(-2px);
    box-shadow: 5px 6px 0px #2C1810;
}

.storybook-btn:active {
    transform: translateY(2px);
    box-shadow: 1px 2px 0px #2C1810;
}

/* Animations */
@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(2deg);
    }
}

@keyframes chickBob {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-4px) scale(1.03);
    }
}

@keyframes appleShake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-8deg);
    }

    75% {
        transform: rotate(8deg);
    }
}

@keyframes sproutGrow {
    0% {
        transform: scale(0) translateY(10px);
        opacity: 0;
    }

    70% {
        transform: scale(1.2) translateY(-2px);
        opacity: 1;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.animate-float {
    animation: floatSlow 4s ease-in-out infinite;
}

.animate-chick {
    animation: chickBob 2s ease-in-out infinite;
}

.apple-interactive:hover {
    animation: appleShake 0.4s ease-in-out;
    cursor: pointer;
}

.sprout-anim {
    animation: sproutGrow 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #FDF8ED;
}

::-webkit-scrollbar-thumb {
    background: #A6CE39;
    border: 2px solid #2C1810;
    border-radius: 10px;
}