body {
    background-color: #eeece7;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-optical-sizing: auto;
    font-size: 18px;
    line-height: 1.76;
    color:rgb(25,25,25);
    padding:0;
    margin: 0;
}
main {
    padding:36px 24px 60px;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
    flex-direction: column;
}

.logo-container {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 16px;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 2px solid #d0cec9;
    background-color: #fff;
    color: #585858;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-selector:hover {
    border-color: #52b5f9;
    color: #52b5f9;
}

.language-selector svg {
    flex-shrink: 0;
}

h1 {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.2;
    margin: 0;
}
h2 {
    font-weight: 700;
    font-size: 28px;
    margin:0;
    line-height: 1.3;
}
h3 {
    font-weight: 600;
    font-size: 20px;
    line-height: 1.3;
    margin: 0 0 16px 0;
    color: rgba(35, 47, 53, 0.3);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(35, 47, 53, 0.3);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.modal {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: rgba(35, 47, 53, 0.15) 0px 8px 24px 0px;
    padding: 32px 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.3s ease forwards;
    opacity: 0;
}

.modal-overlay.active .modal {
    animation: slideUp 0.3s ease forwards;
    opacity: 1;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-title {
    font-weight: 700;
    font-size: 28px;
    margin: 0 0 12px 0;
    color: rgb(25, 25, 25);
}

.modal-subtitle {
    color: #585858;
    font-size: 16px;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-button {
    border-radius: 8px;
    font-weight: 700;
    border: 0;
    background-color: #52b5f9;
    color: #fff !important;
    text-decoration: none;
    padding: 14px 24px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.modal-button:hover {
    background-color: #2BA4F8;
}

.modal-button:active {
    transform: scale(0.98);
}

/* Test Grid */
.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 1fr; /* Make all rows equal height */
    gap: 24px;
    width: 100%;
    margin-top: 24px;
}

/* Test Cards */
.test-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: rgba(35, 47, 53, 0.09) 0px 2px 8px 0px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.test-card:hover {
    transform: translateY(-2px);
    box-shadow: rgba(35, 47, 53, 0.15) 0px 4px 16px 0px;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Reduced height with 16:9 ratio */
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    cursor: pointer;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover to fill the container */
    pointer-events: none; /* Prevent video controls, make container clickable */
}

/* Video Modal Overlay */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Video Modal Container */
.video-modal {
    position: relative;
    width: 90vw;
    max-width: 1200px;
    max-height: 90vh;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-modal video {
    width: 100%;
    height: auto;
    max-height: 90vh;
    display: block;
}

/* Close Button */
.video-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.video-modal-close:hover {
    background-color: #fff;
    transform: scale(1.1);
}

.video-modal-close svg {
    width: 20px;
    height: 20px;
    stroke: #000;
}

/* PDF Preview */
.pdf-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    margin-bottom: 20px;
    min-height: 200px;
}

.pdf-preview svg {
    color: #52b5f9;
    margin-bottom: 12px;
}

.pdf-label {
    color: #585858;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* Buttons */
.button {
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.33;
    gap: 8px;
    height: inherit;
    border: 0;
    background-color: #52b5f9;
    color:#fff;
    text-decoration: none;
    padding:14px 24px;
    text-align: center;
    transition: background-color 0.2s ease;
    font-size: 16px;
    margin-top: auto;
}
.button:hover {
    background-color: #2BA4F8;
}

.button svg {
    flex-shrink: 0;
}

/* Intro Text */
.intro {
    color:#585858;
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 8px 0;
    width: 100%;
}

/* Legacy styles kept for compatibility */
.flex {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
}
.column {
    width: 50%;
    padding: 24px;
    font-size: 16px;
    color:#838383
}
.column img {
    width:120px;
    margin:0 auto;
}
.wrapper {
    padding: 24px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: rgba(35, 47, 53, 0.09) 0px 2px 8px 0px;
}
.text-center {
    text-align: center;
    width: 100%;
}
.muted {
    font-size: 14px;
    color:#838383;
}
.contained {
    flex-grow: 0;
    flex-shrink: 0;
}
#question-description {
    font-weight: 300;
    font-size: 1.2em;
}
#answers-container {
    align-items: start;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
#wizard-container button {
    border:1px solid #52b5f9;
    border-radius: 8px;
    background-color: #52b5f9;
    color:#fff;
    font-size:16px;
    font-weight: 700;
    padding: 12px 18px;
    cursor: pointer;
    transition: color 0.3s, background-color 0.3s;
}
#wizard-container button:hover {
    border:1px solid #2BA4F8;
    background-color: #2BA4F8;
}
#wizard-container .prev-button {
    border:none;
    margin-top:24px;
    background-color: transparent;
    color:#52b5f9
}
#wizard-container .prev-button:hover {
    border:none;
    background-color: transparent;
    color:#2BA4F8
}
#uitslag .prev-button {
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:8px;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 18px;
    border:none;
    background-color: transparent;
    color:#52b5f9
}
#uitslag .prev-button:hover {
    background-color: transparent;
    color:#2BA4F8
}
.three-dimensional {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
}
.three-dimensional div {
    text-align: center;
    text-transform: uppercase;
    font-size: 1em;
    line-height: 1.1;
    font-weight: 900;
    color: #fff;
    text-shadow: 1px 1px 1px #919191,
        1px 2px 1px #919191,
        1px 3px 1px #919191,
        1px 4px 1px #919191,
        1px 5px 1px #919191,
        1px 6px 1px #919191,
        1px 7px 1px #919191,
    1px 8px 5px rgba(16,16,16,0.4),
    1px 11px 10px rgba(16,16,16,0.2),
    1px 14px 20px rgba(16,16,16,0.2),
    1px 17px 30px rgba(16,16,16,0.2);
}

