* {
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: "Roboto", sans-serif;

  background: radial-gradient(
    circle,
    rgba(63, 94, 251, 1) 0%,
    rgba(252, 70, 107, 1) 100%
  );
}

#scoreboard {
  position: absolute;
  text-align: center;
  display: flex;
  flex-direction: column;

  padding: 2rem 2rem 1rem;
  width: 300px;
  top: 6rem;
  font-size: 1.25rem;
  border-radius: 10px;

  box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 15%), inset 0 -1px 0 rgb(0 0 0 / 15%);
  background-color: #fff;
}

#level-header {
  text-align: center;
  margin: 0.5rem auto 2rem;
  font-size: 2rem;
}

.info {
  color: rgb(220, 220, 220);
  align-self: flex-end;
  margin-bottom: 1rem;
}

.info:hover {
  color: #000;
}

#how-to-text {
  text-align: center;
  display: flex;
  flex-direction: column;

  margin: 30vh auto;
  width: 600px;
  padding: 3rem;
  border-radius: 10px;

  background-color: #fff;
  box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 15%), inset 0 -1px 0 rgb(0 0 0 / 15%);

  animation: moveInBottom 1s ease-out;
}

#how-to-text h2 {
  font-size: 2rem;
  margin: 1rem;
}

#how-to-text p {
  font-size: 1.5rem;
  text-align: left;
  line-height: 2rem;
}

#exit {
  color: rgb(220, 220, 220);
  align-self: flex-end;
  margin-bottom: 1rem;
}

#exit:hover {
  color: #000;
}

#scoreboard p {
  margin: 8px;
}

#start {
  padding: 16px 8px;
  margin: 1rem 0 0.5rem;
  border-radius: 10px;
  border-style: none;
  font-size: 1.25rem;
  font-weight: 700;

  background-color: #ff7000;
  color: #fff;
  border-color: #fff;
}

#start:hover {
  transform: translateY(-0.1rem);

  background-color: #df6000;
}

#start:active {
  transform: translateY(0.1rem);
}

#text-card {
  display: flex;
  flex-direction: column;

  margin-top: 10rem;
  padding: 2rem;
  width: 700px;
  max-width: 90%;
  font-size: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 15%), inset 0 -1px 0 rgb(0 0 0 / 15%);

  background-color: #fff;
}

#type-string {
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

#type-string i {
  font-style: normal;
}

#user-input {
  margin: auto;
  resize: none;
  border-style: none;
  outline: none;

  width: 100%;
  height: 8rem;
  padding: 1rem;
  font-size: 1.25rem;
  border-radius: 10px;

  background-color: rgb(243, 243, 243);
}

.correct {
  color: #00ff00;
}

.incorrect {
  text-decoration: none;
}

.hidden {
  display: none;
}

.bottom-bar {
  position: absolute;

  bottom: 3rem;
  width: 80%;
  border-radius: 10px;
  opacity: 40%;
}

.star-flex {
  display: flex;
  justify-content: space-evenly;

  margin-bottom: 1.5rem;
}

.progress-bar {
  height: 2rem;
  border-radius: 10px;

  background-color: rgb(220, 220, 220);
}

.current-progress {
  overflow: hidden;

  height: 2rem;
  width: 0%;
  border-radius: 10px;

  background-color: #00ff00;
}

.star-incomplete {
  color: rgb(220, 220, 220);
}

.star-complete {
  color: #ffd700;
}

.modal {
  display: none;
  position: fixed;
  overflow: auto;

  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 1;

  background-color: rgba(0, 0, 0, 0.4);
}

#game-over-text {
  text-align: center;
  display: flex;
  flex-direction: column;

  margin: 30vh auto;

  width: 600px;
  padding: 3rem 2rem;
  border-radius: 10px;

  background-color: #fff;
  box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 15%), inset 0 -1px 0 rgb(0 0 0 / 15%);

  animation: moveInBottom 1s ease-out;
}

#game-over-text h2 {
  font-size: 2rem;
  margin: 1.5rem 1rem 1rem;
}

#game-over-text h3 {
  font-weight: 400;
  font-size: 1.5rem;
  margin: 1rem;
  font-weight: 400;
}

#game-over button {
  padding: 16px;
  margin: 1rem 0 0.5rem;
  border-radius: 10px;
  width: 80%;
  align-self: center;

  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  border-style: none;
  border-color: #fff;
  background-color: #ff7000;
}

#game-over button:hover {
  transform: translateY(-0.1rem);

  background-color: #df6000;
}

#next-level-text {
  text-align: center;
  display: flex;
  flex-direction: column;

  margin: 30vh auto;
  width: 600px;
  background-color: #fff;
  padding: 5rem 2rem 3rem;
  border-radius: 10px;
  box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 15%), inset 0 -1px 0 rgb(0 0 0 / 15%);

  animation: moveInBottom 1s ease-out;
}

#next-level-text h2 {
  font-size: 2rem;
  margin: 1.5rem 1rem 1rem;
}

#next-level-text h3 {
  font-size: 1.5rem;
  margin: 1rem;
  font-weight: 400;
}

#next-level-text button {
  align-self: center;
  padding: 16px;
  margin: 1rem 0 0.5rem;
  border-radius: 10px;
  background-color: #ff7000;
  width: 80%;

  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  border-style: none;
  border-color: #fff;
}

#next-level-text button:hover {
  transform: translateY(-0.1rem);

  background-color: #df6000;
}

/* Animations */

@keyframes moveInBottom {
  0% {
    opacity: 0;
    transform: translateY(3rem);
  }

  100% {
    opacity: 1;
    transform: translate(0);
  }
}
