
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    padding: 0 10px;
    align-items: center;
    justify-content: center;
    background-color: orange;
}

.wrapper {
    width: 100%;
    max-width: 770px;
    padding: 35px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
}

.wrapper .content-box {
    padding: 13px 20px;
    border-radius: 10px;
    border: 1px solid #bfbfbf;
}

.wrapper .input-field {
    padding: 13px 20px 0;
    position: absolute;
    opacity: 0;
    z-index: -99;
}

.content-box .content {
    margin-top: 17px;
    display: flex;
    padding: 18px 12px 0 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #bfbfbf;
}

.content-box .result-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.result-details ul {
    display: flex;
    gap: 35px;
    padding: 0;
    margin: 0;
    list-style: none;
}


.result-details li {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.content button {
    outline: none;
    border: none;
    color: #fff;
    background: orange;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    padding: 8px 18px;
    font-size: 16px;
}

.content button:active {
    transform: scale(0.97);

}

.typing-text p span {
    position: relative;
}

.typing-text p span.active {
    color: orange;
}

.typing-text p span.correct {
    color: green;
}

.typing-text p span.incorrect {
    color: red;
    outline: 1px solid #fff;
    background: #ffc0cb;
    border-radius: 4px;
}

::selection {
    color: #fff;
    background: orange;
}


/* ===== TABLET ===== */
@media (max-width: 900px) {
    .wrapper {
        padding: 25px;
    }

    .result-details ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .typing-text p {
        font-size: 15px;
    }
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .wrapper {
        padding: 20px 15px;
    }

    .typing-text p {
        font-size: 14px;
        line-height: 1.6;
    }

    .content {
        flex-direction: column;
        gap: 15px;
    }

    .result-details {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .result-details ul {
        gap: 12px;
        justify-content: center;
    }

    .content button {
        width: 100%;
        padding: 10px;
    }
} 