.styled-input {
    font-size: 12pt;
    margin-top: 15px;
    margin-left: 5px;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}
.styled-input:focus {
    border-color: #007bff;
}
.styled-button {
    font-size: 12pt;
    margin-left: 10px;
    padding: 10px;
    border-radius: 5px;
    border: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}
.styled-button:hover {
    background-color: #0056b3;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f2f5;
    text-align: center;
}
#test-container {
    background: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 600px;
}
#start-button {
    padding: 12px 25px;
    font-size: 1.2em;
    cursor: pointer;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s;
}
#start-button:hover {
    background-color: #0056b3;
}
#sentence-display {
    font-size: 1.8em;
    min-height: 80px;
    letter-spacing: 1px;
    color: #333;
}
.highlight {
    color: #d9534f;
    font-weight: bold;
}
#timer-display {
    font-size: 1.2em;
    color: #555;
    font-family: 'Courier New', Courier, monospace;
}
#progress-indicator {
    font-size: 1em;
    color: #888;
    margin-bottom: 15px;
}
#result-container {
    margin-top: 20px;
    text-align: left;
    background-color: #e9ecef;
    padding: 15px;
    border-radius: 5px;
}
#result-container pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}
.hidden {
    display: none !important;
}
#demographics-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 80%;
    max-width: 300px;
}
.form-group label {
    margin-bottom: 5px;
    font-size: 1em;
    color: #555;
}
.form-group .styled-input {
    width: 100%;
    margin-left: 0;
    margin-top: 0;
}
#initial-start-container.hidden {
    display: none;
}
footer {
    display: flex;
    flex-direction: column;
    margin-top: 20px; 
    color: #888;
    font-size: 0.9em;
}