body {
  font-family: sans-serif;
  padding: 20px;
  background-color: #f0f0f0;
}
button {
  margin: 5px;
  padding: 10px 15px;
}


.correct-answer {
  background-color: #4caf50;
  color: white;
  font-weight: bold;
  animation: flash 0.8s ease-in-out;
}

@keyframes flash {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.highlight {
  background-color: #4caf50;
  color: white;
}

.pulse {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.correct-highlight {
  animation: pulse 1s infinite;
  border: 3px solid #ffd700;
  box-shadow: 0 0 10px #ffd700;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}



#show-answer-btn.active-answer {
  background-color: #ffc107;
  color: black;
  font-weight: bold;
}


#waiting-screen {
  text-align: center;
  margin-top: 40px;
  animation: fadeIn 1s ease-in-out;
}

.waiting-avatar img {
  width: 150px;
  animation: bounce 2s infinite ease-in-out;
  filter: drop-shadow(0 0 10px #ccc);
}

.waiting-text {
  font-size: 1.5em;
  color: #555;
  animation: pulseText 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulseText {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


.toast {
  position: fixed;
  bottom: 100px; /* 🔁 Change this to lift it higher from bottom */
  left: 50%;
  transform: translateX(-50%);
  background-color: #cc1313;
  color: #fff;
  padding: 15px 25px;
  border-radius: 10px;
  font-size: 1.2rem;
  display: none;
  opacity: 0;
  z-index: 9999;
  transition: opacity 0.4s ease;
}

.toast.show {
  display: block;
  opacity: 1;
}


#chart-container {
  width: 100%;
  max-width: 600px; /* Adjust this to control the size */

}

#voteChart {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 2 / 1; /* Optional for more control */
}

@media (max-width: 600px) {
  #chart-container {
    max-width: 90%;
  }
}
