/* ------------------------------------------ */
/*         STYLING FOR JSPsych EXPERIMENT    */
/* ------------------------------------------ */

/* ------------------------------------------ */
/*              CONTAINERS                   */
/* ------------------------------------------ */
body {
    background-color: #696666; /* Light gray color */
    font-family: Arial, sans-serif;
    color: white;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevent scrolling on body */
}

/* Main container */
.discounting-container {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    margin: 0;
    padding: 0;
}

/* Options container */
.options-container {
    position: absolute;
    top: 35%; /* Same vertical position as fixation cross */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between; /* Push buttons to the sides */
    width: 40vw; /* 700px / 2560 * 100 */
    z-index: 10;
}

/* Updated options containers with fixed positioning */
.options-container-compherension,
.options-container-compherension-vertical {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 27.3438vw; /* 700px / 2560 * 100 */
    margin-top: 1.3889vh; /* 20px / 1440 * 100 */
    transform: none;
    left: 0;
    top: 0%;
}

/* ------------------------------------------ */
/*              TEXT ELEMENTS                */
/* ------------------------------------------ */
/* Fixation cross styling */
.fixation-cross {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5vh; /* 48px / 1440 * 100 */
    font-weight: bold;
    color: #696666; /* Light gray color */
    width: 2.3438vw; /* 60px / 2560 * 100 */
    height: 4.1667vh; /* 60px / 1440 * 100 */
    display: none; /* Hide by default */
    align-items: center;
    justify-content: center;
    z-index: 11;
}

/* Fixation instruction */
.fixation-instruction {
    position: absolute;
    top: 65%; /* Higher is lower */
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 55vw; /* 750px / 2560 * 100 or 90% of viewport */
    max-width: 80%; /* Added to prevent overflow on smaller screens */
    font-size: 2.5vh;
    font-weight: bold;
    color: white;
    padding: 0 0 auto;
    border-radius: 0.2344vw; /* 6px / 2560 * 100 */
    text-align: center;
    z-index: 10;
    background-color: #696666; /* Optional: added semi-transparent background */
    box-shadow: 0 0.1563vw 0.2344vw #696666; /* 4px, 6px / 2560 * 100 */
}

.fixation-instruction p {
    margin: 0.3472vh 0; /* 5px / 1440 * 100; Added some margin between paragraphs */
    line-height: 1.5; /* Improved readability */
}

/* Pairing information */
.pairing-info {
    position: absolute;
    top: 1%;
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Center horizontally */
    width: auto;
    min-width: 55vw; /* 700px / 2560 * 100 */
    font-size: 3vh; /* 24px / 1440 * 100 */
    font-weight: bold;
    color: white;
    padding: 0.5556vh 0.6250vw; /* 8px / 1440 * 100, 16px / 2560 * 100 */
    border-radius: 0.2344vw; /* 6px / 2560 * 100 */
    text-align: center;
    z-index: 10;
}

/* Question text */
.question-text {
    position: absolute;
    top: 65%; /* Higher is lower */
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 55vw; /* 750px / 2560 * 100 or 90% of viewport */
    max-width: 80%; /* Added to prevent overflow on smaller screens */
    font-size: 3vh; /* 24px / 1440 * 100 */
    font-weight: bold;
    color: white;
    padding: 0 0 auto;
    border-radius: 0.2344vw; /* 6px / 2560 * 100 */
    text-align: center;
    z-index: 10;
    background-color: #696666; /* Optional: added semi-transparent background */
    box-shadow: 0 0.1563vw 0.2344vw #696666; /* 4px, 6px / 2560 * 100 */
}

.question-text h4 {
    margin: 0;
    font-size: 1.5vw; /* 24px / 1440 * 100 */
}

.question-text h3 {
    position: absolute;
    top: -9.7222vh; /* -140px / 1440 * 100; Adjust this value to position above h4 */
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 3vw; /* 20px / 1440 * 100 */
    padding: 0.3472vh 0.3906vw; /* 5px / 1440 * 100, 10px / 2560 * 100 */
    border-radius: 0.1563vw; /* 4px / 2560 * 100; Smaller border radius */
    background-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0.0781vw 0.1563vw rgba(0, 0, 0, 0.1); /* 2px, 4px / 2560 * 100; Smaller shadow */
    line-height: 1.2; /* Tighter line height */
    width: fit-content; /* Make it fit content width instead of percentage-based width */
    min-width: 60%;
}

.question-text h2 {
    position: absolute;
    top: -9.7222vh; /* -140px / 1440 * 100; Adjust this value to position above h4 */
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 1.6667vh; /* 24px / 1440 * 100 */
    padding: 0.3472vh 0.3906vw; /* 5px / 1440 * 100, 10px / 2560 * 100 */
    border-radius: 0.1563vw; /* 4px / 2560 * 100; Smaller border radius */
    background-color: rgba(0, 0, 0, 0.3); /* Corrected to match h3 for consistency */
    box-shadow: 0 0.0781vw 0.1563vw rgba(0, 0, 0, 0.1); /* 2px, 4px / 2560 * 100; Smaller shadow */
    line-height: 1.2; /* Tighter line height */
    width: fit-content; /* Make it fit content width instead of percentage-based width */
    min-width: 60%;
}

/* ------------------------------------------ */
/*              BUTTONS                      */
/* ------------------------------------------ */
/* Option button styling */
.option-button {
    width: 9vw; /* 200px / 2560 * 100 */
    min-height: 8vh; /* 80px / 1440 * 100 */
    border-radius: 0.5vw; /* 10px / 2560 * 100 */
    background-color: #4682B4;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5vh; /* 10px / 1440 * 100 */
    text-align: center;
    box-shadow: 0 0.1563vw 0.3125vw #696666; /* 4px, 8px / 2560 * 100 */
    transition: background-color 0.2s, transform 0.1s;
}

/* Option text - adjust for line breaks */
.option-button span {
    color: white;
    font-size: 3vh; /* 30px / 1440 * 100 */
    font-weight: bold;
    line-height: 1.3;
    padding: 0.35vh; /* 5px / 1440 * 100 */
}

/* Selected option styling */
.option-button.opt-selected {
    background-color: #28c2f6 !important;
    box-shadow: 0 0 0.7813vw #28c2f6; /* 20px / 2560 * 100 */
    transform: scale(1.05);
}

.instructions {
    font-weight: bold;
    font-size: 3vh; /* 24px / 1440 * 100 */
}

.offer-below {
    position: absolute;
    top: 15%; /* Same vertical position as fixation cross */
    left: 50%;
    transform: translateX(-50%);
}

.comp-container {
    position: relative;
    top: 30%; /* Same vertical position as fixation cross */
    width: 65vw; /* 700px / 2560 * 100 */
    z-index: 10;
    align-items: left   ;
}

.comp-container-horizontal{
    position: relative;
    top: 15.75%; /* Same vertical position as fixation cross */
    width: 65vw; /* 700px / 2560 * 100 */
    z-index: 10;
    left: 5.5%;

}