body {
  font-family: sans-serif;
  text-align: center;
  padding: 20px;
  max-width: 900px;
  background-color: #dededecf;
  margin: auto;
}

#MainContainer,#BNT,#DOSPERTForm, #Thankyou,#Instruction1,#Instruction2,#ComprehensionQuestions,#Consent,#NumeracyCondition,#Posteriorestimate,#Feedback,#StartExperiment,#SessionBreak{
  background-color: rgb(215, 234, 236);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 40px;
  border-radius: 12px;
  max-width: 900px;
  margin: 5px auto;
}

#Instruction1,#Instruction2,#ComprehensionQuestions,#NumeracyCondition,#Feedback,#StartExperiment,#SessionBreak{
  flex-direction: column;
  white-space: pre-wrap;
}

#Formques {
  text-align: left;
  
}
#NumeracyCondition button, #Feedback button,#SessionBreak button,#StartExperiment button {
  width : 10%;
  margin: auto;
}


#BNT,#DOSPERTForm,#Thankyou{
  flex-direction: column;
  align-items: center;
  max-width: 900px;

}


.inner-container {
  width: 100%;
  max-width: 900px; /* or whatever width you want inside */
  text-align: center;
}


#scenario-title {
  font-size: 26px;
  font-weight: bold;
  color: #004d66;
  margin-bottom: 10px;
  text-align: center;
}

#scenario-description {
  font-size: 18px;
  line-height: 1.6;
  color: #222;
  margin-bottom: 30px;
  text-align: left;
  white-space: pre-wrap;
}
.grid-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(40, 15px);
  grid-gap: 1px;
}
/* .icon {
  width: 15px;
  height: 15px;
  border: 1px solid #ccc;
} */
.legend {
  display: flex;
  flex-wrap: wrap;

  gap: 25px 10px; /* space between items */
  margin-bottom: 10px;

}

.legend-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48%; /* roughly 2 items per row with some spacing */
  margin-bottom: 5px;
  font-size: 14px;
}


.true-positive {
  /* color: rgb(11, 159, 11); */
  fill: rgba(165, 146, 0, 0.989);

}
.false-negative {
  /* background-color: rgb(216, 79, 16); */
  fill: rgb(216, 79, 16);
}
.true-negative {
  /* background-color: rgb(8, 107, 245); */
  fill: rgb(11, 159, 11);

}
.false-positive {
  /* background-color: rgb(222, 242, 148); */
  fill: rgb(8, 107, 245);
}

.green { background-color:  rgb(11, 159, 11); }
.red { background-color: rgb(216, 79, 16)  }
.blue { background-color: rgb(8, 107, 245); }
.orange { background-color: rgb(222, 242, 148);}



.legend-color {
  width: 15px;
  height: 15px;
  margin: 2px;
  border: 1px solid #ccc;
}
.question {
  font-weight: bold;
  margin-top: 30px;
}
.scale {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  gap: 10px;
}
.scale label {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 13px;
}
input[type="radio"] {
  margin-bottom: 4px;
}
button {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 16px;
}

#Scenario{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* Slider */

#Slider{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.slider-container {
  width: 70%;
  margin: 10px auto;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  margin-top: 10px;
}

.slider-labels div {
  width: 30%;
}

input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: #444;
  outline: none;
  border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #2c682c;
  border-radius: 50%;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #2c682c;
  border-radius: 50%;
  cursor: pointer;
}
/* Hide thumb initially */
input[type="range"].inactive::-webkit-slider-thumb {
  display: none;
}

/* After activation */
input[type="range"].active::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #2c682c;
  border-radius: 50%;
  cursor: pointer;
}





.question {
  font-weight: bold;
  margin-top: 30px;
  text-align: left;
}

.question input {
  margin-top: 8px;
  padding: 5px;
  width: 200px;
}



.bnt-progress-container {
  width: 100%;
  background-color: #e0e0e0;
  border-radius: 10px;
  height: 20px;
  margin-bottom: 20px;
  margin-top: 20px;
  overflow: hidden;
}

#bnt-progress-bar,#dospert-progress-bar {
  height: 100%;
  width: 0%;
  background-color: #2c682c;
  transition: width 0.3s ease-in-out;
  border-radius: 10px 0 0 10px;
}










