body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f5f5f5;
    margin: 0;
    padding: 20px;
}
.container {
    max-width: 800px;
    width: 100%;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 20px;
}
h1 {
    color: #333;
    text-align: center;
}
.timer {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin: 15px 0;
    color: #333;
}
.word-display {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    min-height: 120px;
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 24px;
    word-spacing: 12px;
    max-height: 300px;
    overflow-y: auto;
}
.word {
    position: relative;
    display: inline-block;
    white-space: nowrap;
    padding: 4px 8px;
    margin: 0 2px;
    border-radius: 3px;
    box-sizing: border-box;
    border: 1px solid transparent;
}
.word::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: transparent;
    transition: background-color 0.2s;
}
.current {
    background-color: #e6f7ff;
    outline: 1px solid #91d5ff;
}
.correct::after {
    background-color: #52c41a;
}
.incorrect::after {
    background-color: #f5222d;
}
.correct {
    color: #389e0d;
    background-color: #f6ffed;
}
.incorrect {
    color: #cf1322;
    background-color: #fff2f0;
}
.input-area {
    display: flex;
    margin-bottom: 20px;
}
#word-input {
    font-size: 56px;
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 2px solid #ccc;
    border-radius: 5px;
    text-align: center;
}
#word-input:focus {
    border-color: #1890ff;
}
.result {
    display: none;
    background-color: #f0f8ff;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}
.result h2 {
    margin-top: 0;
    color: #1890ff;
}
.result p {
    font-size: 18px;
    margin: 10px 0;
}
.restart-btn {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    background-color: #1890ff;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.restart-btn:hover {
    background-color: #096dd9;
}
.start-screen {
    text-align: center;
}
.start-btn {
    padding: 12px 24px;
    background-color: #1890ff;
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}
.start-btn:hover {
    background-color: #096dd9;
}
.error-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 20px;
}
.error-table th, .error-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
.error-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}
.error-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.error-table tr:hover {
    background-color: #f0f0f0;
}
.error-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}
.score-box {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background-color: #e6f7ff;
    border-radius: 10px;
    border: 2px solid #1890ff;
}
.final-score {
    display: inline-block;
}
.score-value {
    font-size: 48px;
    font-weight: bold;
    color: #1890ff;
    margin: 10px 0;
}
.skill-level {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}
.stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
}
.stats-container p {
    flex: 1 0 45%;
    margin: 5px 0;
}
.score-board {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}
.typing-error {
    color: #f5222d;
    background-color: #fff1f0;
    box-shadow: 0 0 0 1px #ffa39e;
}
.end-game-btn {
    display: none;
} 