@import url("https://fonts.googleapis.com/css2?family=Londrina+Solid:wght@300;400&display=swap");
*,
*:before,
*:after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin-bottom: 10vh;
  color: #DDEAF2;
  background: linear-gradient(180deg, #2B0C52 0%, #7C7484 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100%;
}

button,
button:focus,
button:hover {
  outline: none;
  border: none;
}

.title {
  margin: 5rem 0;
  letter-spacing: 0.25em;
}

@media (max-width: 39.9375em) {
  .title {
    margin: 3.5vh 0 1rem 0;
  }
}
.text-center {
  text-align: center;
}

* {
  font-family: "Londrina Solid", "Helvetica", "Arial", sans-serif;
}

h1,
h2,
h3 {
  line-height: 1.1;
}

h1 {
  font-size: 5rem;
}

@media (max-width: 39.9375em) {
  h1 {
    font-size: 3.75rem;
  }
}
button {
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: 0.2em;
}

a,
a:visited,
a:active {
  color: inherit;
  text-decoration: none;
}

button {
  background: inherit;
  color: inherit;
}

button:focus {
  box-shadow: 0 0 0.1em 0.15em rgba(221, 234, 242, 0.5);
}

.btn {
  display: block;
  margin: auto;
  padding: 0.5em 1.15em;
  color: #DDEAF2;
  background: linear-gradient(265.53deg, rgba(43, 12, 82, 0.5) -0.79%, rgba(105, 46, 164, 0.5) 96.93%);
  cursor: pointer;
  transition: background 250ms ease;
}

.btn:hover {
  background: linear-gradient(265.53deg, rgba(43, 12, 82, 0.75) -0.79%, rgba(105, 46, 164, 0.75) 96.93%);
}

.btn:focus {
  background-color: inherit;
  box-shadow: 0 0 1rem 0.15rem rgba(221, 234, 242, 0.25);
}

#hangman {
  margin: 0 auto;
  position: relative;
  width: 12rem;
  height: 12rem;
}

.hangman {
  position: absolute;
  background: rgba(221, 234, 242, 0.2);
}

.hangman.show {
  background: #DDEAF2;
}

.hangman.base {
  bottom: 0;
  left: 1rem;
  width: 5rem;
  height: 0.75rem;
}

.hangman.stick {
  top: 0.75rem;
  bottom: 0.75rem;
  left: 3rem;
  width: 0.75rem;
}

.hangman.top {
  top: 0;
  left: 1.5rem;
  width: 8.5rem;
  height: 0.75rem;
}

.hangman.man {
  top: 0.75rem;
  left: 7.5rem;
}

.hangman.rope {
  top: 0;
  width: 0.75rem;
  height: 0.75rem;
}

.hangman.head {
  top: 0.7rem;
  left: -0.625rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
}

.hangman.body {
  top: 2.65rem;
  width: 0.75rem;
  height: 4.25rem;
}

.hangman.body:after {
  content: "";
  position: absolute;
  bottom: -0.75rem;
  border-top: 0.75rem solid rgba(221, 234, 242, 0.2);
  border-right: 0.375rem solid transparent;
  border-left: 0.375rem solid transparent;
  border-bottom: none;
}

.hangman.body.show:after {
  border-top-color: #DDEAF2;
}

.hangman.arm {
  top: 3.8125rem;
  height: 0.75rem;
  width: 1.5rem;
}

.hangman.arm.right {
  left: 0.75rem;
}

.hangman.arm.left {
  left: -1.5rem;
}

.hangman.leg {
  top: 6rem;
  width: 0.75rem;
  height: 2rem;
}

.hangman.leg.right {
  transform: translate(1.05rem, 0.75rem) rotate(-60deg);
}

.hangman.leg.left {
  transform: translate(-1.05rem, 0.75rem) rotate(60deg);
}

.guess {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 0 0.75em;
}

.letter {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0.1em;
  width: 1em;
  height: 1.2em;
  font-size: 3rem;
  transition: color 100ms ease;
}

.letter.appear {
  animation-name: flash;
  animation-timing-function: ease;
  animation-duration: 750ms;
  animation-iteration-count: 2;
}

.letter:after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 0.1em;
  background: #DDEAF2;
}

@keyframes flash {
  from {
    color: transparent;
  }
  to {
    color: inherit;
  }
}
.keyboard {
  margin: 2.5rem auto;
  padding: 0 1.25em;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  max-width: 40rem;
  align-items: center;
  justify-content: center;
}

.key {
  position: relative;
  padding: 0 0.25em;
  font-size: 2.5rem;
  cursor: pointer;
}

.key:not(.used):hover {
  filter: brightness(1.5);
}

.key.used {
  color: rgba(221, 234, 242, 0.5);
  cursor: not-allowed;
}

.key.used:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0.1em;
  transform: translateX(-50%) rotate(45deg);
  background: #7C1100;
}

.key.used.in_word:after {
  background: #00AC92 !important;
}

.outer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  color: #2B0C52;
  background: rgba(0, 0, 0, 0.35);
  z-index: 10;
}

.popup {
  position: absolute;
  top: 25%;
  left: 50%;
  padding: 1.5rem 2.25rem;
  background: #DDEAF2;
  transform: translate(-50%, -50%);
  z-index: 11;
}

.popup > .content {
  text-align: center;
  margin-bottom: 1em;
}

.popup > .content > .msg {
  font-size: 2.5rem;
}

.popup > .content > .word {
  font-size: 2rem;
  color: #7C7484;
}

@media (max-width: 39.9375em) {
  .popup {
    width: 90%;
  }
}
.spinner {
  margin: 7.5rem auto 0 auto;
  height: 3rem;
  width: 3rem;
  border: 0.35rem solid transparent;
  border-top-color: #DDEAF2;
  border-radius: 50%;
  animation-name: rotate;
  animation-timing-function: linear;
  animation-duration: 1000ms;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/*# sourceMappingURL=style.css.map */
