body {

    font-family: Arial, sans-serif;

    display: flex;

    flex-direction: column;

    align-items: center;

    margin: 20px;
}

.consent-box {
    max-height: 40vh;      /* 40% of viewport height */
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 12px;
    background: #fafafa;
}

.form {
    display: flex;
    gap: 15px;
}

.form input {
    display: none;
}

.form label {
    flex: 1;
    padding: 15px;
    border: 2px solid #ccc;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

/* Highlight the whole card when selected */
.form input:checked + span {
    font-weight: bold;
}

.form input:checked + span::before {
    content: "";
}

.form label:has(input:checked) {
    border-color: #4a90e2;
    background: #e6f2ff;
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.3);
}


#landing-page, 
#instruction-page {
    width: min(900px, 100%);
    box-sizing: border-box;
    margin: 0 auto;   /* centers it horizontally */
}

#panzoom-wrapper {

    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
}

#stimulus-container {
    width: min(900px, 100%);
    aspect-ratio: 900 / 500;

    border: 1px solid #ccc;
    overflow: hidden;
    position: relative;
    background: #fafafa;
}

#stimulus-image {
    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    user-select: none;
    cursor: grab;
}

#stimulus-image:active {
    cursor: grabbing;
}

#carousel-controls {

    margin-top: 10px;
}

#background-page,
#survey-page,
#instruction-container,
#question-container {
    width: min(900px, 100%);
    box-sizing: border-box;
}

#instruction-container p,
#question-container p {
    white-space: normal;
    overflow-wrap: break-word;
}

#answerPreference,
#answer {

    width: 100%;

    height: 150px;

    resize: vertical;
}

button {

    padding: 8px 15px;

    margin: 5px;
}





.preference-layout {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.preference-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.preference-container {
    width: 100%;
    aspect-ratio: 900 / 500;

    border: 1px solid #ccc;
    overflow: hidden;
    position: relative;
    background: #fafafa;

    display: flex;
    justify-content: center;
    align-items: center;
}

.preference-panzoom-wrapper {
    width: 100%;
    height: 100%;
	
	display: flex;
    justify-content: center;
    align-items: center;
}

.preference-panzoom-wrapper img {
    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    display: block;
    user-select: none;
    cursor: grab;
}

.preference-headline {
	text-align: center;
}

#preference-text,
#preference-question {
	text-align: center;
}