html, body {
  margin: 0;
  padding: 0;
}

canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -10;
}


.quiz-container {
  width: 60%;
  max-width: 600px;
}

/* Slider Styling */
input[type="range"] {
  width: 100%;
}

/* Slider Label */
#slider-label {
  margin-top: 10px;
  font-size: 1.1em;
  font-style: italic;
  color: #818181;
}

/* Progress Indicator */
.progress-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  user-select: none;
}

/* Start Screen Styles */
.container {
  text-align: center;
  width: 80%;
  max-width: 600px;
}

/* Start Screen */
#start-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


#start-button {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  font-family: 'Times New Roman', Times, serif;
  border-radius: 50px; /* Nearly fully rounded corners */
  cursor: pointer;
}

/* Quiz Container */
#quiz-container {
  display: none; /* Hidden until quiz starts */
}

#question-text {
  font-size: 1.2em;
  margin-bottom: 20px;
}

#slider {
  width: 100%;
  margin: 20px 0;
}

#next-button {
  background-color: #000000;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 5px;
  cursor: pointer;
}

#start-screen p {
  font-size: 1.2em;
  margin-bottom: 20px; /* Keep spacing for general paragraphs */
}

#explainer {
  color: #a7a6a6;
  font-size: 12pt !important;
  margin-top: -10px; /* Reduce gap by pulling it up */
}



#question-text {
  font-size: 1.2em;
  margin-bottom: 20px;
  transition: opacity 0.5s ease-in-out; /* Enable smooth transition */
  opacity: 1;
}

/* Classes to control fading */
.fade-out {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.fade-in {
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

@keyframes slideIn {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-100%);
    opacity: 0;
  }
}

/* Apply the animations with a 0.2s duration */
.slide-in {
  animation: slideIn 0.2s forwards;
}

.slide-out {
  animation: slideOut 0.2s forwards;
}



input[type="range"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  background: transparent;
}


input[type="range"]:focus {
  outline: none;
}


input[type="range"]::-webkit-slider-runnable-track {
  height: 12px;  
  background: #ccc;
  border-radius: 30px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #000;
  margin-top: -4px; 
  cursor: pointer;
}

input[type="range"]::-moz-range-track {
  height: 12px;
  background: #ccc;
  border-radius: 3px;
}
input[type="range"]::-moz-range-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #000;
  cursor: pointer;
}

input[type="range"]::-ms-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  background: transparent; 
  border-color: transparent;
  color: transparent;
}

input[type="range"]::-ms-fill-lower {
  background: #ccc;
  border-radius: 3px;
}

input[type="range"]::-ms-fill-upper {
  background: #ccc;
  border-radius: 3px;
}

input[type="range"]::-ms-thumb {
  border: none;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background: #000;
  cursor: pointer;
}
 
