@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&family=Open+Sans:ital,wght@0,300..800;1,300..800&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&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: #323437;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: "Roboto Mono", "Vazirmatn", monospace;
  font-weight: 100;
  font-style: normal;
}
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 80%;
  padding: 10px;
  gap: 30px;
}
h1 {
  margin-bottom: 20px;
  color: white;
  font-size: 2.5rem;
  font-weight: 400;
}
.timer {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 2rem;
  color: white;
}
.seconds {
  font-weight: 400;
  visibility: hidden;
  color: #ac8f1f;
}
.options {
  list-style: none;
  display: flex;
  gap: 20px;
}
.options li {
  cursor: pointer;
  transition: all 0.5s;
  font-weight: 400;
}
.options li.active {
  color: #ac8f1f;
}
.options li:hover:not(:last-child) {
  color: #ac8f1f;
}
.options li.static {
  cursor: default;
}
.words {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.word {
  color: #4c4d51;
  font-size: 1.7rem;
  letter-spacing: 1px;
  font-weight: 400;
}
.currentLetter {
  position: relative;
}
.currentLetter::before {
  content: "";
  height: 100%;
  width: 2px;
  position: absolute;
  background-color: #ac8f1f;
  left: -2px;
  bottom: 0;
  animation: cursor 1s infinite;
}
.correct {
  color: white;
}
.incorrect {
  color: #7c404d;
}
@keyframes cursor {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.reload {
  margin-top: 20px;
  color: #4c4d51;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.5s;
}
.reload:hover {
  color: white;
}
.result {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  font-weight: 400;
  gap: 20px;
  font-size: 1.7rem;
}
