@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
body {
    display: flex;
    padding: 0 10px;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #2b2a2a;
    flex-direction: column;
}

.keyboard{
    height: 232px;
    width: 700px;
    background: transparent;
    display: flex;
    margin-top: 20px;
    flex-direction: column;
    justify-content: space-evenly;
}

.row{
    display: flex;
    flex-direction: row;
    width: 700px;
    justify-content: space-evenly;
}


.keya{
    color: #fff;
    width: 45px;
    height: 45px;
    background: #1e1e1e;
    text-align: center;
    border-radius: 5px;
    /*box-sizing: border-box;*/
    border: #fff;
}

.keya.click{
    color: #fff;
    width: 45px;
    height: 45px;
    background: #0f4f7a;
    text-align: center;
    border-radius: 5px;
    border: #fff;
}



.keyaz{
    color: #fff;
    width: 100px;
    height: 45px;
    background: #1e1e1e;
    text-align: center;
    border-radius: 5px;
}

.keyaz.click{
    color: #fff;
    width: 100px;
    height: 45px;
    background: #0f4f7a;
    text-align: center;
    border-radius: 5px;
}


.keye{
    color: #fff;
    width: 91px;
    height: 45px;
    background: #1e1e1e;
    text-align: center;
    border-radius: 5px;
}

.keye.click{
    color: #fff;
    width: 91px;
    height: 45px;
    background: #0f4f7a;
    text-align: center;
    border-radius: 5px;
}


.keys{
    color: #fff;
    width: 118.5px;
    height: 45px;
    background: #1e1e1e;
    text-align: center;
    border-radius: 5px;
}

.keys.click{
    color: #fff;
    width: 118.5px;
    height: 45px;
    background: #0f4f7a;
    text-align: center;
    border-radius: 5px;
}

.rowdown{
    display: flex;
    flex-direction: row;
    width: 700px;
    justify-content: center;
}

.space{
    height: 45px;
    width: 300px;
    color: #fff;
    background-color: #1e1e1e;
    text-align: center;
    border-radius: 5px;
}

.space.click{
    background-color: #0f4f7a;
}

.s{
    margin-top: 5px;
}






.x{
    color: #0f4f7a;
    font-size: 21px;
}

.yz{    
    font-size: 21px;
    color: #d1d0c5;
    margin-left: 5px;
}

.img{
    height: 40px;
    width: 40px;
    margin-right: 5px;
}

.wr{
    margin-bottom: 4px;
    height: 50px;
    display: flex;
    justify-content: center;
}


#paragraph{
    color: #646669;
}
.result-details{
    color: white;
}
::selection {
    color: #fff;
    background: #0f4f7a;
}
.wrapper {
    width: 700px;
    padding: 35px;
    background: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
}
.wrapper .input-field {
    opacity: 0;
    z-index: -999;
    position: absolute;
}
.wrapper .content-box {
    padding: 13px 20px 0;
    border-radius: 10px;
    border: none;
}
.content-box .typing-text {
    overflow: hidden;
    max-height: 256px;
}
.typing-text::-webkit-scrollbar {
    width: 0;
}
.typing-text p {
    font-size: 21px;
    text-align: justify;
    letter-spacing: 1px;
    word-break: break-all;
}
.typing-text p span {
    position: relative;
}
.typing-text p span.correct {
    color: #d1d0c5;
}
.typing-text p span.incorrect {
    color: #ca4754;
    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: #0f4f7a;
    animation: blink 1s ease-in-out infinite;
}
@keyframes blink {
    50% {
        opacity: 1;
    }
}
.content-box .content {
    margin-top: 17px;
    display: flex;
    padding: 12px 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border-top: 3px solid #8f8f8f;
}

.content button{
    --bg: #0f4f7a;
    --text-color: #fff;
    position: relative;
    width: 100px;
    border: none;
    background: var(--bg);
    color: var(--text-color);
    padding: 1em;
    font-weight: bold;
    font-size: 10px;
    text-transform: uppercase;
    transition: 0.2s;
    border-radius: 5px;
    opacity: 0.8;
    letter-spacing: 1px;
    box-shadow: #011725 0px 7px 2px, #000 0px 8px 5px;
    cursor: pointer;
}

.content button:active{
    top: 4px;
    box-shadow: #01121d 0px 3px 2px,#000 0px 3px 5px;
}

.content button:hover{
    opacity: 1;
}


.content .result-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: calc(100% - 140px);
    justify-content: space-between;
}
.result-details li {
    display: flex;
    height: 20px;
    list-style: none;
    position: relative;
    align-items: center;
}
.result-details li:not(:first-child) {
    padding-left: 22px;
    border-left: 2px solid #bfbfbf;
}
.result-details li p {
    font-size: 13px;
}
.result-details li span {
    display: block;
    font-size: 13px;
    margin-left: 10px;
}
li span b {
    font-weight: 500;
}
li:not(:first-child) span {
    font-weight: 500;
}
@media (max-width: 745px) {
    .wrapper {
        padding: 20px;
    }
    .content-box .content {
        padding: 20px 0;
    }
    .content-box .typing-text {
        max-height: 100%;
    }
    .typing-text p {
        font-size: 19px;
        text-align: left;
    }
    .content button {
        width: 100%;
        font-size: 15px;
        padding: 10px 0;
        margin-top: 20px;
    }
    .content .result-details {
        width: 100%;
    }
    .result-details li:not(:first-child) {
        border-left: 0;
        padding: 0;
    }
    .result-details li p,
    .result-details li span {
        font-size: 15px;
    }
}
@media (max-width: 518px) {
    .wrapper .content-box {
        padding: 10px 15px 0;
    }
    .typing-text p {
        font-size: 13px;
    }
    .result-details li {
        margin-bottom: 10px;
    }
    .content button {
        margin-top: 10px;
    }
}