/* ===== RESET ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== GLOBAL ===== */

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1e1f3a, #2c2f6a);
    color: #fff;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70' viewBox='0 0 70 70'%3E%3Cpolygon points='35,10 13,47.5 57,47.5' fill='none' stroke='white' stroke-width='1.5'/%3E%3Cpolygon points='35,60 13,22.5 57,22.5' fill='none' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 70px 70px;
    opacity: 0.06;
    pointer-events: none;
    z-index: -1;
}

/* ===== HEADER ===== */

.site-header {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    border-bottom: 3px solid rgba(255, 204, 0, 0.6);
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.5), 0 3px 12px rgba(255, 204, 0, 0.15);
}

.header-top-row {
    display: flex;
    align-items: center;
    padding: 28px 50px;
    gap: 30px;
}

.header-main-title {
    flex: 1;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 42px;
    font-weight: 900;
    line-height: 1.15;
    background: linear-gradient(135deg, #ffe066, #ffcc00, #ff8800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    letter-spacing: 0.01em;
}

.header-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    flex-shrink: 0;
}

.header-dedication-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 13px 50px;
    background: rgba(0, 0, 0, 0.22);
    border-top: 1px solid rgba(255, 204, 0, 0.45);
}

.dedication-ornament {
    color: #ffcc00;
    font-size: 17px;
    flex-shrink: 0;
    line-height: 1;
}

.header-dedication {
    flex: 1;
    text-align: center;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 17px;
    font-style: italic;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.02em;
    margin: 0;
}

/* ===== LANGUAGE SELECT ===== */

.lang-select {
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    background: #fff;
    color: #333;
    cursor: pointer;
}

/* ===== MUSIC PLAYER ===== */

.music-player {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    width: 200px;
}

.mp-title {
    font-size: 11px;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.9;
    color: #fff;
    text-align: right;
}

.mp-controls {
    display: flex;
    gap: 5px;
    align-items: center;
}

.mp-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.35);
    border-radius: 6px;
    color: #ffcc00;
    font-size: 13px;
    width: 30px;
    height: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.1s;
    padding: 0;
    line-height: 1;
}

.mp-btn:hover {
    background: rgba(255, 204, 0, 0.2);
}

.mp-btn:active {
    transform: scale(0.9);
}

.mp-play {
    width: 34px;
    font-size: 15px;
}

.mp-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.mp-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffcc00, #ff8800);
    border-radius: 4px;
    transition: width 0.3s linear;
}

/* ===== NAV TOGGLE BUTTON ===== */

.nav-toggle {
    background: none;
    border: none;
    color: #ffcc00;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.nav-toggle:hover {
    background: rgba(255, 204, 0, 0.15);
}

/* ===== NAV OVERLAY ===== */

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ===== NAV POPUP PANEL ===== */

.nav-popup {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 280px;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(160deg, #1a1c3a 0%, #252860 100%);
    box-shadow: 4px 0 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.nav-popup::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70' viewBox='0 0 70 70'%3E%3Cpolygon points='35,10 13,47.5 57,47.5' fill='none' stroke='white' stroke-width='1.5'/%3E%3Cpolygon points='35,60 13,22.5 57,22.5' fill='none' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 70px 70px;
    opacity: 0.04;
    pointer-events: none;
}

.nav-popup.open {
    transform: translateX(0);
}

.nav-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 22px 18px;
    border-bottom: 1px solid rgba(255, 204, 0, 0.3);
    flex-shrink: 0;
}

.nav-popup-title {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.nav-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
    padding: 5px 8px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.nav-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-popup ul {
    list-style: none;
    padding: 14px 0;
    flex: 1;
    overflow-y: auto;
}

.nav-popup li {
    padding: 13px 22px;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s, background 0.2s, border-left-color 0.2s, padding-left 0.2s;
    font-size: 15px;
    color: #fff;
    border-left: 3px solid transparent;
}

.nav-popup li:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.07);
    padding-left: 28px;
}

.nav-popup li.active {
    color: #ffcc00;
    font-weight: 600;
    opacity: 1;
    border-left-color: #ffcc00;
    background: rgba(255, 204, 0, 0.08);
}

