body {
    font-family: 'Segoe UI', sans-serif;
    background: #f7f8fc;
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.navbar {
    background: linear-gradient(90deg, #ffffff, #f0f0f0);
    height: 70px;
    overflow: visible;
    z-index: 1050;
    position: relative;
}

/* --- LOGO dan BRAND (Tampilan Desktop) --- */
.navbar-logo {
    height: 60px; 
    width: auto;
    margin-right: 15px;
    z-index: 10;
}

.navbar-brand {
    padding-left: 5px; 
    font-weight: 600;
    font-size: 1.3rem;
    color: #ee3e3eff !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: color 0.3s ease;
    display: inline-block;
}

/* Keyframes (TIDAK BERUBAH) */
@keyframes fireworks {
    0% {
        text-shadow: 0 0 0 #8B0000, 0 0 0 #A52A2A, 0 0 0 #B22222, 0 0 0 #800000, 0 0 0 #A52A2A, 0 0 0 #8B0000;
    }
    50% {
        text-shadow: 2px 0 8px #8B0000, -2px 0 8px #A52A2A, 0 2px 8px #B22222, 0 -2px 8px #800000, 1.5px 1.5px 8px #A52A2A, -1.5px -1.5px 8px #8B0000;
    }
    100% {
        text-shadow: 0 0 0 #8B0000, 0 0 0 #A52A2A, 0 0 0 #B22222, 0 0 0 #800000, 0 0 0 #A52A2A, 0 0 0 #8B0000;
    }
}

.navbar-brand:hover {
    color: #8B0000 !important;
    animation: fireworks 1.5s ease-in-out forwards;
    text-decoration: none;
}

.nav-link {
    color: #444 !important;
    font-weight: 600;
}

.nav-link:hover {
    color: #000 !important;
}

.navbar-toggler {
    z-index: 1060;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='black' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- HAPUS ATURAN INI UNTUK MENCEGAH SISA BACKGROUND --- */
/* .navbar-collapse.show {
    background-color: #ffffff; 
    padding-top: 5px; 
    padding-bottom: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
} */
/* -------------------------------------------------------- */

@media (max-width: 991.98px) {
    
    .navbar-logo {
        height: 40px; 
        margin-right: 10px;
        position: static;
        transform: none;
    }

    .navbar-brand {
        padding-left: 0; 
        font-size: 1.2rem;
    }
    
    /* Nav-item: Hapus margin/padding horizontal */
    .navbar-nav .nav-item {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Nav-link: Tambahkan background putih ke setiap link agar terlihat solid */
    .nav-link {
        padding: 8px 15px !important; 
        width: 100%;
        background-color: #ffffff; /* PENTING: Memberikan background putih di sini */
    }
    
    /* Nav-link saat di dalam menu collapse yang terbuka */
    .collapse.show .nav-item:last-child .nav-link {
        /* Opsional: Hapus border-bottom atau berikan sedikit ruang di akhir */
        border-bottom: 1px solid #f0f0f0; 
    }

    /* DROPDOWN MENU MOBILE: Memastikan ringkas */
    .dropdown-menu {
        /* Hapus background-color: #ffffff !important; agar tidak double */
        background-color: transparent !important; /* Hapus background dari ul */
        
        width: auto !important; 
        min-width: unset !important;

        /* Posisikan menu dropdown di bawah link utama */
        margin-left: 15px; 
        
        border-radius: 0; 
        border: none;
        box-shadow: none !important;
        
        position: static !important;
        transform: none !important;
        
        /* Hapus padding/margin vertikal agar ringkas */
        padding: 0; 
        margin-top: 0;
        margin-bottom: 0;
    }
    
    /* Item Dropdown: Berikan background putih dan padding ringkas */
    .dropdown-item {
        padding: 5px 15px; 
        /* PENTING: Berikan background putih di sini */
        background-color: #ffffff !important; 
    }
    
    /* Pastikan hover item dropdown tetap berfungsi */
    .dropdown-item:hover, .dropdown-item:focus {
        background-color: #f0f0f0; 
        color: #d6336c;
    }
}
/* ----------------------------------------------------------------- */


.carousel-item img {
    height: 90vh;
    object-fit: cover;
}

/* ... Sisa CSS di bawah tidak berubah ... */
.carousel-caption {
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
}

footer {
    background-color: #222;
    color: #bbb;
    text-align: center;
    padding: 20px 10px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    box-shadow: inset 0 1px 0 #444;
    user-select: none;
}

.navbar-brand span {
    color: #d6336c;
    letter-spacing: 1.2px;
}

.nav-link {
    color: #444 !important;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link:focus {
    color: #d6336c !important;
    text-decoration: none;
}

.dropdown-menu {
    border-radius: 10px;
    background: #fff;
    min-width: 12rem;
    padding: 0.5rem 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: top center;
}

.dropdown-item {
    font-weight: 500;
    color: #444;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.dropdown-menu.shadow {
    box-shadow: 0 8px 20px rgba(214, 51, 108, 0.25);
}
/* listening */
.scoped-css2 body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f0f4f8;
  padding: 20px;
  max-width: 700px;
  margin: auto;
}

.scoped-css2 h1 {
  text-align: center;
  margin-bottom: 30px;
}

.scoped-css2 .item {
  background: white;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.scoped-css2 .top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.scoped-css2 .chinese {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: #222;
  flex: 1;
  margin-right: 10px;
}

.scoped-css2 .play-btn {
  background: #1a73e8;
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 22px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.3s ease;
}

.scoped-css2 .play-btn:hover {
  background: #0f5cc9;
}

.scoped-css2 .source {
  font-size: 13px;
  color: #666;
  margin-left: 4px;
}

.scoped-css2 .source a {
  color: #1a73e8;
  text-decoration: none;
}

.scoped-css2 .source a:hover {
  text-decoration: underline;
}

.listening .toggle-btn {
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  margin-left: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
}

.listening .toggle-btn:hover {
  background: #5a6268;
}
.scoped-css2 .btn-group button {
  min-width: 130px;
}

.scoped-css2 .listening-text {
  margin-bottom: 8px;
}

.scoped-css2 .hanzi {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.scoped-css2 .pinyin {
  font-style: italic;
  color: #555;
  margin-bottom: 4px;
}

.scoped-css2 .english,
.scoped-css2 .indonesian {
  margin-bottom: 2px;
}

.scoped-css2 .source {
  font-size: 0.85rem;
  color: #666;
}

.scoped-css2 .item {
  display: flex;
  flex-wrap: wrap; /* kalau kecil bisa turun */
  gap: 0.5rem; /* jarak antar tombol dan elemen */
  align-items: center;
}
.scoped-css2 .btn {
  width: auto !important;
  min-width: 0 !important; /* hilangkan min-width default Bootstrap */
  padding-left: 0.5rem;  /* sesuaikan padding */
  padding-right: 0.5rem;
  white-space: nowrap; /* supaya teks tidak terpotong */
}

/* === css podcast === */
.learn-chinese-slider-title {
  text-align: center;
  margin: 40px 20px 30px;
  font-weight: 700;
  font-size: 2.5rem;
  color: #073763;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.15);
}

.learn-chinese-slider-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 15px 40px;
  max-width: 1200px;
  margin: 0 auto 60px;
  align-items: flex-start;
}

.learn-chinese-slider-container::-webkit-scrollbar {
  height: 8px;
}
.learn-chinese-slider-container::-webkit-scrollbar-thumb {
  background: #4a90e2aa;
  border-radius: 4px;
}
.learn-chinese-slider-container::-webkit-scrollbar-track {
  background: transparent;
}

.learn-chinese-slider-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  flex: 0 0 280px;
  max-width: 280px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  user-select: none;
  height: 220px;
}
.learn-chinese-slider-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-6px);
}
.learn-chinese-slider-card.active {
  flex: 0 0 700px;
  max-width: 700px;
  cursor: default;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.25);
  transform: translateY(-8px);
  height: 460px;
}

