

.class_TheRel.WrapGrammar {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
/* ────────────────────────────────────────────── */
.class_RelFlex.BaseBar {
    flex-wrap: wrap;
    width: 100%;
    min-height: 60px;      
    max-height: 120px;
    height: auto;
    transition: background 0.4s ease;
}
.class_RelFlex.TopBarMainTopic {
    width: 100%;
    height: 60px;
    flex-shrink: 0;
    background: linear-gradient(to bottom, #0a63ff, #0156EB);  /* NewsNationBlue */
    z-index: 2;
}
.class_RelFlex.TopBarSubtopic {
    width: 100%;
    height: 60px;
    flex-shrink: 0;
    background: linear-gradient(to bottom, #6A0DAD, #4B0082); /* EggYolk */
    z-index: 2;                     
}
.class_RelFlex.SlideBar {
    width: 100%;
    height: 0;
    overflow: hidden;
    background: rgba(30, 144, 255, 0.15); /* very faint dodger tint – ties to gradient */
    transition: height 0.4s ease;
}

.class_AbsFlexCenter.BarSlide {
    width: 100%;
    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); 
    transition: height 0.4s ease;
    
    height: 15px;   
    opacity: 0;
}
.class_AbsFlexCenter.BarSlide:hover {
    height: 60px;
    opacity: 1;
}


/* --------------------Bar Buttons------------------ */
.class_RelFlex.BarButton {
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
    margin-left: 6px;
    width: 100px;
    height: 35px;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
    color: white;
    
    box-shadow: 0 4px 9px rgba(0, 0, 0, 0.25);
    transition: all 0.4s ease;
}
.class_RelFlex.BarButton.SpanText {
    width: auto;
    height: 100%;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    border: none;
    padding-right: 20px;
  
    font-size: 16px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
    color: white;
}
.class_RelFlex.BarButton.Round {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c757d, #495057);    /* Gray */
}
.class_RelFlex.BarButton.Normal {
    width: auto;
    height: auto;
    padding: 3px;
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 6px;
    font-size: 30px;
}
.class_RelFlex.BarButton.Round:hover, .class_RelFlex.BarButton.Normal:hover {
    background: linear-gradient(135deg, #1a1a1a, #3a3a3a);
    transform: scale(1.07);
    box-shadow: 0 6px 12px rgba(108, 117, 125, 0.4);     
}
/* --------------------Bar Buttons------------------ */
/* ────────────────────────────────────────────── */

.class_AbsFlexCenter.TopHeader {
    justify-content: start;
    top: 0;
    left: 0;
    width: auto;
    height: 100%;
    padding-left: 15px;
    padding-right: 15px;
    background: transparent;
    
    /* Text & center */
    color: white;
    font-weight: 600;
    font-size: 24px;
    letter-spacing: 0.4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);     
}
.class_RelFlex.TopButton {
  font-family: "Satoshi", "Inter", system-ui, sans-serif;
  width: 110px;
  height: 40px;
  border-radius: 9999px;
  margin-right: 5px;
  margin-left: 5px;

  /* Core glassmorphism */
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  
  /* Border & subtle shine */
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.18);
  
  /* Text & center */
  color: white;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s ease;
  user-select: none;
}
.class_RelFlex.TopButton:hover {
  background: rgba(255, 255, 255, 0.20);
  transform: translateY(-2px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.22),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
}
.class_RelFlex.TopButton:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 
    0 6px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.20);
}