.nav-popup li.completed::after {
    content: " ✓";
    color: #ffcc00;
}

.nav-popup li.locked {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-popup li.locked:hover {
    opacity: 0.3;
    padding-left: 22px;
    background: none;
}

/* ===== LAYOUT ===== */

.layout {
    min-height: calc(100vh - 140px);
}

/* ===== CONTENT AREA ===== */

.content {
    padding: 50px;
    background: #fff;
    color: #333;
    min-height: calc(100vh - 140px);
    min-width: 0;
}

/* ===== SECTION TITLE ===== */

.section-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.section-title-row .section-title {
    margin-bottom: 0;
    flex: 1;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    color: #1e1f3a;
    margin-bottom: 24px;
    line-height: 1.4;
}

.share-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #d0d4e8;
    border-radius: 7px;
    background: rgba(255,255,255,0.7);
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    margin-top: 3px;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.share-btn:hover {
    background: rgba(255, 204, 0, 0.15);
    border-color: #ffcc00;
    color: #1e1f3a;
}

.share-btn:active {
    background: rgba(255, 204, 0, 0.3);
}

/* ===== SHARE TOAST ===== */

.share-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e1f3a;
    color: #ffcc00;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    z-index: 9999;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s;
}

.share-toast.fade-out {
    opacity: 0;
}

/* ===== DUAL LANGUAGE LAYOUT ===== */

.lang-dual {
    display: flex;
    gap: 40px;
}

.lang-col {
    flex: 1;
    min-width: 0;
}

.lang-col-right {
    border-left: 2px solid #e0e4f0;
    padding-left: 36px;
}

/* ===== PARAGRAPHS AND QUOTES ===== */

.lang-col p {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.85;
    color: #333;
    text-align: justify;
}

.lang-col blockquote {
    margin: 20px 0;
    padding: 14px 20px;
    border-left: 4px solid #ffcc00;
    background: #fffbee;
    border-radius: 4px;
    font-style: italic;
    color: #444;
    font-size: 15px;
    line-height: 1.7;
}

/* ===== SOURCE BLOCKS ===== */

.source-block {
    margin-top: 18px;
    border: 1px solid #e0e4f0;
    border-radius: 10px;
    overflow: hidden;
}

.source-header {
    padding: 12px 18px;
    background: #f0f3fb;
    color: #1e1f3a;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.source-header::after {
    content: "▸";
    font-size: 12px;
    opacity: 0.5;
    transition: transform 0.2s;
}

.source-block.open .source-header::after {
    transform: rotate(90deg);
}

.source-body {
    display: none;
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    border-top: 1px solid #e0e4f0;
}

.source-body.open {
    display: block;
}

/* ===== QUIZ CARD ===== */

.quiz-card {
    margin-top: 34px;
    border: 1px solid #e0e4f0;
    border-radius: 12px;
    overflow: hidden;
}

.quiz-header {
    padding: 14px 20px;
    background: linear-gradient(135deg, #1e1f3a, #2c2f6a);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    user-select: none;
}

.quiz-body {
    display: none;
    padding: 22px;
}

.quiz-body.open {
    display: block;
}

.question {
    margin-bottom: 22px;
}

.question p {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 15px;
    color: #1e1f3a;
}

.question label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    cursor: pointer;
    color: #444;
}

.question label input {
    margin-right: 8px;
}

.quiz-result {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    min-height: 20px;
}

