::selection {
    color: #fff;
    background: #17a2b8;
}

.typing-wrapper {
    width: 100%;
    background: #fff;
    border-radius: 10px;
    cursor: text;
}

.typing-wrapper ::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

.typing-wrapper .input-field {
    opacity: 0;
    z-index: -999;
    position: absolute;
}

.typing-wrapper .typing-content-box {
    padding: 24px;
    border-radius: 10px;
    border: 1px solid #000000;
}

.typing-content-box .typing-text {
    overflow: hidden;
    max-height: 256px;
    cursor: text;
}

.typing-content-box .typing-text.beginner {
    max-height: 150px;
}

.typing-text::-webkit-scrollbar {
    width: 0;
}

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

.typing-text p {
    font-size: 38px;
    color: #b9b7b7;
    user-select: none;
    text-align: justify;
    letter-spacing: 1px;
    word-break: break-all;
}

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

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

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

.typing-text p span.active {
    color: #17a2b8;
}

.typing-text p span.active::before {
    position: absolute;
    content: '';
    height: 2px;
    width: 100%;
    bottom: 0;
    left: 0;
    opacity: 0;
    border-radius: 5px;
    background: #17a2b8;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    50% {
        opacity: 1;
    }
}

@media (max-width: 745px) {
    .typing-content-box .typing-text {
        max-height: 70vh;
        overflow-y: auto;
    }

    .typing-content-box .typing-text.beginner {
        max-height: 60vh;
    }

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

    .typing-text p {
        font-size: 30px;
        text-align: left;
    }
}

@media (max-width: 518px) {
    .typing-wrapper .typing-content-box {
        padding: 10px 15px 0;
    }

    .typing-content-box .typing-text.beginner {
        max-height: 20vh;
    }

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

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