/* @import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap'); */

:root {
    --purple-dark: #694f9c;
    --purple-light: #DCD6E9;
    --gray-text: #555;
    --gray-light: #eee;
    --border-radius: 8px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
main,
body {
    width: 100%;
}

#schildklierpoli {
    /* height: 100vh; */
    width: 100%;
    /* overflow: hidden; */
}

.active-menu {
    overflow: hidden;
}

.active-menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.menu__wrapper ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 1.25rem 0;
    font-size: 18px;
}

.menu__wrapper ul li a:hover {
    text-decoration: underline;
}

.menu__wrapper ul {
    list-style: none;
}

.header__container {
    display: flex;
    justify-content: space-between;
    /* logo links, thema rechts */
    align-items: center;
    padding: 1.25rem;
    border-top: .75rem solid #FCC73D;
}

body {
    margin: 0;
    padding: 0;
}

.menu__part.active {
    position: fixed;
    top: 0;
    right: 0;
    width: 500px;
    height: 100%;
    background: #4b3275;
    z-index: 33;
    overflow-y: scroll;
}

.menu__part.active .thema__button {
    margin-left: 30px;
    margin-top: 36px;
}

.container {
    display: flex;
    background-color: white;
    width: 100%;
    min-height: calc(100vh - 115px);

    a {
        color: var(--purple-dark);
    }
}

.container h1,
.container h2,
.container h3,
.container h4,
.container h5 {
    color: #694F9C;
    font-weight: 600;
}

.container h2 {
    font-size: 26px;
}

.container p {
    font-style: normal;
    font-weight: 400;
    line-height: 1.8;
}

.container h3 {
    font-size: 1.25rem;
    color: black;
}

.side {
    flex: 1;
    width: 50%;
    height: auto;
    max-height: 100%;
}

.image-side {
    height: auto;
    position: relative;
}

.content-side {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--gray-text);
    background: #FAF5F5;
}

.image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-bottom: 0;
    position: absolute;
}

.content-side h2 {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--purple-dark);
    margin-top: 0;
    margin-bottom: 1rem;
}

.content-side p {
    line-height: 1.5;
    margin-bottom: 1rem;
}

.content-side p:first-child {
    margin-top: 0;
}

.content-side p:last-child {
    margin-bottom: 0;
}

.content-container {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
}

/* A/B Buttons */
.number-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.number-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: .75rem;
    padding: 1rem 2rem;
    border: 3px solid var(--purple-dark);
    border-radius: var(--border-radius);
    background: var(--purple-light);
    color: var(--purple-dark);
    font-weight: 700;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.number-button:hover {
    background: #f0e8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px .75rem rgba(105, 79, 156, 0.3);
}

.number-button.active {
    background: var(--purple-dark);
    color: white;
    box-shadow: 0 4px 1rem rgba(105, 70, 169, 0.4);
}

.number-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 2rem;
    background: var(--purple-dark);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 800;
    font-size: .875rem;
    padding: 0.5rem 1rem;
    min-width: 100px
}

.number-button.active .number-indicator {
    background: white;
    color: var(--purple-dark);
}

.number-text {
    font-size: 1.125rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0;
}

.checkbox-container {
    position: relative;
}

/* Hide the default radio button */
.checkbox-container input[type="radio"] {
    display: none;
}

/* Style the custom radio button label */
.checkbox-container label {
    display: block;
    padding: 1.125rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    border: 2px solid var(--purple-dark);
    color: var(--purple-dark);
    font-size: 1.125rem;
}

.checkbox-container input[type="radio"]+label {
    background-color: var(--purple-light);
}

.checkbox-container input[type="radio"]:checked+label {
    background-color: var(--purple-dark);
    color: white;
    box-shadow: 0 4px 1rem rgba(105, 70, 169, 0.3);
}

.ja-box label {
    background-color: var(--purple-dark);
    color: white;
}

.bottom-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.bottom-links p {
    margin-bottom: 0;
}

.meer-info-link {
    text-decoration: none;
    color: var(--purple-dark);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: .3125rem;
    transition: color 0.2s;
    position: relative;
    margin-left: auto;
}