.quiz-submit {
    padding: 10px 26px;
    background: linear-gradient(135deg, #ffcc00, #ff8800);
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #1e1f3a;
    cursor: pointer;
    transition: opacity 0.2s;
}

.quiz-submit:hover {
    opacity: 0.85;
}

/* ===== NAV POPUP GROUP HEADER ===== */

.nav-popup li.group-header {
    padding: 14px 22px 6px;
    cursor: pointer;
    opacity: 1;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffcc00;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-popup li.group-header:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 22px;
    opacity: 1;
}

.group-chevron {
    font-size: 9px;
    opacity: 0.7;
    flex-shrink: 0;
    margin-left: 8px;
    transition: transform 0.15s ease;
}

.nav-popup li.sub-item {
    padding-left: 34px;
    font-size: 14px;
}

.nav-popup li.sub-item:hover {
    padding-left: 40px;
}

/* ===== INTRO LIST ===== */

.intro-list {
    margin: 0.5em 0 1em 1.4em;
    padding: 0;
    line-height: 1.9;
}

.intro-list li {
    margin-bottom: 0.3em;
}

/* ===== NAV POPUP PDF SECTION ===== */

.nav-popup li.pdf-section {
    border-top: 1px solid rgba(255, 204, 0, 0.3);
    margin-top: 12px;
    padding-top: 16px;
    color: #ffcc00;
    opacity: 0.9;
}

.nav-popup li.pdf-section:hover {
    opacity: 1;
}

.nav-popup li.pdf-section.active {
    color: #fff;
    font-weight: 700;
    border-left-color: #fff;
}

/* ===== ESTHER SCROLL MODULE ===== */

.esther-desc {
    font-size: 15px;
    line-height: 1.75;
    color: #555;
    margin-bottom: 28px;
}

.esther-pdf-block {
    margin-bottom: 40px;
    border: 1px solid #e0e4f0;
    border-radius: 12px;
    overflow: hidden;
}

.esther-pdf-label {
    padding: 14px 20px;
    background: linear-gradient(135deg, #1e1f3a, #2c2f6a);
    color: #ffcc00;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.esther-btn-row {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: #f8f9ff;
    border-bottom: 1px solid #e0e4f0;
    flex-wrap: wrap;
}

.esther-btn {
    display: inline-block;
    padding: 9px 20px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.2s;
    cursor: pointer;
}

.esther-btn:hover {
    opacity: 0.85;
    text-decoration: none;
}

.esther-btn-open {
    background: linear-gradient(135deg, #ffcc00, #ff8800);
    color: #1e1f3a;
}

.esther-btn-download {
    background: #fff;
    color: #1e1f3a;
    border: 2px solid #1e1f3a;
}

.esther-text-container {
    background: #fff;
    border: 1px solid #e0e4f0;
    border-radius: 12px;
    padding: 28px 32px;
    margin-top: 24px;
    max-height: 640px;
    overflow-y: auto;
    line-height: 1.85;
    color: #222;
}

.esther-dual-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

.esther-col-wrapper {
    display: flex;
    flex-direction: column;
}

.esther-text-col {
    margin-top: 0;
}

.esther-pdf-block--compact {
    margin-bottom: 8px;
}

.esther-pdf-block--compact .esther-btn-row {
    padding: 10px 14px;
    gap: 8px;
}

.esther-pdf-block--compact .esther-btn {
    padding: 6px 12px;
    font-size: 13px;
}

.esther-scroll-heading {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
    color: #1e1f3a;
    margin: 20px 0 10px;
}

.esther-scroll-para {
    font-size: 14px;
    margin-bottom: 16px;
    text-align: justify;
}

/* ===== TZEDAKA / DONATE SECTION ===== */

.donate-intro {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 32px;
    text-align: center;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.donate-grid {
    display: flex;
    gap: 28px;
    align-items: stretch;
}

.donate-card {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 30px rgba(30, 31, 58, 0.13);
    border: 1px solid #dde1f4;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.donate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(30, 31, 58, 0.2);
}

.donate-card-header {
    padding: 28px 24px 22px;
    background: linear-gradient(135deg, #1e1f3a 0%, #2c2f6a 100%);
    text-align: center;
}

.donate-card-flag {
    font-size: 44px;
    line-height: 1;
    margin-bottom: 12px;
}

.donate-card-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 19px;
    font-weight: 700;
    color: #ffcc00;
    margin: 0 0 6px;
    line-height: 1.35;
}

.donate-card-org {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
}

.donate-card-body {
    padding: 26px 24px 28px;
    background: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.donate-card-desc {
    font-size: 14px;
    line-height: 1.75;
    color: #555;
    margin: 0;
}

.donate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #ffcc00, #ff8800);
    color: #1e1f3a;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    border-radius: 10px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    letter-spacing: 0.01em;
    box-sizing: border-box;
}

.donate-btn:hover {
    opacity: 0.86;
    text-decoration: none;
    transform: translateY(-2px);
}

.donate-btn-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.nav-popup li.donate-section {
    border-top: 1px solid rgba(255, 204, 0, 0.3);
    margin-top: 8px;
    padding-top: 16px;
    color: #ffcc00;
    opacity: 0.9;
}

.nav-popup li.donate-section:hover {
    opacity: 1;
}

.nav-popup li.donate-section.active {
    color: #fff;
    font-weight: 700;
    border-left-color: #fff;
}

/* ===== NAV POPUP GAME SECTION ===== */

.nav-popup li.game-section {
    border-top: 1px solid rgba(255, 204, 0, 0.3);
    margin-top: 8px;
    padding-top: 16px;
    color: #ffcc00;
    opacity: 0.9;
}

.nav-popup li.game-section:hover {
    opacity: 1;
}

.nav-popup li.game-section.active {
    color: #fff;
    font-weight: 700;
    border-left-color: #fff;
}

/* ===== DREIDEL GAME ===== */

.dreidel-intro-text {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.dreidel-rules {
    background: #f7f8ff;
    border: 1px solid #dde1f4;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #333;
    line-height: 1.9;
}

.dreidel-rules strong {
    display: block;
    margin-bottom: 8px;
    color: #1e1f3a;
    font-size: 15px;
}

.dreidel-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dreidel-rules ul li {
    padding: 3px 0;
    font-family: 'Inter', sans-serif;
}

/* Game wrapper */
.dreidel-game {
    background: linear-gradient(135deg, #1e1f3a, #2c2f6a);
    border-radius: 18px;
    padding: 28px 24px 32px;
    margin-bottom: 36px;
    box-shadow: 0 8px 40px rgba(30,31,58,0.25);
}

/* Scoreboard */
.dreidel-scoreboard {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
}

.dreidel-stat {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,204,0,0.3);
    border-radius: 12px;
    padding: 14px 22px;
    text-align: center;
    min-width: 100px;
}

.dreidel-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.dreidel-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #ffcc00;
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

/* Middle area */
.dreidel-middle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

/* Dreidel figure */
.dreidel-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 190px;
    flex-shrink: 0;
}

.dreidel-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: center 155px;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5));
}

@keyframes dreidelSpin {
    0%   { transform: rotate(0deg)    scaleX(1);    }
    5%   { transform: rotate(450deg)  scaleX(0.07); }
    10%  { transform: rotate(900deg)  scaleX(1);    }
    16%  { transform: rotate(1440deg) scaleX(0.07); }
    22%  { transform: rotate(1980deg) scaleX(1);    }
    29%  { transform: rotate(2610deg) scaleX(0.08); }
    36%  { transform: rotate(3240deg) scaleX(1);    }
    44%  { transform: rotate(3870deg) scaleX(0.12); }
    52%  { transform: rotate(4500deg) scaleX(1);    }
    61%  { transform: rotate(4950deg) scaleX(0.2);  }
    70%  { transform: rotate(5310deg) scaleX(1);    }
    80%  { transform: rotate(5580deg) scaleX(0.35); }
    90%  { transform: rotate(5760deg) scaleX(1);    }
    95%  { transform: rotate(5850deg) scaleX(0.82); }
    100% { transform: rotate(5940deg) scaleX(1);    }
}

.dreidel-figure.spinning {
    animation: dreidelSpin 3s cubic-bezier(0.05, 0.6, 0.5, 0.96) forwards;
}

.dreidel-handle {
    width: 14px;
    height: 36px;
    background: linear-gradient(180deg, #c8860a, #a06008);
    border-radius: 4px 4px 0 0;
    box-shadow: inset -3px 0 6px rgba(0,0,0,0.2);
}

.dreidel-body {
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 50%, #0a3070 100%);
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    box-shadow: inset -6px -6px 14px rgba(0,0,0,0.25), inset 3px 3px 8px rgba(255,255,255,0.1);
    border: 2px solid rgba(255,204,0,0.4);
}

.dreidel-letter {
    transform: rotate(-45deg);
    font-size: 2.6rem;
    font-weight: 900;
    color: #ffcc00;
    font-family: 'Playfair Display', Georgia, serif;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    line-height: 1;
    display: block;
    transition: opacity 0.2s;
}

.dreidel-tip {
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 32px solid #0a3070;
    margin-top: -2px;
    filter: drop-shadow(0 6px 8px rgba(0,0,0,0.3));
}

/* Hide letter while spinning */
.dreidel-figure.spinning .dreidel-letter {
    opacity: 0;
    transition: opacity 0.15s;
}

/* Letter pop-in reveal animation */
@keyframes letterPop {
    0%   { transform: rotate(-45deg) scale(2.4); opacity: 0; }
    55%  { transform: rotate(-45deg) scale(0.88); opacity: 1; }
    80%  { transform: rotate(-45deg) scale(1.08); opacity: 1; }
    100% { transform: rotate(-45deg) scale(1);   opacity: 1; }
}

.dreidel-letter.pop {
    animation: letterPop 0.5s ease-out forwards;
}

/* Mode selector */
.dreidel-mode-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.dreidel-mode-btn {
    padding: 9px 22px;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    transition: background 0.22s, color 0.22s, border-color 0.22s;
    letter-spacing: 0.01em;
}

.dreidel-mode-btn.active {
    background: rgba(255,204,0,0.14);
    border-color: #ffcc00;
    color: #ffcc00;
    font-weight: 700;
}

.dreidel-mode-btn:hover:not(.active) {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.4);
}

/* Controls */
.dreidel-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    min-width: 200px;
}

