.quiz-height-wrapper {
 min-height: 600px;
 border-top-left-radius: 12px;
 border-top-right-radius: 12px;
}

.lesson-index-read {
  font-size: 16px;
  padding-left: 16px;
  margin-bottom: 30px;
  padding-top: 18px;
}

.quiz-section {
  text-align: center;
  width: 100%;
  min-height: 420px;
}

.lesson-main-button {
  background-color: #f7fbff;
  font-size: 16px;
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Arial, Helvetica, sans-serif;
  border: 1px solid #6a889e;
  margin: 6px;
  box-shadow: 2px 2px 4px rgba(0, 112, 192, 0.15);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.lesson-main-button:hover {
  background-color: #e7f8ff;
}

.lesson-main-button:active {
  background-color: #cfefff;
}
    
/* 顏色與角色設定 */
.question-number {
  font-size: 28px; 
    color: #0066cc; 
    font-weight: bold;
    margin-right: 12px;
    position: relative;
    top: 4px; /* 表示這整塊向下移動 */
    display: inline-block;
  text-align: left;
   width: 90px;
  font-family:Arial, Helvetica, sans-serif;
}

.score-text {
  color:#333;
  font-size: 16px;
}

.score-timer {
  background-color:#ffe1a8;
    width: 116px;
    display: inline-block;
    text-align: center;
    padding: 8px 0;
    margin-right: 12px;
    font-size: 16px;
  }

.answer-correct {
    color:#1139be;
    display: inline-block;
    width: 90px;
    text-align: center;
    background-color: #d0f6ff;
    padding: 8px 0;
    margin-right: 12px;
    font-size: 16px;
    font-weight: normal !important;
  }

.answer-wrong {
  color:#d11b2a;
  display: inline-block;
  width: 90px;
  background-color:#efe2ff;
  padding: 8px 0;
  margin-right: 12px;
  font-size: 16px;
   font-weight: normal !important;
  }

.question-area {
  margin: 20px auto;
  width: 100%;
  min-height: 250px; /* ✅ 加一個最小高度，避免背景圖被內容拉低或撐破 */
  background-image: url("/images/vocabulary/bravo.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 36%;           /* 小貓會縮小！ */
  background-position: left 12% center; /* 小貓位置微調 */
}

.options {
  width: 100%;
  display: flex;
  justify-content: center;
}

.choice-control {
  width: 500px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 12px;
  margin-top: 12px;
}

.choice-control button {
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 4px auto;
  padding: 8px 6px;
  font-size: 20px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  text-align: left;
  width: 100%;
  background-color: transparent;
  white-space: nowrap;       /* 不換行 */
  overflow: hidden;         /* 超出隱藏 */
  text-overflow: ellipsis;  /* 超出顯示 ... */
}

.choice-control button:hover {
  background-color: #f1f1f1;
}

.choice-control button.correct {
  color: #0233b9;
}

.choice-control button.incorrect {
   color: #c70505;
}

.controls {
margin-top: 20px;
}

.end-message {
  font-size: 20px;
  color: #e96c05;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 12px;
}

 
   
.button-description {
  font-size: 16px;
  color: #4f4e5e;
  margin-top: 18px;
}
   

.word-hint-wrap {
  display: inline-flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  margin-left: 8px;
  align-items: center;
}

#wrongListArea {
  margin-top: 36px;
  margin-right: 20%;
  margin-left: 20%;
  text-align: left;
  margin-bottom: 36px;
  background-color:#fcfddc;
}

/* 錯誤列表標題 */
.wrong-list-title {
  font-size: 18px;
  padding-bottom: 6px;
  padding-top: 6px;
  font-weight: bold;
  color:#413c37;
  background-color:#f3c674;
  margin-bottom:12px;
  padding-left: 6px;
}

.icon-check {
  font-size: 22px;
  color:#059605;
}

.icon-blue {
  color:#317ace;
  font-size: 18px;         
  display: inline-block;        
  line-height: 1;              
  transform: translateY(0px);  
}  

/* 題目中文字 */
.question-word {
  font-size: 32px;
  font-weight: bold;
  text-align: left;
  width: 490px;
  margin: 0 auto 16px auto;
}

.wrong-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 9px;
  padding-left: 6px;
}

.wrong-word-checkbox {
  cursor: pointer;               
  transform: scale(1.2);         
  width: 16px;
  height: 16px;
  accent-color: #f4c542; 
  margin-right: 3px;
  vertical-align: middle;
  position: relative;
  top: 1px;
}

/* 點選之後 */
.wrong-word-checkbox:checked {
  accent-color: #ffb74d; 
}

/* 額外加 hover 效果： */
.wrong-word-checkbox:hover {
  transform: scale(1.3);
  transition: transform 0.2s ease;
}

