/* ############################################################################################ */
/* Typography */
/* ############################################################################################ */

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: #555555; /* Neutral gray for text */
  background-color: #f7f7f7; /* Light gray background */
  margin: 0;
  padding: 0;
  line-height: 1.6; /* Improve readability */
}

h0 {
  font-size: 4.5rem;
  font-weight: 900;
  /* color: #286094; Dark Blue */
  /* margin-bottom: 20px; */
}


h1 {
  font-size: 2.5rem;
  font-weight: 700;
  /* color: #286094; Dark Blue */
  /* margin-bottom: 20px; */
}

h2 {
  font-weight: 600;
  color: #333333; /* Slightly darker gray for emphasis */
}

h3 {
  font-weight: 300;
  color: #333333; /* Slightly darker gray for emphasis */
}

p {
  font-size: 1.75rem;
  color: #555555;
  margin-bottom: 5px;
}

label {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 5px;
  font-weight: 500;
  font-size: 18px;
  }

/* ############################################################################################ */
/* Backgrounds */
/* ############################################################################################ */


.bg-1 { 
  background-color: #286094; /* Dark Blue */
  color: #ffffff;
  padding: 20px 0;
}

.bg-2 { 
  background-color: #ffffff; /* White */
  color: #555555;
  padding: 30px 20px;
  border-radius: 8px; /* Smooth edges */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* ############################################################################################ */
/* Buttons */
/* ############################################################################################ */

.btn {
  display: inline-block;
  min-width: 150px;
  max-width: none;
  width: auto;
  padding: 10px 20px;
  font-size: 1.8rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #286094; /* Dark Blue */
  border: none;
  border-radius: 5px;
  text-align: center;
  margin: 20px auto;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: visible;
}


.btn:hover {
  background-color: #1f4f73; /* Slightly darker blue */
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-xlarge {
    padding: 18px 28px;
    font-size: 22px;
    line-height: normal;
}

/* ############################################################################################ */
/* Containers */
/* ############################################################################################ */

.container-fluid {
  padding: 18px 7%;
  max-width: 1800px;
  margin: auto;
}

.container-fluid_top {
  text-align: center;
  padding: 15px 20px;
}

.container-fluid_bottom {
  text-align: center;
  padding: 10px;
  background-color: #f7f7f7;
  color: #555555;
}

.container-fluid_main {
    padding: 20px 10%;
    max-width: 1800px;
    margin: auto;
    padding-top: 200px;
    padding-bottom: 10px;
} 

.extra_padding {
  margin: 30px;
  padding: 30px;
  min-height: 30px;
}

/* ############################################################################################ */
/* Footer */
/* ############################################################################################ */

.footer {
  background-color: #f7f7f7;
  color: #555555;
  text-align: center;
  font-size: 0.9rem;
  padding: 10px 0;
}

/* ############################################################################################ */
/* Form Styles */
/* ############################################################################################ */

input, textarea {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  width: 100%;
  margin-bottom: 15px;
  font-size: 1.5rem;
  box-sizing: border-box; /* Ensure borders & padding are included in total size */
}

/* Hide default radio and checkbox controls */
.radio-group input[type="radio"],
.radio-group input[type="checkbox"]{
  display: none;
}

/* Style for both radio and checkbox labels */
input[type="radio"] + label,
input[type="checkbox"] + label {
  display: block;
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f7f7f7;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: center;
  white-space: normal;       /* Allow text to wrap */
  word-break: break-word;
  box-sizing: border-box;
}

/* Checked state for both radio and checkbox labels */
input[type="radio"]:checked + label,
input[type="checkbox"]:checked + label {
  background-color: #286094;
  color: #ffffff;
  border-color: #286094;
}


/* ############################################################################################ */
/* Radio Group - Single Row with Content-Based Width */
/* ############################################################################################ */


.radio-group {
  display: flex;
  flex-wrap: wrap;            /* Allow wrapping if container is too narrow */
  justify-content: center;    /* Center the buttons horizontally */
  align-items: stretch;        /* Vertically center items */
  /* gap: 10px;                  Space between buttons */
  list-style: none;
  margin: -7px auto 10px auto;
  padding: 0;
  /* gap: 10px;                 Space between buttons */
}

.radio-group li {
  flex: 0 1 auto;            /* Each button only as wide as needed */
}

.radio-group li label {
  display: block;
  padding: 4px 9px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f7f7f7;
  cursor: pointer;
  text-align: center;
  white-space: normal;        /* Allow the label text to wrap */
  word-break: break-word;      /* Break long words if necessary */
  max-width: 180px;           /* Limit button width to a reasonable maximum */
  box-sizing: border-box;
  font-weight: 500;
  font-size: 14px;
  height: 90%;
}

/* ############################################################################################ */
/* Lists */
/* ############################################################################################ */

ul {
  margin-bottom: 5px;
}

li {
  margin: 5px;
}

/* ############################################################################################ */
/* Other */
/* ############################################################################################ */

.try{
  display: inline-table;
}

.sidenote{
  display: table-cell;
  vertical-align: middle;
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 15px;
}
.form_buttons{
  vertical-align: bottom;
}

video{
  width: 100%;
}

/* .stimulus_player{
  width: 100%,
} */

.errors
{
  margin-top: -8px;
  color: red;
}



.audio_question p{
  margin-bottom: 0;
}

.audio_question input[type=radio]{
  display: none;
}

/* Reduce height of line breaks
br {
    line-height: 0.1;
    margin: 0;
    padding: 0;
    display: block;
    content: "";
    height: 0.1em;
    font-size: 0.1em;
} */

/* Small spacing class */
.small-spacing {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    display: block;
    height: 0.5em;
}

/* Error highlighting for unanswered questions */
.question-error {
    color: #dc3545;
    border: 2px solid #dc3545;
    padding: 5px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.question-error h4 {
    color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-weight: bold;
    margin-top: 5px;
}

.confidence-container {
    padding: 0 10px;
    width: 100%;
    margin: 30px auto;
}

.confidence-slider {
    width: 100%;
    margin: 20px 0;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #E0E0E0;
    outline: none;
    border-radius: 2px;
}

.confidence-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    width: 100%;
}

.confidence-labels span {
    text-align: center;
    width: 20%;
    font-weight: 500;
    color: #555;
}

/* Style the slider thumb */
.confidence-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 2px solid #286094;
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.confidence-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 2px solid #286094;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Style the track */
.confidence-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #E0E0E0;
    border-radius: 2px;
}

.confidence-slider::-moz-range-track {
    width: 100%;
    height: 4px;
    background: #E0E0E0;
    border-radius: 2px;
}

/* Active state */
.confidence-slider:active::-webkit-slider-thumb {
    background: #286094;
    border-color: #286094;
}

.confidence-slider:active::-moz-range-thumb {
    background: #286094;
    border-color: #286094;
}