* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  padding: 0 15px;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: #000;
  background-color: chartreuse;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}

.container {
  max-width: 1400px;
  display: flex;
  border-radius: 15px;
  align-items: center;
  justify-content: space-around;
  padding: 40px;
  gap: 40px;
}

.img-box {
  display: flex;
  flex-direction: column;
}

.img-box__image {
  user-select: none;
  max-height: 470px;
  margin-bottom: 10px;
}

.game-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.game-box__word {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 10px;
}

.character {
  width: 28px;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  text-transform: lowercase;
  border-bottom: 3px solid #000;
  text-transform: uppercase;
}

.true-char {
  margin: -30px 0 35px 0;
  border-color: transparent;
}

.game-box__hint {
  width: 400px;
  height: 100px;
  text-align: center;
  font-size: 1rem;
  margin-bottom: 10px;
}

.game-box__guess {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 20px;
}

.game-box__keyboard {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
}

.key {
  width: calc(100% / 9 - 5px);
  padding: 9px;
  color: #fff;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 10px;
  text-transform: uppercase;
  background: #282e03;
}

.key[disabled] {
  pointer-events: none;
  opacity: 0.4;
}

.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100;
  padding: 0 10px;
  transition: opacity 0.5s ease;
}

.visible {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.5s 0.5s ease;
}

.modal__wrapper {
  padding: 30px;
  max-width: 360px;
  width: 100%;
  border-radius: 7px;
  background: #f3a909;
  text-align: center;
}

.modal__res {
  font-size: 1.53rem;
  margin: 20px;
}
.modal__answ {
  font-size: 1rem;
  text-transform: uppercase;
  margin: 20px;
  color: rgb(91, 16, 102);
}

.modal__btn {
  padding: 10px 25px;
  border-radius: 10px;
}

@media screen and (max-width: 768px) {
  .container {
    gap: 20px;
  }

  .img-box__image {
    max-height: 270px;
  }

  .game-box__hint {
    width: 300px;
    height: auto;
  }
}

@media screen and (max-width: 700px) {
  .container {
    padding: 15px;
    flex-direction: column;
    gap: 40px;
  }

  .game-box {
    gap: 0;
  }

  .img-box__image {
    order: 1;
    margin-top: 10px;
  }

  .character {
    width: 20px;
    font-size: 1.2rem;
  }
}
