/* Reset and Base Styles */
* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    /* Always white — matches the navbar color, so the gesture-bar gap is invisible */
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Camera mode: body must be black so gesture bar area is also black */
body.camera-mode {
    background-color: #000000 !important;
}

/* Hide scrollbar for clean UI */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Custom utility for active states to avoid sticky hover on mobile */
@media (hover: hover) {
    .hover-scale:hover {
        transform: scale(0.98);
    }
}

/* Shaking animation for incorrect quiz answer */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.animate-shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* Pop in animation for cards */
@keyframes popIn {
    0% { opacity: 0; transform: translateY(20px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.card-pop {
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}

/* Nav Item active state */
.nav-item.active {
    color: #059669; /* Primary Green */
}
.nav-item.active svg {
    fill: currentColor;
}
.nav-item:not(.active) svg {
    fill: none;
    stroke: currentColor;
}

/* Fun Quiz Feedback Animations */
@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.65) translateY(25px); }
    55% { opacity: 1; transform: scale(1.08) translateY(-6px); }
    75% { transform: scale(0.97) translateY(2px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes emojiWiggle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    20% { transform: rotate(-18deg) scale(1.3); }
    40% { transform: rotate(18deg) scale(1.3); }
    60% { transform: rotate(-12deg) scale(1.2); }
    80% { transform: rotate(12deg) scale(1.15); }
}

.animate-emoji-pop {
    display: inline-block;
    animation: emojiWiggle 0.85s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feedback-pop {
    animation: bounceIn 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