.learn-chinese-slider-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 18px 20px 12px;
  color: #074a9c;
  line-height: 1.3;
  flex-shrink: 0;
}

.learn-chinese-slider-card iframe {
  border: none;
  width: 100%;
  height: 160px;
  border-radius: 0 0 15px 15px;
  pointer-events: none;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.learn-chinese-slider-card.active iframe {
  height: 420px;
  pointer-events: auto;
}

/* Responsive */
@media (max-width: 900px) {
  .learn-chinese-slider-card {
    flex: 0 0 90vw;
    max-width: 90vw;
    height: 220px;
  }
  .learn-chinese-slider-card.active {
    max-width: 95vw;
    flex: 0 0 95vw;
    height: 420px;
  }
  .learn-chinese-slider-card iframe {
    height: 160px;
  }
  .learn-chinese-slider-card.active iframe {
    height: 360px;
  }
}

@media (max-width: 480px) {
  .learn-chinese-slider-title {
    font-size: 1.8rem;
    margin: 25px 15px 20px;
  }
  .learn-chinese-slider-card h2 {
    font-size: 1rem;
    margin: 12px 15px 8px;
  }
}

/* speaking */

.latihan-mandarin h2 { color: #1e3a8a; margin-bottom: 25px;
  margin-top: 30px;
  text-align: center;
 }

/* Gaya Dropdown */
.latihan-mandarin select {
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid #007bff;
    background: #fff;
    margin: 15px 0;
    cursor: pointer;
    min-width: 300px;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,...');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    text-align: left;
}

.latihan-mandarin .dialog-container {
    max-width: 750px;
    margin: 20px auto;
    padding: 20px;
    border: 2px solid #007bff;
    border-radius: 10px;
    background: #ffffff;
    text-align: left;
}

.latihan-mandarin .dialog-line {
    padding: 15px;
    margin: 10px 0;
    border-bottom: 1px dashed #ccc;
    cursor: pointer;
    transition: background 0.2s;
}

.latihan-mandarin .dialog-line:last-child { border-bottom: none; }
.latihan-mandarin .dialog-line:hover { background-color: #f0f8ff; }

.latihan-mandarin .dialog-line.active {
    border-left: 5px solid #ff4500;
    background-color: #fff0f0;
    font-weight: bold;
}

.latihan-mandarin .line-hanzi { font-size: 20px; font-weight: bold; color: #1e3a8a; }
.latihan-mandarin .line-pinyin { font-size: 14px; color: #555; margin: 3px 0; }
.latihan-mandarin .line-translation { font-size: 12px; color: #777; font-style: italic; }

.latihan-mandarin .controls { text-align: center; margin-top: 20px; }

.latihan-mandarin #paginationControls {
    margin: 10px auto;
    max-width: 400px;
}

.latihan-mandarin #paginationControls button {
    padding: 8px 15px;
    margin: 0 5px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.latihan-mandarin #paginationControls button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.latihan-mandarin #statusMessage { margin-top: 15px; font-size: 18px; color: #555;
  text-align: center;
}

.latihan-mandarin #listenBtn {
    padding: 12px 25px;
    background: #1e3a8a;
    color: white;
    border: none;
    font-size: 18px;
    opacity: 1;
    cursor: pointer;
    margin-bottom: 50px;
}

/* Gaya loading visual (spinner sederhana) */
.latihan-mandarin .loading::after {
    content: ' ⏳';
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* pinyin chart */
.pinyin-audio-chart {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f8f9fa;
  padding: 20px;
}
.pinyin-audio-chart h2 {
  text-align: center;
  margin-bottom: 20px;
}
.pinyin-audio-chart .pinyin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 8px;
  max-width: 800px;
  margin: 0 auto;
}
.pinyin-audio-chart .pinyin-item {
  background: white;
  border: 1px solid #ccc;
  padding: 8px;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
}
.pinyin-audio-chart .pinyin-item:hover {
  background: #e6f7ff;
}
.pinyin-audio-chart .tone-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 10;
  white-space: nowrap;
}
.pinyin-audio-chart .tone-menu button {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
}
.pinyin-audio-chart .tone-menu button:hover {
  background: #f0f0f0;
}

/* Book */
.mandarin-book-reader .book-embed {
  margin-bottom: 30px;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.mandarin-book-reader .book-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 8px;
}
.mandarin-book-reader button {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}
.mandarin-book-reader button:hover {
  background: #0056b3;
}
.mandarin-book-reader iframe {
  display: none;
  margin-top: 15px;
  border: none;
  width: 100%;
  height: 500px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Modul */
.modul .book-embed { margin-bottom: 30px; padding: 15px; background: #fff; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.modul .book-title { font-size: 1.2rem; font-weight: bold; margin-bottom: 8px; }
.modul button { background: #007bff; color: #fff; border: none; padding: 8px 14px; border-radius: 5px; cursor: pointer; }
.modul button:hover { background: #0056b3; }
.modul iframe { display: none; margin-top: 15px; border: none; width: 100%; height: 500px; }

/* Writing */
.hanzi-quiz-app {
  font-family: Arial, sans-serif;
  background: #f0f2f5;
  margin: 0;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hanzi-quiz-app h2 {
  margin-bottom: 10px;
}

.hanzi-quiz-app .char-section {
  display: flex;
  gap: 50px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.hanzi-quiz-app .writer-box {
  text-align: center;
}

.hanzi-quiz-app .writer-box .title {
  font-weight: bold;
  margin-bottom: 10px;
}

.hanzi-quiz-app .writer {
  width: 300px;
  height: 300px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
}

.hanzi-quiz-app .controls {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}

.hanzi-quiz-app .controls label {
  font-size: 14px;
}

.hanzi-quiz-app .controls button {
  padding: 6px 12px;
  border-radius: 4px;
  border: none;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  margin-top: 5px;
}

.hanzi-quiz-app .controls button:hover {
  background-color: #0056b3;
}

.hanzi-quiz-app #character-form {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.hanzi-quiz-app #character-select {
  font-size: 20px;
  text-align: center;
  width: 60px;
  margin-right: 10px;
  padding: 6px;
}
.hanzi-quiz-app .writer {
  width: 300px;
  height: 300px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
}

/* Flashcard */
.flashcard-app {
  background-color: #f0f2f5;
  color: #363535;
  text-align: center;
  padding-top: 50px;
  font-family: Arial, sans-serif;
}

.flashcard-app .card-wrapper {
  perspective: 1000px;
  max-width: 350px;
  margin: 0 auto 20px;
}

.flashcard-app .flashcard {
  width: 100%;
  height: 250px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  cursor: pointer;
  margin: 0 auto;
  max-width: 320px;
}

.flashcard-app .flashcard.flipped {
  transform: rotateY(180deg);
}

.flashcard-app .card-front,
.flashcard-app .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background-color: #d1e7dd;
  color: #000;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  font-size: 2.5rem;
  user-select: none;
}

.flashcard-app .card-back {
  transform: rotateY(180deg);
  background-color: #f8f9fa;
  color: #222;
  font-size: 1.2rem;
  padding: 1.5rem 2rem;
}

.flashcard-app .pinyin {
  font-size: 1.3rem;
  color: #555;
  margin: 0.5rem 0;
}

.flashcard-app .meaning {
  font-size: 1rem;
  color: #222;
  margin: 0.3rem 0;
}

.flashcard-app .indonesian {
  font-size: 0.9rem;
  color: #444;
  margin: 0.3rem 0;
}

.flashcard-app .buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

/* Optional override button style only inside flashcard-app */
.flashcard-app button {
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #0d6efd;
  background: transparent;
  color: #0d6efd;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.flashcard-app button:hover {
  background-color: #0d6efd;
  color: white;
}

/* Home */
.hsk-level-app body {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #e0f7fa;
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hsk-level-app .container {
  max-width: 600px;
}

.hsk-level-app h1 {
  font-weight: 700;
  font-size: 3rem;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hsk-level-app .btn-level {
  background: linear-gradient(135deg, #43cea2, #185a9d);
  border: none;
  color: #e0f7fa;
  font-weight: 600;
  font-size: 1.25rem;
  padding: 1.1rem 0;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(67, 206, 162, 0.4);
  transition: all 0.3s ease;
  user-select: none;
}

.hsk-level-app .btn-level:hover,
.hsk-level-app .btn-level:focus {
  background: linear-gradient(135deg, #185a9d, #43cea2);
  color: #fff;
  box-shadow: 0 6px 14px rgba(67, 206, 162, 0.7);
  transform: translateY(-4px);
  text-decoration: none;
  outline: none;
}

.hsk-level-app .row > div {
  padding: 0.5rem;
}

@media (max-width: 576px) {
  .hsk-level-app h1 {
    font-size: 2.2rem;
  }

  .hsk-level-app .btn-level {
    font-size: 1rem;
    padding: 0.8rem 0;
  }
}

/* Quiz */
.quiz .container { background: white; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); max-width: 480px; width: 100%; padding: 30px 40px; text-align: center; }
.quiz h1 { margin-bottom: 25px; color: #00796b; }
.quiz #levelButtonContainer button { background: #004d40; color: white; border: none; border-radius: 6px; padding: 12px 25px; margin: 6px 8px; font-size: 16px; cursor: pointer; transition: background 0.3s ease; }
.quiz #levelButtonContainer button:hover { background: #00796b; }
.quiz #quizContainer { display: none; }
.quiz #hanzi { font-size: 40px; font-weight: 700; color: #004d40; margin-bottom: 10px; user-select: none; }
.quiz #pinyin { font-size: 20px; color: #00796b; margin-bottom: 10px; font-style: italic; user-select: none; }
.quiz .translation-info { font-size: 14px; color: #555; margin-bottom: 15px; }
.quiz #ttsBtn { background-color: #00796b; color: white; border: none; padding: 8px 14px; border-radius: 50%; font-size: 20px; cursor: pointer; vertical-align: middle; transition: background-color 0.3s ease; margin-bottom: 20px; }
.quiz #ttsBtn:hover:not(:disabled) { background-color: #004d40; }
.quiz #ttsBtn:disabled { background-color: #b2dfdb; cursor: not-allowed; }
.quiz #result { font-size: 18px; margin: 12px 0 18px; min-height: 24px; font-weight: 600; user-select: none; }
.quiz #inputContainer { margin-bottom: 20px; }
.quiz #answerInput { padding: 12px 15px; font-size: 20px; width: 70%; border: 2px solid #00796b; border-radius: 8px; outline-offset: 2px; transition: border-color 0.3s ease; text-align: center; font-family: 'Noto Sans SC', sans-serif; }
.quiz #answerInput:focus { border-color: #004d40; }
.quiz #submitBtn { background: #00796b; color: white; border: none; padding: 12px 20px; font-size: 16px; margin-left: 12px; border-radius: 8px; cursor: pointer; transition: background-color 0.3s ease; }
.quiz #submitBtn:disabled { background: #80cbc4; cursor: not-allowed; }
.quiz #submitBtn:hover:not(:disabled) { background: #004d40; }
.quiz #nextBtn { background: #004d40; color: white; border: none; padding: 14px 25px; font-size: 18px; border-radius: 8px; cursor: pointer; transition: background-color 0.3s ease; user-select: none; margin-bottom: 20px; }
.quiz #nextBtn:disabled { background: #b2dfdb; cursor: not-allowed; }
.quiz #nextBtn:hover:not(:disabled) { background: #00796b; }
.quiz #scoreDisplay { font-size: 18px; color: #004d40; font-weight: 700; margin-bottom: 20px; user-select: none; }
.quiz #restartBtn { background: transparent; border: 2px solid #00796b; color: #00796b; padding: 10px 18px; border-radius: 6px; font-size: 15px; cursor: pointer; transition: all 0.3s ease; user-select: none; }
.quiz #restartBtn:hover { background-color: #00796b; color: white; }