body {
  background-color: black;
  color: white;
  font-family: "Poppins", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 200px;
}
.body-center {
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}
#boards {
  display: flex;
  flex-wrap: wrap; /* Allow boards to wrap when they overflow */
  gap: 50px; /* space between the boards */
  margin-bottom: 30px;
  justify-content: center; /* Centers boards horizontally in each row */
}

.board {
  display: flex;
  flex-direction: column;
  gap: 10px; /* vertical space between rows */
}

.row {
  display: flex;
  margin-top: 5px;
  gap: 5px; /* horizontal space between tiles */
  justify-content: center;
}

.tile {
  width: 50px;
  height: 50px;
  border: 2px solid #444;
  background-color: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 4px;
  box-sizing: border-box;
  transition: background-color 0.3s, border-color 0.3s;
}


.guess-screen {
  height: 100vh;
  width: 100vw;
}

.guess-input {
  width: 0;
  height: 0;

  visibility: hidden;
  font-size: 0;
  font-weight: bolder;
  text-align: center;
  border: none;
  border-radius: 0;
  background-color: black;
  color: white;
  box-sizing: border-box;
}
.toggle-btn {
  background-color: #333;
  color: white;
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.toggle-btn:hover {
  background-color: #555;
}
#buttonsContainer {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  width: 100%;
}
.number-input {
  padding: 10px;
  margin-bottom: 25px;
  width: 300%;
  font-size: 18px;
  text-align: center;
  border: none;
  border-radius: 0;
  background-color: #222;
  color: white;
  box-sizing: border-box;
}
#activeBoardWrapper {
  width: 100%;
  display: none;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.popup-content {
  background: #222;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  color: white;
}

.popup-content button {
  margin: 10px;
  padding: 10px 20px;
  background: #444;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.popup-content button:hover {
  background: #666;
}

.hidden {
  display: none;
}
.popup-content.answers {
  max-height: 80vh;
  max-width: 600px;
  overflow-y: auto;
}

.answers-list {
  margin-top: 15px;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: monospace;
  justify-content: center;
  color: white;
}
.answers-list div {
  background: #111;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid #333;
}
.solved {
  color: #0f0;
  border-color: #0f0;
}

.unsolved {
  color: #f44;
  border-color: #f44;
}
a {
  text-decoration: none;
  color: white;
}
input, button {
  font-family: "Poppins", sans-serif;
}
#mobileKeyboard {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 95%;
  background: #000;
  padding: 10px 10px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}


.key-row {
  display: flex;
  gap: 5px;
  justify-content: center;
}

.key {
  font-size: 16px;
  font-weight: bold;
  padding: 12px 10px;
  background: #333;
  color: white;
  border: none;
  border-radius: 6px;
  width: 36px;
  text-align: center;
  cursor: pointer;
}

.key[data-key="Enter"],
.key[data-key="Backspace"] {
  width: auto;
  padding: 12px 16px;
}
.hidden {
  display: none !important;
}
