@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Josefin+Sans:wght@400;700&display=swap');

body {
    font-family: 'Josefin Sans', sans-serif;
    background-color: #1c1917;
    color: #fce7f3;
    overflow-x: hidden
}

.font-magic {
    font-family: 'Creepster', cursive
}

.kitchen-bg {
    background: linear-gradient(rgba(28, 25, 23, 0.8), rgba(28, 25, 23, 0.8)), url('https://images.unsplash.com/photo-1543362906-ac1b96576922?q=80&w=1958&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    position: relative
}

.cauldron-container {
    background: radial-gradient(ellipse at center, #4c1d95 0%, #1e1b4b 70%, #000 100%);
    border: 10px solid #7e22ce;
    border-radius: 50%;
    width: 300px;
    height: 300px;
    margin: 20px auto;
    position: relative;
    box-shadow: 0 0 50px rgba(126, 34, 206, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden
}

.liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, #db2777, #f472b6);
    opacity: 0.8;
    animation: bubble 3s infinite ease-in-out
}

.bubble {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    bottom: 0;
    animation: rise 4s infinite
}

@keyframes bubble {

    0%,
    100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.05)
    }
}

@keyframes rise {
    0% {
        bottom: 0;
        opacity: 0
    }

    50% {
        opacity: 1
    }

    100% {
        bottom: 100%;
        opacity: 0
    }
}

.ingredient-card {
    background: #fff;
    color: #000;
    border: 4px solid #fbcfe8;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    width: 100px;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3)
}

.ingredient-card:hover {
    transform: translateY(-5px) rotate(5deg)
}

.fraction-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4c1d95;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px
}

.whole-num {
    font-size: 2rem
}

.frac-part {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1
}

.frac-line {
    width: 100%;
    height: 2px;
    background: #4c1d95
}

.recipe-book {
    background: #fefce8;
    color: #78350f;
    border: 8px solid #92400e;
    padding: 20px;
    border-radius: 5px;
    max-width: 600px;
    margin: 0 auto 20px;
    font-family: 'Josefin Sans';
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
    position: relative
}

.recipe-book::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e7eb
}

.btn-magic {
    background: linear-gradient(to bottom, #db2777, #be185d);
    color: white;
    border: none;
    padding: 10px 30px;
    font-family: 'Creepster';
    font-size: 1.8rem;
    border-radius: 30px;
    cursor: pointer;
    text-shadow: 2px 2px 0 #831843;
    box-shadow: 0 5px 0 #831843;
    transition: all 0.1s
}

.btn-magic:active {
    transform: translateY(4px);
    box-shadow: none
}

.btn-magic:hover {
    filter: brightness(1.1)
}