.dreidel-status {
    font-size: 15px;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
    min-height: 44px;
    font-weight: 500;
}

.dreidel-spin-btn {
    padding: 13px 30px;
    background: linear-gradient(135deg, #ffcc00, #ff8800);
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #1e1f3a;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 16px rgba(255,136,0,0.35);
}

.dreidel-spin-btn:hover:not(:disabled) {
    opacity: 0.88;
    transform: translateY(-2px);
}

.dreidel-spin-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.dreidel-restart-btn {
    padding: 9px 20px;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.dreidel-restart-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}

/* Video section */
.dreidel-video-section {
    margin-top: 10px;
    margin-bottom: 20px;
}

.dreidel-video-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: #1e1f3a;
    margin-bottom: 6px;
}

.dreidel-video-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.dreidel-video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 30px rgba(30,31,58,0.18);
}

.dreidel-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .dreidel-scoreboard {
        gap: 10px;
    }

    .dreidel-stat {
        min-width: 80px;
        padding: 10px 14px;
    }

    .dreidel-stat-value {
        font-size: 22px;
    }

    .dreidel-middle {
        flex-direction: column;
        gap: 24px;
    }

    .dreidel-controls {
        align-items: center;
        text-align: center;
    }

    .dreidel-status {
        text-align: center;
    }
}

