body {
  font-family: Arial, sans-serif;
  background-color: #f4f6f8;
  margin: 0;
  padding: 20px;
}

#onlineCount {
  position: fixed;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.8);
  color: #000; /* chữ đen */
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}
#onlineCount b {
  color: #ff0000; /* số online màu đỏ cho nổi */
}

h1 {
  text-align: center;
  color: #333;
}

form {
  display: block;
  margin-top: 0;
  unicode-bidi: isolate;
}

.part {
  box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 5px;
  max-width: 800px;
  background: rgb(255, 255, 255);
  padding: 20px;
  border-radius: 10px;
  margin: auto;
}

h2 {
  color: #444;
}

.question {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fafafa;
}

.question p {
  margin: 8px 0;
}

label {
  display: block;
  margin: 5px 0;
  cursor: pointer;
}

input[type="radio"] {
  margin-right: 8px;
}

.correct {
  color: red;
  font-weight: bold;
}

button {
  background-color: #4caf50;
  color: white;
  padding: 12px 18px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  display: block;
  margin: 20px auto;
}

button:hover {
  background-color: #45a049;
}

.reading-passage {
  background-color: #f5f9ff;
  border-left: 4px solid #3498db;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.5;
}

.question {
  background: #fff;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: 0.3s;
}
.question:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.question input[type="text"] {
  padding: 5px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.3s;
}
.question input[type="text"]:focus {
  border-color: #3498db;
}

.show-answer {
  margin-top: 5px;
  font-style: italic;
  color: #2c7be5;
}

/* Kết quả tổng */
.result {
  margin-top: 10px;
  font-weight: bold;
  font-size: 15px;
  color: #333;
}

/* Nút bấm */
.btn-container {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.btn-container button {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  background-color: #3498db;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}
.btn-container button:hover {
  background-color: #2c80b4;
}

/* Đúng */
.correct-answer {
  color: #28a745; /* xanh lá */
  font-weight: bold;
}
.wrong-answer {
  color: #dc3545; /* đỏ tươi */
  font-weight: bold;
}

/* Phần tiêu đề câu hỏi */
#part6 .question {
  margin-bottom: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #ddd;
}

/* Nội dung đề bài */
#part6 .question b {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  color: #333;
}

#part6 .question-text {
  display: block;
  margin-bottom: 12px;
  font-style: italic;
  color: #555;
}

/* Word bank (các từ) */
#part6 .word-bank {
  background: #eef4ff;
  border: 1px dashed #8cb4ff;
  padding: 10px;
  border-radius: 8px;
  min-height: 45px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#part6 .word {
  display: inline-block;
  padding: 6px 10px;
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: grab;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

#part6 .word:hover {
  background: #f0f8ff;
}

/* Khu vực drop */
#part6 .drop-area {
  background: #fff5e6;
  border: 1px dashed #ffa64d;
  padding: 10px;
  border-radius: 8px;
  min-height: 45px;
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#part6 .drop-area .word {
  background: #fff;
  border-color: #ffa64d;
}

/* Nút điều khiển */
#part6 .btn-container {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

#part6 .btn-container button {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background: #4d94ff;
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

#part6 .btn-container button:hover {
  background: #397ae6;
}

/* Kết quả */
#part6 .result {
  margin-top: 10px;
  font-weight: bold;
}

.part:not(#part6) {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  margin: 25px auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.part:not(#part6):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.part:not(#part6) h2 {
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 8px;
  margin-bottom: 20px;
  color: #2c7be5;
}

.part:not(#part6) .question {
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e6e6e6;
  background: #fafafa;
  margin-bottom: 18px;
  transition: box-shadow 0.2s ease;
}

.part:not(#part6) .question:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.part:not(#part6) label {
  padding: 6px 10px;
  display: block;
  border-radius: 6px;
  transition: background 0.2s;
}

.part:not(#part6) label:hover {
  background: #eef6ff;
}

.part:not(#part6) input[type="text"] {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.part:not(#part6) .result {
  font-size: 15px;
  margin-top: 12px;
  font-weight: bold;
}

.btn-back {
  text-align: center;
  margin: 20px 0;
}

.btn-back button {
  background-color: #2c7be5;
  color: white;
  border: none;
  padding: 10px 18px;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-back button:hover {
  background-color: #1a5bb8;
}
.word {
  display: inline-block;
  background: #eef;
  border-radius: 6px;
  padding: 5px 8px;
  margin: 3px;
  cursor: pointer;
  transition: 0.2s;
}
.word:hover {
  background: #cde;
}
.drop-area {
  min-height: 50px;
  border: 2px dashed #aaa;
  padding: 5px;
  margin-top: 5px;
}