.wrong-number {
  font-size: 19px;
  margin-right: 3px;
}

.wrong-word {
  font-size: 22px;
  margin-right: 6px;
}

.wrong-meaning {
  font-size: 18px;
}

.mistake-zero {
  font-size: 20px;
  font-weight: bold;
  color:#1549da;
}

#nextBtn {
  background-color: #f7fbff;
  color: #333;
  font-family: Arial, Helvetica, sans-serif;
  border: 1px solid #6a889e;
  cursor: pointer;
  opacity: 1;
}

#nextBtn:disabled {
  background-color: #f7fbff;
  color: #333;
  cursor: pointer;
  opacity: 1;
  border: 1px solid #6a889e;
}

#nextBtn:disabled:hover {
  background-color: #e7f8ff;
}

#nextBtn:disabled:active {
  background-color: #cfefff;
}

#nextBtn:not(:disabled):hover {
  background-color: #e7f8ff;
}

#nextBtn:not(:disabled):active {
  background-color: #cfefff;
}


#reviewBtn:disabled {
  background-color: #f7fbff;
  color: #333;
  cursor: pointer;
  opacity: 1;
  border: 1px solid #6a889e;
}

#reviewBtn:disabled:hover {
  background-color: #e7f8ff;
}

#reviewBtn:disabled:active {
  background-color: #cfefff;
}

#reviewBtn:not(:disabled):hover {
  background-color: #e7f8ff;
}

#reviewBtn:not(:disabled):active {
  background-color: #cfefff;
}

.stats-wrapper {
  display: flex;
  align-items: center;
  gap: 12px; /* 元素間距，可依需求調整 */
  flex-wrap: wrap; /* 手機版自動換行 */
   justify-content: center;
  min-height: 50px;
}

.quiz-instructions-wrapper {
  padding-top: 0px;
  min-height: 500px; /* 這是使用說明的高度，最後再設定 */
  padding-left: 80px;
  padding-right: 80px;
}


/* 小筆電：1366px 以下 */
@media (max-width: 1366px) {

/* 英文字題目 */
.question-word {
  font-size: 28px;
  width: 486px;
  margin-bottom: 14px;
}

.question-area {
  margin-top: 12px;
  margin-bottom: 12px;
   min-height: 240px; 
}

.choice-control button {
  font-size: 18px;
  padding: 6px 6px;
}

.lesson-main-button {
  font-size: 16px;
  padding: 9px 14px;
}

.quiz-height-wrapper {
 min-height: 550px;
}

.wrong-list-title {
 font-size: 20px;
}

.wrong-meaning {
  font-size: 17px;
}

} /* 結尾 */

/* 大螢幕：1920px 以上，讓字稍微放大，看起來不太鬆 */
@media (min-width: 1920px) {

.listen-carefully { 
  font-size: 32px;
  width: 546px;
}

/* 對答案的英文字 */
.listen-word-answer { 
  font-size: 32px;
  width: 546px;
}

.choice-control button {
  font-size: 22px;
}

.lesson-main-button {
  font-size: 20px;
  padding: 10px 16px;
}

.quiz-height-wrapper {
 min-height: 550px;
}

.wrong-list-title {
 font-size: 22px;
}

.wrong-meaning {
  font-size: 20px;
}

.question-bank-title {
  font-size: 32px;
}

.lesson-index-read {
  font-size: 20px;
}

.question-number {
  font-size: 32px; 
  position: relative;
  top: 4px; /* 表示這整塊向下移動 */
  width: 100px;
}

.score-timer {
  width: 132px;
  font-size: 20px;
}

.answer-correct {
  width: 106px;
  font-size: 20px;
}

.answer-wrong {
  width: 108px;
  font-size: 20px;
}

.score-text {
  font-size: 20px;
}

.stats-wrapper {
  padding-bottom: 12px;
}

.choice-control {
  width: 560px;
  margin-bottom: 24px;
  margin-top: 12px;
}

.choice-control button {
  font-size: 23px;
  font-weight: bold;
  color:#444;
}

.button-description {
 font-size: 20px;
 margin-top: 18px;
}

#wrongListArea {
  margin-top: 50px;
  margin-bottom: 50px;
}

/* 錯誤列表標題 */
.wrong-list-title {
  font-size: 22px;
}

.quiz-instructions-wrapper {
  padding-top: 24px;
}

.wrong-number {
  font-size: 22px;
}

.wrong-word {
  font-size: 24px;
}

.wrong-meaning {
  font-size: 20px;
}

.wrong-item {
  padding-bottom: 12px;
}

.mistake-zero {
  font-size: 22px;
}

.end-message {
  font-size: 22px;
}

.question-word {
  font-size: 35px;
  width: 546px;
  color:#3d356a;
}

} /* 結尾 */