/* ===============================
   0. RESET & IMPORT FONT
   =============================== */

   @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

   :root {
     --font-size: 18px;
   }
   
   body {
     font-size: var(--font-size);
     font-family: 'Noto Sans', sans-serif;
     line-height: 1.6;
   }
   
   * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: Inter, sans-serif;
   }
   
   /* ===============================
      1. BODY & GLOBAL
      =============================== */
   
  body {
     background-color: #f4f4f9;
   }
   
   .finButton {
     padding: 10px 15px;
     font-size: 18px;
     border: none;
     border-radius: 5px;
     cursor: pointer;
     transition: background 0.3s;
     margin: 10px;
     margin: 28px auto;
     display: block;
   
   }
   
   .finButton:hover {
     background-color: #e0e0e0;
   }
   
   .status {
     margin-top: 10px;
     font-size: 18px;
     font-weight: bold;
     color: #333;
   }
   
   
   
   
   .lang-selector {
     display: flex;
     justify-content: center;
     gap: 16px;
     margin: 20px auto;
   }
   
   .lang-option {
     padding: 8px 16px;
     border-radius: 8px;
     background-color: #e0e7ff;
     cursor: pointer;
     font-weight: 500;
     transition: background-color 0.3s ease;
     border: 1px solid transparent;
   }
   
   .lang-option:hover {
     background-color: #c7d2fe;
   }
   
   .lang-option.active {
     background-color: #4f8cff;
     color: white;
     border-color: #375bd1;
   }
   
   /* ===============================
      2. EXAM CONTAINER & MODULE
      =============================== */
   
   
   #exam-container {
     display: flex !important;
     justify-content: center;
     align-items: flex-start;
     gap: 20px;
     padding: 20px;
     box-sizing: border-box;
     position: relative;
   }
   
   
   .sidebar-left {
     
     background-color: #e0e0e0;
     padding: 15px;
     border-radius: 8px;
     overflow-y: auto;
     border-right: 2px solid #ccc;
   }
   
   
   #exam-module {
     flex: 1 1 auto;
     overflow-y: auto;
     max-width: 800px;
     padding: 20px;
     background: white;
     border-radius: 8px;
     box-shadow: 0 0 5px rgb(0, 0, 0, 0.1);
     height: 650px;
     margin: 0 1rem
   }
   
   
   
   .font-controls {
     position: fixed;
     top: 10px;
     right: 10px;
     background: white;
     border: 1px solid #ccc;
     border-radius: 6px;
     z-index: 9999;
     padding: 5px 10px;
   }
   
   .font-controls button {
     font-size: 18px;
     margin: 0 3px;
     padding: 4px 10px;
     border: 1px solid #aaa;
     border-radius: 4px;
     background: #f5f5f5;
     cursor: pointer;
   }
   
   
   .sidebar-right {
     background: linear-gradient(145deg, #2C3E50, #34495E);
     padding: 15px;
     border-left: 2px solid #ccc;
     border-radius: 12px;
     box-shadow: 5px 5px 15px rgb(0, 0, 0, 0.3),
       -5px -5px 15px rgb(255, 255, 255, 0.1);
     color: white;
     font-size: 14px;
   }
   
   
   .sidebar-right .avatar {
     width: 80px;
     height: 80px;
     border-radius: 50%;
     background-color: white;
     margin-bottom: 10px;
     object-fit: cover;
   }
   
   .popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background-color: #fff;
    padding: 20px 24px;
    border-radius: 12px;
    border: 1px solid #ddd;
    box-shadow: 0 8px 24px rgb(0 0 0 / 25%);
    z-index: 9999;
    min-width: 260px;
    text-align: center;
    font-family: "Segoe UI", sans-serif;
    transition: opacity 0.2s ease;
  }
  
   .popup.hidden {
     display: none;
   }
   
   #font-popup button {
     font-size: 18px;
     font-weight: bold;
     padding: 12px 0;
     border: none;
     border-radius: 10px;
     background: linear-gradient(to bottom right, #4a90e2, #2b6bc0);
     color: white;
     cursor: pointer;
     transition: transform 0.2s ease, background 0.3s ease;
     width: 3rem;
   }
   
   #font-popup button:hover {
     background: linear-gradient(to bottom right, #558de8, #3979e1);
     transform: scale(1.05);
   }

   #popup-volume {
     position: absolute;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
     background: white;
     padding: 24px;
     border-radius: 12px;
     box-shadow: 0 4px 16px rgb(0, 0, 0, 0.2);
     z-index: 1000;
     min-width: 300px;
     text-align: center;
   }

   .volume-slider-container {
    width: 95%;
    height: 60%;
    display: flex;
    flex-flow: column wrap;
    place-content: center center;
    align-items: stretch;
}

