@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    background-color: #F9FAFB;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(to bottom, #ffffff, #f4f4f4);
    border-radius: 12px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

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);
}

.sentence-container, .answer-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;
}

.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;
}

.controls {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    font-size: 1em;
    gap: 8px;
}

button:hover:not(:disabled) {
    background-color: #0056b3;
}

button:disabled {
    background-color: #ddd;
    cursor: not-allowed;
}

button .icon {
    font-size: 1.2em;
}

#check-btn::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 8px;
}

#reset-btn::before {
    content: '\f021';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 8px;
}

#countdown {
    text-align: center;
    margin-top: 20px;
    font-size: 1.2em;
    color: #444;
}

#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;
    text-align: center;
}

#history th {
    background-color: #f4f4f4;
    font-weight: bold;
}

#result {
    text-align: center;
    font-size: 1.2em;
    margin-top: 20px;
}

canvas {
    margin-top: 30px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}