/*primary color*/
.bg-cream {
    background-color: #FFF2E1;
}

/*font*/
body {
    font-family: 'Poppins', sans-serif;
}

/* ── Brand colour overrides (replaces Tailwind yellow) ── */
.bg-yellow-500 {
    background: linear-gradient(135deg, #0000ff 0%, #010068 100%);
}
.text-yellow-500 {
    color: #0000ff;
}
.border-yellow-500 {
    border-color: #0000ff;
}
.bg-yellow-50 {
    background-color: #e0e0ff;
}
.bg-yellow-100 {
    background-color: #c0c0ff;
}
.text-yellow-400 {
    color: #0000ff;
}
.hover\:bg-yellow-500:hover {
    background: linear-gradient(135deg, #0000ff 0%, #010068 100%);
}
.hover\:text-yellow-500:hover {
    color: #0000ff;
}
.hover\:bg-yellow-50:hover {
    background-color: #e0e0ff;
}
.focus\:ring-yellow-500:focus {
    --tw-ring-color: #0000ff;
}

.text-darken {
    color: #010068;
}

/* ── Animations ── */
.floating {
    animation-name: floating;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}
@keyframes floating {
    0% { transform: translate(0, 0px); }
    50% { transform: translate(0, 8px); }
    100% { transform: translate(0, -0px); }
}
.floating-4 {
    animation-name: floating;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}
@keyframes floating-4 {
    0% { transform: translate(0, 0px); }
    50% { transform: translate(0, 8px); }
    100% { transform: translate(0, -0px); }
}

/* ── Sparkle twinkle ── */
@keyframes sparkleTwinkle {
    0%   { opacity: 0;                             transform: scale(0.6) rotate(0deg);  }
    30%  { opacity: var(--spark-opacity);          transform: scale(1)   rotate(0deg);  }
    70%  { opacity: calc(var(--spark-opacity)*0.3);transform: scale(0.8) rotate(20deg); }
    100% { opacity: 0;                             transform: scale(0.6) rotate(0deg);  }
}
.sparkle-icon {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    animation: sparkleTwinkle var(--spark-dur, 4s) ease-in-out infinite backwards;
    animation-delay: var(--spark-delay, 0s);
}

/* ── Bubble drift (random float) animation ── */
@keyframes bubbleDrift {
    0%   { transform: translate(0px,   0px);  }
    25%  { transform: translate(5px,  -6px);  }
    50%  { transform: translate(-4px,  5px);  }
    75%  { transform: translate(4px,   6px);  }
    100% { transform: translate(0px,   0px);  }
}
.bubble-drift {
    animation: bubbleDrift 14s ease-in-out infinite;
}

/* ── Bubble wave animation ── */
@keyframes blobWave {
    0%   { border-radius: 45% 55% 55% 45% / 45% 45% 55% 55%; }
    20%  { border-radius: 52% 48% 42% 58% / 50% 60% 40% 50%; }
    40%  { border-radius: 38% 62% 58% 42% / 55% 38% 62% 45%; }
    60%  { border-radius: 58% 42% 48% 52% / 42% 58% 42% 58%; }
    80%  { border-radius: 42% 58% 52% 48% / 58% 42% 55% 45%; }
    100% { border-radius: 45% 55% 55% 45% / 45% 45% 55% 55%; }
}
.bubble-animate {
    animation: blobWave 7s ease-in-out infinite;
}

[x-cloak] { display: none; }
