/* Algemene layout */
body {
  font-family: Arial, sans-serif;
  background: #f5f7fa;
  margin: 0;
  padding: 0;
  text-align: center;
  color: #333;
}

h1, h2, h3 {
  margin: 1rem 0;
}

button, input {
  padding: 0.6rem 1rem;
  margin: 0.3rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

button {
  background-color: #4CAF50;
  color: white;
  transition: background 0.2s ease;
}

button:hover {
  background-color: #45a049;
}

input {
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Containers */
#join, #waiting, #question, #result, #gm {
  margin: 2rem auto;
  max-width: 600px;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#options button {
  display: block;
  width: 100%;
  margin: 0.5rem 0;
}

/* Leaderboard */
#leaderboard {
  list-style: none;
  padding: 0;
}

#leaderboard li {
  padding: 0.5rem;
  border-bottom: 1px solid #eee;
}

/* QR code */
#qr {
  margin: 1rem auto;
  display: block;
  max-width: 250px;
}

@keyframes revealMedal {
  0% { opacity: 0; transform: translateY(20px) scale(0.8); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

#winnerList li {
  font-size: 1.4rem;
  margin: 10px 0;
  list-style: none;
}

#winnerList li span.winner {
  color: #ff9800;
  font-weight: bold;
  animation: winnerReveal 1s ease-in-out forwards;
}

.progressbar { 
    background:#eee; 
    height:20px; 
    width:100%; 
    border-radius:10px; 
    margin:1rem 0; 
}

#timebar { 
    background:#4CAF50; 
    height:100%; 
    width:100%; 
    border-radius:10px; 
    transition: width 0.2s; 
}

/* Question area */
#questionArea { 
    margin-top: 20px; 
    font-size: 1em; 
}
#options { display: flex; flex-direction: column; gap: 8px; }
#options button { width: 100%; }

/* Progressbar */
#progress { width: 100%; height: 20px; background: #ddd; border-radius: 10px; overflow: hidden; margin-top: 12px; }
#progressInner { height: 100%; background: green; width: 0%; transition: width 0.1s linear; }

/* Feedback & media */
#qMedia img, #qMedia audio { max-width: 100%; height: auto; }

/* Media queries voor kleinere schermen */
@media (max-width: 480px) {
  h1 { font-size: 1.2em; }
  button { padding: 12px; font-size: 1em; }
  #qText { font-size: 1.1em; }
}

.optionBtn { 
  padding: 12px 16px; 
  border-radius: 6px; 
  font-size: 1em; 
  border: none; 
  color: #fff; 
  cursor: pointer; 
  box-sizing: border-box; 
  align-items: center;
  justify-content: center;
}

/* Spelerknoppen full-width */
.playerOptionBtn {
  width: 100%;
  font-size: 2em;
}

/* Gamemasterknoppen compacter */
.gmOptionBtn {
  width: auto;           /* niet full-width */
  padding: 8px 16px;
  margin-bottom: 4px;
  font-size: 3em;
}

.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: 40px;
  gap: 20px;
  height: 300px;
  position: relative;
}

.place {
  width: 150px;
  text-align: center;
  border-radius: 10px 10px 0 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  background: #ccc;
  overflow: hidden;

  /* background: none;
  background-image: url('/images/podium-block.png');
  background-size: cover; */
}

.place.first {
  height: 200px;
  background: gold;
  order: 2; /* in het midden */
}

.place.second {
  height: 150px;
  background: silver;
  order: 1;
}

.place.third {
  height: 120px;
  background: #cd7f32; /* brons */
  order: 3;
}

.player {
  padding: 10px;
  font-weight: bold;
  animation: winnerReveal 1s ease forwards;
}

.place span {
  display: block;
  color: #222;
}

/* animatie bij opkomst */
@keyframes winnerReveal {
  0% { opacity: 0; transform: translateY(50px) scale(0.8); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}


#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* niet klikken blokkeren */
  z-index: 9999;
}


.optionBtn.red { background-color: #c7da1e; color: #fff; }
.optionBtn.blue { background-color: #ca7c07; color: #fff; }
.optionBtn.green { background-color: #afb47d; color: #fff; }
.optionBtn.orange { background-color: #1a95b4; color: #fff; }
.optionBtn.purple { background-color: #2e53b9; color: #fff; }

/* eventueel nog extra kleuren toevoegen als er meer opties zijn */
