.quiz-section {
  text-align: center;
  width: 100%;
  background-image: url("/images/vocabulary/cheers.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 38%;           /* 小貓會縮小！ */
  background-position: left 11% center; /* 小貓位置微調 */
  min-height: 430px;
}

.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;
}

/* 中文題目 */
.definition {
  font-size: 28px;
  font-weight: bold;
  width: 100%;
  max-width: 1000px;
  text-align: center;
  margin: 0 auto;  
  min-height: 70px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; 
}

.definition::after {
  content: '';
  display: block;
  height: 40px;
}

/* 輸入區上面對答案的區塊 */
.feedback-row {
  display: flex;
  justify-content: space-between;
  max-width: 78%;
  margin: 10px auto;
  min-height: 40px;
  text-align: left;
  padding-top: 10px; 
}

.feedback-left,
.feedback-center,
.feedback-right {
  width: 33%;
  font-size: 20px;
}

.feedback-left {
  text-align: left;
  padding-left: 3px;
  font-size: 20px;
}

.feedback-left.wrong { 
  color: red; 
}
    
.feedback-left.correct { 
  color: green; 
}
    
.feedback-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
    
#finalMessage {
  color: #da5801;
  font-size: 20px;
  font-weight: bold;
}

#answerInput {
  font-size: 40px;
  padding-top: 12px; 
  padding-bottom: 12px;
  width: 78%;
  text-align: center;
  color: #333;
  outline: none;
  transition: none;
  user-select: none;
  border-radius: 6px;
  border: 1px solid #b4b4b4;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input:disabled {
  background-color: #fffefd;
  opacity: 1; 
  cursor: default; 
}

.brief-instructions {
  font-size: 16px;
  margin-top: 18px;
  color: #444;
}

.buttons {
  margin-top: 20px;
}
    
.buttons button.disabled {
  pointer-events: none;
  opacity: 1;
}

.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;
}

.icon-blue {
  color:#317ace;
  font-size: 18px;         
  display: inline-block;        /* 轉成盒子 */
  line-height: 1;               /* 避免拉高行距 */
  transform: translateY(0px);   /* 微調視覺置中（可依實際微調 1~2px） */
}  

.icon-answer-correct {
  color:#2aad0f;
  font-size: 22px;         
  display: inline-block;        
  line-height: 1;               
  transform: translateY(1px);   
}

.icon-answer-wrong {
  color:#c40e1d;
  font-size: 22px;         
  display: inline-block;        
  line-height: 1;               
  transform: translateY(1px);   
}

.answer-wrong-word {
  color: #041180; 
  font-size: 23px;
  font-weight: bold;
  margin-left: 3px;
}

#wrongListContainer {
  margin-top: 24px;
  margin-left: 20%;
  margin-right: 20%;
  text-align: left;
  font-size: 20px;
  color: #333;
  display: none;
  line-height: 36px;
  background-color:#fcfddc;
}

.wrong-words-title {
  font-size: 18px;
  padding-bottom: 6px;
  padding-top: 6px;
  font-weight: bold;
  color:#413c37;
  background-color:#f3c674;
  padding-left: 6px;
  margin-bottom:12px;
}

/* 錯誤列表的內容距離 */
.wrong-words-content {
  padding-left: 12px;  
  padding-bottom: 12px;
}

.wrong-word-checkbox {
  cursor: pointer;               
  transform: scale(1.2);         
  width: 16px;
  height: 16px;
  accent-color: #f4c542;   
  margin-right: 6px;
  vertical-align: middle;
  position: relative;
  top: -2px;
}

/* 點選之後 */
.wrong-word-checkbox:checked {
  accent-color: #ffb74d;      
}

.mistake-zero {
  font-size: 20px;
  font-weight: bold;
  color:#1549da;
}

.lesson-main-button-section {
  margin-top: 20px;
}

.stats-wrapper {
  display: flex;
  align-items: center;
  gap: 12px; 
  flex-wrap: wrap; 
  justify-content: center;
  margin-bottom: 90px;
  min-height: 42px;
}

.quiz-instructions-wrapper {
  padding-top: 45px;
  min-height: 500px; /* 這是使用說明的高度，最後再設定 */
  padding-left: 80px;
  padding-right: 80px;
}

.question-bank-title {
  text-align:center;
  padding-top: 36px;
  font-size: 30px;
  font-weight: bold;
  padding-bottom: 24px;
}

/* 小筆電：1366px 以下 */
@media (max-width: 1366px) {

.question-number {
  font-size: 26px; 
  margin-right: 6px;
} 

.stats-wrapper {
  margin-bottom: 70px;
}

#answerInput {
  font-size: 36px;
  padding-top: 10px; 
  padding-bottom: 10px;
}

.feedback-left {
  padding-left: 3px;
  font-size: 17px;
}

#wrongListContainer {
  margin-top: 36px;
  margin-left: 18%;
  margin-right: 18%;
  font-size: 18px;
  line-height: 34px;
}

.wrong-words-title {
  font-size: 20px;
}

.lesson-main-button {
  font-size: 16px;
  padding: 9px 14px;
}

/* 中文題目 */
.definition {
  font-size: 26px;
}

.question-bank-title {
  font-size: 28px;
}

} /* 結尾 */


/* 大螢幕：1920px 以上，讓字稍微放大，看起來不太鬆 */
@media (min-width: 1920px) {

.question-number {
  font-size: 32px; 
  margin-right: 12px;
  width: 100px;
} 

.stats-wrapper {
  padding-top: 3px;
  margin-bottom: 110px;
}

.score-text {
   font-size: 20px;
}

.score-timer {
  width: 132px;
  padding: 8px 0;
  margin-right: 12px;
  font-size: 20px;
}

.answer-correct {
  width: 106px;
  font-size: 20px;
}

.answer-wrong {
 width: 108px;
  font-size: 20px;
}

#answerInput {
  font-size: 45px;
  padding-top: 13px;
  padding-bottom: 13px;
}

.feedback-left {
  padding-left: 3px;
  font-size: 23px;
}

.answer-wrong-word {
  font-size: 26px;
}

#wrongListContainer {
  margin-top: 36px;
  margin-left: 18%;
  margin-right: 18%;
  line-height: 42px;
}

.wrong-words-title {
  font-size: 22px;
}

.wrong-words-content {
  padding-left: 12px;
  padding-bottom: 24px;
}

.wrong-list-number {
  font-size: 21px;
  padding-right: 6px;
}

.wrong-list-chinese {
  font-size: 20px;
  padding-right: 5px;
}

.wrong-list-word {
  font-size: 24px;
}

.lesson-main-button {
  font-size: 20px;
  padding: 10px 16px;
}

/* 中文題目 */
.definition {
  font-size: 32px;
}

.question-bank-title {
  padding-top: 40px;
  font-size: 36px;
  padding-bottom: 30px;
}

.brief-instructions {
  font-size: 20px;
}

#finalMessage {
  font-size: 24px;
}

} /* 結尾 */