/* Basic styles for Typing Mash */

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
}

header {
    margin-bottom: 20px;
}

h1 {
    color: #333;
}

main {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 900px;
    margin-bottom: 20px;
}

section {
    margin-bottom: 20px;
}

#current_text {
    border: 1px solid #ddd;
    padding: 15px;
    min-height: 150px;
    background-color: #e9e9e9;
    border-radius: 4px;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1.1em;
    border: 2px solid #007bff; /* Added border to make it more distinct */
    box-shadow: inset 0 0 5px rgba(0, 123, 255, 0.2);
}

#current_text .correct {
    color: green;
}

#current_text .incorrect {
    color: red;
    text-decoration: underline;
}

#typing_area {
    width: 100%;
    padding: 10px;
    font-size: 1.1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
}

#typing_input {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between textarea and button */
}

#new_challenge_btn {
    padding: 10px 20px;
    font-size: 1em;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#new_challenge_btn:hover {
    background-color: #0056b3;
}

#results p {
    font-size: 1.1em;
    margin: 5px 0;
}

#wpm, #accuracy {
    font-weight: bold;
    color: #007bff;
}

footer {
    margin-top: 20px;
    color: #777;
}