#volume-range {
     width: 100%;
     height: 1rem;
     margin: 12px 0;
     background: linear-gradient(to right, #f44336, #ccc 50%, #1976d2);
     border-radius: 4px;
     appearance: none;
   }

   label[data-i18n="popup-volume"] {
     color: black;
     font-family: system-ui;
     font-size: 2rem;
   }

   #volume-range::-webkit-slider-thumb {
     appearance: none;
     width: 28px;
     height: 47px;
     background: #1976d2;
     border-radius: 3px;
     border: 2px solid white;
     cursor: pointer;
     box-shadow: 0 0 4px rgb(0, 0, 0, 0.3);
   }
   
   #volume-range::-moz-range-thumb {
     width: 18px;
     height: 18px;
     background: #1976d2;
     border: none;
     border-radius: 3px;
     cursor: pointer;
   }
   
   
   .volume-labels {
     display: flex;
     justify-content: space-between;
     margin-top: 6px;
     font-size: 13px;
     color: #555;
   }
   
   /* ===============================
      3. EXAM MODULE & PAGE
      =============================== */
   
   .page {
     display: none;
     margin-bottom: 20px;
     border-radius: 8px;
     padding: 15px;
   }
   
   .question-image {
     width: 120px;
     margin: 5px;
   }
   
   /* ===============================
      4. TOC (SIDEBAR-LEFT CONTENT)
      =============================== */


   .toc-wrapper {
     font-family: Inter, sans-serif;
     font-size: 13px;
     max-height: 85vh;
     overflow-y: auto;
     padding: 8px 10px;
     width: 240px;
     background: #f9f9f9;
     border-right: 1px solid #ddd;
   }
   
   
   .toc-section-title {
     position: sticky;
     top: 0;
     z-index: 30;
     background: #fff;
     padding: 13px 16px !important;
     font-size: 18px !important;
     font-weight: bold;
     box-shadow: 0 1px 2px rgb(0, 0, 0, 0.05);
     border-bottom: 1px solid #ddd;
   }
   
   
   .toc-part-title {
     position: sticky;
     z-index: 25;
     padding: 12px 16px;
     font-size: 15px;
     font-weight: 500;
     background-color: #f7f9fc;
     
     color: #1976d2;
     border-top: 1px solid #e0e0e0;
     border-bottom: 1px solid #e0e0e0;
     box-shadow: inset 0 -1px 0 rgb(0, 0, 0, 0.03);
     
   
     cursor: pointer;
   }
   
   .toc-part-list {
     list-style: none;
     padding: 0;
     margin: 0;
   }
   
   
   .toc-section ul {
     list-style: none;
     padding: 0;
     margin: 0;
   }
   
   .toc-section ul ul {
     padding: 0;
     margin: 0;
   }
   
   
   .toc-section ul ul li {
     background: #f9f9f9;
     border-bottom: 1px solid #eee;
   }
   
   .toc-section ul,
   .toc-section ul ul {
     transition: max-height 0.3s ease;
     overflow: hidden;
   }
   
   .toc-section ul ul li button {
     display: block;
     width: 100%;
     padding: 10px 16px;
     font-size: 14px;
     text-align: left;
     background-color: #f1f1f1;
     border: none;
     cursor: pointer;
     transition: background 0.2s ease;
   }
   
   
   .toc-section ul ul li button.answered {
     background-color: #4caf50 !important;
     color: #fff;
     font-weight: bold;
   }
   
   .toc-section ul ul li button.skipped {
     background-color: #e72918d8 !important;
     color: #fff;
   }
   
   .toc-section ul ul li button.not-answered {
     background-color: #e0e0e0 !important;
     color: #333;
   }
   
   .toc-section ul ul li button.active-question {
     outline: 2px solid #1976d2;
   }
   /* ===============================
      5. DEVICE CHECK, AUDIO CHECK, LOGIN, RENDER CÂU HỎI, ... (giữ nguyên)
      =============================== */
   
   #device-check button:not([class]),
   #audioCheck button:not([class]) {
     padding: 10px 16px;
     background-color: #1976d2;
     color: white;
     font-size: 14px;
     border: none;
     border-radius: 6px;
     cursor: pointer;
     transition: background 0.2s ease;
   }
   
   #device-check button:not([class]):hover,
   #audioCheck button:not([class]):hover {
     background-color: #125aa0;
   }
   
   
   
   /* ===============================
      10. UTILITY
      =============================== */
   .device-container h3 {
     text-align: center;
     font-size: 1.8rem;
     color: #000;
     margin-bottom: 24px;
   }
   
   .device-box {
     flex: 1 1;
     padding: 18px;
     border-radius: 12px;
     background-color: white;
     border: 1px solid #d0dcf0;
     box-shadow: 0 2px 8px rgb(0, 0, 0, 0.04);
     transition: all 0.3s ease;
     align-items: center;
     min-height: 300px;
     
  
   }
   
   .device-box:hover {
     transform: translateY(-3px);
     box-shadow: 0 4px 16px rgb(0, 0, 0, 0.08);
   }
   
   .device-box h4 {
     font-size: 1.2rem;
     margin-bottom: 10px;
     color: #000;
   }
   
   #camera-container {
     width: 100%;
     height: 180px;
     background-color: #000;
     border-radius: 10px;
     overflow: hidden;
     margin-bottom: 10px;
     border: 1px solid #ccc;
   }
   
   #camera-feed {
     width: 100%;
     height: 100%;
     object-fit: cover;
   }
   
   .status {
     font-size: 0.95rem;
     margin-top: 6px;
   }
   
   .status.ok {
     color: #2ecc71;
     
     font-weight: 600;
   }
   
   .status.error {
     color: #e74c3c;
     
     font-weight: 600;
   }
   
   
   
   .button:hover {
     filter: brightness(1.1);
   }
   
   .button:disabled {
     background: #ccc;
     cursor: not-allowed;
   }
   
   #button-wrapper {
     margin-top: 30px;
     text-align: center;
   }
   
   #button-wrapper button {
     margin: 0 12px;
   }
   
   #skip-check {
     background: #120886;
     color: rgb(255, 255, 255);
   }
   
   #skip-check:hover {
     filter: brightness(1.1);
   }
   
   
   
   /* ===============================
         5. AUDIO CHECK
         =============================== */
   #audioCheck {
     display: none;
     
     padding: 40px 20px;
     background: #fff;
     border-radius: 12px;
     box-shadow: 0 0 20px rgb(0, 0, 0, 0.05);
     max-width: 700px;
     margin: 4rem auto;
     font-family: Inter, sans-serif;
     transition: all 0.3s ease;
   }
   
   #micro-test-container {
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 20px;
   }
   
   .title {
     font-size: 1.5rem;
     font-weight: 600;
     margin-bottom: 20px;
   }
   
   #micro-Visualizer {
     width: 100%;
     height: 81px;
     background: #1a1a1a;
     border-radius: 8px;
     padding: 10px;
     overflow: hidden;
     margin: 28px auto;
     box-shadow: 0 0 10px rgb(0, 123, 255, 0.4);
     display: block;
   }
   
   #micro-Bar {
     display: flex;
     gap: 4px;
     height: 100%;
     align-items: flex-end;
   }
   
   .bar {
     width: 4px;
     height: 20%;
     background-color: lime;
     border-radius: 2px;
     animation: bounce 1.2s infinite ease-in-out;
   }
   
   .bar:nth-child(even) {
     animation-delay: 0.1s;
   }
   
   .bar:nth-child(odd) {
     animation-delay: 0.3s;
   }
   
   @keyframes bounce {
     0%,
     100% {
       transform: scaleY(0.3);
     }
   
     50% {
       transform: scaleY(1);
     }
   }
   
   #controls {
     margin-top: 20px;
     display: flex;
     justify-content: center;
     gap: 15px;
   }
   
   
   
   .animated-headphone {
     width: 100px;
     height: 100px;
     border: 6px solid #007bff;
     border-radius: 50%;
     position: relative;
     animation: pulse 1.5s infinite;
     margin: 28px auto;
     box-shadow: 0 0 10px rgb(0, 123, 255, 0.4);
     display: block;
   }
   
   .animated-headphone::before,
   .animated-headphone::after {
     content: '';
     position: absolute;
     width: 20px;
     height: 50px;
     background: #007bff;
     top: 25px;
     border-radius: 5px;
   }
   
   .animated-headphone::before {
     left: -25px;
   }
   
   .animated-headphone::after {
     right: -25px;
   }
   
   @keyframes pulse {
     0% {
       transform: scale(1);
       box-shadow: 0 0 10px rgb(0, 123, 255, 0.4);
     }
   
     50% {
       transform: scale(1.05);
       box-shadow: 0 0 20px rgb(0, 123, 255, 0.7);
     }
   
     100% {
       transform: scale(1);
       box-shadow: 0 0 10px rgb(0, 123, 255, 0.4);
     }
   }
   
   #audio-check {
     margin-top: 15px;
     font-weight: 500;
     color: #333;
   }
   
   /* ===============================
         6. LOGIN CONTAINER
         =============================== */
         #login-container {
           width: max-content;
           
           margin: 4rem 1rem 1rem;
           background: #fff;
           box-shadow: 0 4px 8px rgb(0, 0, 0, 0.1);
           border-radius: 8px;
           overflow: hidden;
           justify-self: center;
           display: flex;
       }
   
   
   .left-section {
     flex: 2;
     padding: 30px;
     background: #f8f9fa;
     overflow-y: auto;
     max-width: 600px;
   }
   
   
   .right-section {
     flex: 1;
     padding: 30px;
     text-align: center;
     max-width: 400px;
   }
   
   .right-section img {
     width: 100px;
     height: 100px;
     border-radius: 50%;
     object-fit: cover;
     border: 2px solid #ddd;
     margin-bottom: 15px;
   }
   
   .right-section input, .right-section select {
    width: 100%;
    padding: 10px;
    margin: 4px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    color: brown;
}
input[type="text"]:disabled::placeholder {
  color: #262626 !important;
  opacity: 0.9;
}
   
   /* ===============================
         7. RENDER CÂU HỎI
         =============================== */
   
   
   .question-container,
   .section,
   .welcome-section {
     background: white;
     padding: 20px;
     margin-bottom: 20px;
     border-radius: 8px;
     box-shadow: 0 0 5px rgb(0, 0, 0, 0.1);
   }
   
   .question-title {
     font-size: 20px;
     font-weight: bold;
     margin-bottom: 10px;
   }
   
   
   .question-single label {
     display: block;
     padding: 8px;
     margin-bottom: 5px;
     background-color: #e9ecef;
     border-radius: 5px;
     cursor: pointer;
   }
   
   .question-single label:hover {
     background-color: #d4d4d8;
   }
   
   
   .question-true-false label {
     display: block;
     padding: 8px;
     margin-bottom: 5px;
     border-radius: 5px;
     background-color: #e9ecef;
     cursor: pointer;
   }
   
   
   
   
   .page.group-IGMT {
    padding: 0px;
    max-width: 100%;
    overflow-y: visible;
    height: calc(100vh - 100px);
}
   
   
   
   .image-choice-container {
     display: flex;
     justify-content: center;
     gap: 12px;
     flex-wrap: wrap;
     margin-bottom: 20px;
   }
   
   .image-choice-container div {
     text-align: center;
   }
   
   .image-choice-container img {
     width: 100px;
     height: 100px;
     object-fit: cover;
     border-radius: 10px;
     border: 2px solid transparent;
     transition: transform 0.2s ease, border-color 0.3s;
     cursor: pointer;
   }
   
   .image-choice-container p {
     margin-top: 6px;
     font-weight: bold;
   }
   
   
   .group-question {
     margin-bottom: 25px;
     padding: 16px 20px;
     background: #f9f9f9;
     border-radius: 10px;
     box-shadow: 0 2px 6px rgb(0, 0, 0, 0.06);
   }
   
   .group-question p {
     font-weight: 600;
     font-size: 20px;
     margin-bottom: 14px;
   }
   
   
   .group-question .option-wrapper {
     display: flex;
     flex-direction: column;
     gap: 10px;
     
   }
   
   .group-question label {
     display: flex;
     align-items: center;
     gap: 12px;
     background: #eee;
     padding: 12px 16px;
     border-radius: 8px;
     font-size: 20px;
     cursor: pointer;
     transition: background 0.3s ease;
   }
   
   .group-question label:hover {
     background: #d7e8ff;
   }
   

   
   .page.text-choice-page .group-question {
     margin: 12px 0;
     padding: 8px 0;
     border-bottom: 1px dashed #ccc;
      }
   
   
   .page.text-choice-page .group-question p {
     font-weight: 600;
     margin: 0;
     
   }
   
   
   .page.text-choice-page select {
     
     width: auto;
     min-width: 0;
   
     
     padding: 2px 6px;
     font-size: 1rem;
     border: 1px solid #ccc;
     border-radius: 4px;
     outline: none;
     cursor: pointer;
     transition: border-color 0.2s;
   
     
     white-space: nowrap;
   }
   
   
   .page.text-choice-page select:focus {
     border-color: #007bff;
     
   }
   
   
   .page.text-choice-page .group-question p {
     font-weight: 500;
     margin: 0;
     
   }
   
   .page.text-choice-page select {
    width: auto;
    min-width: 0;
    padding: 2px 6px;
    font-size: 1rem;
    border: 1px solid rgb(255, 255, 255, 0.1);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    white-space: nowrap;
}
 
   
   
   .page.text-choice-page select:focus {
     border-color: #007bff;
     
   }
   
   
   .page.text-choice-page p {
     margin: 4px 0;
     line-height: 1.4;
   }
   
   ul.text-choice-list {
     list-style-type: none;
     padding: 0;
     display: flex;
     flex-wrap: wrap;
     
     gap: 20px;
     
   }
   
   
   .question-drag-drop .drag-items {
     display: flex;
     gap: 10px;
     margin-bottom: 10px;
   }
   
   .drag-item {
     padding: 10px;
     background-color: #e9ecef;
     border-radius: 5px;
     cursor: grab;
   }
   
   .drop-zones {
     display: flex;
     gap: 10px;
   }
   
   .drop-zone {
     padding: 10px;
     width: 100px;
     height: 50px;
     background-color: #f0f0f5;
     border: 2px dashed #ccc;
     border-radius: 5px;
   }
   
   
   .question-fill-blank input {
     margin: 5px 0;
     padding: 8px;
     border: 1px solid #ccc;
     border-radius: 5px;
   }
   
   
   .question-writing textarea {
     width: 100%;
     height: 150px;
     padding: 10px;
     border: 1px solid #ccc;
     border-radius: 5px;
     resize: vertical;
   }
   
   
   .question-sorting ul {
     list-style-type: none;
     padding: 0;
     margin: 0;
   }
   
   .question-sorting li {
     padding: 10px;
     margin-bottom: 5px;
     background-color: #e9ecef;
     border-radius: 5px;
     cursor: grab;
   }
   
   
   .question-group {
     margin-top: 20px;
   }
   
   .group-item {
     margin-bottom: 15px;
   }
   
   .group-item img {
     width: 120px;
     height: 120px;
     border-radius: 5px;
     margin-bottom: 10px;
   }
   
   
   .question-container .option-list {
     display: flex;
     flex-wrap: wrap;
     gap: 12px 24px;
     margin-top: 12px;
   }
   
   .question-container label {
     display: flex;
     align-items: center;
     gap: 10px;
     background-color: #f1f1f1;
     padding: 10px 16px;
     border-radius: 8px;
     cursor: pointer;
     transition: background 0.3s ease;
     min-width: 160px;
     font-size: 20px;
   }
   
   .question-container label:hover {
     background-color: #d7e8ff;
   }
   
   
   .question-container input[type="radio"] {
     appearance: none;
     width: 30px;
     height: 30px;
     border: 4px solid #888;
     border-radius: 50%;
     background-color: white;
     cursor: pointer;
     position: relative;
     margin-right: 6px;
   }
   
   .question-container input[type="radio"]:checked {
     background-color: #1976d2;
     border-color: #1976d2;
   }
   
   .question-container input[type="radio"]:checked::after {
     content: '';
     position: absolute;
     width: 8px;
     height: 8px;
     top: 4px;
     left: 4px;
     background-color: white;
     border-radius: 50%;
   }
   
   
   /* ===============================
         8. MỤC LỤC (TOC)
         =============================== */
   
   /* ===============================
         9. RESPONSIVE
         =============================== */
   

   
   /* ===============================
         10. UTILITY
         =============================== */
   
   
   html,
   body {
     overflow-x: hidden;
   }
   
   .page {
     display: none;
     
   }
   
   .page.active,
   .page[style*="display: block"] {
     display: block;
   }
   
   
   @keyframes fadeInUp {
     from {
       opacity: 0;
       transform: translateY(20px);
     }
   
     to {
       opacity: 1;
       transform: translateY(0);
     }
   }
   
   
   
   
   #answer-sheet-wrapper.popup {
     position: fixed;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
     width: 720px;
     
     max-height: 85vh;
     background: #fff;
     border-radius: 12px;
     padding: 24px;
     overflow-y: auto;
     box-shadow: 0 8px 24px rgb(0, 0, 0, 0.25);
     z-index: 2000;
     font-family: Inter, sans-serif;
   }
   
   
   #answer-sheet-wrapper .close-popup {
     margin-top: 20px;
     padding: 8px 16px;
     background: #1976d2;
     color: #fff;
     border: none;
     border-radius: 6px;
     cursor: pointer;
   }
   
   
   .answer-grid {
     display: grid;
     grid-template-columns: repeat(4, 1fr);
     
     gap: 10px;
     margin-top: 16px;
   }
   
   
   .answer-grid button {
     width: 48px;
     height: 48px;
     font-weight: bold;
     font-size: 15px;
     border: none;
     border-radius: 8px;
     cursor: pointer;
     transition: background 0.2s ease;
   }
   
   
   .answer-grid button.unanswered {
     background-color: #e0e0e0;
     color: #333;
   }
   
   
   .answer-grid button.answered {
     background-color: #4caf50;
     color: #fff;
   }
   
   
   .answer-grid button.skipped {
     background-color: #f44336;
     color: #fff;
   }
   
   
   #answer-sheet-wrapper h3 {
     margin-top: 0;
     font-size: 22px;
     font-weight: 600;
     text-align: center;
     color: #333;
   }
   
   
   .answer-status {
     margin-top: 18px;
     font-size: 16px;
     text-align: center;
     color: #555;
   }
   
   
   #answer-sheet-wrapper::-webkit-scrollbar {
     width: 8px;
   }
   
   #answer-sheet-wrapper::-webkit-scrollbar-thumb {
     background-color: #ccc;
     border-radius: 4px;
   }
   
   .answered {
     background-color: #4caf50;
     
   }
   
   .skipped {
     background-color: #f44336;
     
   }
   
   .not-answered {
     background-color: #aaa;
     
   }
   
   
   .btn-default {
     padding: 10px 16px;
     background-color: #1976d2;
     color: white;
     font-size: 14px;
     border: none;
     border-radius: 6px;
     cursor: pointer;
     transition: background 0.2s ease;
   }
   
   .btn-default:hover {
     background-color: #125aa0;
   }
   
   #btn-answer-sheet {
     display: block;
     width: 100%;
     padding: 12px 16px;
     background-color: #0288d1;
     color: white;
     font-size: 15px;
     font-weight: bold;
     border: none;
     border-radius: 8px;
     cursor: pointer;
     margin-top: 12px;
     transition: background 0.3s ease;
   }
   
   #btn-answer-sheet:hover {
     background-color: #0277bd;
   }
   
   
   
   
   
   input[type="radio"] {
     appearance: none;
     width: 20px;
     height: 20px;
     border: 2px solid #999;
     border-radius: 50%;
     background-color: #fff;
     cursor: pointer;
     position: relative;
     margin-right: 6px;
     vertical-align: middle;
   }
   
   
   input[type="radio"]:checked::before {
     content: '';
     position: absolute;
     width: 25px;
     height: 25px;
     background: radial-gradient(circle at 50% 50%, #08fd00, #00e5ff);
     border-radius: 50% !important;
     backdrop-filter: blur(30px) !important;
     box-shadow: 0 0 8px #38BDF8, 0 0 2px #8B5CF6 inset;
   }
   
   
   input[type="radio"]:hover {
     border-color: #1976d2;
   }
   
   
   label.radio-label {
     display: inline-flex;
     align-items: center;
     margin-right: 50px;
     font-size: 16px;
     cursor: pointer;
   }
   
   
   p+label {
     display: block;
   }
   
   
   p {
     margin-bottom: 4px;
     font-weight: bold;
     font-size: 16px;
   }
   
   label {
    display: inline-flex !important;
    align-items: center;
    margin-right: 1.8rem;
    font-size: 18px;
    
    font-weight: 500;
}
   
   
   input[type="radio"] {
    width: 28px;
    height: 28px;
    margin-right: 4px;
    accent-color: #1976d2;
    margin: 10px;
}
   
   
   label+div {
     margin-top: 16px;
   }
   
   .group-question {
     margin-bottom: 32px;
     padding: 16px;
     background: #f9f9f9;
     border-radius: 10px;
     box-shadow: 0 1px 4px rgb(0, 0, 0, 0.05);
   }
   
   
   .group-question p {
     font-weight: 600;
     margin-bottom: 8px;
     font-size: 16px;
   }
   
   
   .group-question .option-row {
     display: flex;
     flex-wrap: wrap;
     gap: 12px;
     align-items: center;
     margin-bottom: 6px;
   }
   
   
   .group-question label {
     display: flex;
     align-items: center;
     gap: 6px;
     font-size: 16px;
     cursor: pointer;
     margin-right: 12px;
   }
   
   
   .group-question input[type="radio"] {
     margin: 0;
     cursor: pointer;
   }
   
   .tick-bar {
     display: flex;
     width: 100%;
     height: 100%;
   }
   
   .tick {
     flex: 1;
     background-color: #007bff;
     margin-right: 1px;
     opacity: 0.2;
     transition: opacity 0.2s ease-in;
   }
   
   .tick.active {
     opacity: 1;
   }
   
   .tick {
     flex: 1;
     height: 100%;
     background: #ccc;
   }
   
   .tick.active {
     background: #007bff;
   }
   
   #audio-progress-bar {
     transition: width 0.3s ease;
     background: #0056b3;
   }
   
   
   .ar-page {
     padding: 1.5rem;
     font-family: "Segoe UI", sans-serif;
     line-height: 1.6;
   }
   
   
   .ar-page h3 {
     font-size: 1.2rem;
     margin-bottom: 1rem;
     color: #333;
   }
   
   
   .ar-sortable {
     list-style: none;
     padding: 0;
     margin: 0;
   }
   
   
   .ar-item {
    background-color: #1dd72573;
    padding: 10px 14px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: background-color 0.2s;
    user-select: none;
    color: #222;
    font-weight: 600;
    font-size: 18px;
    cursor: move;

}
   
   .ar-item:active {
     cursor: move;
   }
   
   .ar-item:hover {
    background-color: #e2ecff;
    box-shadow: 1px 1px 12px 0 rgb(0, 123, 255, 0.4);
    border-color: #42a5f5;
    cursor: move;

}
   
   
   .ar-preview {
    margin-top: 20px;
    padding: 10px 15px;
    background-color: rgb(72 25 25 / 0.05);
    border-left: 4px solid #007bff;
    font-weight: 500;
    color: #04426b;
    word-break: break-word;
    border-radius: 10px;
    font-size: 18px;
    box-shadow: 5px 4px 10px #ccccccab;
    backdrop-filter: drop-shadow(2px 4px 6px black);
    backface-visibility: visible;
    cursor: text;
}

