/* Base Layout */
body {
    -webkit-tap-highlight-color: transparent;
}

/* Ruler Ticks handled via JS now for dynamic numbers */

/* Animations */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(6, 182, 212, 0.9);
    }
}

/* Options Buttons */
.option-btn {
    @apply bg-slate-700 border-2 border-slate-500 text-white px-6 py-3 rounded text-xl font-bold hover:bg-slate-600 hover:border-yellow-400 active:scale-95 transition-all shadow-lg min-w-[80px];
}

/* Correct/Wrong Feedback states (will be applied via JS classes since they need specific colors) */
.btn-correct {
    background-color: #15803d !important;
    /* green-700 */
    border-color: #22c55e !important;
    /* green-500 */
    color: #dcfce7 !important;
}

.btn-wrong {
    background-color: #991b1b !important;
    /* red-800 */
    border-color: #ef4444 !important;
    /* red-500 */
    animation: shake 0.4s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Items */
.measure-item {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s;
}

/* Scale Tilt Animations */
/* Scale Tilt Animations */
.tilt-left {
    transform: rotate(-15deg) !important;
}

.tilt-right {
    transform: rotate(15deg) !important;
}

/* Pan Physics REMOVED - Switching to See-Saw */
/* Seats rotate WITH the beam naturally */

#seat-left,
#seat-right {
    /* No special transforms needed, they sit atop the beam ends */
    transition: transform 0.2s;
    border-bottom: 4px solid #64748b;
    /* slate-500 base */
    background: rgba(15, 23, 42, 0.4);
    /* slate-900 transparent */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* Hover Effect: Scale up emoji */
#seat-left:hover span,
#seat-right:hover span {
    transform: scale(1.2);
}

/* TILT LEFT (Beam -15deg) -> Left side DOWN */
.tilt-left {
    transform: translateX(-50%) rotate(-15deg) !important;
}

/* TILT RIGHT (Beam +15deg) -> Right side DOWN */
.tilt-right {
    transform: translateX(-50%) rotate(15deg) !important;
}

/* High-quality claymation background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('clay_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
}