/* Minimalist Design */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #000000;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#app {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    box-sizing: border-box;
}

.screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.hidden {
    display: none !important;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #222;
    font-weight: 400;
}

button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
    font-weight: 600;
}

button:hover:not(:disabled) {
    background-color: #333;
}

button:disabled {
    background-color: #ccc;
    color: #888;
    cursor: not-allowed;
}

input[type="file"] {
    margin: 1.5rem 0;
    font-size: 1rem;
    cursor: pointer;
}

.error-msg {
    color: #000;
    font-weight: 600;
    text-decoration: underline;
    margin-top: 1rem;
    min-height: 1.5rem;
}

/* Flashcard and Typing styling */
.flashcard {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 2rem;
}

. -display {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    gap: 4px;
}

. -display span {
    display: inline-block;
}

.char-correct {
    color: #000;
}

.char-pending {
    color: #aaa;
}

.char-error {
    color: #000;
    /* Minimalist: black text */
    text-decoration: underline;
    /* Shows error by underlining */
    font-weight: 900;
}

.char-composing {
    color: #555;
}

#typing-input {
    width: 100%;
    max-width: 400px;
    font-size: 2rem;
    padding: 0.75rem;
    text-align: center;
    border: 2px solid #ccc;
    border-radius: 4px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}

#typing-input:focus {
    border-color: #000;
}

.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
    font-weight: 500;
}

.stats p {
    font-size: 1.25rem;
    margin: 0.75rem 0;
}