/* Import font từ Google Fonts (tuỳ chọn) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* Reset CSS mặc định */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif; 
  background-color: #f4f4f4; 
  color: #333; 
  line-height: 1.6;
}

.container {
  width: 90%; 
  margin: 20px auto; 
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
  border-radius: 8px; 
  overflow: hidden; 
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1 {
  text-align: center;
  padding: 20px;
  background-color: #007bff; /* Màu xanh dương */
  color: #fff;
}

#content {
  padding: 20px;
}

#content ul {
  list-style: none;
  padding: 0;
}

#content li, #content h6 {
  /* Các thuộc tính chung cho li và h6 */
  
 
  font-weight: normal; /* Đảm bảo font-weight giống nhau */
  font-size: inherit; /* Kế thừa font-size từ phần tử cha */
  line-height: inherit; /* Kế thừa line-height từ phần tử cha */
  font-family: inherit; /* Kế thừa font-family từ phần tử cha */
}

#content img {

 max-width: 500px;
    max-height: 500px;
    width: auto;
    height: auto;
}
#content li .imd img {
  filter: grayscale(100%);
  vertical-align: middle;
      margin: 5px;
}
#content p .imd img {
  vertical-align: middle;
      margin: 3px;
}
.question p {
  font-weight: bold;
  color: #444;
}
ul img {
    filter: grayscale(100%);
	vertical-align: middle;
      margin: 5px;
}

ul {
  list-style-type: none;
  padding: 0;
}

li, h6 {
  background-color: #eee;
  margin: 5px 0;
  padding: 10px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

li:hover, h6:hover {
  background-color: #ddd;
}

li.selected, h6.selected {
  background-color: #cce5ff;
  color: #004085;
}

li.correct, h6.correct {
  background-color: #d4edda;
  color: #155724;
}

li.incorrect {
  background-color: #f8d7da;
  color: #721c24;
}

h6 {
  
    font-size: 20px;
    font-weight: 100;
   
    margin-block-start: -10px;
    margin-block-end: -10px;
    margin-inline-start: -10px;    
	margin-inline-end: -10px;
  
}

.result {
  margin-top: 20px;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  text-align: center;
}

button {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 20px;
  background-color: #28a745;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

button:hover {
  background-color: #218838;
}
li.disabled, h6.disabled {
  pointer-events: none; 
  opacity: 0.6; 
}

li.correct {
  background-color: #d4edda;
  color: #155724;
}

li.incorrect {
  background-color: #f8d7da;
  color: #721c24;
}

.progress-bar {
  width: 100%;
  background-color: #b7b7b7;
  border-radius: 5px;
  margin-top: 20px;
  overflow: hidden; 
  cursor: pointer;
}

.progress {
  height: 20px;
  background-color: #007bff; 
  border-radius: 5px;
  transition: width 0.6s ease; 
}

.progress-text {
  text-align: center;
  padding: 5px 0;
  color: #fff;
  font-weight: bold;
}

.toolbar-bottom {
  background-color: #f0f0f0; 
  padding: 10px 20px;
  text-align: center;
  font-weight: bold;
  border-top: 1px solid #ddd; 
  margin-top: auto;
}

#linkList {
  display: none;
  list-style: none;
  padding: 20px;
  background-color: #f9f9f9;
}

#linkList li {
  margin-bottom: 5px;
  border: none;
  background-color: transparent; 
}
#content p { /* Hoặc .question nếu bạn thêm class="question" cho thẻ p */
  
 margin-top: 20px;
  color: #212529; /* Màu chữ đậm hơn */
}
table {
  border-collapse: collapse; /* Gộp đường viền của các ô */
  width: 100%; /* Chiều rộng của bảng */
}

th, td {
  border: 1px solid black; /* Đường viền cho các ô */
  padding: 8px; /* Khoảng cách giữa nội dung và đường viền */
  text-align: left; /* Căn lề trái cho nội dung trong ô */
}

th {
  background-color: #f2f2f2; /* Màu nền cho tiêu đề cột */
}
#studyHistoryTable table {
    width: 100%;
    border-collapse: collapse; /* Xóa khoảng trống giữa các ô */
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
}

#studyHistoryTable th, #studyHistoryTable td {
    padding: 12px 15px; /* Khoảng cách bên trong các ô */
    border: 1px solid #ddd; /* Đường viền cho ô */
}

#studyHistoryTable th {
    background-color: #f4f4f4; /* Màu nền cho tiêu đề */
    font-weight: bold;
    text-align: center;
}

#studyHistoryTable tr:nth-child(even) {
    background-color: #f9f9f9; /* Màu nền cho hàng chẵn */
}

#studyHistoryTable tr:hover {
    background-color: #f1f1f1; /* Hiệu ứng hover */
}

#studyHistoryTable td {
    text-align: center;
}

#studyHistoryTable {
    max-width: 100%;
    overflow-x: auto; /* Thanh cuộn ngang cho màn hình nhỏ */
}
