body {
  text-align: center;
  font-family: "Courier New", monospace;
  color: grey;
}

/* this is the word text css */
.typing {
  box-sizing: border-box;
  width: 85%;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}


.timer-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  width:100%;
  margin-top: 20px;
  margin-left: 50px;
  margin-right: 50px;
  justify-content: space-between;
}

#storyTitle{
  font-size: 20px;
  font-weight: bold
}

#timerContainer {
  font-size: 30px;
  font-weight: bold;
}

.timer-buttons-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5%;
  justify-content: flex-end;
  width: 60%;
}

.timer-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 30px;
  margin-right: 10px;
}

.difficulty-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  margin-left: 50px;
  margin-right: 100px;
}

.difficulty-button,
.timer-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  margin-right: 10px;
  color: dimgray;
}

#border {
  color: dimgray;
}

.active {
  color: black;
  font-weight: 600;
}

#typingTest {
  margin-top: 50px;
  font-size: 25px;
  line-height: 1.5;
}

.word-container {
  user-select: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.space {
  color: transparent;
}

.word {
  display: flex;
  gap: 1px;
  align-items: center;
  font-size: 35px;
  margin-right: -10px;
  font-family: "Cascadia Code", monospace;
}

.line {
  display: flex;
  flex-direction: row;
  gap: 1em;
}

.difficulty {
  display: none;
}

#xpbar {
  position: relative;
  height: 100%;
  width: 50%;
  margin: auto;
}
#xpContainer {
  display: none;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}
#progressBar {
  width: 100%;
  background-color: #ddd;
  border-radius: 6px;
  display: flex;
  align-items: center;
  position: absolute;
}
#level {
  /* font-size: 1.5em; */
  margin: 0;
}
#innerBar {
  width: 1%;
  height: 18px;
  background-color: #000000;
  border-radius: 6px;
}
#xp {
  color: white;
  mix-blend-mode: difference;
  width: min-content;
  position: relative;
  margin: auto;
  user-select: none;
  height: 100%;
}
#xpbar #progressToolTip {
  visibility: hidden;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 5px;
  border-radius: 7px;
  opacity: 0.8;
  position: absolute;
  z-index: 1;
  width: max-content;
}

#xpbar:hover #progressToolTip {
  visibility: visible;
}
#progress {
  color: white;
  text-align: right;
}
.fadeOut {
  animation: fadeOut 5s forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    display: none;
    visibility: hidden;
  }
}

/* results screen */

#resultScreen {
  position: absolute;
  display: none;
  width: 90%;
  left: 5%;
  top: 25%;
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding: 2em;
  align-content: center;
  z-index: 0;
}

#stats {
  border: 1px solid;
  padding: 3em;
}

#attempts {
  border: 1px solid;
  padding: 2em;
}

#attemptsLabel {
  border-bottom: 0.5px solid;
}

#label {
  padding: 10px 3px 0px 3px;
  border-bottom: 0.5px solid;
}

#score {
  padding: 10px 3px 0px 3px;
  border-bottom: 0.5px solid;
}

#cursor {
  position: absolute;
  margin-top: 10px;
  height: 30px;
  width: 2px;
  background-color: black;
  animation: moveCursor 20s linear infinite;
}

.resetBtn {
  background-color: white;
  font-size: 20px;
  padding: 0.5em 1em;
  border-radius: 5px;
}

/* #resetTest {
  margin-top: 3%;
  left: 50%;
  transform: translate(-50%, 0%);
} */

@keyframes moveCursor {
  0% {
    left: 0;
  }

  100% {
    left: 100%;
  }
}

@keyframes blink {
  0%,
  50% {
    opacity: 0;
  }

  51%,
  100% {
    opacity: 1;
  }
}

.space {
  color: transparent;
  margin-right: -15px;
}