.ar-preview:hover {
  transform: scale(1.1);
  font-size: 16px;
  backdrop-filter: contrast(0.97);
  box-shadow: 1px 1px 12px 0 rgb(0, 123, 255, 0.4);
  border-color: #42a5f5;
}
   
   .check-btn,
   .login-btn {
     display: inline-block;
     padding: 0.6rem 1.2rem;
     background: linear-gradient(135deg, #3b82f6, #2563eb);
     color: #fff;
     font-size: 1rem;
     font-weight: 600;
     border: none;
     border-radius: 0.5rem;
     cursor: pointer;
     box-shadow: 0 4px 12px rgb(59, 130, 246, 0.3);
     transition: background 0.3s ease, transform 0.2s ease;
   }
   
   .check-btn:hover,
   .login-btn:hover {
     background: linear-gradient(135deg, #2563eb, #1e40af);
     transform: translateY(-2px);
   }
   
   .check-btn:active,
   .login-btn:active {
     transform: translateY(1px);
     box-shadow: none;
   }
   
   input[type="checkbox"] {
     appearance: none;
     width: 1.1rem;
     height: 1.1rem;
     border: 2px solid #888;
     border-radius: 0.25rem;
     background-color: #fff;
     cursor: pointer;
     position: relative;
     transition: all 0.2s ease;
   }
   
   input[type="checkbox"]:checked {
     background-color: #3b82f6;
     border-color: #3b82f6;
   }
   
   input[type="checkbox"]::after {
     content: "";
     position: absolute;
     display: none;
     left: 4px;
     top: 0;
     width: 4px;
     height: 8px;
     border: solid white;
     border-width: 0 2px 2px 0;
     transform: rotate(45deg);
   }
   
   input[type="checkbox"]:checked::after {
     display: block;
   }
   
   .return-btn {
     display: inline-flex;
     align-items: center;
     gap: 0.5rem;
     padding: 0.5rem 1rem;
     background-color: #f3f4f6;
     color: #111827;
     border: 1px solid #d1d5db;
     border-radius: 0.5rem;
     font-size: 1rem;
     font-weight: 500;
     cursor: pointer;
     transition: background 0.3s ease, transform 0.2s ease;
   }
   
   .return-btn:hover {
     background-color: #e5e7eb;
     transform: translateY(-1px);
   }
   
   .return-btn:active {
     background-color: #d1d5db;
     transform: translateY(0);
   }
   
   
   button:disabled,
   button.disabled {
     background-color: #ccc;
     
     color: #666;
     
     cursor: not-allowed;
     
     opacity: 0.6;
     
     pointer-events: none;
     
     transition: background-color 0.3s ease;
   }
   
   .toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    max-width: 90vw;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #f8fafc;
    font-family: Inter, 'Segoe UI', sans-serif;
    text-align: center;
    box-shadow: 0 8px 16px rgb(0, 0, 0, 0.25);
    z-index: 999999;
    pointer-events: none;
    opacity: 0;
    animation: toastFadeIn 0.4s ease-out forwards, toastFadeOut 0.4s ease-in 5.5s forwards;
  }
  
  .toast-warning {
    background: #f59e0b; 
  }
  
  .toast-success {
    background: #22c55e; 
  }
  
  .toast-error {
    background: #ef4444; 
  }
  
  .toast-info {
    background: #3b82f6; 
  }
  
  @keyframes toastFadeIn {
    from {
      opacity: 0;
      transform: translateX(-50%) translateY(40px);
    }

    to {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
  }
  
  @keyframes toastFadeOut {
    to {
      opacity: 0;
      transform: translateX(-50%) translateY(20px);
    }
  }
  
  .info-line {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #1f2937; 
    font-weight: 400;
    line-height: 1.6;
  }

   
   
   
   #exam-module,
   .question-text,
   .answer-options {
     font-size: var(--font-size, 18px);
   }
   
   
   #exam-module {
     position: relative;
   }
   
   .audio-progress-wrap {
     position: absolute;
     right: 0;
     bottom: 24px;
     
     width: 50%;
     height: 8px;
     
     overflow: hidden;
     border-radius: 4px;
   }
   
   
   .tick {
     flex: 1 1 0;
     margin-right: 2px;
     background: rgb(255, 255, 255, .15);
     opacity: .15;
     transition: opacity .25s;
   }
   
   .tick:last-child {
     margin-right: 0;
   }
   
   .tick.active {
     opacity: 1;
     background: inherit;
     
   }
   
   
   @keyframes pulseNeon {
     0%,
     100% {
       filter: drop-shadow(0 0 4px #00ff6a) drop-shadow(0 0 6px #00e7ff);
     }
   
     50% {
       filter: drop-shadow(0 0 8px #00ff6a) drop-shadow(0 0 12px #00e7ff);
     }
   }
   
   .tick-bar {
     height: 100%;
     width: 0;
     
     background: linear-gradient(90deg, #00ff6a 0%, #00e7ff 100%) !important;
     filter: drop-shadow(0 0 4px #00ff6a) drop-shadow(0 0 6px #00e7ff);
     animation: pulseNeon 2.4s ease-in-out infinite;
     transition: width .08s linear;
     display: flex;
   }
   
   
   
   nav {
     display: flex;
     align-items: center;
     justify-content: start;
     flex-wrap: nowrap;
     
     position: fixed;
     top: 0;
     backdrop-filter: blur(10px);
     box-shadow: 0 2px 8px rgb(0, 0, 0, 0.05);
     border-bottom: 1px solid rgb(255, 255, 255, 0.3);
     transition: background-color 0.3s ease, box-shadow 0.3s ease;
     height: 3rem;
     width: 100%;
     z-index: 1001;
   
   }
   
   .logo-link {
     display: flex;
     align-items: center;
     text-decoration: none;
     gap: 0.5rem;
     margin-left: 20px;
   }
   
   .logo-wrapper img.logo-img {
     display: block;
     border-radius: 50%;
     height: 36px;
     width: 36px;
     object-fit: contain;
     position: relative;
     z-index: 1;
   }
   
   .nav-right {
     background: #fff;
     border-radius: 20px;
     box-shadow: 0 8px 24px rgb(0, 0, 0, 0.06);
     padding: 18px;
     border: none!important;
     margin-left: 35%;
   }
   
   .logo-title {
     font-size: 24px;
     font-weight: 700;
     background: linear-gradient(to right, #007ACC, #00B4FF);
     -webkit-text-fill-color: transparent;
     background-clip: text;
     color: transparent;
     white-space: nowrap;
     margin-left: 28px;
   }
   
   
   
   
   .nav-right {
     background: #fff;
     border-radius: 20px;
     box-shadow: 0 8px 24px rgb(0, 0, 0, 0.06);
     padding: 18px;
     border: 1px solid rgb(255, 255, 255, 0.3);
     place-content: space-around space-around;
     display: inline-flex;
     flex-flow: row nowrap;
     align-items: center;
   }
   
   .nav-icon {
     list-style: none;
     text-align: center !important;
     display: inline-flex;
     flex-flow: row nowrap;
     place-content: center center;
     align-items: center;
   }
   
   .nav-icon li {
     position: relative;
     display: inline-block;
     margin-right: -4px;
   }
   
   .nav-icon a {
     display: block;
     background: linear-gradient(to bottom, #f7f7f7, #e7e7e7);
     color: #555;
     margin: .5rem;
     width: 3rem;
     text-decoration: none;
     opacity: .95;
     height: 3rem;
     text-align: center;
     line-height: 3rem;
     border-radius: 50%;
     box-shadow: 0 3px 8px #aaa, inset 0 2px 3px #fff;
     position: relative;
   }
   
   .nav-icon a:hover {
     text-decoration: none;
     color: #202020;
     background: #f5f5f5;
   }
   
   #langBtn {
     display: grid;
     grid-template-columns: repeat(4, 1fr);
     max-width: 240px;
     height: 45px;
     overflow: hidden;
     border-radius: 18px;
     border: none !important;
     box-shadow: -3px 8px 4px 0 rgb(0, 0, 0, 0.1);
   }
   
   .lang-btn-inline {
     all: unset;
     text-align: center;
     font-weight: bold;
     cursor: pointer;
     font-size: 14px;
     padding: 0.5rem 0;
     background: white;
     color: black;
     border-right: 1px solid #ccc;
     transition: background 0.2s ease, color 0.2s ease;
   }
   
   .lang-btn-inline.active {
     background: #007ACC;
     color: white;
   }
   
   .slider {
     display: inline-flex;
     justify-content: space-between;
     align-items: center;
     background: #eee;
     border-radius: 40px;
     padding: 0 10px;
     position: relative;
     height: 100%;
     width: 100%;
     box-shadow: inset 2px 2px 6px #ccc, inset -2px -2px 6px #fff;
     transition: background 0.3s;
     
     cursor: pointer;
   }
   
   
   .footer-logo {
     font-size: 1.8rem;
     color: var(--yellow);
     font-weight: 600;
   }
   
   .footer-tagline {
     color: #fff;
     font-size: 1rem;
     opacity: 0.9;
   }
   
   .social-links {
     display: flex;
     gap: 3rem;
     margin-top: 1rem;
   }
   
   .footer-nav {
     background: transparent;
   }
   
   .footer-nav a {
     color: #fff;
     background: transparent !important;
   }
   
   .social-links svg,
   .social-links img {
     width: 26px;
     height: 26px;
     transition: transform 0.2s ease, filter 0.2s ease;
   }
   
   #toggle-right {
     display: none;
     content: '\e811'
   }
   
     
   

   
  
   
   
     .drag-drop-area {
      min-height: 200px !important;
      width: 100% !important;
       padding: 15px;
       border: 2px dashed #007bff;
       border-radius: 8px;
       background: rgb(0 123 255 / 0.19);
       text-align: center;
       font-size: 20px;
       color: #007bff;
       margin-bottom: 15px;
       gap: 4px !important;
       display: flex !important;
       flex-flow: row wrap;
       place-content: flex-start center;
       align-items: center;
     }
   
     .draggable-word {
       background: #1976d2;
       color: white;
       padding: 10px 15px;
       border-radius: 8px;
       cursor: grab;
       transition: transform 0.2s, background 0.3s;
       font-size: 20px;
       font-weight: bold;
     }
   
     .draggable-word:hover {
       background: #4ca5ff;
       transform: scale(1.3);
       backdrop-filter: brightness(1);
     }
   
     .drag-drop-preview {
       min-height: 40px;
       padding: 10px;
       text-align: center;
       background: rgb(0 123 255 / 0.32);
       border-radius: 8px;
       font-size: 20px;
       font-weight: bold;
       color: #0d47a1;
       width: 100%;
       border-style: solid;
       border-color: #007bff;
       text-shadow: 0 0 4px #fff;
     }
   
     .fill-blank-input {
       width: 3em;
       text-align: center;
       font-size: 20px;
       border-radius: 40px;
       min-width: 100px;
       min-height: 2.8rem;
       color: #222;
       text-shadow: 0 0 6px rgb(0, 123, 255, 0.4);
       transform: scale(1);
     }
   
     .focusfill-blank-input:focus {
       border-color: #1976d2;
       
       box-shadow: 0 0 5px rgb(25, 118, 210, 0.4);
       background-color: #f0f8ff;
       color: #000;
     }
   


   
   div#exam-wrapper {
     background: white;
     width: 100vw;
     height: 100vh;
     display: flex;
     flex-flow: row nowrap;
     place-content: center flex-start;
     align-items: center;
     padding: 1rem 0 1rem 1rem;
     margin: 3.1rem 0 0 !important;
   }
   
   #exam-module {
     flex: 1 1 auto;
     overflow-y: auto;
     min-width: 60%;
     background: white;
     border-radius: 8px;
     box-shadow: 0 0 5px rgb(0, 0, 0, 0.1);
     min-height: 100%;
   }
   
   .sidebar-left {
     background-color: #e0e0e0;
     padding: 15px;
     border-radius: 8px;
     overflow-y: auto;
     border-right: 2px solid #ccc;
     align-self: flex-start;
     max-width: 25vw;
     width: 20%;
     z-index:1000;
   }
   
   .toc-wrapper {
     font-family: Inter, sans-serif;
     font-size: 13px;
     max-height: 85vh;
     overflow-y: auto;
     padding: 8px 10px;
     width: 99%;
     background: #f9f9f9;
     border-right: 1px solid #ddd;
   }
   
   .sidebar-right {
     background: linear-gradient(145deg, #0d2136, #01386f);
     padding: 15px;
     border-left: 2px solid #ccc;
     border-radius: 12px;
     box-shadow: 5px 5px 15px rgb(0, 0, 0, 0.3),
        -5px -5px 15px rgb(255, 255, 255, 0.1);
     color: white;
     align-self: self-start;
     font-size: 14px;
     align-items: stretch;
     width: 20%;
     overflow-x: hidden;
     height: max-content;
     display: flex;
     flex-flow: column nowrap;
     place-content: space-between space-around;
     margin-right: 10px;
     font-family: unset;
   }

   button#btn-adjust-volume, button#btn-adjust-font {
     border-radius: 5px;
     box-shadow: inset;
     cursor: pointer;
     color: black;
     background: lightgrey;
     font-weight: 500;
     width: 50%;
     height: auto;
     min-height: 49px;
   }
   
   .sidebar-right .avatar {
     width: 80px;
     height: 80px;
     border-radius: 50%;
     background-color: white;
     margin-bottom: 10px;
     object-fit: cover;
     align-self: center !important;
     margin-left: 3rem;
   }
   
   .sidebar-right p {
     font-size: 13px;
   }
   
   #answer-sheet-wrapper.popup {
     position: fixed;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
     width: 60rem;
     max-height: 85vh;
     overflow-y: auto;
     box-shadow: rgb(0, 0, 0, 0.25) 0 8px 24px;
     z-index: 2000;
     font-family: Inter, sans-serif;
     background: rgb(255, 255, 255);
     border-radius: 12px;
     padding: 24px;
   }
   
   .answer-grid {
     display: grid;
     grid-template-columns: repeat(10, 1fr);
     gap: 10px;
     margin-top: 16px;
   }
   
   .audio-progress-wrap {
     position: fixed;
     top: 3rem;
     
     left: 0;
     width: 100%;
     height: 8px;
     overflow: hidden;
     border-radius: 4px;
     background: #e0e0e0;
     
     z-index: 1002;
     
   }
   
   /* =============================
      Mobile Sidebar & Navigation UI
      ============================= */
   
   #toggle-right {
     display: none;
   }
   
      
  .nav-right-mobile {
      display: none;
    }
    img.example-image {
      width: 280px;
      height: 180px;
      border-radius: 10%;
      box-shadow: 1px 1px 1px 1px #ffffff;
      border: 5px #42a5f5;
      margin:4rem
  }
  img.example-image:hover {
    transform: scale(1.1);
    box-shadow: 1px 1px 10px 1px rgb(0, 0, 0, 0.05);
}
textarea.example-textarea {
  width: 100%;
  height: auto;
  text-size-adjust: auto;
  color: darkgreen;
  font-weight: 600;
  font-size: 18px!important;
  min-height: 280px!important;
}
.writing-content-wi p {
  font-size: 28px!important;
}

   .audio-check-wrapper {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1.5rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 20px rgb(0, 0, 0, 0.05);
    text-align: center;
    font-family: sans-serif;
  }
  
  .audio-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
  }
 
  .audio-buttons .btn {
    font-size: 1.8rem;
    width: 3.5rem;
    height: 3.5rem;
    line-height: 3.5rem;
    border-radius: 50%;
    border: none;
    background-color: #f0f0f0;
    color: #333;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .audio-buttons .btn:hover {
    background-color: #007bff;
    color: #fff;
  }
  
  
  #soundwave-canvas {
    width: 100%;
    max-width: 580px;
    height: 100px;
    margin: 1rem auto;
    display: block;
    background: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 6px;
  }
  
  
  .audio-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .audio-footer .btn {
    flex: 1 1 45%;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    background-color: #f0f0f0;
    color: #333;
    transition: all 0.2s ease;
  }
  
  .audio-footer .btn:hover {
    background-color: #28a745;
    color: white;
  }
  
  
  .audio-footer #btn-back {
    background-color: #e0e0e0;
  }
  
  .audio-footer #btn-back:hover {
    background-color: #6c757d;
    color: white;
  }
     
     #btn-record {
       background-color: #f44336;
       
       color: white;
       animation: none;
     }

  
  #btn-record.recording {
    animation: pulse-record 1s infinite;
  }
  
  @keyframes pulse-record {
    0% {
      box-shadow: 0 0 0 0 rgb(244, 67, 54, 0.6);
      transform: scale(1);
    }
  
    70% {
      box-shadow: 0 0 0 10px rgb(244, 67, 54, 0);
      transform: scale(1.05);
    }
  
    100% {
      box-shadow: 0 0 0 0 rgb(244, 67, 54, 0);
      transform: scale(1);
    }
  }
 

   .drag-drop-container {
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     width: 100%;
     max-width: 600px;
     margin: auto;
     background: #e3f2fd;
     
     padding: 20px;
     border-radius: 12px;
     box-shadow: 0 4px 10px rgb(0, 0, 0, 0.1);
   }
   
   
   .drag-drop-word-bank {
     display: flex;
     flex-wrap: wrap;
     justify-content: center;
     gap: 10px;
     margin-bottom: 20px;
     padding: 15px;
     background: #bbdefb;
     
     border-radius: 8px;
     box-shadow: inset 0 2px 4px rgb(0, 0, 0, 0.1);
   }
   
   
   .draggable-word {
     background: #007acc;
     
     color: white;
     padding: 10px 16px;
     border-radius: 8px;
     cursor: grab;
     transition: transform 0.2s, background 0.3s;
     font-size: 18px;
     font-weight: 500;
   }
   
   .draggable-word:hover {
     background: #1e88e5;
     
     transform: scale(1.05);
   }
   
   
   .drag-drop-area {
     min-height: 60px;
     width: 100%;
     padding: 15px;
     border: 2px dashed #64b5f6;
     border-radius: 8px;
     background: #e1f5fe;
     
     text-align: center;
     font-size: 18px;
     color: #1565c0;
     margin-bottom: 15px;
   }
   
   .drag-drop-area:focus {
     outline: none;
     border-color: #1e88e5;
   }
   
   
   .drag-drop-preview {
     min-height: 40px;
     padding: 10px;
     text-align: center;
     background: #90caf9;
     
     border-radius: 8px;
     font-size: 18px;
     font-weight: 600;
     color: #0d47a1;
     width: 100%;
     margin: 0 1rem;
   }
   
   
   .fill-blank-input {
     width: 3em;
     text-align: center;
     font-size: 18px;
     padding: 4px 6px;
     border: 1px solid #64b5f6;
     border-radius: 6px;
     background: #fff;
     color: #0d47a1;
     margin: 4px;
   }
   
   
   .input-container {
     display: inline-block;
     min-width: 3em;
   }
   

   
   .writing-question-image {
     width: 100%;
     max-width: 180px;
     aspect-ratio: 1 / 1;
     
     object-fit: cover;
     border-radius: 12px;
     border: 3px solid #90caf9;
     
     box-shadow: 0 4px 16px rgb(0, 0, 0, 0.1);
     transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
     cursor: pointer;
     background: #f5faff;
   }
   
   
   .writing-question-image:hover {
     transform: scale(1.03);
     box-shadow: 0 8px 24px rgb(0, 123, 255, 0.4);
     border-color: #42a5f5;
   }
   
  .writing-textarea {
     width: 100%;
     max-width: 100%;
     min-height: 200px;
     padding: 1rem;
     font-size: 1rem;
     line-height: 1.6;
     color: #0d47a1;
     background: #fefefe;
     border: 2px solid #90caf9;
     border-radius: 10px;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
     resize: vertical;
     transition: border-color 0.3s ease, box-shadow 0.3s ease;
     font-family: "Segoe UI", sans-serif;
   }
   
   
   .writing-textarea:focus {
     outline: none;
     border-color: #42a5f5;
     box-shadow: 0 0 0 4px rgb(66, 165, 245, 0.2);
     background: #fff;
   }
   
   .writing-textarea-wi {
      width: 100%;
      max-width: 100%;
      min-height: 200px;
      padding: 1rem;
      font-size: 1rem;
      line-height: 1.6;
      color: #0d47a1;
      background: #fefefe;
      border: 2px solid #90caf9;
      border-radius: 10px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      resize: vertical;
      transition: border-color 0.3s ease, box-shadow 0.3s ease;
      font-family: "Segoe UI", sans-serif;
    }

   .writing-content p {
    font-size: 1rem!important;
    
}
   


   :root {
     --duration: 1.5s;
     --container-size: 250px;
     --box-size: 33px;
     --box-border-radius: 15%;
   }
   
   :root {
     --duration: 1.5s;
     --container-size: 250px;
     --box-size: 33px;
     --box-border-radius: 15%;
   }
   
   .loading-container {
     width: 100%;
     height: 70vh;
     background: none !important;
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
     gap: 24px;
     padding: 20px;
   }
   
   div#loading-screen {
     width: 100%;
     height: 100%;
   }
   
   .container {
     width: var(--container-size);
     display: flex;
     justify-content: space-between;
     align-items: center;
     position: relative;
   }

   .icon-direction::before {
    background: none;
    color: white;
}

   .box {
     width: var(--box-size);
     height: var(--box-size);
     position: relative;
     transform-origin: -50% center;
     border-radius: var(--box-border-radius);
   }
   
   .box::after {
     content: '';
     width: 100%;
     height: 100%;
     position: absolute;
     top: 0;
     right: 0;
     background-color: lightblue;
     border-radius: var(--box-border-radius);
     box-shadow: 0 0 10px 0 rgb(28, 159, 255, 0.4);
   }
   
   
   
   .loading-container .box {
     width: var(--box-size);
     height: var(--box-size);
     position: relative;
     display: block;
     transform-origin: -50% center;
     border-radius: var(--box-border-radius);
   }

   .writing-textarea:focus {
    outline: none;
    border-color: #42a5f5;
    box-shadow: 0 0 0 4px rgb(66, 165, 245, 0.2);
    background: #fff;
    font-size: 30px;
    font-family: KaiTi, SimSun, serif;
    line-height: 2.5rem;
    letter-spacing: 11px;
    background-image: repeating-linear-gradient(to right, transparent 0, transparent 2.5rem, #ddd 2.5rem, #ddd 2.6rem), repeating-linear-gradient(to bottom, transparent 0, transparent 2.5rem, #ddd 2.5rem, #ddd 2.6rem);
    background-size: 100% 100%;
    border: 1px solid #bbb;
    border-radius: 8px;
    padding: 0.5rem;
    resize: none;
    box-sizing: border-box;
}

   .loading-container .box::after {
     content: '';
     width: 100%;
     height: 100%;
     position: absolute;
     top: 0;
     right: 0;
     background-color: lightblue;
     border-radius: var(--box-border-radius);
     box-shadow: 0 0 10px 0 rgb(28, 159, 255, 0.4);
   }
   
   
   .loading-container .box:nth-child(1) {
     animation: loading-slide var(--duration) ease-in-out infinite alternate;
   }
   
   .loading-container .box:nth-child(1)::after {
     animation: loading-color-change var(--duration) ease-in-out infinite alternate;
   }
   
   
   .loading-container .box:nth-child(2) {
     animation: loading-flip-1 var(--duration) ease-in-out infinite alternate;
   }
   
   .loading-container .box:nth-child(2)::after {
     background-color: #1C9FFF;
     animation: loading-squidge-1 var(--duration) ease-in-out infinite alternate;
   }
   
   .loading-container .box:nth-child(3) {
     animation: loading-flip-2 var(--duration) ease-in-out infinite alternate;
   }
   
   .loading-container .box:nth-child(3)::after {
     background-color: #1FB1FD;
     animation: loading-squidge-2 var(--duration) ease-in-out infinite alternate;
   }
   
   .loading-container .box:nth-child(4) {
     animation: loading-flip-3 var(--duration) ease-in-out infinite alternate;
   }
   
   .loading-container .box:nth-child(4)::after {
     background-color: #22C7FB;
     animation: loading-squidge-3 var(--duration) ease-in-out infinite alternate;
   }
   
   .loading-container .box:nth-child(5) {
     animation: loading-flip-4 var(--duration) ease-in-out infinite alternate;
   }
   
   .loading-container .box:nth-child(5)::after {
     background-color: #23D3FB;
     animation: loading-squidge-4 var(--duration) ease-in-out infinite alternate;
   }
   
   
   @keyframes loading-slide {
     0% {
       background-color: #1795FF;
       transform: translateX(0);
     }
   
     100% {
       background-color: #23D3FB;
       transform: translateX(calc(var(--container-size) - (var(--box-size) * 1.25)));
     }
   }
   
   @keyframes loading-color-change {
     0% {
       background-color: #1795FF;
     }
   
     100% {
       background-color: #23D3FB;
     }
   }
   
   @keyframes loading-flip-1 {
     0%,
     15% {
       transform: rotate(0);
     }
   
     35%,
     100% {
       transform: rotate(-180deg);
     }
   }
   
   @keyframes loading-squidge-1 {
     5% {
       transform-origin: center bottom;
       transform: scaleX(1) scaleY(1);
     }
   
     15% {
       transform-origin: center bottom;
       transform: scaleX(1.3) scaleY(0.7);
     }
   
     20%,
     25% {
       transform-origin: center bottom;
       transform: scaleX(0.8) scaleY(1.4);
     }
   
     40% {
       transform-origin: center top;
       transform: scaleX(1.3) scaleY(0.7);
     }
   
     55%,
     100% {
       transform-origin: center top;
       transform: scaleX(1) scaleY(1);
     }
   }
   
   @keyframes loading-flip-2 {
     0%,
     30% {
       transform: rotate(0);
     }
   
     50%,
     100% {
       transform: rotate(-180deg);
     }
   }
   
   @keyframes loading-squidge-2 {
     20% {
       transform-origin: center bottom;
       transform: scaleX(1) scaleY(1);
     }
   
     30% {
       transform-origin: center bottom;
       transform: scaleX(1.3) scaleY(0.7);
     }
   
     35%,
     40% {
       transform-origin: center bottom;
       transform: scaleX(0.8) scaleY(1.4);
     }
   
     55% {
       transform-origin: center top;
       transform: scaleX(1.3) scaleY(0.7);
     }
   
     70%,
     100% {
       transform-origin: center top;
       transform: scaleX(1) scaleY(1);
     }
   }
   
   @keyframes loading-flip-3 {
     0%,
     45% {
       transform: rotate(0);
     }
   
     65%,
     100% {
       transform: rotate(-180deg);
     }
   }
   
   @keyframes loading-squidge-3 {
     35% {
       transform-origin: center bottom;
       transform: scaleX(1) scaleY(1);
     }
   
     45% {
       transform-origin: center bottom;
       transform: scaleX(1.3) scaleY(0.7);
     }
   
     50%,
     55% {
       transform-origin: center bottom;
       transform: scaleX(0.8) scaleY(1.4);
     }
   
     70% {
       transform-origin: center top;
       transform: scaleX(1.3) scaleY(0.7);
     }
   
     85%,
     100% {
       transform-origin: center top;
       transform: scaleX(1) scaleY(1);
     }
   }
   
   @keyframes loading-flip-4 {
     0%,
     60% {
       transform: rotate(0);
     }
   
     80%,
     100% {
       transform: rotate(-180deg);
     }
   }
   
   @keyframes loading-squidge-4 {
     50% {
       transform-origin: center bottom;
       transform: scaleX(1) scaleY(1);
     }
   
     60% {
       transform-origin: center bottom;
       transform: scaleX(1.3) scaleY(0.7);
     }
   
     65%,
     70% {
       transform-origin: center bottom;
       transform: scaleX(0.8) scaleY(1.4);
     }
   
     85% {
       transform-origin: center top;
       transform: scaleX(1.3) scaleY(0.7);
     }
   
     100% {
       transform-origin: center top;
       transform: scaleX(1) scaleY(1);
     }
   }
   
   
   
   
   
   
   .terminal-lines div {
     white-space: pre;
     opacity: 0.8;
     transition: opacity 0.3s ease;
   }
   
   .terminal-lines div.active {
     font-weight: bold;
     color: #6f6;
     opacity: 1;
   }
   
   .terminal-lines {
     font-family: 'Courier New', Courier, monospace;
     font-size: 18px;
     background-color: #000;
     color: #0f0;
     padding: 16px;
     border-radius: 8px;
     box-shadow: 0 0 10px #0f03;
     max-width: 81%;
     margin: 16px auto;
     line-height: 1.5;
     min-height: 120px;
   }

   .blinking-cursor {
     display: inline-block;
     width: 2px;
     height: 1em; 
     background: limegreen;
     animation: blink 1s steps(1) infinite;
     vertical-align: bottom; 
   }

   .terminal-lines div {
     white-space: pre;
     overflow: hidden;
     border-right: 2px solid #0f0;
     animation: blink-caret 0.75s step-end infinite;
   }
   
   
   @keyframes blink-caret {
     50% {
       border-color: transparent;
     }
   }
   
   
   @import url("https://fonts.googleapis.com/css?family=Open+Sans:300");
   
   #speeder-body {
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
     width: 100%;
     background-color: #044ecf;
     overflow: hidden;
     position: relative;
     height: 100vh;
     
   }
   
   #speeder-body .body {
     position: relative;
     animation: speeder 0.4s linear infinite;
     left: -5%;
   }
   
   #speeder-body .body>span {
     height: 5px;
     width: 35px;
     background: #fff;
     position: absolute;
     top: -19px;
     left: 60px;
     border-radius: 2px 10px 1px 0;
   }
   
   #speeder-body .base span {
     position: absolute;
     width: 0;
     height: 0;
     border-top: 6px solid transparent;
     border-right: 100px solid #fff;
     border-bottom: 6px solid transparent;
   }
   
   #speeder-body .base span::before {
     content: "";
     height: 22px;
     width: 22px;
     border-radius: 50%;
     background: #fff;
     position: absolute;
     right: -110px;
     top: -16px;
   }
   
   #speeder-body .base span::after {
     content: "";
     position: absolute;
     width: 0;
     height: 0;
     border-top: 0 solid transparent;
     border-right: 55px solid #fff;
     border-bottom: 16px solid transparent;
     top: -16px;
     right: -98px;
   }
   
   #speeder-body .face {
     position: absolute;
     height: 12px;
     width: 20px;
     background: #fff;
     border-radius: 20px 20px 0 0;
     transform: rotate(-40deg);
     right: -125px;
     top: -15px;
   }
   
   #speeder-body .face::after {
     content: "";
     height: 12px;
     width: 12px;
     background: #fff;
     position: absolute;
     right: 4px;
     top: 7px;
     transform: rotate(40deg);
     transform-origin: 50% 50%;
     border-radius: 0 0 0 2px;
   }
   
   
   #speeder-body .body>span>span {
     width: 30px;
     height: 1px;
     background: #fff;
     border-right: 100px solid #fff;
     position: absolute;
   }
   
   #speeder-body .body>span>span:nth-child(1) {
     animation: fazer1 0.2s linear infinite;
   }
   
   #speeder-body .body>span>span:nth-child(2) {
     top: 3px;
     animation: fazer2 0.4s linear infinite;
   }
   
   #speeder-body .body>span>span:nth-child(3) {
     top: 1px;
     animation: fazer3 0.4s linear infinite;
     animation-delay: -1s;
   }
   
   #speeder-body .body>span>span:nth-child(4) {
     top: 4px;
     animation: fazer4 1s linear infinite;
     animation-delay: -1s;
   }
   
   
   
   #speeder-body h1#render-percentage {
     position: absolute;
     top: 65%;
     left: 50%;
     transform: translateX(-50%);
     font-weight: 900;
     font-size: 18px;
     text-transform: uppercase;
     color: #fff;
     padding: 6px 12px;
     border-radius: 6px;
     letter-spacing: 1px;
     margin: 1rem auto;
   }
   
   #speeder-body #timer-text {
     position: absolute;
     top: 72%;
     left: 50%;
     transform: translateX(-50%);
     font-size: 12px;
     color: #333;
     font-weight: 400;
     background: rgb(255, 255, 255, 0.4);
     padding: 4px 10px;
     border-radius: 6px;
     margin: 2rem auto
   }
   
   
   
   @keyframes speeder {
     0% {
       transform: translate(2px, 1px) rotate(0deg);
     }
   
     10% {
       transform: translate(-1px, -3px) rotate(-1deg);
     }
   
     20% {
       transform: translate(-2px, 0) rotate(1deg);
     }
   
     30% {
       transform: translate(1px, 2px) rotate(0deg);
     }
   
     40% {
       transform: translate(1px, -1px) rotate(1deg);
     }
   
     50% {
       transform: translate(-1px, 3px) rotate(-1deg);
     }
   
     60% {
       transform: translate(-1px, 1px) rotate(0deg);
     }
   
     70% {
       transform: translate(3px, 1px) rotate(-1deg);
     }
   
     80% {
       transform: translate(-2px, -1px) rotate(1deg);
     }
   
     90% {
       transform: translate(2px, 1px) rotate(0deg);
     }
   
     100% {
       transform: translate(1px, -2px) rotate(-1deg);
     }
   }
   
   @keyframes lf {
     0% {
       left: 200%;
     }
   
     100% {
       left: -200%;
       opacity: 0;
     }
   }
   
   @keyframes lf2 {
     0% {
       left: 200%;
     }
   
     100% {
       left: -200%;
       opacity: 0;
     }
   }
   
   @keyframes lf3 {
     0% {
       left: 200%;
     }
   
     100% {
       left: -100%;
       opacity: 0;
     }
   }
   
   @keyframes lf4 {
     0% {
       left: 200%;
     }
   
     100% {
       left: -100%;
       opacity: 0;
     }
   }
   
   
   
   
   #speeder-body .longfazers {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     pointer-events: none;
   }
   
   #speeder-body .longfazers {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     pointer-events: none;
     z-index: 0;
   }
   
   #speeder-body .longfazers span {
     position: absolute;
     left: 0;
     width: 25%;
     height: 2px;
     background: #ccd9ee;
     opacity: 0.8;
     transform: translateX(100vw);
   }
   
   
   #speeder-body .longfazers span:nth-child(1) {
     top: 20%;
     animation: longfazer-move 1.2s linear infinite;
     animation-delay: -1s;
   }
   
   
   #speeder-body .longfazers span:nth-child(2) {
     top: 40%;
     animation: longfazer-move 1.6s linear infinite;
     animation-delay: -2s;
   }
   
   
   #speeder-body .longfazers span:nth-child(3) {
     top: 60%;
     animation: longfazer-move 1.4s linear infinite;
     animation-delay: -1.5s;
   }
   
   
   #speeder-body .longfazers span:nth-child(4) {
     top: 80%;
     animation: longfazer-move 1.8s linear infinite;
     animation-delay: -2.5s;
   }
   
   
   @keyframes longfazer-move {
     0% {
       transform: translateX(100vw);
       opacity: 1;
     }
   
     100% {
       transform: translateX(-100%);
       opacity: 0;
     }
   }
   
   
   
   #speeder-body .longfazers {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     pointer-events: none;
     z-index: 0;
   }
   
   #speeder-body .longfazers span {
     position: absolute;
     left: 0;
     width: 30%;
     height: 2px;
     background: rgb(255, 255, 255, 0.5);
     transform: translateX(100vw);
   }
   
   #speeder-body .longfazers span:nth-child(1) {
     top: 20%;
     animation: longfazer-move 1.2s linear infinite;
     animation-delay: -1s;
   }
   
   #speeder-body .longfazers span:nth-child(2) {
     top: 40%;
     animation: longfazer-move 1.6s linear infinite;
     animation-delay: -2s;
   }
   
   #speeder-body .longfazers span:nth-child(3) {
     top: 60%;
     animation: longfazer-move 1.4s linear infinite;
     animation-delay: -1.5s;
   }
   
   #speeder-body .longfazers span:nth-child(4) {
     top: 80%;
     animation: longfazer-move 1.8s linear infinite;
     animation-delay: -2.5s;
   }
   
   @keyframes fazer1 {
     0% {
       left: 0;
     }
   
     100% {
       left: -80px;
       opacity: 0;
     }
   }
   
   @keyframes fazer2 {
     0% {
       left: 0;
     }
   
     100% {
       left: -100px;
       opacity: 0;
     }
   }
   
   @keyframes fazer3 {
     0% {
       left: 0;
     }
   
     100% {
       left: -50px;
       opacity: 0;
     }
   }
   
   @keyframes fazer4 {
     0% {
       left: 0;
     }
   
     100% {
       left: -150px;
       opacity: 0;
     }
   }
   
   @keyframes speeder {
     0% {
       transform: translate(2px, 1px) rotate(0deg);
     }
   
     100% {
       transform: translate(1px, -2px) rotate(-1deg);
     }
   }
   
   @keyframes longfazer-move {
     0% {
       transform: translateX(100vw);
       opacity: 1;
     }
   
     100% {
       transform: translateX(-100%);
       opacity: 0;
     }
   }
   
   .footer-brand {
     display: flex;
     flex-direction: column;
     gap: 0;
   }
   
   .device-container {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background: white;
    padding: 4rem;
}
   
   
   
   .footnav\&social {
     display: flex;
     flex-flow: column nowrap;
     place-content: center center;
     align-items: center;
   }
   
   .toc-btn {
     padding: 4px 14px;
     border: none;
     border-radius: 8px;
     margin: 2px;
     background: #f4f4f4;
     color: #222;
     font-weight: 500;
     cursor: pointer;
     transition: box-shadow 0.2s, border 0.2s, background 0.2s;
   }
   
   
   .toc-btn.answered {
     background: #e6ffe8;
     color: #219150;
     border: 1.5px solid #35c46e;
   }
   
   
   .toc-btn.skipped {
     background: #ffeded;
     color: #de3030;
     border: 1.5px solid #ea5959;
   }
   
   
   .toc-btn.partial-answered {
     background: #fff9e6;
     color: #b36a00;
     border: 2.5px solid #ff9800;
   }
   
   
   .toc-btn.not-answered {
     background: #f7f7fa;
     color: #767676;
     border: 1.5px solid #ddd;
   }
   
   
   .toc-btn.active-question {
     background: #e3f2fd !important;
     color: #1565c0 !important;
     border: 2.5px solid #42a5f5 !important;
     box-shadow: 0 0 8px 2px #90caf9aa;
     position: relative;
     z-index: 2;
   }
   
   
   
   
   .toc-btn.answered { color: #38b000; font-weight: bold; }           
   .toc-btn.skipped { color: #e53935; }                              
   .toc-btn.partial-answered { border: 2px solid orange; color: #fb8c00; }
   .toc-btn.not-answered { color: #888; }
   .toc-btn.active-question { background: #e3f2fd; border-radius: 5px; color: #1976d2; box-shadow: 0 0 2px #90caf9; }
   .toc-btn.viewed { color: #039be5; }                               
   .toc-btn i { font-size: 1.1em; vertical-align: middle; margin-right: 0.2em; }

   .example-skip-button {
     bottom: 24px;
     right: 24px;
     padding: 8px 16px;
     background-color: #2d8cf0;
     color: white;
     border: none;
     border-radius: 6px;
     font-size: 14px;
     cursor: pointer;
     z-index: 1000;
   }
   
   button#example-skip-btn {
     position: absolute;
     min-width: 28vw;
     min-height: 28px;
     font-size: 18px;
     color: white;
     cursor: pointer;
     z-index: 1000;
     padding: 10px;
     margin: 4rem;
   }
   
   
   .example-blank {
     display: inline-block;
     min-width: 3em;
     border-bottom: 1px dashed #aaa;
     margin: 0 4px;
     text-align: center;
     transition: all 0.3s ease;
   }

   .word-bank.auto {
     margin-top: 16px;
     display: flex;
     flex-wrap: wrap;
     gap: 8px;
     opacity: 0.6;
   }
   
   .word-token {
     background: #e0e0f8;
     padding: 6px 12px;
     border-radius: 6px;
     font-size: 14px;
     user-select: none;
   }
   
   
   
   .example-word {
     position: relative;
     transition: transform 0.4s ease, opacity 0.4s ease;
   }
   
   .example-animated-word {
     transform: translateY(40px);  
     opacity: 0.3;
   }
   
   .example-animated-word {
     animation: dropIn 0.3s ease-out;
   }
   
   @keyframes dropIn {
     0% {
       transform: translateY(-30px);
       opacity: 0;
     }

     100% {
       transform: translateY(0);
       opacity: 1;
     }
   }
   
   .pinyin-preview {
     font-style: italic;
     font-size: 1.1em;
     color: #555;
     margin-bottom: 8px;
   }
   
   .auto-fill-blank {
     display: inline-block;
     width: 2em;
     border-bottom: 1px solid #ccc;
     text-align: center;
     position: relative;
   }
   
   .cursor {
     display: inline-block;
     width: 1px;
     height: 1em;
     background-color: #333;
     animation: blink 1s infinite;
     vertical-align: bottom;
   }
   
   @keyframes blink {
     0%, 100% { opacity: 1; }
     50% { opacity: 0; }
   }
   
   .auto-filled-2 {
     font-weight: bold;
     color: #007bff;
   }

   .auto-filled {
     font-weight: bold;
     color:hsl(from color h s l);
   }
   
   .fake-pointer {
     width: 20px;
     height: 20px;
     background: url('/icons/mouse-pointer.svg') no-repeat center center;
     background-size: contain;
     position: absolute;
     z-index: 1000;
     pointer-events: none;
     transition: top 0.5s ease, left 0.5s ease;
   }

   .example-mt-option {
     display: flex;
     align-items: center;
     margin: 6px 0;
     cursor: pointer;
   }

   .fake-radio {
     width: 16px;
     height: 16px;
     border: 2px solid #666;
     border-radius: 50%;
     margin-right: 10px;
     position: relative;
   }

   .selected-correct .fake-radio::after {
     content: '';
     width: 8px;
     height: 8px;
     background: #4caf50;
     border-radius: 50%;
     position: absolute;
     top: 3px;
     left: 3px;
   }
   
   
   
   
   .fill-blank {
     display: inline-block;
     position: relative;
     min-width: 3em;
     padding-bottom: 4px;
     text-align: center;
     margin: 0 0.3em;
   }
   
   .fill-inner {
     display: inline-block;
     border-bottom: 2px solid #333;
     min-width: 3em;
     padding: 2px 4px;
     position: relative;
   }
   
   .fill-pinyin {
     display: block;
     font-size: 0.75em;
     color: #888;
     line-height: 1;
     margin-bottom: 2px;
   }
   
   .fill-typed {
     display: inline;
     font-weight: bold;
     font-size: 1em;
     color: #222;
   }
   
   .fill-cursor {
     display: inline-block;
     width: 1px;
     height: 1.2em;
     background: #000;
     animation: blink 1s steps(2, start) infinite;
     vertical-align: bottom;
     margin-left: 1px;
   }
   
   @keyframes blink {
     0%, 100% { opacity: 0; }
     50% { opacity: 1; }
   }
   
   .fill-tick {
     display: inline-block;
     color: green;
     font-family: fontello;
     font-size: 1em;
     margin-left: 0.5em;
     opacity: 0;
     transform: scale(0.8);
     transition: opacity 0.4s ease, transform 0.4s ease;
   }
   
   .fill-tick.show {
     opacity: 1;
     transform: scale(1);
   }
   
   #fake-pointer {
     animation: mouse-bounce 0.6s infinite;
   }
   
   @keyframes mouse-bounce {
     0%, 100% { transform: translateY(0); }
     50% { transform: translateY(-3px); }
   }
   
   .selected {
     background: #d4f4ff;
     border: 1px solid #007bff;
     border-radius: 4px;
   }
   
   
   .tick-icon {
     color: #0f8; 
     font-size: 1.4em;
     margin-left: 0.5em;
     opacity: 0;
     transform: scale(0.8);
     transition: opacity 0.3s ease, transform 0.3s ease;
     text-shadow: 0 0 5px #0f8, 0 0 10px #0f8, 0 0 15px #0f8;
     filter: drop-shadow(0 0 5px #0f8);
   }
   
   .tick-icon.show {
     opacity: 1;
     transform: scale(1);
   }
   
   
   
   .fill-pinyin {
     display: block;
     font-size: 0.75em;
     color: #888;
     margin-bottom: 2px;
   }
   
   
   @keyframes blink {
     0%, 100% { opacity: 0; }
     50% { opacity: 1; }
   }
   
   .auto-filled {
     font-weight: bold;
     color: #222;
   }
   
   .tick-icon {
     color: #0f8;
     font-size: 1.2em;
     margin-left: 6px;
     opacity: 0;
     transform: scale(0.8);
     transition: opacity 0.4s ease, transform 0.4s ease;
     text-shadow: 0 0 5px #0f8, 0 0 10px #0f8, 0 0 15px #0f8;
     filter: drop-shadow(0 0 6px #0f8);
   }
   
   .tick-icon.show {
     opacity: 1;
     transform: scale(1);
   }
   
   
   
   .example-mt-choices {
     margin-top: 1em;
     display: flex;
     flex-direction: column;
     gap: 0.75em;
   }
   
   .example-mt-option {
     display: flex;
     align-items: center;
     padding: 6px 10px;
     border-radius: 6px;
     transition: background-color 0.3s ease;
     font-size: 1em;
   }
   
   .fake-radio {
     width: 16px;
     height: 16px;
     border: 2px solid #666;
     border-radius: 50%;
     margin-right: 10px;
     display: inline-block;
     position: relative;
     box-sizing: border-box;
   }
   
   .radio-dot {
     width: 8px;
     height: 8px;
     background-color: #00bcd4;
     border-radius: 50%;
     position: absolute;
     top: 50%;
     left: 50%;
     transform: scale(0) translate(-50%, -50%);
     transition: transform 0.3s ease;
   }
   
   .fake-radio.selected-radio .radio-dot {
     transform: scale(1) translate(-50%, -50%);
   }
   
   .selected-correct {
     background-color: #e0f7fa;
     border: 2px solid #00bcd4;
   }
   
   #fake-cursor {
     font-size: 22px;
     color: #000;
     font-weight: bold;
     position: absolute;
     animation: blink 1s steps(2, start) infinite;
     z-index: 9999;
     pointer-events: none;
   }
   
   .tick-icon {
     font-family: fontello;
     color: #00e676;
     margin-left: 5px;
     animation: glowTick 0.6s ease-in-out;
   }

   @keyframes glowTick {
     0% { transform: scale(0.6); opacity: 0.1; text-shadow: 0 0 2px #00e676; }
     100% { transform: scale(1); opacity: 1; text-shadow: 0 0 8px #00e676; }
   }

   .ello-font {
     font-family: Ello, sans-serif;
   }
   
   .tf-options {
     list-style: none;
     padding: 0;
     display: flex;
     gap: 1rem;
   }
   
   .tf-item {
     transition: transform 0.4s ease, box-shadow 0.4s ease;
     font-size: 1.2rem;
   }
   
   .fake-radio {
     display: inline-block;
     width: 16px;
     height: 16px;
     border-radius: 50%;
     border: 2px solid gray;
     margin-right: 6px;
     vertical-align: middle;
   }
   
   .tf-item.highlight .fake-radio {
     background-color: #4caf50;
     border-color: #4caf50;
   }
   
   .tf-item.highlight {
     color: #4caf50;
   }
   
   .tf-item.scale {
     transform: scale(1.2);
     box-shadow: 0 0 8px rgb(76, 175, 80, 0.6);
   }

   .example-select.highlight {
     transform: scale(1.1);
     box-shadow: 0 0 6px rgb(33, 150, 243, 0.6);
   }

   .example-tl {
     font-size: 1.1rem;
     line-height: 1.6;
   }

   .wave-hand {
     font-size: 64px;
     text-align: center;
     margin: 20px auto;
     animation: wave 1.5s infinite ease-in-out;
     transform-origin: 70% 70%; 
     display: block;
   }
   
   @keyframes wave {
     0% { transform: rotate(0deg); }
     15% { transform: rotate(14deg); }
     30% { transform: rotate(-8deg); }
     45% { transform: rotate(14deg); }
     60% { transform: rotate(-4deg); }
     75% { transform: rotate(10deg); }
     100% { transform: rotate(0deg); }
   }

   .animated-border {
     border: 3px solid #4caf50;
     border-radius: 12px;
     animation: pulse-border 2.5s ease-in-out infinite;
   }
   
   @keyframes pulse-border {
     0% {
       transform: scale(1);
       box-shadow: 0 0 0 0 rgb(76, 175, 80, 0.7);
     }

     50% {
       transform: scale(1.03);
       box-shadow: 0 0 10px 5px rgb(76, 175, 80, 0.4);
     }

     100% {
       transform: scale(1);
       box-shadow: 0 0 0 0 rgb(76, 175, 80, 0);
     }
   } 
   
   
   
   #submit-wrapper {
     max-width: 100vw;
     margin: 3rem auto 0;
     padding: 47px;
     border-radius: 12px;
     background-color: #fdfdfd;
     box-shadow: 0 0 15px rgb(0, 0, 0, 0.08);
     font-family: "Segoe UI", sans-serif;
     transition: all 0.3s ease;
     height: 100vh;
   }
   
   
   #submit-message {
     font-size: 20px;
     font-weight: 600;
     color: #2b6cb0;
     margin-bottom: 16px;
   }
   
   
   #result-area {
     font-size: 16px;
     line-height: 1.6;
     color: #333;
     background-color: #f5f9ff;
     padding: 15px;
     border: 1px solid #dbeafe;
     border-radius: 8px;
     min-height: 100px;
   }
   
   
   #submit-wrapper button {
     margin: 10px 5px 0 0;
     padding: 10px 16px;
     border: none;
     border-radius: 8px;
     background-color: #3182ce;
     color: white;
     font-weight: 500;
     cursor: pointer;
     transition: background-color 0.2s ease;
   }
   
   #submit-wrapper button:hover {
     background-color: #2b6cb0;
   }
   
   
   button:disabled {
     background-color: #a0aec0;
     cursor: not-allowed;
   }
   
   
   
   #submit {
     display: block;
     width: 100%;
     padding: 12px 16px;
     background-color: #3602d1;
     color: white;
     font-size: 15px;
     font-weight: bold;
     border: none;
     border-radius: 8px;
     cursor: pointer;
     margin-top: 12px;
     transition: background 0.3s ease;
   }
   
   .confirm-popup, div#font-popup, div#popup-volume {
     width: 60vw;
     height: 40vh !important;
     background: rgb(255, 255, 255, 0.75) !important;
     display: flex;
     align-items: center;
     place-content: center center;
     z-index: 9999 !important;
     position: fixed !important;
     top: 50% !important;
     left: 50% !important;
     transform: translate(-50%, -50%) !important;
     box-shadow: 1px 4px 20px darkgrey !important;
     border-radius: 1rem !important;
     backdrop-filter: blur(20px) !important;
     font-family: -apple-system, BlinkMacSystemFont, sans-serif !important;
     flex-flow: column nowrap;
     color: black;
   }
   
   .confirm-popup-box {
     position: relative;
     width: 100%;
     
     height: 100%;
     
     
     padding: 24px 32px;
     box-shadow: 0 8px 24px rgb(0,0,0,0.2);
     display: flex;
     flex-direction: column;
     justify-content: space-between;
     animation: confirm-popup-fade-in 0.3s ease-out;
   }
   
   .confirm-popup-message {
     font-size: 1.3rem;
     color: #333;
     text-align: center;
     justify-items: left;
     font-weight: 500;
     margin: 3rem 0 20px;
   }
   
   .confirm-popup-btns {
     display: flex;
     justify-content: center;
     gap: 20px;
     margin-bottom: 10px;
   }
   
   .confirm-popup-btn {
     padding: 10px 24px;
     font-size: 1rem;
     border-radius: 8px;
     border: none;
     cursor: pointer;
     background-color: #007aff;
     color: white;
     box-shadow: 0 2px 6px rgb(0,0,0,0.15);
     transition: background-color 0.2s ease, box-shadow 0.2s ease;
   }

   .confirm-popup-btn:hover {
     background-color: #005fca;
     box-shadow: 0 4px 10px rgb(0,0,0,0.2);
   }
   
   .confirm-popup-btn.secondary {
     background-color: #e0e0e0;
     color: #333;
   }

   .confirm-popup-btn.secondary:hover {
     background-color: #c0c0c0;
   }
   
   .confirm-popup-close {
     position: fixed;
     top: 0.5px;
     left: 1px;
     border: #ff0000b0!important;
     color: transparent!important;
     cursor: pointer!important;
     transition: color 0.2s ease!important;
     width: 18px!important;
     height: 18px!important;
     border-radius: 50%!important;
     box-shadow: inset 2px -1px 0 0 lightgrey!important;
     font-size: 1rem!important;
     justify-self: center;
     padding: 0!important;
     background: #fe5f57!important;
   }

   .confirm-popup-close:hover {
     color: #333!important;
     font-size: 18px!important;
     transition: ease-in!important;
     
   }
   
   @keyframes confirm-popup-fade-in {
     from { opacity: 0; transform: scale(0.96); }
     to { opacity: 1; transform: scale(1); }
   }

   button#confirm-no {
     background: linear-gradient(to bottom, #fdfbff, #fff);
   }

   label.popup-label {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0 0 1rem;
}

