body {
  font-family: Arial, sans-serif;
  text-align: center;
  padding: 20px;
  overflow-x: hidden;
}

h2 {
  font-size: 18px;
  margin-bottom: 15px;
  text-align: center;
}

.numbers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  max-width: 300px;
  margin: 0 auto 20px auto;
}

label {
  display: block;
  background: #f0f0f0;
  padding: 12px 8px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: 0.2s;
  font-weight: bold;
  font-size: 16px; /* Voorkomt iOS-zoom */
}

input[type="checkbox"] {
  display: none;
}

input[type="checkbox"]:checked + label {
  background: #4caf50;
  color: white;
}

button {
  padding: 12px 20px;
  border: none;
  background: #007bff;
  color: white;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background: #0056b3;
}

#result {
  margin-top: 20px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  line-height: 1.5;
}

.info {
  margin-top: 15px;
  font-size: 14px;
  line-height: 1.5;
}

.jackpot { color: #d32f2f; font-weight: bold; }
.grande { color: #f57c00; font-weight: bold; }
.extra { color: #388e3c; font-weight: bold; }
.sem { color: #555; font-weight: normal; }

#counter {
  margin-top: 10px;
  font-weight: bold;
  color: #007bff;
  font-size: 16px;
}

/* Buttons container centreren */
.buttons-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 15px;
}

/* Modaal popup */
#modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

#modalContent {
  background-color: white;
  margin: 20% auto;
  padding: 20px;
  width: 85%;
  max-width: 300px;
  border-radius: 12px;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#modal button {
  margin-top: 15px;
  background: #d32f2f;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  border: none;
}

/* Animatie voor winnende nummers */
@keyframes flash {
  0%, 100% { background-color: #ffff00; color: black; }
  50% { background-color: #ffeb3b; color: black; }
}
.winner {
  animation: flash 1s ease 0s 3;
}

/* Confetti */
.confetti-piece {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  border-radius: 50%;
  animation: fall linear forwards;
}
@keyframes fall {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--x-end, 0px), var(--y-end, 400px)) rotate(720deg); opacity: 0; }
}

/* 📱 Responsieve aanpassingen voor mobiel */
@media (max-width: 768px) {
  .numbers {
    grid-template-columns: repeat(4, 1fr);
    max-width: 260px;
    gap: 10px;
  }

  h2 {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .numbers {
    grid-template-columns: repeat(3, 1fr);
    max-width: 220px;
    gap: 10px;
  }

  label {
    padding: 14px 6px;
    min-height: 48px; /* Voldoende tikdoel (WCAG) */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
  }

  .buttons-container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .buttons-container button {
    width: 100%;
    max-width: 200px;
    padding: 14px;
  }

  #counter {
    font-size: 15px;
  }

  .info {
    font-size: 13px;
  }

  #modalContent {
    width: 90%;
    padding: 18px;
  }
}