@font-face {
  font-family: TazBold;
  src: url(fonts/tazb.otf) format("opentype"),
    url(fonts/tazb.woff) format("woff");
}

@font-face {
  font-family: TazBlack;
  src: url(fonts/tazblack.otf) format("opentype"),
    url(fonts/tazblack.woff) format("woff");
}

@font-face {
  font-family: TazRegular;
  src: url(fonts/tazr.otf) format("opentype"),
    url(fonts/tazr.woff) format("woff");
}

@font-face {
  font-family: NovBold;
  src: url(fonts/nb.ttf) format("truetype");
}

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

body {
  font-family: NovBold;
  position: relative;
  min-height: 100vh;
}

.nice {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease-in-out;
}

.nice img {
  width: 300px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.sep {
  padding-right: 1rem;
}

.game-container {
  max-width: 920px;
  width: 90%;
  background: white;
  padding: 20px;
  margin: 0 auto;
  text-align: center;
}
#word-display {
  font-size: 2rem;
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.letter-box {
  min-width: 20px;
  text-transform: uppercase;
  font-weight: bold;
}
.keyboard {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.keyboard button {
  padding: 4px 6px;
  font-size: 1rem;
  width: 43px;
  height: 43px;
  border: none;
  border-radius: 5px;
  background: #f7931e;
  color: white;
  cursor: pointer;
  font-family: TazBold;
}
.keyboard button:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.stats {
  margin-top: 20px;
}
.stats span {
  display: block;
  margin: 5px 0;
  font-weight: bold;
}

.gamecont {
  width: 300px;
  height: 300px;
  position: relative;
  margin: 0 auto;
}
#hangman-canvas {
  margin: 20px auto;
  background: #fff;
  border: 1px solid #ccc;
  display: block;
  background: url(bg.png);
  background-size: cover;
}

.okgo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
  opacity: 0.9;
  filter: blur(0.5px);
}

.support {
  display: none;
}

#new-game-btn,
#hint-btn {
  margin: 10px;
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  background: #2ecc71;
  color: white;
  cursor: pointer;
  font-family: TazBold;
}

#hint-btn {
  display: none;
}

#new-game-btn {
  display: none;
}
#hint-text {
  margin-top: 10px;
  font-style: italic;
  color: #555;
}

.footer {
  text-align: center;
  width: 90%;
  margin: 0 auto;
  padding-bottom: 6rem;
}

.footer p {
  font-family: TazRegular;
}

.strong {
  font-weight: 700;
}

ul {
  list-style-type: disc;
  font-family: TazRegular;
  text-align: left;
}

ul li {
  font-weight: normal;
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

/* li::before {
  content: "";
  position: absolute;
  left: 0;
  transform: translateX(-50%);
  background: #000;
  border-radius: 50%;
  width: 8px;
  height: 8px;
} */

@media (max-width: 500px) {
  #word-display {
    font-size: 1.5rem;
    gap: 5px;
  }
}

@media (max-width: 720px) {
  .game-container {
    max-width: 700px;
    width: 100%;
    background: white;
    padding: 10px;
    margin: 0 auto;
    text-align: center;
    margin-top: 4rem;
  }
}
