:root
{
    --primary-color: #646cff;
    --bg-color: #242424;
    --text-color: rgba(255, 255, 255, 0.87);
    --correct-color: #4caf50;
    --error-color: #f44336;
}

.speed-typing-word-per-minute-calculator-body
{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding-top: 32px;
    padding-bottom: 32px;
}

.speed-typing-word-per-minute-calculator-body-h1
{
    font-size: 36px;
    margin-bottom: 20px;
}

.stats-container
{
    display: flex;
    gap: 40px;
    font-size: 26px;
    margin-bottom: 30px;
    background: #333;
    padding: 10px 30px;
    border-radius: 8px;
}

.stat-box
{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label
{
    font-size: 22px;
    color: #aaa;
    margin-bottom: 5px;
}

.stat-value
{
    font-weight: bold;
    font-size: 30px;
}

.game-container
{
    width: 80%;
    max-width: 800px;
    background-color: #333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
 }

#quote-display
{
    font-size: 26px;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 100px;
    color: #888; /* Default text color */
    user-select: none;
    white-space: pre-wrap;
}

/* Highlight classes */
.correct { color: var(--correct-color); font-weight: bold; }
.incorrect { 
    color: var(--error-color); 
    background-color: rgba(244, 67, 54, 0.2);
    text-decoration: underline;
}
.start_highlight
{
    color: var(--primary-color);
    background-color: rgba(55, 55, 255, 0.2);
    text-decoration: underline;
}

#quote-input
{
    width: calc(100% - 34px);
    height: 150px;
    font-size: 26px;
    padding: 15px;
    background-color: #1a1a1a;
    color: white;
    border: 2px solid #555;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    resize: none;
    outline: none;
}

#quote-input:focus
{
    border-color: var(--primary-color);
}

.controls
{
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

button
{
    padding: 12px 30px;
    font-size: 26px;
    cursor: pointer;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    transition: background 0.3s;
}

button:hover
{
    background-color: #535bf2;
}

button.secondary
{
    background-color: #555;
}
button.secondary:hover { background-color: #666; }

#result-modal
{
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.modal-content
{
    background: #333;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}