.main-content {
  background: #f7f7f7;
}

.button-download {
    /* Đảm bảo nó là một hộp linh hoạt để căn giữa icon nếu cần */
    display: inline-flex; 
    align-items: center; /* Căn giữa icon theo chiều dọc */
    justify-content: center; /* Căn giữa icon theo chiều ngang */
    
    padding: 8px 12px; /* Khoảng đệm bên trong nút */
    border: 1px solid #ccc; /* Viền nút */
    border-radius: 5px; /* Bo góc nhẹ */
    background-color: #f0f0f0; /* Màu nền nhẹ */
    color: #333; /* Màu chữ/icon */
    font-size: 1em; /* Kích thước chữ/icon */
    cursor: pointer; /* Thay đổi con trỏ thành biểu tượng bàn tay */
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease; /* Hiệu ứng chuyển động mượt mà khi hover */
    
    /* Khoảng cách nếu có nhiều nút cạnh nhau */
    margin-right: 8px; 
}

/* Kiểu dáng khi di chuột qua nút */
.button-download:hover {
    background-color: #e0e0e0; /* Nền tối hơn một chút */
    border-color: #bbb; /* Viền tối hơn */
    color: #000; /* Màu chữ/icon đậm hơn */
}

/* Kiểu dáng cho icon bên trong nút */
.button-download i {
    margin-right: 5px; /* Khoảng cách giữa icon và chữ (nếu có chữ) */
    /* Nếu chỉ có icon, bỏ margin-right */
}

.quiz-detail-container {
  max-width: 900px;
  /* margin: 40px auto; */
  padding: 30px;
  /* background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05); */
  font-family: "Segoe UI", sans-serif;
}

.quiz-info {
  margin-bottom: 30px;
  border-radius: 15px;
  padding: 10px;
  background: white;
}

.quiz-info h1 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #333;
}

.quiz-info .description {
  font-size: 16px;
  color: #666;
  margin-bottom: 10px;
}

.quiz-info .author {
  gap: 10px;
  display: flex;
  align-content: center;
  align-items: center;
  font-style: italic;
  color: #888;
  margin-bottom: 10px;
}

.quiz-meta span {
  display: inline-block;
  margin-right: 15px;
  font-size: 14px;
  color: #555;
}

.like-button {
  cursor: pointer;
  color: #888;
  transition: color 0.2s ease;
}

.like-button.liked {
  color: #e74c3c;
}

.header-quiz-questions {
  padding: 10px 0px 10px 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toggle-btn {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #007bff; /* Màu xanh dương */
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.toggle-btn:hover {
  background-color: #0056b3; /* Màu hover */
  transform: translateY(-1px);
}

.toggle-btn:active {
  background-color: #004494;
  transform: scale(0.98);
}


.quiz-questions .question {
  /* margin-bottom: 25px; */
  padding: 10px 0px 10px 0px;
  /* background: #f9f9f9; */
  border-top: 1px solid #8f8f8f;
}

.quiz-questions {
  padding: 15px;
  background: white;
  /* border-left: 4px solid #3498db; */
  border-radius: 15px;
}

.quiz-questions h3 {
  /* margin-bottom: 10px; */
  font-size: 18px;
  color: #2c3e50;
}

.answers li {
  list-style: none;
  margin: 5px 0;
}

.answers input[type="radio"] {
  margin-right: 8px;
}

.comment-section {
  margin-top: 30px;
  border-radius: 15px;
  padding: 10px;
  background: white;
}

.comment-section h3 {
  margin-bottom: 10px;
  font-size: 20px;
  color: #333;
}

#comment-form {
  margin-bottom: 20px;
}

#comment-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  resize: vertical;
  margin-bottom: 10px;
}

#comment-form button {
  background-color: #3498db;
  color: #fff;
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#comment-form button:hover {
  background-color: #2980b9;
}

.comment {
  /* background: #f1f1f1;
  padding: 12px 16px;
  border-radius: 6px; */
  margin-bottom: 10px;
}

.comment .content{
  background: #f1f1f1;
  padding: 12px 16px;
  border-radius: 6px;
}

.comment strong {
  color: #2c3e50;
}

.comment .time {
  font-size: 12px;
  color: #888;
}

/* modal */
.questions-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-question-content {
  background-color: #fff;
  margin: auto;
  padding: 20px;
  border-radius: 10px;
  max-width: 800px;
  max-height: 80vh; /* đảm bảo modal không quá cao */
  overflow-y: auto;  /* chỉ cuộn bên trong modal */
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-question-content h4{
  color: #0c68be;
}

.modal-question-content li strong{
  color: #0ad56c;
}

.close-modal-question {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal-question:hover {
  color: red;
}

/* Màn nhỏ (điện thoại) */
@media (max-width: 768px) {
  
  .quiz-detail-container {
    max-width: 900px;
    margin: 0px auto; 
    padding: 30px;
    /* background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05); */
    
    font-family: "Segoe UI", sans-serif;
  }
}