.class_RelFlex.BaseBody {
    flex-direction: row;
    width: 100%;
    height: calc(100% - 60px);    
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.class_RelFlex.WrapSide {
    width: 50%;
    height: 100%;      
    border: 4px solid rgba(1, 86, 235, 0.8); /* NationBlue */
    transition: none;
    flex-shrink: 0;
}
#id_WrapSide-A, #id_WrapSide-B {
    transition: width 0s;      /* no animation while dragging */
}
#id_WrapSide-B {
    border-left: none;
}
#id_WrapSide-B.LeftBorder {
    border: 4px solid rgba(1, 86, 235, 0.8); /* NationBlue */
}
.class_RelFlex.WrapSide.FullWidth {
    width: 100%;   
}
#id_WrapSide-A.Subtopic, #id_WrapSide-B.Subtopic {
    width: 100%;   
    border: 4px solid rgba(148, 0, 211, 0.8); /* darkviolet */
    border: 6px solid pink !important;
}
.class_RelFlex.WrapSide:not(.dragging) {
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


.class_FixedTopRight.SpanSide {
    font-family: var(--fontFamilyPoppins);
    width: auto;
    height: auto;
    border-radius: 6px;
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 18px;
    font-weight: 500;
    color: rgba(1, 86, 235, 1);
    text-align: left;
}



.class_BBTextSide {
    font-family: var(--fontFamilyArvo);
    box-sizing: border-box;
    position: relative;
    display: inline;
    float: left;
    /* ── Core glassmorphism ── */
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0;
    /* ── Sinking / inset effect ── */
    box-shadow:
        inset 0 4px 8px rgba(0,0,0,0.25),   /* inner shadow bottom */
        inset 0 -2px 4px rgba(255,255,255,0.2); /* top highlight */
    /* ── Text styling ── */
    font-size: 34px;
    font-weight: 500;
    
    color: #222;
    
    text-align: left;
    padding: 20px;
    width: 100%;
    height: 100%;
    resize: none;
    overflow-y: auto;
    /* ── Interaction ── */
    outline: none;
    cursor: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Crect x='15' y='4' width='4' height='30' fill='blue'/%3E%3C/svg%3E") 16 16, text;
    transition: all 0.18s ease;
}
/* Hover & focus — deeper sink + subtle glow */
.class_BBTextSide:focus {
    background: rgba(255, 255, 255, 0.08);  /* slightly darker for pressed feel */
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow:
        inset 0 6px 14px rgba(0,0,0,0.35),
        inset 0 -3px 6px rgba(255,255,255,0.15); /* deeper inner shadows */
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    outline: none;
}






/* ────────────────────────────────────────────────
   Header Dropdown – Full grammar topics list
───────────────────────────────────────────────── */

#id_HeaderDropdown {
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    width: 320px;
    max-height: 70vh;
    overflow-y: auto;
    background: white;
    border: 1px solid #ccd4df;
    border-radius: 1px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.22);
    z-index: 4000;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 15px;
    
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

#id_HeaderDropdown.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-header {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    color: #1e40af;
    text-align: center;
}

.dropdown-item {
    padding: 10px 18px;
    cursor: pointer;
    color: #111827;
    transition: background-color 0.13s ease;
}

.dropdown-item:hover {
    background-color: #eff6ff;
}

.dropdown-item:active {
    background-color: #dbeafe;
}

.dropdown-separator {
    height: 1px;
    background: #e5e7eb;
    margin: 6px 0;
}
/* Topic items layout: text left • emoji immediately after with fixed spacing */
.dropdown-item.topic-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;     /* keep emoji close to text */
    gap: 10px;                       /* consistent space — only this one! */
    padding: 10px 18px;              /* maintain original item padding */
}

.dropdown-item.topic-item .topic-text {
    flex: 1 1 auto;                  /* grow but respect content */
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;         /* long names get … */
    min-width: 0;                    /* helps prevent overflow issues */
}

.dropdown-item.topic-item .topic-emoji {
    flex: 0 0 auto;                  /* never grow, don't shrink below content */
    font-size: 1.2em;                /* slightly larger, looks balanced */
    min-width: 1.2em;                /* prevents layout shift when emoji missing */
    text-align: center;              /* centers emoji in its little box if needed */
    /* NO margin-left here — gap on parent handles spacing */
}
/* Nice thin scrollbar (optional but recommended) */
#id_HeaderDropdown::-webkit-scrollbar {
    width: 6px;
}
#id_HeaderDropdown::-webkit-scrollbar-thumb {
    background: #a0aec0;
    border-radius: 3px;
}
#id_HeaderDropdown::-webkit-scrollbar-track {
    background: #f1f5f9;
}


