/* Import font chữ từ Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
  font-family: 'Roboto', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #f4f4f4; 
  margin: 0;
}

/* Container chính */
.container {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  
  width: 85%;
}

h1 {
    font-size: 2.5rem;
    color: #343a40; /* Màu xám đậm */
    text-align: center;
    margin-bottom: 2rem;
}


/* Câu hỏi */
#question {
  text-align: center;
  font-size: 1.2em;
  margin-bottom: 20px;
  color: #333;
}

/* Input và nút */
#answer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

#answer {
  width: 150px;
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  margin-right: 10px;
}

button {
	margin: 5px;
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #0056b3;
}

/* Kết quả */
#result {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333;
}

/* Lịch sử */
#history {
  margin-top: 20px;
}

#history h3 {
  margin-bottom: 10px;
  color: #333;
}

#history table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #dee2e6; 
}

#history th, #history td {
  border: 1px solid #dee2e6; 
  padding: 10px;
  text-align: left;
}

#history th {
  background-color: #f8f9fa; 
  font-weight: bold;
  color: #333;
}

/* Thống kê */
#statsContainer {
  margin-top: 20px;
}

#statsContainer table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #dee2e6; 
}

#statsContainer th, #statsContainer td {
  border: 1px solid #dee2e6; 
  padding: 10px;
  text-align: left;
}

#statsContainer th {
  background-color: #007bff; 
  color: #fff;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
  #clock-container {
    width: 200px;
    height: 200px;
  }

  #answer {
    width: 120px;
  }
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
}

table th, table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

table th {
    background-color: #f2f2f2;
    color: #333;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #f1f1f1;
}

table td {
    vertical-align: top;
}

#clock-container {
  width: 350px; 
  height: 350px;
  border-radius: 50%;
  margin: 30px auto; /* Canh giữa theo chiều ngang */
  position: relative;
  background-image: url("X999tNz.png");
  background-size: 100%;
}


/* Tâm đồng hồ */
#clock-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 17px;
    height: 17px;
    background-color: black;
    border-radius: 50%;
    z-index: 10; /* Đảm bảo tâm đồng hồ luôn ở trên */
	

}

/* Các kim đồng hồ */
#hour, #minute, #second {
    position: absolute;
    bottom: 50%; /* Căn chỉnh kim từ dưới lên */
    left: 50%;
    transform-origin: bottom center;
    z-index: 5; /* Đảm bảo kim nằm dưới tâm đồng hồ */
}

#hour {
    width: 8px; /* Kim giờ dày hơn */
    height: 30%;
    background-color: black;
    border-radius: 4px 4px 0 0; /* Bo tròn đầu kim */
}

#minute {
    width: 5px; /* Kim phút mỏng hơn */
    height: 35%;
    background-color: darkblue;
    border-radius: 3px 3px 0 0;
}

#second {
    width: 2px;
    height: 40%;
    background-color: red;
}
#summary {
  text-align: center;       /* Căn giữa nội dung */
  font-size: 1.1em;         /* Kích thước chữ */
  margin-top: 20px;         /* Khoảng cách với phần tử phía trên */
  padding: 15px;            /* Khoảng cách bên trong */
  border: 1px

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
}

table th, table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

table th {
    background-color: #f2f2f2;
    color: #333;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #f1f1f1;
}

table td {
    vertical-align: top;
}