/* for god blessed us with comic sans */
@import url('https://fonts.googleapis.com/css2?family=Comic+Relief:wght@400;700&display=swap');

/* themes */
[data-theme="light"] { --color-bg: #EEEEEE; --header-color: #3bd6a2; --cell-unactive: #f2f2f2; --cell-text: black; --cell-active: #4CAF50; --bingo: #71e3f7; }
[data-theme="dark"] { --color-bg: #232323; --header-color: #267f61; --cell-unactive: #898989; --cell-text: #383838; --cell-active: #357a38; --bingo: #52a4b2; }

/* animation for cool */
@keyframes colorRotate {
  from {
    background-color: #6666ff;
  }
  10% {
    background-color: #0099ff;
  }
  50% {
    background-color: #00ff00;
  }
  75% {
    background-color: #ff3399;
  }
  100% {
    background-color: #6666ff;
  }
}


body {
  background-color: var(--color-bg);
  transition: background-color 0.3s;
  
  font-family: "Comic Relief", sans-serif;
  justify-content: center;
  align-items: center;
  margin: 0;
  height: 100vh;
  display: flex;
}


/* this is for the bingo card */

.bingo-card {
  background-color: #444;
  display: grid;
  gap: 5px;
  padding: 5px;
  border-radius: 10px;
}


.cell {
  background-color: var(--cell-unactive);
  color: var(--cell-text);
  transition: background-color 0.3s;
  
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-weight: bold;
  word-break: break-word;
  line-height: 1.2;
  border-radius: 5px;
  padding: 5px;
  
  cursor: pointer;
  user-select: none;
}


.cell.clicked:not(.bingo) {
    background-color: var(--cell-active);
    color: white;
}

.cell.bingo {
  background-color: var(--bingo);
}

.header {
    background-color: var(--header-color);
    color: white;
    font-size: 24px;
    grid-column: 1 / -1;
    text-align: center;
    cursor: auto;
}



/* random about modal */

#about {
  text-align: center;
}


/* for the buttons on the bottom right */

.button-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.button-container button {
  padding: 10px 16px;
  font-size: 0.95rem;
  border: none;
  border-radius: 5px;
  background-color: var(--header-color);
  color: white;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  white-space: nowrap;
}

.button-container button:hover {
  background-color: var(--cell-active);
  transform: scale(1.05);
}

.button-container button:active {
  background-color: var(--bingo);
  transform: scale(0.95);
}

.button-container select {
  padding: 10px 16px;
  font-size: 0.95rem;
  border: none;
  border-radius: 5px;
  background-color: var(--header-color);
  color: white;
  cursor: pointer;
}

.button-container > * {
  /* for the half buttons below */
  width: 100%;
}

.half-buttons {
  display: flex;
  gap: 10px;
  width: 100%;
}

.half-buttons button {
  flex: 1;
  padding: 10px 16px;
  font-size: 0.95rem;
}

#screenshot {
  animation: colorRotate 6s linear 0s infinite;
}



/* for da mobile users yo */
@media (max-width: 400px) {
  .fixed-button-group {
    bottom: 15px;
    right: 15px;
  }

  .fixed-button-group button {
    font-size: 0.85rem;
    padding: 8px 14px;
  }
}
