/* styles.css */
/* Apply global box-sizing to include padding and border in element's total width/height */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Apply padding and margin to the body */
body {
    margin: 0;
    padding: 0;
}
.jspsych-content {
  padding-left: 20px;
  padding-right: 20px;
}
/* Add padding to a wrapper container instead of directly to the body */
.wrapper {
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    margin: 0 auto; /* Ensures the wrapper is centered and does not overflow */
}

/* Optional: Add some margin to the body to keep text from sticking to the edge of the screen */
body {
    margin: 0 20px; /* Add margin to the left and right of the body */
}

/* Add left and right padding to the #consent-form container */
#consent-form {
    padding-left: 10px; /* Adjust this value as needed */
    padding-right: 10px; /* Adjust this value as needed */
}

#consent-form p {
    text-align: left;
}
#consent-form p strong {
  font-weight: bold;
  line-height: 0.8;         /* Tighter for bold lines */
  margin-bottom: 0em;    /* Small space before next paragraph */
}
/* Padding for specific questions by their ID */
#age-question .jspsych-survey-multi-choice-question {
    padding-left: 20px;  /* Adjust left padding */
    padding-right: 20px; /* Adjust right padding */
}

/* Padding for the question text */
#age-question .jspsych-survey-multi-choice-text {
    padding-left: 10px;  /* Adjust padding inside the question text */
    padding-right: 10px; /* Adjust padding inside the question text */
}

/* Optional: Add spacing between options */
#age-question .jspsych-survey-multi-choice-option {
    padding-left: 10px; /* Padding for the options */
}

/* Repeat for the other question */
#participation-agreement .jspsych-survey-multi-choice-question {
    padding-left: 20px;
    padding-right: 20px;
}

#participation-agreement .jspsych-survey-multi-choice-text {
    padding-left: 10px;
    padding-right: 10px;
}

#participation-agreement .jspsych-survey-multi-choice-option {
    padding-left: 10px;
}


/* Add padding to the entire question container */
.jspsych-survey-multi-choice .jspsych-survey-multi-choice-question {
    padding-left: 20px;  /* Adjust left padding */
    padding-right: 20px; /* Adjust right padding */
}

/* Add padding to the question text itself */
.jspsych-survey-multi-choice .jspsych-survey-multi-choice-text {
    padding-left: 10px;  /* Adjust padding inside the question text */
    padding-right: 10px; /* Adjust padding inside the question text */
}

/* Optional: Add some margin to space out each question */
.jspsych-survey-multi-choice .jspsych-survey-multi-choice-question {
    margin-bottom: 15px;  /* Adds space between each question */
}

/* Style for the checkbox group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

/* Style for individual labels */
.checkbox-group label {
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* Checkbox itself */
.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Style for the 'Other' text input */
.other-input {
    width: 100%;
    max-width: 400px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    font-family: sans-serif;
}

/* Label for the 'Other' input field */
.other-label {
    font-weight: 500;
    margin-top: 1em;
    display: block;
}

/* Style for radio group */
.radio-group {
    display: flex;
    flex-direction: column; /* Stacks radio buttons vertically */
    margin-left: 20px; /* Adds indentation to align with question */
    margin-bottom: 10px; /* Optional: Adds some space between options */
}

/* Style for individual radio labels */
.radio-group label {
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px; /* Adds space between each radio option */
    cursor: pointer;
}

/* Radio button styling */
.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
}

/* New class specifically for the music genre question (grid layout) */
.music-genre-group {
    display: grid; /* Use grid layout for checkboxes */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Automatically fill rows with columns, each at least 200px */
    gap: 10px; /* Add space between checkboxes */
    margin-bottom: 20px;
}

/* Style for individual labels (this will apply only to music genres with the new class) */
.music-genre-group label {
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* Checkbox itself (applies only to music genres with the new class) */
.music-genre-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* .likert-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .likert-labels {
    display: flex;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto 4px auto;
    padding: 0 10px;
    font-size: 14px;
  }
   */
   .likert-label-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 4px auto;
    padding: 0;
    box-sizing: border-box;
  }
  
  .likert-left,
  .likert-right {
    font-size: 14px;
    width: 100px;
  }
  
  .likert-left {
    text-align: left;
    margin-left: -20px; /* default overhang */
  }
  
  .likert-right {
    text-align: right;
    margin-right: -20px; /* default overhang */
  }
  
  /* Media query for small screens: remove overhang */
  @media screen and (max-width: 2000px) {
    .likert-left {
      margin-left: 10px;
    }
  
    .likert-right {
      margin-right: 10px;
    }
  }


/* Remove extra padding/margin specifically for the sleep_likelihood question */
.jspsych-survey-likert-question[data-name="sleep_likelihood"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 20px !important;   /* or whatever matches your page */
  margin-right: 20px !important;
  max-width: none !important;
}

/* Also adjust the label container inside it */
.jspsych-survey-likert-question[data-name="sleep_likelihood"] .likert-label-row {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 20px !important;  /* aligns with overall page */
  padding-right: 20px !important;
}

  /* .jspsych-survey-likert-scale {
    max-width: 600px;
    margin: 0 auto;
  }
   */
/* 
  .jspsych-survey-likert-statement {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
  }
  
  .jspsych-survey-likert-option {
    flex: 1;
    text-align: center;
    min-width: 0; /* allow squishing 
    font-size: 14px;
  }
  
  .jspsych-survey-likert-scale {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
  }


   */

/* Ensure consistent padding for all jsPsych survey questions */
.jspsych-survey-multi-choice .jspsych-survey-multi-choice-question {
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 15px; /* spacing between questions */
}

/* Ensure consistent padding for question text and options */
.jspsych-survey-multi-choice .jspsych-survey-multi-choice-text,
.jspsych-survey-multi-choice .jspsych-survey-multi-choice-option {
    padding-left: 20px;
    padding-right: 20px;
}