@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

body {
  font-family: "Rubik", sans-serif;
  background: #0a303b;
  background-size: cover;
  background-repeat: no-repeat;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  min-height: 100vh;
}
h1 {
  margin-top: 20px;
  color: white;
}

#bingo-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  width: min(90vw, 400px);
  margin: 20px auto;
  align-items: center;
  justify-content: center;
} 
.bingo-cell {
  width: 85%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(121, 200, 213);
  font-size: 12px;
  text-align: center;
  padding: 5px;
  cursor: pointer;
  word-wrap: break-word;
}
.marked {
  background: rgba(246, 206, 30, 0.87);
  color: white;
}
.free {
  background: rgba(29, 98, 109, 0.53);
  font-weight: bold;
}
.win-message {
  display: none;
  font-size: 24px;
  color: red;
  font-weight: bold;
  margin-top: 20px;
}
.popup {
  justify-content: center;
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgb(255, 255, 255);
  padding: 20px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);

}
.popup button {
  margin-top: 10px;
}
button {
  background: linear-gradient(135deg, rgb(200, 227, 234), #1d626d);
  border: none;
  color: white;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}
button:hover {
  transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 500px) {
  #bingo-board {
    gap: 5px;
    width: 90vw;
    align-items: center;
    justify-content: center;
  }
  .bingo-cell {
    font-size: 12px;
    padding: 5px;
  }
  button {
    font-size: 14px;
    padding: 10px 16px;
  }
}
