/* Custom MathJax container styles to fit our layout nicely */
.MathJax {
    outline: none;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

/* Custom Scrollbar for a modern look */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}

.custom-scrollbar:hover::-webkit-scrollbar-thumb {
    background-color: #94a3b8;
}

/* Option Styles */
.option-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1.25rem;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.option-btn:hover:not(.locked) {
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.option-btn.locked {
    cursor: default;
}

.option-btn.correct {
    border-color: #10b981;
    background: #ecfdf5;
    color: #047857;
}

.option-btn.correct .option-letter {
    color: #ffffff;
    background: #10b981;
    border-color: #10b981;
}

.option-btn.incorrect {
    border-color: #ef4444;
    background: #fef2f2;
    color: #991b1b;
}

.option-btn.incorrect .option-letter {
    color: #ffffff;
    background: #ef4444;
    border-color: #ef4444;
}

.option-btn.correct-highlight {
    border-color: #10b981;
    border-style: dashed;
    background: transparent;
}

.option-btn.correct-highlight .option-letter {
    color: #10b981;
    border-color: #10b981;
    background: #ecfdf5;
}

.option-letter {
    font-weight: 700;
    margin-right: 1.25rem;
    color: #475569;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.option-text {
    flex: 1;
    overflow-x: auto;
}

.option-text p {
    margin: 0;
}

/* Toast Animation overriding standard generic */
.toast-show {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/* Canvas Crosshair */
canvas.drawing-active {
    pointer-events: auto !important;
}

/* Color Ring Hidden utility */
.hidden-ring {
    --tw-ring-color: transparent !important;
}

/* Custom Animations for Welcome Screen */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

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

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}