.meer-info-link:hover {
    color: #4b3275;
}

.modal-container {
    padding-bottom: 2.5rem;
}


/* Modal styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    z-index: 1000;
    overflow: hidden;
}

.modal-content {
    background-color: #FAF5F5;
    padding: 2.5rem 2rem;
    border-radius: .625rem;
    max-width: 960px;
    border-radius: 1.25rem;
    width: 90%;
    position: relative;
    height: auto;
    margin: 3vh auto;
    overflow: auto;
}

.modal-content h2:first-child {
    margin-top: 0;
}

.modal-content img {
    max-width: 980px;
    height: auto;
}

.modal-close-btn {
    position: fixed;
    top: .625rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: .5rem;
}

.modal-close-btn span.circle {
    cursor: pointer;
    color: #FAF5F5;
    background: #694f9c;
    width: 2.5rem;
    height: 2.5rem;
    text-align: center;
    border-radius: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn span.circle svg {
    height: auto;
    width: 50%;
}

.modal-close-btn span.text {
    content: 'Sluiten';
    font-size: .875rem;
    color: white;
    font-weight: 600;
}


.dynamic-info-button a,
.next-button button,
.thema__button {
    background-color: var(--purple-dark);
    color: white;
    padding: 1.375rem 1.5rem;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
    margin-top: .625rem;
    border-radius: 100px;
    border-bottom: 4px solid #34274c;
    font-size: 1rem;
    margin-top: 0;
    cursor: pointer;
    margin-right: .625rem;
}

.thema__button {
    padding: 14px 25px;
    position: relative;
    padding-left: 25px;
}

.thema__button svg {
    position: relative;
    top: 3px;
}

.form-button-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.next-button,
.dynamic-info-button {
    margin: 0.625rem 0;
}

.dynamic-info-button a {
    background: none;
    border: 1px solid var(--purple-dark);
    color: var(--purple-dark);
}

.next-button button:hover {
    background-color: #4b3275;
}

.modal-container.modal-content {
    margin: 0 auto;
}

.short-advice {
    padding: 1.125rem 1.5rem;
    margin: 0;
    border-radius: .625rem;
    background-color: white;
    color: var(--gray-text);
    margin: 1rem 0;
}

/* Quiz Progress Bar */
.quiz-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: nowrap;
    background: transparent;
    margin-bottom: 1rem;
    /* border-bottom: 1px solid #eee; */
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--purple-light);
    border-radius: 4px;
    overflow: hidden;
    margin: 0;
}

.progress-fill {
    height: 100%;
    background-color: var(--purple-dark);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: var(--gray-text);
    font-weight: 600;
    white-space: nowrap;
}

/* Question Header */
.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    /* border-bottom: 1px solid #eee; */
}

.question-theme {
    background: var(--purple-light);
    color: var(--purple-dark);
    padding: 6px .75rem;
    border-radius: 1rem;
    font-size: .75rem;
    font-weight: 600;
}

.question-explanation {
    margin-bottom: 1rem;
}

/* Keyboard Instructions */
/* .keyboard-instructions {
    margin: 1rem 0;
    text-align: center;
} */

.keyboard-instructions kbd {
    background: var(--purple-light) !important;
    color: var(--purple-dark);
    border: 2px solid var(--purple-dark);
    border-radius: 3px;
    padding: 2px 6px;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(105, 79, 156, 0.2);
}

.prev-link {
    appearance: none;
    background: transparent;
    color: var(--purple-dark);
    text-decoration: none;
    border: none;
}

.prev-link:hover {
    text-decoration: underline;
}

/* Navigation Buttons */
.prev-button,
.next-button {
    background-color: var(--purple-dark);
    color: white;
    padding: 14px 24px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
    border-radius: 100px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 4px solid #34274c;
    margin: 0;
}

.prev-button {
    background-color: #666 !important;
    border-bottom-color: #444 !important;
}

.prev-button:hover {
    background-color: #555 !important;
}

.next-button button:hover {
    background-color: #4b3275;
}

