* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {

    background: #0f172a;
    color: white;

    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 100vh;

    padding: 20px;

}

.wrapper {
    width: 100%;
    max-width: 900px;
}

.card {

    background: #1e293b;

    padding: 35px;

    border-radius: 12px;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);

}

/* HEADER */

h1 {
    font-size: 30px;
    margin-bottom: 6px;
}

.subtitle {
    color: #94a3b8;
    margin-bottom: 25px;
}

/* DIFFICULTY */

.difficulty {

    display: flex;
    gap: 10px;

    margin-bottom: 20px;

}

.difficulty button {

    padding: 8px 16px;

    background: #334155;

    border: none;

    border-radius: 6px;

    color: white;

    cursor: pointer;

    font-size: 14px;

    transition: 0.2s;

}

.difficulty button:hover {
    background: #475569;
}

.difficulty button.active {
    background: #2563eb;
}

/* TEXT AREA */

.text-area {

    background: #0f172a;

    padding: 20px;

    border-radius: 8px;

    margin-bottom: 20px;

}

#text {

    color: #9ca3af;

    line-height: 1.7;

    margin-bottom: 15px;

    font-size: 16px;

}

/* CHARACTER STATES */

#text span.correct {
    color: #22c55e;
}

#text span.incorrect {
    color: #ef4444;
}

#text span.current {
    background: #334155;
}

/* INPUT */

textarea {

    width: 100%;

    height: 110px;

    background: #1e293b;

    border: none;

    border-radius: 6px;

    padding: 12px;

    color: white;

    resize: none;

    outline: none;

    font-size: 15px;

}

/* STATS */

.stats {

    display: flex;

    gap: 15px;

    margin-bottom: 20px;

}

.stat-box {

    flex: 1;

    background: #0f172a;

    padding: 15px;

    border-radius: 8px;

    text-align: center;

}

.stat-box p {

    color: #94a3b8;

    font-size: 13px;

    margin-bottom: 5px;

}

.stat-box h3 {

    font-size: 22px;

}

/* BUTTON */

.restart {

    width: 100%;

    padding: 12px;

    background: #2563eb;

    border: none;

    border-radius: 8px;

    color: white;

    font-size: 15px;

    cursor: pointer;

    transition: 0.2s;

}

.restart:hover {
    background: #1d4ed8;
}

/* RESPONSIVE */

@media (max-width:600px) {

    .card {
        padding: 25px;
    }

    .stats {
        flex-direction: column;
    }

    textarea {
        height: 90px;
    }

}