/* */
/* #dfdfdf */
/*  */
/* #56964f */
/* */
/* Import Google font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #17a2b8;
}
.wrapper {
  background: #fff;
  max-width: 770px;
  padding: 35px;
  border-radius: 10px;
}
.wrapper .input-field {
  opacity: 0;
  z-index: -999;
  position: absolute;
}
.wrapper .content-box {
  padding: 13px 20px 0;
  border: 1px solid #ccc;
  border-radius: 10px;
}
.wrapper .content-box .typing-text {
  min-height: 255px;
  overflow-y: auto;
}
.wrapper .content-box .typing-text::-webkit-scrollbar {
  width: 0;
}
.wrapper .content-box .typing-text p {
  font-size: 21px;
  text-align: justify;
  letter-spacing: 1px;
  word-break: break-all;
}
.wrapper .content-box .typing-text p span {
  position: relative;
}

.wrapper .content-box .typing-text p span.correct {
  color: #56964f;
}
.wrapper .content-box .typing-text p span.incorrect {
  background: #ffc0cb;
  color: #cb3439;
  outline: 1px solid #fff;
  border-radius: 4px;
}
.wrapper .content-box .typing-text p span.active {
  color: #17a2b8;
}
.wrapper .content-box .typing-text p span.active::before {
  position: absolute;
  content: "";
  background: #17a2b8;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  opacity: 0;
  animation: blink 1s ease-in-out infinite;
}
@keyframes blink {
  50% {
    opacity: 1;
  }
}

.wrapper .content-box .content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 17px;
  padding: 12px 0;
  border-top: 1px solid #ccc;
}
.content button {
  border: none;
  outline: none;
  background: #17a2b8;
  font-size: 17px;
  color: #fff;
  width: 105px;
  padding: 8px 0;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.content button:active {
  transform: scale(0.8);
}
.result-details {
  display: flex;
  width: calc(100% - 140px);
  justify-content: space-between;
}
.result-details li {
  display: flex;
  list-style: none;
  align-items: center;
  height: 22px;
}
.result-details li:not(:first-child) {
  border-left: 1px solid #ccc;
  padding-left: 22px;
}
.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: 500;
}
.result-details li span b {
  font-weight: 500;
}
