.wbingo-board-title {
  text-align: center;
  margin-bottom: 20px;
}

.wbingo-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  gap: 5px;
  width: 80%;
  max-width: none;
  margin: auto;
}

.wbingo-board.bingo-animation {
  animation: wbingo-bingo-effect 1s ease-in-out;
}

@keyframes wbingo-bingo-effect {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.wbingo-tile {
  border: 1px solid #444;
  padding: 10px;
  min-height: 80px;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  position: relative;
  color: black;
  text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff;
}

.wbingo-tile.has-image {
  background-size: cover;
  background-position: center;
}

.wbingo-tile span {
  position: relative;
  z-index: 2;
}

.wbingo-tile.active {
}

.wbingo-tile.active span {
  color: white;
  text-shadow: 0 0 5px #000, 0 0 10px #000;
}

.wbingo-tile.active:not(.has-image) {
  background-color: #4caf50;
}

.wbingo-tile.active.has-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(76, 175, 80, 0.5);
  z-index: 1;
}

.wbingo-board.bingo-celebrate {
  animation: tada 1s ease;
}

@keyframes tada {
  0% {
    transform: scale(1);
  }
  10%, 20% {
    transform: scale(0.9) rotate(-3deg);
  }
  30%, 50%, 70%, 90% {
    transform: scale(1.1) rotate(3deg);
  }
  40%, 60%, 80% {
    transform: scale(1.1) rotate(-3deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}