/* ===== FOOTER ===== */

.site-footer {
    background: #11132a;
    padding: 40px 20px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-inner p {
    margin-bottom: 10px;
}

.site-footer a {
    color: #ffcc00;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.visitor-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 14px;
}

.visitor-count-num {
    color: #ffcc00;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .header-top-row {
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
    }

    .header-main-title {
        font-size: 22px;
    }

    .header-controls {
        align-items: flex-end;
        flex-shrink: 0;
    }

    .header-dedication-bar {
        padding: 10px 16px;
        gap: 12px;
    }

    .header-dedication {
        font-size: 14px;
    }

    .dedication-ornament {
        font-size: 14px;
    }

    .music-player {
        width: 160px;
    }

    .mp-title {
        max-width: 160px;
    }

    .nav-popup {
        width: 260px;
    }

    .content {
        padding: 24px;
    }

    .lang-dual {
        flex-direction: column;
        gap: 24px;
    }

    .lang-col-right {
        border-left: none;
        padding-left: 0;
        border-top: 2px solid #e0e4f0;
        padding-top: 24px;
    }

    .esther-dual-container {
        grid-template-columns: 1fr;
    }

    .esther-text-container {
        padding: 20px 18px;
    }

    .esther-btn-row {
        gap: 10px;
    }

    .donate-grid {
        flex-direction: column;
        gap: 20px;
    }
}

/* ── HALACHA SECTION ───────────────────────────────────── */

.halacha-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 20px;
    font-style: italic;
}

.halacha-day {
    margin-bottom: 12px;
    border: 1px solid rgba(180, 130, 0, 0.4);
    border-radius: 10px;
    overflow: hidden;
}

