/* General body styling for light theme */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  display: flex;
  justify-content: center;
  background-color: #f5f5f5;
  color: #000;
}

/* Main container */
.game-container {
  max-width: 600px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
}

/* Game board grid */
.board {
  display: grid;
  grid-template-rows: repeat(6, auto);
  gap: 6px;
  margin-bottom: 20px;
}

/* Each row is centered */
.row {
  display: flex;
  justify-content: center;
  gap: 6px;
}

/* Tiles */
.tile {
  width: 50px;
  height: 50px;
  border: 2px solid #d3d6da;
  text-transform: uppercase;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  user-select: none;
  background-color: #ffffff;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Feedback colors */
.green {
  background-color: #6aaa64;
  border-color: #6aaa64;
  color: white;
}

.yellow {
  background-color: #c9b458;
  border-color: #c9b458;
  color: white;
}

.gray {
  background-color: #787c7e;
  border-color: #787c7e;
  color: white;
}

/* Keyboard */
.keyboard {
  display: grid;
  grid-template-rows: repeat(3, auto);
  gap: 8px;
  justify-content: center;
}

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

/* Keys */
.key {
  background: #d3d6da;
  border: none;
  color: black;
  font-size: 1rem;
  font-weight: bold;
  padding: 8px 10px;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.key.green {
  background-color: #6aaa64;
  color: white;
}
.key.yellow {
  background-color: #c9b458;
  color: white;
}
.key.gray {
  background-color: #787c7e;
  color: white;
}

.key.wide {
  flex: 1.2;
}

.message {
  margin-top: 10px;
  font-size: 1rem;
  color: #333;
}

/* Responsive styles */
@media (max-width: 600px) {
  .tile {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

  .key {
    font-size: 0.9rem;
    padding: 6px 8px;
  }

  .key.wide {
    flex: 1;
  }
}
