* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}
body {
    display: flex;
    align-items:center;
    justify-content:center;
    flex-direction: column;
    min-height: 100vh;
    background-color: #c5dfe6;
    font-family:sans-serif
}

.heading{
    font-size: x-large;
    font-weight: 600;
    margin-bottom: 10px;
}

.container {
    background: linear-gradient(160deg, rgb(218, 198, 146), rgba(235, 42, 42, 0.068));
    color: #474444;
    width: 900px;
    border-radius: 10px;
    padding: 30px;
    position: relative;
    text-shadow: 0 0 2px rgba(0,0,0,0.1);
    box-shadow: 0 0 10px rgb(0,0,0, 1);
}
.container .input-field {
    z-index: -999;
    opacity: 0;
    position: absolute;
}
.content-box .text-of-typing {
    max-height: 255px;
    max-width: 600px;
    overflow-y: auto;
}
.content-box .text-of-typing::-webkit-scrollbar {
    width: 0;
}
.content-box .text-of-typing p {
    text-align: justify;
    font-size: 23px;
    letter-spacing: 1px;
    word-break:keep-all;
}
.content-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.content-box .content {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 17%;
    text-align: center;
    line-height: 32px;
}
.content .result {
    padding: 19px;
    border-radius: 10px;
    background: linear-gradient(160deg, rgb(61, 180, 231), rgb(187, 168, 240));
    display: block;
    text-shadow: 0 0 2px rgba(0,0,0,0.2);
    box-shadow: 0 0 10px rgb(0,0,0, 1);
}
.content .result li {
    border-bottom: 1px solid #ccc;
    list-style: none;
}
.content .result li:last-child {
    border-bottom: none;
}

.result li.time,
.result li.errors,
.result li.wpm,
.result li.cpm {
    font-size: 17px;
}
.result li.time p,
.result li.errors p, 
.result li.wpm p,
.result li.cpm p{
    font-weight: 600;
}

.container button {
    width: 71%;
    position: absolute;
    height: 17%;
    border: none;
    background-color: #000;
    color: #474444;
    font-size: 20px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    background: linear-gradient(160deg, rgb(61, 180, 231), rgb(187, 168, 240));
}
.container button:hover {
    background: linear-gradient(-160deg, rgb(13, 161, 225), rgb(151, 118, 244));
}


.text-of-typing p span.correct {
    color: rgb(6, 197, 6);
}
.text-of-typing p span.incorrect {
    color: rgb(236, 25, 25);
}

.text-of-typing p span.active {
    color: #979494;
}
.text-of-typing p span.active::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: rgb(13, 161, 225);
    animation: blink 1s ease-in-out infinite;
    opacity: 0;
}
@keyframes blink {
    50% {
        opacity: 1;
    }
}
.text-of-typing p span {
    position: relative;
}

.footer{
    font-size: small;
    margin-bottom: 20px;
}

.footer a{
    text-decoration: none;
}

a span{
    font-weight: 700;
    color: rgb(230, 172, 26);
}