body, html {
    max-width: 100%;
    overflow-x: hidden; /* Prevents horizontal scrolling */
    background-color: #F6F9F5; /* Light sage mist */
}
h1, h2, h3, p.jspsych-survey-multi-choice-text, p#note {
    color: #3e5f4e; /* deep moss green */
}
h1, h2{
  font-size: clamp(1.3rem, 3.5vw, 2rem); /* responsive scaling */
  letter-spacing: 0.03em; /* enhanced letter spacing */
  text-align: center;
  word-break: break-word;
  hyphens: auto;
  margin: 1rem auto;
  padding: 0 1rem;
  max-width: 100%;  /* allow full width */
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.8rem); /* smaller responsive scaling */
  font-weight: 600; /* lighter weight than default bold */
  letter-spacing: 0.02em; /* add some letter spacing */
  text-align: center;
  word-break: break-word;
  hyphens: auto;
  margin: 1rem auto;
  padding: 0 1rem;
  max-width: 100%;  /* allow full width */
}
p#note {
    font-weight: bold;
}
.jspsych-btn {
    background-color: white;
    border: 2px solid #3e5f4e;
    color: #3e5f4e;
    min-width: 120px;  /* Forces equal width */
    transition: all 0.3s ease;
    border-radius: 6px;
}
.jspsych-btn:disabled {
  background-color: #f0f0f0;
  border: 2px solid #ccc;
  color: #999;
  opacity: 1; /* Prevents it from shrinking */
  cursor: not-allowed;
  border-radius: 6px;
  padding: 6px 12px; /* Same as enabled buttons */
  font-size: 16px;
  box-sizing: border-box;
}

.jspsych-btn:hover {
    background-color: #C2D1BD; /* fern green */
    color: #2D2D2D;
    border-color: #9BA79E; /* olive gray */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.jspsych-btn:active {
    background-color: #A8C3A0;
    color: #2D2D2D;
    border-color: #9BA79E;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.jspsych-instructions-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.brown-btn {
    background-color: #BDC6B0;
    color: #2E4A3D;
    border-radius: 6px;
}

.brown-btn:hover {
    background-color: #C2D1BD; /* fern green */
    color: #2D2D2D;
    border-color: #9BA79E; /* olive gray */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.jspsych-content {
    padding: 10px;
}

p{
    text-align: left;
}
.jspsych-btn.jspsych-btn{
    display: block;
    text-align: center;
    margin: 0 auto;
}
form{
    padding: 20px;
}
img.emoji{
    display: block;
    text-align: center;
    margin: 0 auto;
}
p.jspsych-survey-multi-choice-text{
    color: #3e5f4e;
}

p#thanks{
    text-align: center;
}

div#demog_q{
    text-align: left;
}   
div#language_q{
    text-align: left;
}
video{
    text-align: center;
}
.responsive-video {
  display: block;
  width: 100%;
  max-width: 320px;      /* all videos cap at 320px wide */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  margin: 0 auto 24px;   /* center + space below */
}

/* slider */
/* Range slider track */
input[type=range].styled-slider {
  width: 100%;
  appearance: none;
  height: 8px;
  background: #d3d3d3;
  border-radius: 5px;
  outline: none;
  position: relative;
  margin-bottom: 0px; /* Extra space for ticks */
}

/* Thumb (circle you drag) */
input[type=range].styled-slider::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #3e5f4e;
  cursor: pointer;
  border: none;
  margin-top: -8px;
}

input[type=range].styled-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #3e5f4e;
  cursor: pointer;
  border: none;
}

/* FAKE TICKS using background gradient */
input[type=range].styled-slider {
  background-image: 
    linear-gradient(to right, 
    #3e5f4e 0%, 
    #d3d3d3 0.5%, 
    #d3d3d3 32.83%, 
    #3e5f4e 33.33%, 
    #d3d3d3 33.83%, 
    #d3d3d3 66.17%, 
    #3e5f4e 66.67%, 
    #d3d3d3 67.17%, 
    #d3d3d3 99.5%, 
    #3e5f4e 100% 
    );
  background-size: 100% 7px;
  background-repeat: no-repeat;
  background-position: bottom center;
}



/* 2 videos side by side */
.fc-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 0;
    box-sizing: border-box;
  }
  
  .fc-prompt {
    font-size: 20px;
    color: #3e5f4e;
    margin-bottom: 24px;
    text-align: center;
    max-width: 800px;
  }
  
  .fc-row {
    display: flex;
    justify-content: center;
    gap: 5vw;
    width: 100%;
    max-width: 800px;
  }
  
  .fc-video-block {
    width: 45vw;
    max-width: 300px;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .fc-video-block video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }
  
  .fc-label {
    margin-top: 10px;
    font-weight: bold;
    color: #3e5f4e;
    text-align: center;
    font-size: 16px;
  }
  
  .fc-button-group {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
    justify-content: center;
  }
.emoji-grid {
    display: grid;
    grid-template-columns: repeat(4, 60px);
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}
.emoji-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
.emoji-img:hover {
    background: #b8c4b4;
    box-shadow: 0 0 0 3px #A8C3A0;
    transform: scale(1.05);

}
.emoji-img {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.selected-rank-1 .emoji-img {
    box-shadow: 0 0 0 3px #3e5f4e;
    transform: scale(1.1);
}
.selected-rank-2 .emoji-img {
    box-shadow: 0 0 0 3px #5f473e;
    transform: scale(1.05);
}

.label-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
    margin-top: 20px;
}
.label-option {
    position: relative;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    background: #f0f5f0;
    cursor: pointer;
    transition: background 0.2s ease;
}
.label-option:hover {
    background: #d9e2da;
}
.label-rank {
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    background: #3e5f4e;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}
/* container around each slider + labels */
.slider-block {
  width: 100%;
  max-width: 420px;  /* ⬅️ Try this instead of 600px */
  margin-bottom: 30px;
  margin-left: auto;
  margin-right: auto;
}
  

/* tick labels under the slider */
.tick-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  /* margin-top: 2px; */
  font-size: 14px;
  color: #3e5f4e;
}
/* .tick-labels .tick-dash {
  margin-left: -80px !important;
} */

/* optional: label text above */
.slider-label {
  margin-bottom: 0px;
  font-size: 16px;
  color: #3e5f4e;
}

@media (max-width: 480px) {
  .fc-container { padding: 0 10px; }

  .responsive-video { max-width: 90vw; }

  .slider-large {
    height: 10px;
  }
  .slider-large::-webkit-slider-thumb,
  .slider-large::-moz-range-thumb {
    width: 18px;
    height: 18px;
    margin-top: -4px;
  }
  .tick-labels { font-size: 11px; }
  .slider-label { font-size: 13px; }
}

  .disabled-option {
    opacity: 0.4;
    pointer-events: none;
}