body {
  margin: 0;
  padding: 0;
  font-family: "Patrick Hand", sans-serif;
  background-color: rgb(109, 187, 212);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.game-container {
  padding: 10px;
  width: 80%;
  max-width: 600px;
  background-color: #ffffff;
  border: 2px solid #333;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
  text-align: center;
}

h1 {
  font-size: 50px;
}

p {
  font-size: 25px;
}

#play-btn {
  font-size: 24px;
  border-radius: 8px;
  padding: 10px 20px;
}

#play-btn:hover {
  cursor: pointer;
  background-color: rgb(35, 35, 171);
  color: white;
}

.button {
  border: none;
  background-color: transparent;
  font-family: "Patrick Hand";
  font-size: 35px;
  width: 48px;
  height: 42px;
  color: rgb(46, 44, 39);
  position: relative; /* position button so pseudo-elements can be positioned */
}

/* Red X overlay for wrong guesses */
.button.wrong::after {
  position: absolute; /* position relative to button position */
  content: "X";
  color: red;
  opacity: 0.7;
  font-size: 44px;
  width: 35px;
  height: 35px;
  left: 8px;
  bottom: 12px;
}

/* Blue circle overlay for correct guesses */
.button.correct::after {
  position: absolute;
  content: "";
  border: 3px solid blue;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  top: 4px;
  left: 4px;
}

.button:hover {
  transform: scale(1.3);
  color: red;
  cursor: pointer;
}

#category-hint {
  font-size: 28px;
  color: #444;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

#guessing-word {
  font-size: 49px;
  letter-spacing: 5px;
  color: #333;
  font-weight: bold;
  height: 75px;
}

#game-message {
  font-size: 35px;
}

.hidden {
  display: none;
}

.revealed-word {
  font-size: 38px;
  color: red;
  text-decoration: underline;
  font-weight: bold;
}

#guess-checker {
  font-size: 31px;
}

.start-content {
  display: flex;
  flex-direction: column;
  padding: 90px;
}

#next {
  display: none;
  font-size: 32px;
  font-family: "Patrick Hand";
  letter-spacing: 2px;
  border-radius: 12px;
}

#next:hover {
  cursor: pointer;
  background-color: rgb(35, 35, 171);
  color: white;
}

#reset:hover {
  cursor: pointer;
  background-color: rgb(35, 35, 171);
  color: white;
}

#reset {
  display: none;
  font-size: 32px;
  font-family: "Patrick Hand";
  letter-spacing: 2px;
  border-radius: 12px;
}

.action-buttons {
  justify-content: center;
  display: flex;
  padding: 14px 24px;
  gap: 30px;
}

#score {
  font-size: 30px;
  padding: 8px;
}
