/* 2026-04-22 Style all tables inside .commentary-content or .commentary-text */
.commentary-content table,
.commentary-text table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
    background: #181818;
    color: #fff;
    font-size: 1.0em;
    border: 1px solid #555;
}

.commentary-content th,
.commentary-content td,
.commentary-text th,
.commentary-text td {
    border: 1px solid #555;
    padding: 0.5em 1em;
    text-align: center;
}

.commentary-content th,
.commentary-text th {
    background: #222;
    font-weight: bold;
    font-size: 1.0em;
}




h1:focus {
    outline: none;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOT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vPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }




/*///////////////////*/

/* Moved from Bible.razor */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-color: rgba(0, 0, 0, 0.8);*/ /* Darker overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* 2025-09-23 Ensure overlay is above everything */

    background-color: transparent; /* remove dark overlay */
}

/* 2026-06-08 - what_changed: blur popup background without darkening it */
.popup-overlay {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* Safari/iOS support */

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent; /* remove dark overlay */
}

.popup-content {
    position: relative;
    background-color: #2e2e2e; /* Dark background for popup */
    padding: 20px;
    border-radius: 8px;
    z-index: 1;
    width: 80%;
    height: 80%;
    overflow: auto;
    color: #e0e0e0; /* Light text */
}

/* End Of - Moved From Bible.Razor*/


.modal-overlay,
.modal-content {
    overscroll-behavior: contain;
}

.popup-overlay,
.popup-content {
    overscroll-behavior: contain;
}


/* Fallback: if browser supports :has, hide body scroll while .popup is in DOM */
/*@supports selector(:has(.popup)) {
    body:has(.popup) {
        overflow: hidden !important;
        height: 100% !important;
    }
}*/


/* 2026-06-07 - Prevent background/main page from scrolling when modal overlay is visible */
/*@supports selector(:has(.modal-overlay)) {
    body:has(.modal-overlay[style*="display: flex"]) {
        overflow: hidden !important;
        height: 100% !important;
    }

    html:has(.modal-overlay[style*="display: flex"]) {
        overflow: hidden !important;
        height: 100% !important;
    }
}*/


/* Glass Control */
.glass-control {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.5rem;
    border-radius: 0.75rem; /* ← was 9999px */
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 8px rgba(255,255,255,0.08), 0 4px 20px rgba(0,0,0,0.25);
    transition: background 0.3s ease;
}

    /* Gloss base overlay */
    .glass-control::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        width: 50%;
        height: 100%;
        background: linear-gradient(120deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 80%);
        transform: skewX(-20deg);
        pointer-events: none;
    }

    /* Shine animation on hover */
    .glass-control:hover::before {
        animation: shine-move 1.2s ease infinite;
    }

@keyframes shine-move {
    0% {
        left: -50%;
    }

    100% {
        left: 120%;
    }
}

/* INPUT + BUTTON transparent */
.glass-control input,
.glass-control button {
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    font: inherit;
    padding: 0.2rem 0.4rem;
}

.glass-control button {
    cursor: pointer;
    color: #fff;
    transition: color 0.2s ease;
}

    .glass-control button:hover {
        color: #ddd;
    }

/* End Of Glass Control */




/* 2025-09-23 */
.subtle-placeholder::placeholder {
    color: #999; /* Light gray */
    opacity: 0.3; /* Less prominent */
    font-style: italic; /* Optional: adds visual distinction */
    font-weight: 300; /* Optional: lighter font */
}


/* 2025-01-18 Dark Theme*/




/* Adjust button styles for dark theme */
.icon-button {
    background-color: #444; /* Dark button background */
    color: #e0e0e0; /* Light button text color */
    border: 1px solid #555; /* Border matching theme */
    border-radius: 4px;
    padding: 5px;
    cursor: pointer;
}

    /* Change button hover effect */
    .icon-button:hover {
        background-color: #555; /* Slightly lighter hover background */
    }
/* 2026-01-13 Force instant scroll on all elements in WASM */
html {
    scroll-behavior: auto !important;
}

body {
    scroll-behavior: auto !important;
}





/* Loading Spinner */
/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    min-height: 300px;
    text-align: center;
}

    .loading-spinner i {
        font-size: clamp(3rem, 10vw, 8rem);
        color: #1e90ff;
    }

        .loading-spinner i.fa-spin {
            animation: fa-spin 1s infinite linear;
        }

    .loading-spinner p {
        margin-top: clamp(1rem, 2vw, 2rem);
        color: #e0e0e0;
        font-size: clamp(1rem, 2vw, 1.5rem);
    }

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}









/* Lexicon Styles Start */

.lex-word {
    white-space: nowrap;
    display: inline;
}

rt.he {
    color: silver;
    font-size: 1.0em;
}

.pinyin-mismatch {
    color: pink;
}
/* 2026-02-09 dark red for pinyin-mismatch for light-mode */
body.light-mode .pinyin-mismatch {
    color: darkred;
}



rt.py {
    color: silver;
}

/* 2026-02-09 */
body.light-mode rt.py {
    color: #b8860b; /* Example: dark goldenrod, adjust as needed */
}

