@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Plus+Jakarta+Sans:wght@400;600;800&display=swap');

html,
body {
    scroll-behavior: smooth;
}

/* ========================================= */
/* ========================================= */
/* ========================================= */

code,
pre {
    font-family: 'Fira Code', monospace;
}

.glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.topic-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.confusion-box {
    display: none;
}

.confusion-toggle:checked~.confusion-box {
    display: block;
}


.nav-link.active {
    color: #0ea5e9;
}

.nav-link.active span {
    background-color: #0ea5e9 !important;
}

.render-step:hover .step-line {
    width: 100%;
}

/* Logic for interactive examples */
.preview-content {
    display: none;
}

.preview-content-alt {
    display: block;
}



/* Toggle Switch Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ef4444;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #10b981;
}

input:checked+.slider:before {
    transform: translateX(20px);
}

#frag-main {
    display: none;
}