#game-info {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  justify-content: center;
}

#merge-counter,
#reset-button {
  padding: 10px 20px;
  background-color: #bbada0;
  color: white;
  border-radius: 6px;
  font-size: 1.2em;
}

#reset-button {
  cursor: pointer;
  border: none;
  transition: background-color 0.2s;
}

#reset-button:hover {
  background-color: #8f7a66;
}

#game-container {
  position: relative;
  display: flex;
  justify-content: center;
}

#game-grid {
  display: grid;
  grid-template-columns: repeat(5, 100px); /* Zmenené na 5x5 */
  grid-template-rows: repeat(5, 100px); /* Zmenené na 5x5 */
  gap: 10px;
  background-color: #bbada0;
  padding: 10px;
  border-radius: 6px;
  width: 560px;
}

.grid-cell {
  width: 100px;
  height: 100px;
  background-color: #cdc1b4;
  border-radius: 3px;
}

.tile {
  position: absolute;
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8em;
  font-weight: bold;
  border-radius: 3px;
  transition: transform 0.2s ease-in-out;
  will-change: transform;
  z-index: 10;
  text-align: center;
}

.tile.merged {
  animation: pop 0.2s ease-in-out;
}

@keyframes pop {
  0% {
    transform: scale(0.8);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#status-message {
  margin-top: 20px;
  font-size: 1.5em;
  font-weight: bold;
  color: green;
}

.hidden {
  display: none;
}
