body {
  font-family: Arial, sans-serif;
  text-align: center;
  background: #f4f4f4;
  color: #333;
}

.background-container {
  background-image: url("background/Bingo_1.png");
  background-size: 900px 900px;
  background-position: center;
  background-repeat: no-repeat;
  width: 900px;
  height: 900px;
  margin: 30px auto 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dark-mode {
  background: #333;
  color: white;
}

h1 {
  margin-top: 20px;
}

.grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 134px);
  grid-template-rows: repeat(4, 134px);
  gap: 8px;
  justify-content: center;
  margin-top: -154px;
}

.tile {
  /* background: white; */
  /* border: 2px solid #333; */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  user-select: none;
  transition: 0.2s;
  box-sizing: border-box;
  padding: 4px;
  overflow: hidden;
}

.tile-text {
  text-align: center;
  word-break: break-word;
  width: 100%;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

.tile.done {
  background: #168b1a69;
  color: white;
  text-decoration: line-through;
}

.tile.dark-mode {
  background: #20202046;
  border-color: #fff;
  color: white;
}
.tile.dark-mode.done {
  background: #042a0570;
  color: white;
  text-decoration: line-through;
}

.tooltip {
  position: absolute;
  bottom: 105%;
  left: 50%;
  transform: translateX(-50%);
  background: black;
  color: white;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 12px;
  width: 160px;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.tile:hover .tooltip {
  opacity: 1;
}

/* Bingo Style */
.bingo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.hidden {
  display: none;
}

.bingo-text {
  font-size: 80px;
  color: white;
  font-weight: bold;
  animation: pop 0.6s ease;
}

/* Animation */
@keyframes pop {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  60% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}