*,
*::before,
*::after {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body::-webkit-scrollbar {
  width: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
h1,
h2,
h3,
p,
li,
a,
div,
span {
  margin: 0;
  padding: 0;
}

li {
  list-style-type: none;
}

:root {
  --color-primary: rgba(191, 70, 70, 1);
  --color-background: rgba(191, 108, 66, 1);
  --color-text-dark: rgba(26, 17, 10, 1);
  --color-text-20: rgba(26, 17, 10, 0.2);
  --color-text-hover: rgba(191, 108, 66, 1);
  --color-play-again: rgba(69, 160, 73, 1);
}

.body {
  background-color: var(--color-background);
  margin: 0;
  color: var(--color-text-dark);
  font: bold 16px Times New Roman, sans-serif;
}

.header {
  position: absolute;
  top: 0;
  right: 25%;
  z-index: 100;
}
@media screen and (max-width: 330px) {
  .header {
    display: none;
  }
}

.main {
  max-width: 1024px;
  margin: 0 auto;
  display: grid;
  grid-template-areas: "gallows alphabet" "answer answer";
  grid-template-columns: 472fr 552fr;
  grid-template-rows: 890fr 134px;
  height: 100vh;
}
@media screen and (max-width: 768px) and (min-width: 320px) {
  .main {
    grid-template-areas: "gallows" "answer" "alphabet";
    grid-template-columns: 1fr;
    grid-template-rows: 890fr 134px 890fr;
    height: 187vh;
    max-width: 518px;
  }
}
@media screen and (max-width: 355px), screen and (max-height: 360px) {
  .main {
    display: none;
  }
}

.gallows,
.alphabet,
.answer {
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.gallows {
  grid-area: gallows;
  background-image: url("../../public/images/back-gallows.png");
  position: relative;
}

.incorrect-count {
  position: absolute;
  top: calc((100vh - 134px) * 0.06);
  left: 30%;
  color: var(--color-text-dark);
  font: bold 24px Times New Roman, sans-serif;
}

.gallows-man {
  position: absolute;
  top: 32%;
  left: 21%;
  height: 62%;
  width: 40%;
  background-image: url("../../public/images/man-6.png");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.alphabet {
  grid-area: alphabet;
  background-image: url("../../public/images/back-alphabet.png");
  padding: 18vh 10.5% calc((100vh - 134px) * 0.27) 5%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 5px;
}

.alphabet-keyboard {
  height: 100%;
  width: 100%;
  background-color: transparent;
  cursor: pointer;
  padding: 0;
  border: none;
  font: bold 32px Times New Roman, sans-serif;
}
.alphabet-keyboard:hover {
  color: var(--color-text-hover);
}
.alphabet-keyboard:disabled {
  pointer-events: none;
  color: var(--color-text-20);
  cursor: not-allowed;
}

.answer {
  grid-area: answer;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background-image: url("../../public/images/back-answer.png");
}

.question-text,
.answer-text {
  font-size: 32px;
}
.question-text span:nth-child(1),
.answer-text span:nth-child(1) {
  transform: skew(-20deg, 0deg);
}
.question-text span:nth-child(2),
.answer-text span:nth-child(2) {
  transform: skew(-15deg, 0deg);
}
.question-text span:nth-child(3),
.answer-text span:nth-child(3) {
  transform: skew(-10deg, 0deg);
}
.question-text span:nth-child(4),
.answer-text span:nth-child(4) {
  transform: skew(-5deg, 0deg);
}
.question-text span:nth-child(5),
.answer-text span:nth-child(5) {
  transform: skew(0deg, 0deg);
}
.question-text span:nth-child(6),
.answer-text span:nth-child(6) {
  transform: skew(5deg, 0deg);
}
.question-text span:nth-child(7),
.answer-text span:nth-child(7) {
  transform: skew(10deg, 0deg);
}
.question-text span:nth-child(8),
.answer-text span:nth-child(8) {
  transform: skew(15deg, 0deg);
}
.question-text span:nth-child(9),
.answer-text span:nth-child(9) {
  transform: skew(20deg, 0deg);
}

.question-text {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 10px;
  padding: 5px 10% 0px 8.5%;
}

.question-text-letter {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  border: none;
}

.answer-text {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 18px;
  padding: 0px 9% 0px 8%;
}

.answer-text-letter {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--color-background);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 400px;
  width: 80%;
}

.play-again {
  background-color: var(--color-text-hover);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.play-again:hover {
  background-color: var(--color-play-again);
}

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