.lexicon-link-hebrew {
    text-decoration: none;
    cursor: help;
    color: inherit;
}

    .lexicon-link-hebrew:hover {
        color: cornflowerblue;
    }

rt.he.alt-color-1 {
    color: greenyellow;
}

/* Dark Green for light-mode */
body.light-mode rt.he.alt-color-1 {
    color: darkgreen;
}

rt.he.alt-color-2 {
    color: deepskyblue;
}

/* Medium Blue for light-mode */
body.light-mode rt.he.alt-color-2 {
    color: mediumblue;
}


.lexicon-link {
    border-bottom: 1px dotted gold;
    text-decoration: none;
    cursor: help;
    color: inherit;
}

    .lexicon-link:hover {
        color: cornflowerblue;
    }



/* Lexicon Styles End */


/* Modal Popup Start */
/* 2026-06-08 - what_changed: blur modal background without darkening it */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent; /* remove dark overlay */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* Safari/iOS support */

    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* 2025-09-23 Ensure overlay is above everything */
}

.modal-content {
    position: relative;
    background-color: #1e1e1e; /* Dark background for modal */
    padding: 20px;
    border-radius: 8px;
    z-index: 1;
    width: 80%;
    height: 80%;
    overflow: auto;
    color: #e0e0e0; /* Light text */
}

body.navy {
    background-color: #040c22 !important;
}

body.brown {
    background-color: #2B2A27 !important;
}

body.bluegray {
    background-color: #263238 !important;
}
/* ...add more as needed */


/* Base: keep text color stable */
/* Base: keep stem color (do NOT force a color) */
.kanjiloaded {
    color: inherit !important;
    transition: text-shadow .2s ease;
}

/* 🌙 DARK MODE — outline first, glow outside */
body:not(.light-mode) .kanjiloaded {
    text-shadow:
    /* ── TEXT OUTLINE (crisp stroke) ── */
    1px 0 0 rgba(0,0,0,0.85), -1px 0 0 rgba(0,0,0,0.85), 0 1px 0 rgba(0,0,0,0.85), 0 -1px 0 rgba(0,0,0,0.85), 1px 1px 0 rgba(0,0,0,0.65), -1px -1px 0 rgba(0,0,0,0.65), 1px -1px 0 rgba(0,0,0,0.65), -1px 1px 0 rgba(0,0,0,0.65),
    /* ── OUTER GLOW (does not bleed into text) ── */
    0 0 8px rgba(245,245,220,0.90), 0 0 16px rgba(245,245,220,0.60), 0 0 26px rgba(245,245,220,0.40);
}

/* ☀️ LIGHT MODE: shadow + subtle highlight (emboss) */
body.light-mode .kanjiloaded {
    text-shadow:
    /* darker shadow for visibility */
    0 2px 3px rgba(0,0,0,0.50), 0 5px 10px rgba(0,0,0,0.18),
    /* top highlight gives “raised” feel without changing color */
    0 -1px 0 rgba(255,255,255,0.55);
}



:root {
    /* default to empty */
    --active-verse-bg:;
}




/* Strongs Info*/
.strongs-title {
    font-weight: 700;
    margin: 6px 0 10px;
    opacity: .9;
}

.strongs-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.strongs-card {
    padding: 10px 12px;
    border-radius: 12px;
    /*background: rgba(255,255,255,0.06);*/
    border: 1px solid rgba(255,255,255,0.10);
}

.strongs-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
}

.strongs-eng {
    font-weight: 800;
    text-decoration: underline;
}

.strongs-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    opacity: .9;
}

.strongs-lemma {
    font-size: 2.6em; /* ⬅ increase this */
    font-weight: 800;
    line-height: 1.2;
}

.strongs-meaning-preview {
    opacity: .92;
}

.strongs-meta {
    margin-top: 4px;
    opacity: .85;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .strongs-meta .dot {
        opacity: .5;
        padding: 0 2px;
    }

    .strongs-meta .m {
        white-space: nowrap;
    }

.strongs-more {
    margin-top: 6px;
}

    .strongs-more summary {
        cursor: pointer;
        opacity: .9;
        font-weight: 700;
    }

.strongs-line {
    margin: 6px 0 0;
}

.strongs-label {
    font-weight: 800;
    opacity: .85;
}

.strongs-meaning-list {
    margin: 6px 0 0 18px;
}




.full-height-table,
.full-height-table tbody,
.full-height-table tr,
.full-height-table td {
    height: 100%;
}

.full-height-table {
    width: 100%;
}

/*2026-02-21*/
/* Generic colored title classes for reuse */
.color-title1 {
    color: greenyellow;
    font-weight: bold;
}

.color-title2 {
    color: deepskyblue;
    font-weight: bold;
}

/* Light mode overrides */
body.light-mode .color-title1 {
    color: darkgreen;
}

body.light-mode .color-title2 {
    color: mediumblue;
}



table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 1em;
    line-height: 1.6;
}

    table th,
    table td {
        border: 1px solid #ccc;
        padding: 8px 10px;
        text-align: left;
        vertical-align: top;
    }

    table th {
        font-weight: bold;
        background: rgba(128, 128, 128, 0.15);
    }

    table tr:nth-child(even) td {
        background: rgba(128, 128, 128, 0.06);
    }