/* ────────────────────────────────────────────────
   Quiz Functions
───────────────────────────────────────────────── */
.class_AbsFlexCenter.QuizButton {
    width: 33.333%;
    height: 100%;
    border-radius: 9999px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
#id_QuizButton-0 {left: 0; text-align: left;}
#id_QuizButton-1 {left: 33.333%; text-align: center;}
#id_QuizButton-2 {left: 66.666%; text-align: right;}
.class_AbsFlexCenter.QuizButton:hover {
    background: rgba(0,0,0,0.2);
    
}
.class_TheAbs.GenWrap.QuizSide {
    width: 100%;
    height: 100%;
    background: rgba(244, 244, 244, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.60);
    border-right: 0;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.28),
        inset 0 1px 1px rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    transition: transform 0.6s ease, opacity 0.6s ease;
    transform-origin: center;   
}
.class_TheAbs.GenWrap.QuizSide.Close {
    transform: scale(0);
    opacity: 0;
}
.class_FixedTopRight.CornerClose {
    box-sizing: border-box;
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    cursor: pointer;
    box-shadow:
        0 6px 16px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.7);
    transition: all 0.25s ease;
}
.class_TheRel.QuizBody {
    width: 100%;
    height:100%;
    background: rgba(176, 196, 222, 0.07);     /* lightsteelblue tone, ultra-translucent */
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 2px 16px rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
}
.class_RelFlex.QuizQuestion {
    margin-bottom: 20px;
    padding: 20px;
    padding-right: 50px;
    width: 100%;
    min-height: 170px;
    height: auto;  
    
    font-family: var(--fontFamilyArvo);
    font-size: 48px;
    font-weight: 600;
    color: #222;
    text-align: left;
    text-shadow: none;
}
.class_TheRel.QuizAnswerBox {
    width: 100%;
    min-height: 400px;
    height: auto;                    
}
.class_TheRel.QuizLineOption {
    padding: 20px;
    padding-right: 50px;
    width: 100%;
    height: auto;  
    
    font-family: var(--fontFamilyArvo);
    font-size: 48px;
    font-weight: 600;
    color: #222;
    text-align: left;
    text-shadow: none;
}

.class_TubeRight.QuizTube {
    width: 50px;
    height: 100%;                 
    gap: 3px;
}
.class_RelFlex.SpanQuizText {
    left: 4px;
    margin-top: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;

    /* Glass effect */
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.9),
        rgba(255,255,255,0.75)
    );
    border: 1px solid rgba(255,255,255,0.45);
    box-shadow:
        0 3px 6px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.7);
    
    font-family: 'Century Gothic', sans-serif;
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 400;
    color: #111;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
.class_RelFlex.SpanQuizText:hover {
    background: linear-gradient(
        180deg,
        rgba(255,255,255,1),
        rgba(255,255,255,0.85)
    );
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 10px 25px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.7);
}

