/* 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;
    background-color: #f8f8f8; /* Màu nền nhạt */
    margin: 0;
    padding: 0;
}
.container {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    
}

h1 {
    font-size: 2.5rem;
    color: #343a40; /* Màu xám đậm */
    text-align: center;
    margin-bottom: 2rem;
}

h2 {
    color: #333;
}

#gameContainer {
    display: flex;
    flex-direction: column;
    align-items: center;   
    margin: 20px auto;
    padding: 20px;   
}

#shapeContainer {
    margin-bottom: 20px;
    text-align: center;
}

#shapeContainer img {   
	width: auto;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#question {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

#options button {
    margin: 5px;
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #2196F3; /* Màu xanh dương */
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease; /* Hiệu ứng chuyển màu mượt mà */
}

#options button:hover {
    background-color: #1976D2; /* Màu xanh dương đậm hơn khi hover */
}

#result {
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Lịch sử */
#history {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 1rem;
}

#history th, #history td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

#history th {
    background-color: #f0f0f0;
    font-weight: 700;
}

#history tr:nth-child(even) {
    background-color: #f8f8f8;
}

#history tr:hover {
    background-color: #e0e0e0;
}

/* Thống kê */
#statsContainer {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 1rem;
}

#statsContainer th, #statsContainer td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

#statsContainer th {
    background-color: #4CAF50;
    color: white;
    font-weight: 700;
}

#statsContainer tr:nth-child(even) {
    background-color: #f2f2f2;
}

#statsContainer tr:hover {
    background-color: #ddd;
}

/* Responsive */
@media (max-width: 768px) {
    #gameContainer {
        max-width: 90%;
        padding: 15px;
    }

    #options button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    #history th, #history td {
        padding: 8px;
        font-size: 0.9rem;
    }

    #statsContainer th, #statsContainer td {
        padding: 8px;
        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;
}