/* Loading state */
.content-container h2+p {
    color: var(--gray-text);
    font-size: 16px;
    line-height: 1.6;
}

.results-container {
    padding: 0;
}

.results-container h2 {
    color: var(--purple-dark);
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.results-summary {
    text-align: center;
    font-size: 1.125rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--purple-light);
    border-radius: .625rem;
}

.results-list {
    margin-bottom: 2rem;
}

.result-item {
    border: 1px solid #e0e0e0;
    border-radius: .625rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    background: white;
    transition: background-color 0.3s ease;
    gap: .5rem;
}

.result-header:hover {
    background: linear-gradient(135deg, #f0e8ff 0%, #f8f6ff 100%);
}

.result-question {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.question-number {
    font-weight: 700;
    color: var(--purple-dark);
    font-size: 1rem;
}

.question-title {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    line-height: 1.4;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.answer-badge {
    padding: .35rem 0.85rem;
    border-radius: 1rem;
    font-size: .875rem;
    font-weight: 600;
}

.answer-ja {
    background: #d4edda;
    color: #155724;
}

.answer-nee {
    background: #f8d7da;
    color: #721c24;
}

.expand-icon {
    transition: transform 0.3s ease;
    color: var(--purple-dark);
}

.expand-icon.expanded {
    transform: rotate(180deg);
}

.result-details {
    padding: 0;
    background: white;
}

.color-dark-purple {
    color: var(--purple-dark);
}

.question-explanation p {
    margin: 0;
}

.answer-feedback {
    padding: 1rem;
}

.short-advice {
    margin-bottom: 1rem;
}

.short-advice strong {
    color: var(--purple-dark);
    display: block;
    margin-bottom: .5rem;
}

.short-advice p {
    margin: 0;
    line-height: 1.6;
    color: var(--gray-text);
}

.detailed-advice {
    text-align: center;
}

.advice-button {
    background: var(--purple-dark);
    color: white;
    border: none;
    padding: .75rem 1.5rem;
    border-radius: .5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.advice-button:hover {
    background: #4b3275;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.share-button,
.restart-button,
.close-button {
    padding: .75rem 1.5rem;
    border-radius: 1000px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--purple-dark);
    outline: none;
}

.share-button {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
}

.restart-button {
    background: var(--purple-dark);
    color: white;
}

.share-button:hover {
    background: #1976D2;
}

.restart-button:hover {
    background: #4b3275;
}

.close-button {
    background: transparent;
    color: var(--purple-dark);
}

.close-button:hover {
    background: var(--purple-dark);
    color: white;
}

/* Responsive improvements */
@media screen and (max-width: 768px) {
    .question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: .625rem;
    }

    .question-number {
        font-size: .75rem;
        padding: 6px .75rem;
    }

    .question-theme {
        font-size: 11px;
        padding: 4px 8px;
    }

    .quiz-progress {
        padding: 1rem;
    }

    .number-buttons {
        flex-direction: column;
        gap: .75rem;
    }

    .number-button {
        padding: .875rem 1.5rem;
        font-size: 1.125rem;
    }

    .number-indicator {
        width: 1.75rem;
        height: 1.75rem;
        font-size: .875rem;
    }

    .results-modal {
        width: 98%;
        max-width: none;
    }

    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: .75rem;
    }

    .result-meta {
        align-self: flex-end;
    }

    .results-actions {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
    .image-side {
        display: none;
    }

    .content-side {
        padding: 30px;
    }

    .modal-content {
        padding: 3rem 1.25rem;
    }

    .modal::before {
        width: 87.5%;
    }

    .dynamic-info-button a,
    .next-button button {
        font-size: 14px;
    }

    .menu__part.active {
        width: 100%;
    }

    .logo-holder img {
        max-width: 180px;
        margin-bottom: .625rem;
    }

    .header__container {
        flex-direction: column;
    }

    .thema__button {
        font-size: 14px;
    }

    .content-side {
        display: block;
    }

    .modal-content img {
        width: 100%;
    }

    .form-button-wrapper {
        display: flex;
        justify-content: flex-start;
        flex-direction: column;
    }
}