/* Import Font chữ */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
}
h1 {
    font-size: 2.5rem;
    color: #343a40; /* Màu xám đậm */
    text-align: center;
    margin-bottom: 2rem;
}

h2 {
    color: #333;
}

/* Style cho câu hỏi */
#question {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

/* Style cho phần nhập đáp án */
.input-group {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    width: 200px;
    margin-right: 10px;
}

/* Style cho các nút */
button {
	margin: 5px;
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

/* Bảng lịch sử */
#historyTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#historyTable th,
#historyTable td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

#historyTable th {
    background-color: #f0f0f0;
    font-weight: bold;
}

/* Highlight các dòng chẵn */
#historyTable tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Màu nền cho thông báo kết quả */
.alert-success {
	margin-top: 10px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.alert-danger {
	margin-top: 10px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Bảng thống kê */
#statsContainer table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#statsContainer th,
#statsContainer td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

#statsContainer th {
    background-color: #007bff;
    color: #fff;
}

#statsContainer tr:nth-child(even) {
    background-color: #f2f2f2;
}

#statsContainer tr:last-child {
    background-color: #ffc107;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {

    #question,
    .input-group {
        font-size: 1.2rem;
    }

    #historyTable {
        font-size: 0.9rem;
    }
}
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;
}