.jspsych-content {
    font-size: 100%;
}

.jspsych-display-element {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #2c3e50;
}

.consent-container,
.instruction-container,
.trial-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.consent-container p,
.instruction-container p {
    margin-bottom: 14px;
}

.consent-container {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px 40px;
}

.consent-container a {
    color: #3498db;
}

.jspsych-btn {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 30px;
    border: none;
    border-radius: 6px;
    background-color: #3498db;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.jspsych-btn:hover {
    background-color: #2980b9;
}

.jspsych-btn:active {
    background-color: #1f6da3;
}

.trial-image {
    max-width: 600px;
    max-height: 350px;
    margin-bottom: 8px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.trial-container p {
    font-size: 18px;
    margin-top: 12px;
}

.jspsych-slider-response-container {
    margin-top: 50px;
    margin-bottom: 0;
}

#jspsych-html-slider-response-btngroup {
    margin-top: 10px;
}

.jspsych-slider-response-container label,
#jspsych-html-slider-response-response .jspsych-slider-response-label,
.jspsych-content .jspsych-slider-response-container label {
    font-size: 100px !important;
    font-weight: 700 !important;
    color: #555;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #dcdcdc;
    border-radius: 4px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

#slider-value-input::-webkit-outer-spin-button,
#slider-value-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#slider-value-input {
    -moz-appearance: textfield;
}

#jspsych-progressbar-container {
    border-bottom: 1px solid #e0e0e0;
    background-color: #f5f5f5;
    padding: 8px 0;
}

#jspsych-progressbar-container #jspsych-progressbar-inner {
    background-color: #3498db;
    border-radius: 4px;
}

#jspsych-progressbar-container span {
    font-size: 13px;
    color: #777;
}

.jspsych-survey-html-form .jspsych-survey-html-form-preamble {
    font-size: 19px;
    margin-bottom: 20px;
}

.jspsych-survey-html-form p {
    margin-bottom: 14px;
    font-size: 16px;
}

.jspsych-survey-html-form input[type="text"],
.jspsych-survey-html-form select {
    font-family: inherit;
    font-size: 15px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
}

.jspsych-survey-html-form select {
    padding: 6px 8px;
}

#captcha-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    text-align: center;
}

#captcha-container h3 {
    margin-top: 0;
    color: #2c3e50;
}

#captcha-proceed {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 30px;
    border: none;
    border-radius: 6px;
    background-color: #3498db;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
}

#captcha-proceed:hover {
    background-color: #2980b9;
}

.end-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.end-container p {
    font-size: 20px;
}
