@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap');


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto Mono', monospace;
}

body{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: rgb(34,193,195);
    background: linear-gradient(0deg, rgba(34,193,195,1) 0%, rgba(252,199,83,1) 100%);
}


.wrapper{
    width: 770px;
    padding: 35px;
    background: white;
    border-radius: 10px;
}


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


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


.content-box .typing-box{
    max-height: 255px;
    overflow-y: auto;
}


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


.typing-box p{
    font-style: 21px;
    text-align: justify;
    letter-spacing: 1px;
    word-break: break-all;
}


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


.typing-box p span.correct{
    color: #56964f;
}


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


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


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

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


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


.content .result-details{
    display: flex;
    width: calc(100% - 140px);
    justify-content: space-between;
}


.content button{
    border: none;
    outline: none;
    width: 105px;
    padding: 8px 0;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    background: #17a2b8;
    transition: transform 0.3s ease;
}


.content button:active{
    transform: scale(0.90);
}


.result-details li{
    height: 22px;
    display: flex;
    list-style: none;
    align-items: center;
}


.result-details li:not(:first-child){
    padding-left: 22px;
    border-left: 1px solid #ccc;
}


.result-details li p{
    font-size: 19px;
}


.result-details li span{
    display: block;
    font-size: 20px;
    margin-left: 10px;

}


.result-details li:not(:first-child) span{
    font-weight: 1000;
}


.result-details li b{
    font-weight: 700;
}