body {
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f0f0f0;
}

#game-container {
    display: flex;
    justify-content: space-between; /* Căn đều hai cột */
    width: 100%; /* Chiếm toàn bộ chiều rộng màn hình */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

#word-list, #definition-list {
	 counter-reset: item;
    width: calc(50% - 10px); /* Chia đều chiều rộng cho hai cột, trừ đi một khoảng cách nhỏ */
    /* ... (các styles khác) */
}

.word-item, .definition-item {
    padding: 10px;
    border: 1px solid #ddd;
   counter-increment: item;
   position: relative; /* Để định vị số thứ tự */
    cursor: move;
    text-align: center;
    transition: background-color 0.3s ease;
 
    /* Thêm các thuộc tính sau */
    display: flex; /* Sử dụng flexbox để căn giữa nội dung */
    align-items: center; /* Căn giữa theo chiều dọc */
   
    gap: 10px; /* Khoảng cách giữa các từ */
}
.word-item:last-child, .definition-item:last-child {
    margin-right: 0; /* Loại bỏ margin cho phần tử cuối cùng trong mỗi hàng */
}
.word-item:hover, .definition-item:hover {
    background-color: #eee;
}

.definition-item.over {
    background-color: #e0f0e0;
}
.word-item::before, .definition-item::before {
    content: counter(item);
   
    top: 8px; /* Điều chỉnh vị trí theo ý muốn */
    left: 8px;
    width: 24px; /* Tăng kích thước vòng tròn */
    height: 24px;
    line-height: 24px; /* Điều chỉnh line-height để căn giữa số */
    padding: 2px; /* Thêm padding để tạo khoảng trống */
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    color: #fff;
    text-align: center;
    font-weight: bold;
}
button {
    padding: 10px 20px;
    margin-top: 20px;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #45a049;
}

button:disabled {
    background-color: #ddd;
    cursor: default;
}

#score {
    margin-top: 10px;
    font-size: 18px;
}
#button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#button-container button {
    margin: 0 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}
/* Style for the progress table */
#progress {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: Arial, sans-serif;
}

/* Table header style */
#progress th {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
}

/* Table data cell style */
#progress td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

/* Zebra striping for table rows */
#progress tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Hover effect for table rows */
#progress tr:hover {
    background-color: #ddd;
}

/* Style for the average score section */
#average-score {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
    color: #333;
    text-align: left;
}
