/* Cat Reveal Game Styles */

#binary-boxes {
  display: flex; /* Horizontal layout */
  justify-content: center; /* Center align buttons */
  gap: 10px; /* Spacing between buttons */
  margin-top: 20px; /* Optional: Add space above the container */
}

.binary-button {
  width: 50px;
  height: 50px;
  background: #ccc;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  color: #000;
  cursor: pointer;
}

.binary-button.active {
  background: #4caf50;
  color: #fff;
}

#cat-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns for 3x3 grid */
  grid-gap: 5px;
  max-width: 160px; /* Adjust width for 3x3 grid */
  margin: 20px auto;
  padding: 0 10px; /* Gap for mobile optimization */
}

.cat-tile {
  width: 50px;
  height: 50px;
  background: gray;
  border-radius: 5px;
  position: relative;
  perspective: 800px;
  cursor: pointer;
}

.cat-tile-inner {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: transform 0.5s;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
}

.cat-tile.flipped .cat-tile-inner {
  transform: rotateY(180deg);
}

.cat-tile-front,
.cat-tile-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 5px;
}

.cat-tile-front {
  background: gray; /* Default color for hidden tiles */
}

.cat-tile-back {
  background-image: url("cat.jpg");
  background-size: 150px 150px; /* Adjust for 3x3 grid */
  background-position: center; /* Center the image if needed */
  transform: rotateY(180deg); /* Keep the flip animation intact */
}

#cat-message {
  text-align: center;
  font-size: 18px;
  color: #4caf50;
  margin-top: 10px;
}
