/* Body styling */
body {
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #e8f0fe; /* Sắc xanh nhẹ */
}

/* Game container */
#game-container {
    display: flex;
    justify-content: space-between;
    width: 97%;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Bóng đổ tăng chiều sâu */
    background-color: #ffffff;
}

#word-list, #definition-list {
    counter-reset: item;
    width: calc(50% - 10px);
}

/* Word and definition items */
.word-item, .definition-item {
    padding: 15px; /* Tăng khoảng cách nội dung */
    border: 1px solid #ddd;
    counter-increment: item;
    position: relative;
    cursor: move;
    text-align: center;
    border-radius: 8px; /* Góc bo tròn */
    transition: transform 0.2s ease, background-color 0.3s ease;
margin: 3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.word-item:hover, .definition-item:hover {
    transform: scale(1.02); /* Phóng to nhẹ khi hover */
    background-color: #f1f5f9;
}

.definition-item.over {
    background-color: #e0f0e0;
}

/* Numbering before items */
.word-item::before, .definition-item::before {
    content: counter(item);
    width: 24px;
    height: 24px;
    line-height: 24px;
    padding: 2px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    color: #fff;
    text-align: center;
    font-weight: bold;
}

/* Buttons styling */
button {
    padding: 10px 20px;
    margin-top: 20px;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    background-color: #3e8e41;
}

button:disabled {
    background-color: #ddd;
    cursor: default;
}

/* Score display */
#score, #average-score {
    margin-top: 10px;
    font-size: 20px;
    color: #333;
    text-align: center;
    font-weight: bold;
}

/* Button container styling */
#button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#button-container button {
    margin: 0 10px;
}

/* Progress table styling */
#progress {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: Arial, sans-serif;
}

#progress th {
    background-color: #4CAF50;
    color: white;
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

#progress td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

#progress tr:nth-child(even) {
    background-color: #f2f2f2;
}

#progress tr:hover {
    background-color: #ddd;
}
#weekly-score-chart {
    margin-top: 20px;
    max-width: 800px;
}
