/* Import font chữ từ Google Fonts (ví dụ: Roboto) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
  font-family: 'Roboto', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f4f4f4; /* Màu nền nhạt */
  flex-direction: column; /* Căn giữa nội dung theo chiều dọc */
}

.container {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 800px; /* Giới hạn chiều rộng tối đa */
  width: 100%;
}

h1 {
    font-size: 2.5rem;
    color: #343a40; /* Màu xám đậm */
    text-align: center;
    margin-bottom: 2rem;
}

#question {
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 500;
}

#answer {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
  width: 200px;
  font-size: 16px;
  box-sizing: border-box; /* Bao gồm padding và border trong width */
}

button {
  background-color: #4CAF50; /* Màu xanh lá cây */
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease; /* Thêm hiệu ứng chuyển màu */
}

button:hover {
  background-color: #45a049; /* Màu xanh lá cây đậm hơn khi hover */
}

#feedback {
  margin-top: 10px;
  font-size: 18px;
  color: #f44336; /* Màu đỏ cho thông báo lỗi */
}

/* Bảng lịch sử */
#history table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 16px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden; /* Ẩn phần thừa ra của border-radius */
}

#history th, #history td {
  border: 1px solid #ddd;
  padding: 12px 15px;
  text-align: left;
}

#history th {
  background-color: #f2f2f2;
  color: #333;
  font-weight: bold;
}

#history tr:nth-child(even) {
  background-color: #f9f9f9;
}

#history tr:hover {
  background-color: #e9e9e9;
}
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #f0f0f0;
}
/* Bảng thống kê */
#statsContainer {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-family: 'Roboto', sans-serif;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden; /* Ẩn phần thừa ra của border-radius */
}

#statsContainer th, #statsContainer td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  text-align: left;
}

#statsContainer th {
  background-color: #2196F3; /* Màu xanh dương */
  color: white;
  font-weight: bold;
}

#statsContainer tr:nth-child(even) {
  background-color: #f2f2f2;
}

#statsContainer tr:hover {
  background-color: #e9e9e9;
}

#statsContainer tr:last-child {
  background-color: #ffeb3b;
  font-weight: bold;
}
