@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  --background: #1f91b1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--background);
}

.container {
  background-color: #fff;
  width: 100%;
  max-width: 770px;
  border-radius: 10px;
  padding: 35px;
  margin: 10px;
}

.container input {
  z-index: -1000;
  opacity: 0;
  position: absolute;
}

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

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

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

.content .text p {
  font-size: 21px;
  text-align: justify;
  letter-spacing: 1px;
  word-break: break-all;
}

.content .text p span {
  color: #1f283a88;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
}

.content .text p span.next {
  color: #17a2b8;
}

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

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

.content .text p span.correct {
  color: #34cb46;
  /* background-color: #c0ffd8;
    outline: 1px solid #fff;
    border-radius: 4px; */
}

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

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

.content .data button {
  border: none;
  outline: none;
  width: 105px;
  padding: 8px 0;
  background-color: var(--background);
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  border-radius: 5px;
  transition: transform 250ms ease, filter 250ms;
}

.content .data button:not(:disabled):hover {
  transform: scale(103%);
  filter: brightness(105%);
}

.content .data button:active {
  transform: scale(97%);
}

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

.content .data .results li {
  list-style: none;
  display: flex;
  align-items: center;
  height: 22px;
}

.content .data .results li:not(:first-child) {
  border-left: 1px solid #ccc;
  padding-left: 11px;
}

.content .data .results li p {
  font-size: 19px;
}

.content .data .results li span {
  display: block;
  font-size: 20px;
  margin-left: 10px;
}

.content .data .results li:not(:first-child) span {
  font-weight: 500;
}

.content .data .results li b {
  font-weight: 500;
}

@media (max-width: 700px) {
  .container {
    padding: 10px;
  }

  .content .data .results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: calc(100% - 80px);
  }

  .content .data .results li:has(:first-child, :nth-child(3)) {
    padding: 0;
    border-left: none;
  }
}

@media (max-width: 430px) {
  .content .text {
    max-height: 330px;
  }

  .content .text p {
    font-size: 18px;
  }

  .content .data .results {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .content .data .results li p {
    font-size: 16px;
  }

  .content .data {
    flex-direction: column;
    gap: 20px;
  }

  .content .data button {
    width: 100%;
  }
}