.halacha-day-header {
    padding: 13px 18px;
    background: rgba(255, 204, 0, 0.15);
    color: #1e1f3a;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    transition: background 0.2s;
}

.halacha-day-header::after {
    content: "▾";
    font-size: 14px;
    opacity: 0.7;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.halacha-day.collapsed .halacha-day-header::after {
    transform: rotate(-90deg);
}

.halacha-day-header:hover {
    background: rgba(255, 204, 0, 0.25);
}

.halacha-day-body {
    display: none;
    padding: 14px 18px 10px;
}

.halacha-day-body.open {
    display: block;
}

.halacha-topic {
    margin-bottom: 14px;
}

.halacha-topic-head {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8b6914;
    opacity: 1;
    margin: 0 0 8px;
}

.halacha-sub {
    margin-bottom: 10px;
    padding-left: 12px;
    border-left: 2px solid rgba(180, 130, 0, 0.35);
}

.halacha-sub-head {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin: 0 0 6px;
    text-transform: capitalize;
}

.halacha-text {
    font-size: 14px;
    line-height: 1.75;
    color: #333;
    margin: 0 0 8px;
}

.halacha-list {
    margin: 4px 0 8px 0;
    padding-left: 20px;
}

.halacha-list li {
    font-size: 14px;
    line-height: 1.75;
    color: #333;
    margin-bottom: 6px;
}

.halacha-extras {
    margin-top: 18px;
    padding: 14px 16px;
    background: rgba(255, 204, 0, 0.08);
    border-radius: 8px;
    border-left: 3px solid rgba(180, 130, 0, 0.5);
}

/* ── PRELOADER ─────────────────────────────────────────── */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #0d0a2e 0%, #1a0a3e 50%, #0d0a2e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-clown {
    font-size: 80px;
    animation: clownBounce 0.8s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 20px rgba(255, 204, 0, 0.6));
}

.preloader-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #ffcc00;
    letter-spacing: 0.05em;
    animation: pulse 1.2s ease-in-out infinite;
}

@keyframes clownBounce {
    from { transform: translateY(0) rotate(-8deg) scale(1); }
    to   { transform: translateY(-18px) rotate(8deg) scale(1.1); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

/* ===== SPIRAL / GOODNIGHT GAME ===== */

.spiral-wrapper {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    max-height: 720px;
    background: #0a0010;
    border-radius: 16px;
    overflow: hidden;
    margin: 24px 0;
}

.spiral-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.spiral-label {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 200, 0, 0.5);
    font-size: 12px;
    letter-spacing: 0.15em;
    white-space: nowrap;
    font-family: serif;
    pointer-events: none;
    z-index: 2;
}

.spiral-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2;
}

.spiral-btn {
    background: rgba(255, 200, 0, 0.15);
    border: 1px solid rgba(255, 200, 0, 0.4);
    color: #ffd700;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 0.05em;
    transition: background 0.2s;
}

.spiral-btn:hover {
    background: rgba(255, 200, 0, 0.3);
}

/* ===== ALCOHOL CALCULATOR ===== */