/* Loading Animation */
.loading {
    margin: 24px auto;
    width: 4px;
    color: #000;
    aspect-ratio: 1;
    border-radius: 50%;
    box-shadow:
        19px -19px 0 0px, 38px -19px 0 0px, 57px -19px 0 0px,
        19px 0 0 5px, 38px 0 0 5px, 57px 0 0 5px,
        19px 19px 0 0px, 38px 19px 0 0px, 57px 19px 0 0px;
    transform: translateX(-38px);
    animation: l26 2s infinite linear;
}

@keyframes l26 {
    12.5% {
        box-shadow:
            19px -19px 0 0px, 38px -19px 0 0px, 57px -19px 0 5px,
            19px 0 0 5px, 38px 0 0 0px, 57px 0 0 5px,
            19px 19px 0 0px, 38px 19px 0 0px, 57px 19px 0 0px
    }
    25% {
        box-shadow:
            19px -19px 0 5px, 38px -19px 0 0px, 57px -19px 0 5px,
            19px 0 0 0px, 38px 0 0 0px, 57px 0 0 0px,
            19px 19px 0 0px, 38px 19px 0 5px, 57px 19px 0 0px
    }
    50% {
        box-shadow:
            19px -19px 0 5px, 38px -19px 0 5px, 57px -19px 0 0px,
            19px 0 0 0px, 38px 0 0 0px, 57px 0 0 0px,
            19px 19px 0 0px, 38px 19px 0 0px, 57px 19px 0 5px
    }
    62.5% {
        box-shadow:
            19px -19px 0 0px, 38px -19px 0 0px, 57px -19px 0 0px,
            19px 0 0 5px, 38px 0 0 0px, 57px 0 0 0px,
            19px 19px 0 0px, 38px 19px 0 5px, 57px 19px 0 5px
    }
    75% {
        box-shadow:
            19px -19px 0 0px, 38px -19px 0 5px, 57px -19px 0 0px,
            19px 0 0 0px, 38px 0 0 0px, 57px 0 0 5px,
            19px 19px 0 0px, 38px 19px 0 0px, 57px 19px 0 5px
    }
    87.5% {
        box-shadow:
            19px -19px 0 0px, 38px -19px 0 5px, 57px -19px 0 0px,
            19px 0 0 0px, 38px 0 0 5px, 57px 0 0 0px,
            19px 19px 0 5px, 38px 19px 0 0px, 57px 19px 0 0px
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    h1 {
        font-size: 28px;
        line-height: 1.2;
    }
    h2 {
        font-size:24px;
        line-height: 1.3;
    }
    h3 {
        font-size: 20px;
    }

    .header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .language-selector {
        align-self: flex-start;
    }

    .logo-container {
        gap: 16px;
        margin-bottom: 24px;
    }

    .logo-container img {
        height: 32px !important;
    }

    .test-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .test-card {
        padding: 20px;
    }

    .modal {
        padding: 24px 20px;
    }

    .modal-title {
        font-size: 24px;
    }

    .modal-subtitle {
        font-size: 14px;
    }

    .modal-button {
        padding: 12px 20px;
    }

    .flex {
        flex-direction: column;
        gap: 24px;
    }
    .column {
        width:100%;
        padding:0;
    }

    main {
        padding: 24px 16px 48px;
    }
}