.page.example-page .question-container {
  box-shadow: none;
}

img#fin_img {
  width: 28%;
  height: 50%;
  max-width: 28%;
}

.icon-download::before, .icon-export::before, .icon-popup::before{
  color: #f2e9e9 !important;
}

.nav-nav-btn, .nav-submit-btn {
  font-family: fontello;
  font-size: 1.4rem;
  padding: 0.5rem 1rem;
  background-color: #1c95f6;
  color: white;
  border: none;
  border-radius: 6px;
  margin: 0 0.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-submit-btn i {
  font-style: normal;
}


.group-question {
  background: none!important;
  display: flex;
  flex-flow: column wrap;
  place-content: flex-start center;
  align-items: flex-start;
}

.options-container >label {
  background: none!important;
}

.options-container {
  background: none!important;
  display: flex!important;
  flex-flow: column nowrap;
  place-content: flex-start center;
  align-items: flex-start;
}

span.question-number {
  font-weight: bold;
}

p.common-question-text {
  font-weight: 400;
  font-size: large;
  text-wrap-mode: wrap;
  text-wrap-style: pretty;
}

button#submitExamBtn {
  background: repeating-linear-gradient(190deg, #ff6c37, transparent 100px);
  color: ghostwhite;
  margin: 0px 0px 0px 200px;
  font-weight: 900;
  font-family: system-ui;
  font-size: 1.4rem;
  padding: 1rem 0.5rem;
  /* display: flex; */
  /* flex-direction: row; */
  /* flex-wrap: nowrap; */
  /* align-content: center; */
  /* justify-content: flex-end; */
  /* align-items: center; */
}

.icon-upload::before {
  color: saddlebrown!important;
}

.icon-left-open::before, .icon-right-open::before {
  color: #e5dada;
  font-weight: bolder;
  font-size: xx-large;
}

.question-label {
  min-width: 72px;
  font-weight: bold;
  color: #334155;
}

.question-content {
  flex: 1;
  color: #1e293b;
}



.text-choice-list {
  display: flex;
  flex-flow: column nowrap;
  gap: 20px;
  margin-bottom: 20px;
  align-items: flex-start;
  place-content: space-between center;
}



.group-question-TC {
  display: flex;
  flex-flow: row nowrap;
  place-content: center flex-start;
  align-items: center;
}



.text-choice-list-tl {
  display: inline-flex;
  flex-flow: row nowrap;
}




.writing-textarea-not:focus {
  outline: none;
  border-color: #42a5f5;
  box-shadow: 0 0 0 4px rgb(66, 165, 245, 0.2);
  background: #fff;
  font-size: 30px;
  font-family: KaiTi, SimSun, serif;
  line-height: 2.5rem;
  letter-spacing: 11px;
  background-image: repeating-linear-gradient(to right, transparent 0, transparent 2.5rem, #ddd 2.5rem, #ddd 2.6rem), repeating-linear-gradient(to bottom, transparent 0, transparent 2.5rem, #ddd 2.5rem, #ddd 2.6rem);
  background-size: 100% 100%;
  border: 1px solid #bbb;
  border-radius: 8px;
  padding: 0.5rem;
  field-sizing: content;
  box-sizing: border-box;
  min-block-size: 3lh;
  max-block-size: 100%;
  overflow-y: auto;
  resize: none;
}


label[for="agreeRules"] {
  cursor: pointer;
}



.icon-home:before {
  color: #72708c !important;
}
.exam-navigation {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: space-around;
  z-index: 9000 !important;

}
@keyframes flashRed {
  0%   { background-color: transparent; }
  25%  { background-color: #ff4d4f; }
  50%  { background-color: #ff7875; }
  75%  { background-color: #ff4d4f; }
  100% { background-color: transparent; }
}

.flash-warning {
  animation: flashRed 3s ease-in-out;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  background: #c0392b!important;
  z-index:1110
}
/* Logo và đồng hồ chuyển mượt */
.logo-link, .logo-title, #nav-clock {
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.fade-hidden {
  opacity: 0;
  visibility: hidden;
}

.fade-visible {
  opacity: 1;
  visibility: visible;
}

.exam-navigation button {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(to right, #007BFF, #0099FF);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  font-family: 'Segoe UI', sans-serif;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  margin: 20px;
}

.exam-navigation button:hover {
  background: linear-gradient(to right, #0056b3, #007BFF); /* đậm hơn khi hover */
  box-shadow: 0 6px 14px rgba(0, 123, 255, 0.35);
  transform: translateY(-2px);
}

.exam-navigation button:active {
  transform: scale(0.98);
  box-shadow: 0 2px 5px rgba(0, 123, 255, 0.2);
}

.exam-navigation button:active {
  transform: scale(0.98);
  box-shadow: 0 2px 5px rgba(0, 123, 255, 0.2);
  background:lightgrey
}
div#device-check {
  height: 100%;
}

div#device-check-wrapper {
  display: flex;
  gap: 10px;
}
#main-content {
  height: 100vh;
  width: 100vw;
  overflow: auto;
}
.login-text {
  font-size: 13px!important;
}

.theme-switch, .lang-dropdown{visibility: hidden;}