.alcohol-desc {
    color: var(--text-secondary, #666);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 20px;
}

.alcohol-card {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.alcohol-section {
    padding: 16px 0;
    border-bottom: 1px solid var(--border, #e8e8e8);
}

.alcohol-section:last-of-type {
    border-bottom: none;
}

.alcohol-section-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent, #b5860d);
    margin: 0 0 14px;
}

.alcohol-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.alcohol-row:last-child {
    margin-bottom: 0;
}

.alcohol-label {
    flex: 0 0 auto;
    min-width: 120px;
    font-size: 14px;
    color: var(--text, #333);
}

.alcohol-input {
    width: 100px;
    padding: 8px 10px;
    border: 1px solid var(--border, #ccc);
    border-radius: 8px;
    font-size: 15px;
    background: var(--input-bg, #fafafa);
    color: var(--text, #333);
}

.alcohol-gender-btns {
    display: flex;
    gap: 8px;
}

.alcohol-gender-btn {
    padding: 7px 18px;
    border: 1px solid var(--border, #ccc);
    border-radius: 20px;
    background: transparent;
    color: var(--text, #555);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.alcohol-gender-btn.active {
    background: var(--accent, #b5860d);
    border-color: var(--accent, #b5860d);
    color: #fff;
}

.alcohol-drinks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.alcohol-drink-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.alcohol-drink-select {
    flex: 1 1 220px;
    padding: 8px 10px;
    border: 1px solid var(--border, #ccc);
    border-radius: 8px;
    font-size: 14px;
    background: var(--input-bg, #fafafa);
    color: var(--text, #333);
}

.alcohol-drink-custom {
    width: 80px;
    padding: 8px 8px;
    border: 1px solid var(--border, #ccc);
    border-radius: 8px;
    font-size: 14px;
    background: var(--input-bg, #fafafa);
    color: var(--text, #333);
}

.alcohol-remove-btn {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border, #ccc);
    border-radius: 50%;
    background: transparent;
    color: var(--text-secondary, #999);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.alcohol-remove-btn:hover {
    background: #fee;
    color: #c00;
    border-color: #c00;
}

.alcohol-add-btn {
    padding: 8px 16px;
    border: 1px dashed var(--accent, #b5860d);
    border-radius: 8px;
    background: transparent;
    color: var(--accent, #b5860d);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.alcohol-add-btn:hover {
    background: rgba(181, 134, 13, 0.08);
}

.alcohol-calc-btn {
    margin: 20px 0 0;
    padding: 13px 0;
    background: var(--accent, #b5860d);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: opacity 0.15s;
}

.alcohol-calc-btn:hover {
    opacity: 0.88;
}

.alcohol-result {
    margin-top: 20px;
    padding: 20px;
    background: var(--card-alt-bg, #f9f6ee);
    border-radius: 10px;
    border: 1px solid var(--border, #e0d8c0);
}

.alcohol-result-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent, #b5860d);
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.alcohol-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.alcohol-result-label {
    font-size: 14px;
    color: var(--text-secondary, #666);
}

.alcohol-result-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text, #222);
}

.alcohol-result-level {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.alcohol-disclaimer {
    margin: 14px 0 0;
    font-size: 12px;
    color: var(--text-secondary, #888);
    line-height: 1.5;
    border-top: 1px solid var(--border, #e0d8c0);
    padding-top: 10px;
}

.alcohol-error {
    color: #c00;
    font-size: 14px;
    margin: 0;
}

@media (max-width: 500px) {
    .alcohol-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .alcohol-label {
        min-width: unset;
    }
    .alcohol-result-value {
        font-size: 18px;
    }
}

/* ===== RTL / HEBREW SUPPORT ===== */

html[dir="rtl"] body {
    font-family: 'Arial Hebrew', 'David', Arial, sans-serif;
}

html[dir="rtl"] .header-top-row {
    flex-direction: row-reverse;
}

html[dir="rtl"] .header-controls {
    align-items: flex-start;
}

html[dir="rtl"] .music-player {
    align-items: flex-start;
}

html[dir="rtl"] .nav-popup {
    left: auto;
    right: 0;
    transform: translateX(100%);
}

html[dir="rtl"] .nav-popup.open {
    transform: translateX(0);
}

html[dir="rtl"] .section-title-row {
    flex-direction: row-reverse;
}

html[dir="rtl"] .lang-col,
html[dir="rtl"] .esther-text-container,
html[dir="rtl"] .halacha-meta,
html[dir="rtl"] .donate-card,
html[dir="rtl"] .alcohol-card,
html[dir="rtl"] .quiz-card {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .section-title {
    text-align: right;
}

html[dir="rtl"] .header-main-title,
html[dir="rtl"] .header-dedication {
    text-align: right;
}

html[dir="rtl"] .esther-scroll-para,
html[dir="rtl"] .esther-scroll-heading {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .quiz-option label {
    flex-direction: row-reverse;
}

html[dir="rtl"] .footer-inner {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .donate-card-header {
    flex-direction: row-reverse;
}

html[dir="rtl"] .dreidel-controls {
    align-items: flex-end;
}

html[dir="rtl"] .hm-keyboard {
    direction: ltr;
}

html[dir="rtl"] .maharash-nav-prev { left: auto; right: 6px; }
html[dir="rtl"] .maharash-nav-next { right: auto; left: 6px; }

/* "Coming soon" notice for sections not yet translated to Hebrew */
.coming-soon-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    font-size: 2rem;
    font-weight: 600;
    color: #c8860a;
    letter-spacing: 0.04em;
    opacity: 0.85;
}

/* ===== MAHARASH SCROLL VIEWER ===== */

.maharash-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    margin-bottom: 14px;
    gap: 12px;
}

.maharash-page-counter {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.04em;
}

.maharash-fs-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 204, 0, 0.12);
    border: 1.5px solid rgba(255, 204, 0, 0.4);
    border-radius: 8px;
    color: #ffcc00;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.maharash-fs-btn:hover {
    background: rgba(255, 204, 0, 0.22);
    border-color: #ffcc00;
}

/* The main viewer wrapper — clip images and hold nav arrows */
.maharash-viewer {
    position: relative;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    background: #0a0b1e;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
    user-select: none;
}

/* Horizontal image strip — all slides side by side */
.maharash-strip {
    display: flex;
    width: 100%;
    direction: ltr; /* always LTR so translateX(-n%) works regardless of page dir */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Each slide takes exactly the viewer width */
.maharash-slide {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.maharash-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 82vh;
    object-fit: contain;
    cursor: default;
}

/* Navigation arrows */
.maharash-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 46px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.48);
    border: none;
    color: #fff;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    border-radius: 6px;
    opacity: 0.72;
}

.maharash-nav:hover {
    background: rgba(255, 204, 0, 0.28);
    opacity: 1;
}

.maharash-nav:disabled {
    opacity: 0.18;
    cursor: default;
    pointer-events: none;
}

.maharash-nav-prev { left: 6px; }
.maharash-nav-next { right: 6px; }

.maharash-zoom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 204, 0, 0.12);
    border: 1.5px solid rgba(255, 204, 0, 0.4);
    border-radius: 8px;
    color: #ffcc00;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    font-size: 22px;
    font-weight: bold;
    line-height: 1;
    flex-shrink: 0;
}

.maharash-zoom-btn:hover {
    background: rgba(255, 204, 0, 0.22);
    border-color: #ffcc00;
}

.maharash-zoom-btn:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

/* Floating zoom overlay for fullscreen mode */
.maharash-zoom-overlay {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 20;
    display: none;
    flex-direction: column;
    gap: 8px;
}

.maharash-viewer.maharash-fullscreen-active .maharash-zoom-overlay {
    display: flex;
}

.maharash-zoom-fs-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.4);
    border: 1.5px solid rgba(255, 204, 0, 0.45);
    border-radius: 10px;
    color: rgba(255, 204, 0, 0.8);
    cursor: pointer;
    font-size: 26px;
    font-weight: bold;
    line-height: 1;
    transition: background 0.2s, opacity 0.2s;
    opacity: 0.6;
}

.maharash-zoom-fs-btn:hover {
    background: rgba(255, 204, 0, 0.22);
    opacity: 1;
}

.maharash-zoom-fs-btn:disabled {
    opacity: 0.2;
    cursor: default;
    pointer-events: none;
}

/* Fullscreen — fill the entire screen */
.maharash-viewer:-webkit-full-screen {
    max-width: 100vw;
    border-radius: 0;
}
.maharash-viewer:-moz-full-screen {
    max-width: 100vw;
    border-radius: 0;
}
.maharash-viewer:fullscreen {
    max-width: 100vw;
    border-radius: 0;
}

.maharash-viewer.maharash-fullscreen-active .maharash-img {
    max-height: 95vh;
}

/* Sidebar item colour for maharash */
.maharash-section-item {
    color: #c8a0ff;
}

.maharash-section-item.active {
    color: #e8c8ff;
    border-left-color: #c8a0ff;
    background: rgba(200, 160, 255, 0.13);
}

.maharash-section-item:hover:not(.active) {
    background: rgba(200, 160, 255, 0.08);
}

@media (max-width: 600px) {
    .maharash-nav {
        width: 36px;
        height: 54px;
        font-size: 28px;
    }

    .maharash-img {
        max-height: 65vh;
    }
}
