/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* Global Styles */
body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    background-color: #F3F4F6;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Main Container */
.container {
    max-width: 900px;
    width: 100%;
    background: linear-gradient(to bottom, #ffffff, #f4f4f4);
    border-radius: 12px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    box-sizing: border-box;
}

/* Header Styles */
h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Countdown Styles */
#countdown {
    text-align: center;
    margin-top: 20px;
    font-size: 1.2em;
    color: #444;
}

/* Sentence and Answer Containers */
.sentence-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
}
.answer-container {
   display: flex;
    gap: 10px;
    border: 2px dashed #8fd3f4;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    min-height: 50px;
    align-items: center;
    background-color: #f9f9f9;
}
/* Word Styles */
.word {
    padding: 10px 15px;
    background-color: #007BFF;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease-in-out;
}

.word:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.word.used {
    background-color: #ddd;
    cursor: not-allowed;
}

/* Button Styles */
.controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Khoảng cách giữa icon và văn bản */
    padding: 10px 20px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease-in-out;
}

button i {
    font-size: 1.2em; /* Kích thước icon */
}

button:hover:not(:disabled) {
    background-color: #0056b3;
}

button:disabled {
    background-color: #ddd;
    cursor: not-allowed;
}


/* History Section */
#history {
    margin-top: 20px;
}

#history table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    text-align: center;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

#history th, #history td {
    border: 1px solid #ddd;
    padding: 12px;
}

#history th {
    background-color: #f4f4f4;
    font-weight: bold;
}

#result {
    text-align: center;
    font-size: 1.2em;
    margin-top: 20px;
}

/* Chart Styles */
canvas {
    margin-top: 30px;
    border-radius: 8px;
    background: #ffffff;
   
    display: block;
    margin: 0 auto;
	padding: 20px;
 
}

.chart-container {
   
     background: white;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    width: 100%;
    border-radius: inherit;
}



/* Table Summary */
#score-summary {
    text-align: center;
    font-size: 1.2em;
    margin-top: 20px;
    color: #444;
}