body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 600px;
}

h1 {
    color: #0056b3;
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
    line-height: 1.5;
}

#target-text {
    font-size: 2.5em;
    margin: 30px 0;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    min-height: 1.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e9ecef;
    word-break: break-all;
}

#target-text span {
    color: #555;
}

#target-text .correct {
    color: green;
    font-weight: bold;
}

#target-text .incorrect {
    color: red;
    font-weight: bold;
    text-decoration: underline;
}

#typing-input {
    width: calc(100% - 20px);
    padding: 15px;
    margin-bottom: 20px;
    font-size: 1.5em;
    border: 2px solid #007bff;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
}

#typing-input:focus {
    border-color: #0056b3;
}

#result {
    font-size: 1.2em;
    color: #28a745;
    margin-top: 20px;
    min-height: 1.5em;
}

#high-score {
    font-size: 1.1em;
    color: #6c757d;
    margin-top: 10px;
}

#start-button {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#start-button:hover {
    background-color: #0056b3;
}

#start-button:active {
    background-color: #004085;
}

#typing-input:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}