/* assets/style.css */

#qagame-app {
  max-width: 600px;
  margin: 40px auto;
  font-family: 'Segoe UI', sans-serif;
  background: #fffef8;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.qagame-quiz h3 {
  text-align: center;
  margin-bottom: 10px;
}

#qagame-question-number {
  font-size: 18px;
  color: #555;
  margin-bottom: 10px;
}

#qagame-question {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}

#qagame-options button {
  display: block;
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  font-size: 16px;
  background-color: #e8f0fe;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

#qagame-options button:hover {
  background-color: #d2e3fc;
}

#qagame-timer {
  margin-top: 10px;
  font-size: 16px;
  color: #0073aa;
}

#qagame-result-box,
#qagame-ranking-box {
  text-align: center;
}

#qagame-score {
  font-size: 24px;
  color: #0073aa;
  font-weight: bold;
}

#qagame-name {
  padding: 8px;
  font-size: 16px;
  width: 60%;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
}

#qagame-submit-score {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #0073aa;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

#qagame-submit-score:hover {
  background-color: #005a8c;
}

#qagame-ranking-list {
  text-align: left;
  margin-top: 20px;
  padding-left: 20px;
  font-size: 16px;
}

#qagame-ranking-list li {
  margin-bottom: 6px;
  line-height: 1.4;
}

/* 在 assets/css/style.css 中確保有這些樣式 */
.option-btn.correct {
    border-color: #28a745 !important;
    background: rgba(40, 167, 69, 0.1) !important;
}

.option-btn.correct .option-label {
    background: #28a745 !important;
}

.option-btn.incorrect {
    border-color: #dc3545 !important;
    background: rgba(220, 53, 69, 0.1) !important;
}

.option-btn.incorrect .option-label {
    background: #dc3545 !important;
}

.option-btn.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* 確保禁用狀態下的按鈕不能點擊 */
.option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.feedback-container.show {
    display: block;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

[type=button]:focus, [type=button]:hover, [type=submit]:focus, [type=submit]:hover, button:focus, button:hover {

    color: #000 !important;
}