/* ===== MERGED FROM screen.css ===== */

body {
    font-family: Verdana;
    font-size: 10pt;
    background-color: #fafafa;
}

.secframe {
    padding-top: 4em;
    padding-left: 4em;
}

.vertGap {
    padding-top: 4em;
}

.responseFrame {
    padding-top: 2.5em;
    padding-left: 2.5em;
    padding-right: 2.5em;
    padding-bottom: 5em;
    background-color: #fafafa;
}

#ageDisplay {
    border-style: solid;
    border-width: 1px;
    margin-left: 3em;
    padding-left: 0.25em;
    padding-right: 0.25em;
}

/* ===== EXPERIMENT2 SPECIFIC STYLES ===== */

#parta_pis h1 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

#parta_pis h2 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

#parta_pis p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: justify;
}

/* ===== SCALE QUESTIONS (SSIS/NIS/Colour Scales) ===== */

.scale-question {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
}

.scale-question-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-align: center;
}

.scale-options {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.scale-option-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scale-option-item input[type="radio"] {
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
}

.scale-option-item label {
    font-size: 1rem;
    margin: 0;
}

.scale-anchors {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-style: italic;
    color: #666;
    margin-bottom: 0.5rem;
}

.scale-anchor-left,
.scale-anchor-right {
    padding: 0 0.5rem;
}

/* ===== COLOUR SCALE SLIDERS ===== */

.colour-scale-question {
    margin-bottom: 2rem;
    padding: 2rem;
}

.colour-display-container {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Single colour swatch - 300x300px */
.colour-swatch-single {
    width: 300px;
    height: 300px;
    border: 1px solid #ccc;
}

/* Colour pair outer - 300x300px */
.colour-swatch-outer {
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ccc;
}

/* Colour pair inner - 100x100px centered */
.colour-swatch-inner {
    width: 100px;
    height: 100px;
}

.slider-group {
    margin-bottom: 2rem;
}

.slider-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-align: center;
}

.slider-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.slider-anchors {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.slider-anchor-left,
.slider-anchor-right {
    font-size: 0.9rem;
    font-style: italic;
    color: #666;
    flex: 0 0 auto;
}

.slider-anchor-left {
    text-align: left;
}

.slider-anchor-right {
    text-align: right;
}

.slider-container .form-range {
    width: 100%;
}

.experiment2-task-frame {
    min-height: 620px;
}

.experiment2-debugdisplay {
    background: #ffffff;
    border: 2px solid #333333;
    margin-bottom: 1rem;
    padding: 0.75rem;
}

.experiment2-debugdisplay p {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.experiment2-debugdisplay .btn {
    margin-bottom: 0.25rem;
    margin-right: 0.25rem;
}

.experiment2-screen-debug {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #d3d3d3;
    border-bottom: 2px solid #999999;
    padding: 0.5rem 1rem;
    text-align: left;
}

.experiment2-screen-debug p {
    margin: 0;
    font-weight: bold;
    font-size: 0.9rem;
    color: #333333;
}

.experiment2-debugbar {
    border: 1px solid #999999;
    padding: 0.5rem 1rem;
    background-color: #ccbfbf;
    margin-top: 2rem;
}

.experiment2-debugbar p {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.experiment2-debugbar .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
}

.experiment2-task-screen {
    width: 100%;
}

.experiment2-task-section .container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

.experiment2-stimulus-screen {
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-bottom: 180px;
}

.experiment2-fixation {
    color: #000000;
    font-family: Arial, sans-serif;
    font-size: 64px;
    font-weight: bold;
}

.experiment2-word {
    font-family: Arial, sans-serif;
    font-size: 64px;
    font-weight: bold;
}

.experiment2-patch-box {
    width: 400px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.experiment2-patch-word {
    font-family: Arial, sans-serif;
    font-size: 40px;
    font-weight: bold;
}

.experiment2-feedback-icon {
    font-size: 96px;
    line-height: 1;
}

.experiment2-feedback-text {
    color: #000000;
    font-family: Arial, sans-serif;
    font-size: 40px;
    font-weight: bold;
    margin-top: 1rem;
}

.experiment2-response-btn {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s;
    flex: 0 1 auto;
    min-width: 180px;
}

.experiment2-response-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.experiment2-response-btn h3 {
    margin: 0.5rem 0 0 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.experiment2-key-img {
    width: 100px;
    height: 100px;
    display: block;
    margin: 0 auto;
}

#word_response_btns,
#patch_response_btns {
    margin-top: 2rem;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
}

@media (max-width: 768px) {
    .experiment2-key-img {
        width: 80px;
        height: 80px;
    }
    
    .experiment2-response-btn h3 {
        font-size: 1rem;
    }
}

@media (min-width: 1200px) {
    .experiment2-key-img {
        width: 120px;
        height: 120px;
    }
    
    .experiment2-response-btn h3 {
        font-size: 1.4rem;
    }
}

/* ===== COMPREHENSIVE RESPONSIVE BREAKPOINTS ===== */

/* Mobile devices (max 767px) */
@media (max-width: 767px) {
    .secframe {
        padding-top: 2em;
        padding-left: 1em;
        padding-right: 1em;
    }
    
    .responseFrame {
        padding: 1.5em 1em;
    }
    
    /* Scale questions - mobile stacked */
    .scale-question {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .scale-question-text {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .scale-options {
        gap: 0.75rem;
    }
    
    .scale-option-item input[type="radio"] {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .scale-option-item label {
        font-size: 0.9rem;
    }
    
    .scale-anchors {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .scale-anchor-left,
    .scale-anchor-right {
        padding: 0 0.25rem;
    }
    
    /* Colour scales - mobile adjustments */
    .colour-scale-question {
        padding: 1rem;
    }
    
    .colour-display-container {
        margin-bottom: 1.5rem;
    }
    
    .colour-swatch-single,
    .colour-swatch-outer {
        width: 280px;
        height: 280px;
    }
    
    .colour-swatch-inner {
        width: 93px;
        height: 93px;
    }
    
    .slider-group {
        margin-bottom: 1.5rem;
    }
    
    .slider-label {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .slider-container {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .slider-anchor-left,
    .slider-anchor-right {
        text-align: center;
        min-width: auto;
        font-size: 0.85rem;
    }
    
    .slider-container .form-range {
        width: 100%;
    }
    
    /* Task screens */
    .experiment2-task-screen {
        padding: 1rem;
    }
    
    .experiment2-word {
        font-size: 2.5rem;
    }
    
    .experiment2-response-btn {
        width: 120px;
        height: 120px;
        font-size: 1rem;
        min-width: 120px;
    }
    
    #word_response_btns,
    #patch_response_btns {
        gap: 1.5rem;
        max-width: 100%;
    }
}

/* Tablet devices (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .scale-question {
        padding: 1.25rem;
    }
    
    .scale-question-text {
        font-size: 1.05rem;
    }
    
    .scale-options {
        gap: 0.9rem;
    }
    
    .colour-swatch-single,
    .colour-swatch-outer {
        width: 350px;
        height: 350px;
    }
    
    .colour-swatch-inner {
        width: 117px;
        height: 117px;
    }
    
    .slider-anchor-left,
    .slider-anchor-right {
        min-width: 90px;
    }
    
    .experiment2-word {
        font-size: 3rem;
    }
    
    .experiment2-response-btn {
        width: 140px;
        height: 140px;
        min-width: 140px;
    }
}

/* Desktop devices (992px+) - defaults work well, minor tweaks */
@media (min-width: 992px) {
    .scale-question {
        padding: 1.5rem;
    }
    
    /* Desktop uses default 300x300 and 100x100 sizes */
}
