body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #2c3e50;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    padding: 10px;
    background: #ecf0f1;
    border-radius: 5px;
}

.text-display {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    min-height: 100px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 18px;
    line-height: 1.6;
}

#userInput {
    width: 100%;
    height: 100px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: none;
    margin-bottom: 15px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #2980b9;
}

button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.current-char {
    background: #ffeaa7;
    border-radius: 2px;
}

.correct {
    color: #27ae60;
}

.incorrect {
    color: #e74c3c;
    text-decoration: underline;
}