/******************************** GenElements ********************************/
.class_AbsFlexCenter.GenContainer {
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
    overflow: auto;
    
    background: linear-gradient(
      326deg,
      #dbeafe 0%,     /* soft blue */
      #c7e6ff 25%,    /* pastel sky */
      #e0f2ff 55%,    /* airy */
      #d6ecff 100%    /* smooth end */
    );
    background-repeat: no-repeat;
    background-size: 100% 600%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.class_TheRel.GenBox {
    width: auto;
    height: auto;   
    max-width: 884px;
    border-radius: 16px;
    
    background: rgba(255, 255, 255, 0.63);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 10px 30px rgba(0, 80, 120, 0.15),
        inset 0 1px 0 rgba(255,255,255,0.6);             
}
.class_TheRel.GenWrap {
    padding: 10px;
    width: 420px;
    height: auto;
    max-width: calc(100% - 20px);
    max-height: calc(100% - 20px);
    border: 4px solid rgba(255,255,255,0.85);
    border: none;
    border-radius: 12px;
    margin: 10px;         
}
.class_RelFlex.GenHeader {
    width: 100%;
    height: 90px;
    padding: 10px;
    
    font-family: 'Century Gothic', sans-serif;
    font-size: clamp(18px, 2vw, 28px);
    font-weight: 600;
    text-align: center;
    color: #243746; 
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}
.class_RelFlex.GenBody {
    flex-wrap: wrap;
    width: 100%;
    height: auto;
    max-height: calc(100% - 90px);
    padding: 10px;     
}
.class_RelFlex.GenBarBottom {
    flex-wrap: wrap;
    width: 100%;
    max-width: 884px;
    height: auto;                        
    padding: 0 0 20px 0;
}
.class_RelFlex.GenBottomButton {
    font-family: "Satoshi", "Inter", system-ui, sans-serif;
    width: 110px;
    height: 40px;
    border-radius: 9999px;
    
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow:
        0 6px 14px rgba(0, 120, 180, 0.15),
        inset 0 1px 0 rgba(255,255,255,0.7);
    border-radius: 9999px;
    margin: 5px;
    
    /* Text & center */
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.4px;
    color: #243746;
    text-shadow: none;
    
    transition: all 0.22s ease;
    user-select: none;
}
.class_RelFlex.GenBottomButton:hover {
  color: #1a2a33;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 10px 20px rgba(0,0,0,0.18);
  transform: translateY(-2px);
}
/******************************** GenElements ********************************/


/******************************** QuizCountPicker ********************************/
.class_TheRel.GenWrap.QuizPicker {
    padding: 10px;
    width: 420px;
    height: auto;
    max-width: calc(100% - 20px);
    max-height: calc(100% - 20px);
    border: 4px solid rgba(255,255,255,0.85);
    border: none;
    border-radius: 12px;
    margin: 10px;
}
.class_RelFlex.CountNumber {
    margin: 6px;
    width: 60px;
    height: 60px;
    
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow:
        0 4px 10px rgba(0, 120, 180, 0.12),
        inset 0 1px 0 rgba(255,255,255,0.7);
    border-radius: 14px;

    font-family: 'Century Gothic', sans-serif;
    font-size: clamp(14px, 2vw, 24px);
    font-weight: 500;
    text-align: center;
    color: #243746;
    text-shadow: none;
}
.class_RelFlex.CountNumber:hover {
  color: #1a2a33;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 10px 20px rgba(0,0,0,0.18);
  transform: translateY(-2px);
}
.class_RelFlex.CountNumber.Active {
    background: linear-gradient(135deg, #aee0ff, #c9ecff);
    border: 1px solid #9fd8ff;
    box-shadow: 0 0 16px rgba(120, 200, 255, 0.6);
    transform: scale(1.08) translateY(-3px);
    font-weight: 700;
    color: #0f2a38;
    text-shadow: none;
}
/******************************** QuizCountPicker ********************************/




/******************************** ShowSubtopics ********************************/
.class_TheRel.GenWrap.Subtopics {
    padding: 10px 20px 10px 20px;
    width: 900px;
    height: auto;
    max-width: calc(100% - 20px);
    max-height: calc(100% - 20px);
    border: 4px solid rgba(255,255,255,0.85);
    border: none;
    border-radius: 12px;
    margin: 10px;                     
}
.class_RelFlex.ShowSubtopics {
    padding: 10px;
    margin: 10px;
    width: 220px;
    height: 90px;
    
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow:
        0 4px 10px rgba(0, 120, 180, 0.12),
        inset 0 1px 0 rgba(255,255,255,0.7);
    border-radius: 14px;

    font-family: var(--fontFamilyArvo);
    font-size: clamp(14px, 2vw, 20px);
    font-weight: 500;
    text-align: center;
    color: #243746;
    text-shadow: none;
}
.class_RelFlex.ShowSubtopics:hover {
  color: #1a2a33;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 10px 20px rgba(0,0,0,0.18);
  transform: translateY(-2px);
}
.class_RelFlex.ShowSubtopics.Active {
    background: linear-gradient(135deg, #aee0ff, #c9ecff);
    border: 1px solid #9fd8ff;
    box-shadow: 0 0 16px rgba(120, 200, 255, 0.6);
    transform: scale(1.08) translateY(-3px);
    font-weight: 700;
    color: #0f2a38;
    text-shadow: none;
}
/******************************** ShowSubtopics ********************************/






