@charset "UTF-8";

.quiz-wrapper {
  display: flex;
}
.quiz-wrapper .sidebar-left {
  background-color: #f8f9fa;
  padding: 0 15px;
  width: 20%;
  height: calc(100vh - 60px);
  position: fixed;
  left: 0;
  top: 60px;
  overflow-y: auto;
}
.quiz-wrapper .sidebar-left h6 {
  position: sticky;
  top: -3px;
  background-color: #f8f9fa;
  padding-bottom: 11px;
  font-weight: bold;
  z-index: 1;
}
.quiz-wrapper .sidebar-left h6 span {
  padding-top: 10px;
}
.quiz-wrapper .sidebar-left:hover {
  scrollbar-width: thin;
}
.quiz-wrapper .sidebar-left::-webkit-scrollbar {
  width: 3px;
  background-color: transparent;
}
.quiz-wrapper .sidebar-left:hover::-webkit-scrollbar {
  background-color: transparent;
}
.quiz-wrapper .sidebar-left a {
  text-decoration: none;
  color: #000;
}
.quiz-wrapper .sidebar-left a.active {
  color: #fff;
  background-color: #007bff;
  padding: 5px 10px;
  border-radius: 5px;
}
.quiz-wrapper .content {
  width: 63%;
  padding: 0 20px;
  /* top right bottom left */
  margin-left: 20%;
  margin-right: 20%;
}
.quiz-wrapper .content .quiz-description {
  margin-bottom: 20px;
}
.quiz-wrapper .content .btn-back {
  margin-bottom: 5px;
  border: none;
  padding: 5px 5px;
  border-radius: 5px;
}
.quiz-wrapper .content .btn-back:hover {
  background-color: #ced4da;
}
.quiz-wrapper .content .question-box {
  background-color: #f8f9fa;
  color: #333;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  overflow-y: auto;
  position: relative;
  /* Để cho phép sử dụng absolute cho child */
}
.quiz-wrapper .content .question-box .info-icon {
  position: absolute;
  /* Đặt vị trí tuyệt đối cho biểu tượng chữ "q" */
  top: 5px;
  /* Cách từ đỉnh hộp câu hỏi */
  right: 20px;
  /* Cách từ bên phải hộp câu hỏi */
  color: white;
  /* Màu chữ */
  font-weight: bold;
  /* Chữ đậm */
  background-color: rgb(66, 155, 72);
  /* Màu nền */
  width: 14px;
  /* Chiều rộng của hình tròn */
  height: 14px;
  /* Chiều cao của hình tròn */
  border-radius: 50%;
  /* Tạo hình tròn */
  display: flex;
  /* Sử dụng flex để căn giữa nội dung */
  align-items: center;
  /* Căn giữa dọc */
  justify-content: center;
  /* Căn giữa ngang */
  font-size: 12px;
  /* Kích thước chữ */
  text-align: center;
  /* Căn giữa chữ */
  cursor: pointer;
}
.quiz-wrapper .content .question-box .info-icon:not(.question-icons .info-icon) {
  position: absolute;
  /* Đặt vị trí tuyệt đối cho biểu tượng chữ i */
  bottom: 5px;
  /* Cách từ đáy hộp câu hỏi */
  right: 20px;
  /* Cách từ bên phải hộp câu hỏi */
  color: white;
  /* Màu chữ */
  font-weight: bold;
  /* Chữ đậm */
  background-color: gray;
  /* Màu nền */
  width: 14px;
  /* Chiều rộng của hình tròn */
  height: 14px;
  /* Chiều cao của hình tròn */
  border-radius: 50%;
  /* Tạo hình tròn */
  display: flex;
  /* Sử dụng flex để căn giữa nội dung */
  align-items: center;
  /* Căn giữa dọc */
  justify-content: center;
  /* Căn giữa ngang */
  font-size: 12px;
  /* Kích thước chữ */
  text-align: center;
  /* Căn giữa chữ */
  margin-right: 1px;
  /* Khoảng cách giữa hình tròn và nội dung */
  margin-left: -14px;
  /* Khoảng cách giữa hình tròn và cạnh */
  margin-top: 0px;
  flex-shrink: 0;
  /* Ngăn hình tròn co lại khi nội dung dài */
  cursor: pointer;
  /* Cho phép chỉ thị khi hover */
}
.quiz-wrapper .content .question-box .info-icon:not(.question-icons .info-icon).description {
  background-color: #8a8f7b;
  /* Màu nền xanh lá cây */
  right: 5px;
  /* Lệch sang bên phải so với icon Q */
}
.quiz-wrapper .content .question-box .info-icon-q {
  position: absolute;
  /* Đặt vị trí tuyệt đối cho biểu tượng chữ "q" */
  top: 5px;
  /* Cách từ đỉnh hộp câu hỏi */
  right: 5px;
  /* Cách từ bên phải hộp câu hỏi */
  color: white;
  /* Màu chữ */
  font-weight: bold;
  /* Chữ đậm */
  background-color: rgb(66, 155, 72);
  /* Màu nền */
  width: 14px;
  /* Chiều rộng của hình tròn */
  height: 14px;
  /* Chiều cao của hình tròn */
  border-radius: 50%;
  /* Tạo hình tròn */
  display: flex;
  /* Sử dụng flex để căn giữa nội dung */
  align-items: center;
  /* Căn giữa dọc */
  justify-content: center;
  /* Căn giữa ngang */
  font-size: 12px;
  /* Kích thước chữ */
  text-align: center;
  /* Căn giữa chữ */
  cursor: pointer;
  /* Cho phép chỉ thị khi hover */
}
.quiz-wrapper .content .question-box h5 {
  margin-bottom: 15px;
}
.quiz-wrapper .content .question-box .question {
  font-size: 1.2em;
  margin-bottom: 10px;
}
.quiz-wrapper .content .question-box .options {
  margin-left: 20px;
}
.quiz-wrapper .content .question-box .options label.custom-option {
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 2px;
  padding-bottom: 2px;
  cursor: pointer;
  font-size: 16px;
  color: #333;
  margin-left: -25px;
  transition: all 0.3s ease;
}
.quiz-wrapper .content .question-box .options label.custom-option.done {
  background-position: left -60px !important;
  cursor: default !important;
}
.quiz-wrapper .content .question-box .options label.custom-option.selected {
  background-position: left -40px !important;
  font-weight: 700;
}
.quiz-wrapper .content .question-box .options label.custom-option.correct {
  color: #498e11;
}
.quiz-wrapper .content .question-box .options label.custom-option.incorrect {
  color: #900;
}
.quiz-wrapper .content .question-box .options label.custom-option:hover {
  background-color: #f4f4f4;
  /* Màu nền khi hover */
  border-radius: 8px;
  /* Bo góc */
}
.quiz-wrapper .content .question-box .options label.custom-option input[type=radio] {
  position: absolute;
  opacity: 0;
  /* Ẩn radio mặc định */
  cursor: pointer;
}
.quiz-wrapper .content .question-box .options label.custom-option input[type=radio]:checked + span::before {
  background-color: #3498db;
  /* Màu khi được chọn */
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
  /* Hiệu ứng phát sáng */
}
.quiz-wrapper .content .question-box .options label.custom-option input[type=radio]:checked + span {
  color: #3498db;
  /* Đổi màu văn bản */
}
.quiz-wrapper .content .question-box .options label.custom-option span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 20px;
  width: 20px;
  background-color: rgb(182, 178, 178);
  /* Màu mặc định */
  border-radius: 50%;
  /* Bo tròn */
  margin-right: 10px;
  transition: all 0.3s ease;
  /* Hiệu ứng chuyển đổi */
}
.quiz-wrapper .content .question-box .options label.custom-option .answer-text {
  display: inline-block;
  margin-left: 30px;
}
.quiz-wrapper .content .question-box .options label.custom-option .answer-text p {
  display: inline-block;
  white-space: normal;
  line-height: 1.2;
  margin: 0 !important;
}
.quiz-wrapper .content .question-box .options label.custom-option .answer-text p br {
  display: none;
}
.quiz-wrapper .content .question-box .options label.custom-option .answer-text p u {
  text-decoration: none;
  border-bottom: 2px outset #504242;
}
.quiz-wrapper .content .question-box .options label.custom-option .answer-explanation {
  display: none;
  font-size: 14px;
  color: #555;
  margin-top: 10px;
}
@media (min-width: 1024px) {
  .quiz-wrapper .content .question-box .options.two-line {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 cột */
    gap: 10px;
  }
  .quiz-wrapper .content .question-box .options.two-line label.custom-option {
    width: 100%;
    /* Mỗi đáp án sẽ chiếm 1 cột */
  }
}
.quiz-wrapper .content .question-box .options.single-line {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  /* Khoảng cách giữa các đáp án */
  justify-content: space-evenly;
  /* Phân phối đều các đáp án trên toàn bộ chiều rộng */
}
.quiz-wrapper .content .question-box .options.single-line label.custom-option {
  width: auto;
  /* Đảm bảo mỗi đáp án chiếm không gian cần thiết */
}
.quiz-wrapper .content .question-box .question-number {
  position: absolute;
  /* Đặt vị trí tuyệt đối cho biểu tượng chữ "q" */
  top: 17px;
  /* Cách từ đỉnh hộp câu hỏi */
  left: 8px;
  /* Cách từ bên phải hộp câu hỏi */
  color: white;
  /* Màu chữ */
  font-weight: bold;
  /* Chữ đậm */
  background-color: gray;
  /* Màu nền */
  width: 21px;
  /* Chiều rộng của hình tròn */
  height: 21px;
  /* Chiều cao của hình tròn */
  border-radius: 50%;
  /* Tạo hình tròn */
  display: flex;
  /* Sử dụng flex để căn giữa nội dung */
  align-items: center;
  /* Căn giữa dọc */
  justify-content: center;
  /* Căn giữa ngang */
  font-size: 9px;
  /* Kích thước chữ */
  text-align: center;
  /* Căn giữa chữ */
  flex-shrink: 0;
  /* Ngăn hình tròn co lại khi nội dung dài */
}
.quiz-wrapper .content .question-box .question-text {
  margin-left: 16px;
}
.quiz-wrapper .content .question-box p u {
  text-decoration: none;
  border-bottom: 2px outset #504242;
  /* Độ dày và màu sắc của gạch chân */
}
.quiz-wrapper .content .question-box .question-icons {
  position: absolute;
  bottom: 5px;
  right: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  /* Khoảng cách giữa các icon */
}
.quiz-wrapper .content .question-box .question-icons .translate-icon {
  color: white;
  /* Màu chữ */
  font-weight: bold;
  /* Chữ đậm */
  background-color: #1e90ff;
  /* Màu xanh dương cho translation */
  width: 14px;
  /* Chiều rộng của hình tròn */
  height: 14px;
  /* Chiều cao của hình tròn */
  border-radius: 50%;
  /* Tạo hình tròn */
  display: flex;
  /* Sử dụng flex để căn giữa nội dung */
  align-items: center;
  /* Căn giữa dọc */
  justify-content: center;
  /* Căn giữa ngang */
  font-size: 12px;
  /* Kích thước chữ */
  text-align: center;
  /* Căn giữa chữ */
  flex-shrink: 0;
  /* Ngăn hình tròn co lại khi nội dung dài */
  cursor: pointer;
  /* Cho phép chỉ thị khi hover */
  transition: all 0.3s ease;
}
.quiz-wrapper .content .question-box .question-icons .translate-icon:hover {
  background-color: #0066cc;
  transform: scale(1.1);
}
.quiz-wrapper .content .question-box .question-icons .translate-icon svg {
  width: 10px;
  height: 10px;
}
.quiz-wrapper .content .question-box .question-icons .gemini-icon {
  color: white;
  /* Màu chữ */
  font-weight: bold;
  /* Chữ đậm */
  background-color: #4285f4;
  /* Màu xanh Google cho Gemini */
  width: 14px;
  /* Chiều rộng của hình tròn */
  height: 14px;
  /* Chiều cao của hình tròn */
  border-radius: 50%;
  /* Tạo hình tròn */
  display: flex;
  /* Sử dụng flex để căn giữa nội dung */
  align-items: center;
  /* Căn giữa dọc */
  justify-content: center;
  /* Căn giữa ngang */
  font-size: 12px;
  /* Kích thước chữ */
  text-align: center;
  /* Căn giữa chữ */
  flex-shrink: 0;
  /* Ngăn hình tròn co lại khi nội dung dài */
  cursor: pointer;
  /* Cho phép chỉ thị khi hover */
  transition: all 0.3s ease;
}
.quiz-wrapper .content .question-box .question-icons .gemini-icon:hover {
  background-color: #3367d6;
  transform: scale(1.1);
}
.quiz-wrapper .content .question-box .question-icons .gemini-icon svg {
  width: 10px;
  height: 10px;
}
.quiz-wrapper .content .question-table-mobile {
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 5px;
}
.quiz-wrapper .content .question-table-mobile .btn {
  margin-top: 10px;
}
.quiz-wrapper .content .question-table-mobile .timer {
  display: flex;
  align-items: center;
  font-size: 16px;
}
.quiz-wrapper .content .question-table-mobile .timer i,
.quiz-wrapper .content .question-table-mobile .timer svg {
  margin-right: 5px;
  color: #333;
}
.quiz-wrapper .content .question-table-mobile .timer #timer-mobile {
  font-weight: bold;
  color: #e74c3c;
  /* Màu đỏ */
}
.quiz-wrapper .content .question-table-mobile .table tr {
  height: 30px;
  /* Chiều cao của mỗi hàng */
}
.quiz-wrapper .content .question-table-mobile .table td {
  padding: 3px;
  /* Khoảng cách bên trong các ô nhỏ hơn */
  width: 30px;
  /* Chiều rộng của mỗi ô */
  height: 30px;
  /* Chiều cao của mỗi ô */
}
.quiz-wrapper .content .question-table-mobile .table .question-link::before {
  content: attr(data-value);
  cursor: pointer;
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--custom-color, gray);
  /* Màu mặc định */
  color: white;
  text-align: center;
  line-height: 26px;
  font-size: 14px;
  font-weight: bold;
}
.quiz-wrapper .content .question-table-mobile .table {
  /* Hiệu ứng hover */
}
.quiz-wrapper .content .question-table-mobile .table .question-link:hover::before {
  background-color: rgb(255, 196, 58);
  /* Màu nền khi hover */
  color: red;
  /* Màu chữ khi hover */
}
.quiz-wrapper .content .question-table-mobile .table {
  /* Hiệu ứng active */
}
.quiz-wrapper .content .question-table-mobile .table .question-link.active::before {
  background-color: #007bff;
  /* Màu nền khi active */
  color: white;
  /* Màu chữ khi active */
}
.quiz-wrapper .content .question-table-mobile .table {
  /* Đặc biệt cho description */
}
.quiz-wrapper .content .question-table-mobile .table .question-link.description::before {
  background-color: #8a8f7b;
  /* Màu nền xanh lá cây */
  color: white;
  /* Màu chữ trắng */
}
.quiz-wrapper .content .question-table-mobile .table {
  /* Hover và active kết hợp với description */
}
.quiz-wrapper .content .question-table-mobile .table .question-link.description:hover::before {
  background-color: lightgreen;
  /* Xanh lá cây đậm hơn khi hover */
  color: #f8f9fa;
  /* Màu chữ gần trắng */
}
.quiz-wrapper .content .question-table-mobile .table .question-link.description.active::before {
  background-color: #1e7e34;
  /* Xanh lá cây đậm hơn khi active */
  color: white;
  /* Màu chữ trắng */
}
@media (min-width: 1001px) {
  .quiz-wrapper .content .question-table-mobile {
    display: none;
  }
}
.quiz-wrapper .content .content-footer {
  background-color: #f8f9fa;
  padding: 10px;
  text-align: center;
  border-top: 1px solid #ddd;
  min-height: 200px;
}
.quiz-wrapper .sidebar-right {
  background-color: #f8f9fa;
  padding: 0 15px;
  width: 20%;
  height: calc(100vh - 60px);
  position: fixed;
  right: 0;
  top: 60px;
  overflow-y: auto;
}
.quiz-wrapper .sidebar-right .sidebar-right-header {
  position: sticky;
  background-color: #f8f9fa;
  padding: 22px;
  font-weight: bold;
  z-index: 1;
}
.quiz-wrapper .sidebar-right .timer {
  display: flex;
  align-items: center;
  font-size: 16px;
}
.quiz-wrapper .sidebar-right .timer i,
.quiz-wrapper .sidebar-right .timer svg {
  margin-right: 5px;
  color: #333;
}
.quiz-wrapper .sidebar-right .timer #timer {
  font-weight: bold;
  color: #e74c3c;
  /* Màu đỏ */
}
.quiz-wrapper .sidebar-right .buttons-container {
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .quiz-wrapper .sidebar-right .buttons-container {
    flex-direction: row;
    gap: 5px;
  }
}
.quiz-wrapper .sidebar-right button {
  width: 100%;
  font-size: 14px;
}
@media (min-width: 768px) {
  .quiz-wrapper .sidebar-right button {
    width: auto;
  }
}
.quiz-wrapper .sidebar-right:hover {
  scrollbar-width: thin;
}
.quiz-wrapper .sidebar-right::-webkit-scrollbar {
  width: 3px;
  background-color: transparent;
}
.quiz-wrapper .sidebar-right .table {
  width: 100%;
  text-align: center;
  border-collapse: collapse;
}
.quiz-wrapper .sidebar-right .table tr {
  height: 30px;
  /* Chiều cao của mỗi hàng */
}
.quiz-wrapper .sidebar-right .table td {
  padding: 3px;
  /* Khoảng cách bên trong các ô nhỏ hơn */
  width: 30px;
  /* Chiều rộng của mỗi ô */
  height: 30px;
  /* Chiều cao của mỗi ô */
}
.quiz-wrapper .sidebar-right .table .question-link::before {
  content: attr(data-value);
  cursor: pointer;
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--custom-color, gray);
  /* Màu mặc định */
  color: white;
  text-align: center;
  line-height: 26px;
  font-size: 14px;
  font-weight: bold;
}
.quiz-wrapper .sidebar-right .table {
  /* Hiệu ứng hover */
}
.quiz-wrapper .sidebar-right .table .question-link:hover::before {
  background-color: rgb(255, 196, 58);
  /* Màu nền khi hover */
  color: red;
  /* Màu chữ khi hover */
}
.quiz-wrapper .sidebar-right .table {
  /* Hiệu ứng active */
}
.quiz-wrapper .sidebar-right .table .question-link.active::before {
  background-color: #007bff;
  /* Màu nền khi active */
  color: white;
  /* Màu chữ khi active */
}
.quiz-wrapper .sidebar-right .table {
  /* Đặc biệt cho description */
}
.quiz-wrapper .sidebar-right .table .question-link.description::before {
  background-color: #8a8f7b;
  /* Màu nền xanh lá cây */
  color: white;
  /* Màu chữ trắng */
}
.quiz-wrapper .sidebar-right .table {
  /* Hover và active kết hợp với description */
}
.quiz-wrapper .sidebar-right .table .question-link.description:hover::before {
  background-color: lightgreen;
  /* Xanh lá cây đậm hơn khi hover */
  color: #f8f9fa;
  /* Màu chữ gần trắng */
}
.quiz-wrapper .sidebar-right .table .question-link.description.active::before {
  background-color: #1e7e34;
  /* Xanh lá cây đậm hơn khi active */
  color: white;
  /* Màu chữ trắng */
}
@media (max-width: 1000px) {
  .quiz-wrapper .sidebar-left,
  .quiz-wrapper .sidebar-right {
    display: none;
  }
  .quiz-wrapper .content {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

.right-popup {
  position: absolute;
  pointer-events: none;
  z-index: 1000;
}
.right-popup.correct {
  color: #498e11;
}
.right-popup.incorrect {
  color: #900;
}

.right-popup {
  position: absolute;
  pointer-events: none;
  z-index: 1000;
}
.right-popup.correct {
  color: #498e11;
}
.right-popup.incorrect {
  color: #900;
}

@keyframes correctAnswer {
  0% {
    background: transparent;
  }
  30% {
    background: rgba(73, 142, 17, 0.1);
  }
  100% {
    background: rgba(73, 142, 17, 0.15);
  }
}
@keyframes incorrectAnswer {
  0% {
    background: transparent;
  }
  30% {
    background: rgba(153, 0, 0, 0.1);
  }
  100% {
    background: rgba(153, 0, 0, 0.15);
  }
}
@keyframes popupAnimation {
  0% {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -20px);
  }
  80% {
    opacity: 1;
    transform: translate(-50%, -20px);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -40px);
  }
}
.timer-header {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 16px;
  margin-right: 15px;
  /* Thêm khoảng cách bên trái để cách logo */
}
.timer-header svg {
  margin-right: 5px;
  width: 16px;
  height: 16px;
  color: #333;
  /* Màu đen cho icon */
  fill: #333;
  /* Đảm bảo icon có màu đen */
}
.timer-header #timer-header-text {
  color: #e74c3c;
  /* Màu đỏ chỉ cho text hiển thị thời gian */
}
