@font-face {
    font-family: 'Johnson Display';
    src: url('./fonts/JohnsonDisplay-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Johnson Display';
    src: url('./fonts/JohnsonDisplay-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles */
body {
    font-family: 'Johnson Display', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    background: #f5f5f5;
}

a {
    text-decoration: none;
}

.footnote {
    font-size: 8px;
font-style: normal;
font-weight: 400;
line-height: 8px; /* 100% */
margin-top:20px;
}
.footnote ol {
    color:#EB1700;
}
.quiz-container {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    background: white;
    position: relative;
}

/* Welcome Screen */
.welcome-screen {
    background: #EB1700;
    min-height: 100vh;
    padding: 60px 30px 40px;
    color: white;
    position: relative;
}

.welcome-content {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 60px 30px 40px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.welcome-top {
    text-align: left;
    flex-grow: 1;
}

.quiz-title {
   font-size: 64px;
font-style: normal;
font-weight: 700;
line-height: normal;
margin-bottom: 20px;
}

.quiz-subtitle {
font-size: 32px;
font-style: normal;
font-weight: 400;
line-height: 110%; /* 35.2px */
}

.start-btn, .check-btn, .next-btn, .next-question-btn {
    background: white;
    color: #EB1700;
    border: none;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    font-family: 'Johnson Display', Arial, sans-serif;
    width: fit-content;
    justify-content: center;
    margin-top: auto;
}

.check-btn, .next-btn, .next-question-btn {
    background: #EB1700;
    color: white;
}

/* .check-btn, .next-btn, .next-question-btn {
    background: #EB1700;
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Johnson Display', Arial, sans-serif;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
} */

/* .start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
} */

.arrow-icon {
    width: 20px;
    height: 20px;
}

/* Quiz Screen */
.quiz-screen {
    min-height: 100vh;
    padding: 60px 30px 40px;

    display: flex;
    flex-direction: column;
}

.question-progress {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 14px;
    color: #999;
    font-weight: 500;
}

.progress-divider {
    margin: 0 2px;
}

.year-header {
    font-size: 64px;
font-style: normal;
font-weight: 700;
line-height: normal;
    color: #EB1700;
    margin-bottom: 30px;
    line-height: 1;
}

.question-text {
    font-size: 32px;
font-style: normal;
font-weight: 300;
line-height: 110%;
    color: #EB1700;
    margin-bottom: 20px;

}

.question-text sup {
    font-size: 16px;
    line-height: 0;
    vertical-align: super;
    position: relative;
    top: -0.5em;
}

.question-description {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Dropdown Styles */
.dropdown-container {
    margin-bottom: 30px;
}

.dropdown-expanded {
    position: relative;
    margin-bottom: 30px;
}

.dropdown-header {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    background: white;
    cursor: pointer;
    font-family: 'Johnson Display', Arial, sans-serif;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-header:hover {
    border-color: #EB1700;
}

.dropdown-header.selected {
    border-color: #EB1700;
    background-color: #fff5f5;
}

.dropdown-header.correct {
    border-color: #38A169;
    background-color: #f0fff4;
}

.dropdown-header.incorrect {
    border-color: #EB1700;
    background-color: #fff5f5;
}

.dropdown-arrow {
    width: 20px;
    height: 20px;
    color: #666;
    transition: transform 0.2s ease;
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-option {
    padding: 16px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background-color: #f8f9fa;
}

.dropdown {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 20px center;
    background-repeat: no-repeat;
    background-size: 16px;
    font-family: 'Johnson Display', Arial, sans-serif;
    transition: all 0.2s ease;
}

.dropdown:focus {
    outline: none;
    border-color: #EB1700
}

.dropdown.selected {
    border-color: #EB1700;
    background-color: #fff5f5;
}

.dropdown.correct {
    border-color: #38A169;
    background-color: #f0fff4;
    position: relative;
}

.dropdown.incorrect {
    border-color: #EB1700;
    background-color: #fff5f5;
}

/* Drag and Drop Styles */
.drag-drop-container {
    margin-bottom: 30px;
}

.explanation-link {
    color: #EB1700;
    text-decoration: underline;
    font-size: 14px;
    /* margin-bottom: 20px; */
    display: inline-block;
    cursor: pointer;
    font-weight:700;
}

.explanation-link:hover {
    color: #C53030;
}

.name-builder-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2px;
    margin-bottom: 2px;
}

.header-cell {
    color: #EB1700;
    
    padding: 12px 8px;
    font-size: 11px;
    text-align: center;
    font-weight: 700;
}

.drug-table {
    margin-bottom: 30px;
}

.drug-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0;
    margin-bottom: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    overflow: hidden;
}

.cell {
    background: white;
    border: none;
    border-right: 1px solid #e0e0e0;
    padding: 12px 8px;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cell:last-child {
    border-right: none;
}

.name-builder {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    align-items: center;
}

.name-part {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    padding: 12px 18px;
    font-size: 14px;
    min-width: 80px;
    text-align: center;
    font-weight: 500;
}

.name-part.filled {
    background: #EB1700;
    color: white;
    border-color: #EB1700;
}

.drag-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.drag-item {
    text-align: center;
    background: white;
    border: 1px solid #EB1700;
    color: #EB1700;
    border-radius: 0;
    padding: 5px 25px;
    font-size: 14px;
    cursor: move;
    transition: all 0.2s ease;
    font-weight: 500;
    user-select: none;
    touch-action: manipulation;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.drag-item:hover {
    background: #fff5f5;
    transform: translateY(-1px);
}

.drag-item.dragging {
    opacity: 0.8;
    transform: scale(1.05);
    z-index: 1000;
    position: relative;
}

.drag-item.used {
    opacity: 0.3;
    cursor: not-allowed;
}

.drop-zone {
    background: white;
    /* border-right: 2px dashed #ddd !important; */
    transition: all 0.2s ease;
}

.drop-zone.drag-over {
    /* border-right-color: #EB1700 !important; */
    background: #e0e0e0;
}

.drop-zone.filled {
    border-right-style: solid !important;
    background: #e0e0e0;
    /* color: white; */
    /* border-right-color: #EB1700 !important; */
    cursor: pointer;
}

.drop-zone.incorrect-feedback {
    background: #EB1700 !important;
    color: white !important;
}

.drop-zone.correct-feedback {
    background: #38A169 !important;
    color: white !important;
}

.drop-zone.filled:hover {
    background: #C53030;
    /* border-right-color: #C53030 !important; */
}

/* Fill-in-the-blank Styles */
.fill-blank-container {
    margin-bottom: 30px;
}

.fill-blank-text {
    font-size: 24px;
    line-height: 140%;
    margin-bottom: 30px;
}

.fill-blank-text sup {
    font-size: 12px;
    line-height: 0;
    vertical-align: super;
    position: relative;
    top: -0.5em;
}

.blank-input {
    display: inline-block;
    width: 70px;
    /* padding: 4px 8px; */
    border: none;
    border-bottom: 1px solid black;
    background: transparent;
    font-size: 24px;
    color: #333;
    font-weight: 600;
    font-family: 'Johnson Display', Arial, sans-serif;
    text-align: center;
}

.blank-input-lang {
    display: inline-block;
    width: 150px;
    /* padding: 4px 8px; */
    border: none;
    border-bottom: 1px solid black;
    background: transparent;
    font-size: 24px;
    color: #333;
    font-weight: 600;
    font-family: 'Johnson Display', Arial, sans-serif;
    text-align: center;
}

.blank-input:focus {
    outline: none;
    border-bottom-color: black;
}

/* Matching Styles */
.matching-container {
    margin-bottom: 30px;
}

.antibody-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 20px 30px;
}

.antibody-diagram img {
    max-width: 100%;
    height: auto;
    display: block;
}

.antibody-icon {
    width: 60px;
    height: 60px;
    margin-right: 20px;
}

.antibody-labels {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.antibody-label {
    font-size: 14px;
    color: #666;
    padding: 4px 0;
}

.matching-dropdown {
    width: 100%;
    margin-bottom: 15px;
}

/* Navigation Buttons */
.navigation-buttons {
    margin-top: auto;
    padding-top: 30px;
}



/* .check-btn:hover, .next-btn:hover, .next-question-btn:hover {
    background: #C53030;
    transform: translateY(-1px);
} */

/* .next-btn {
    border: 2px solid #EB1700;
    background: transparent;
    color: #EB1700;
    width: fit-content;
} */

/* .next-btn:hover {
    background: #EB1700;
    color: white;
} */

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    width: 100%;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.explanation-section {
    margin-bottom: 20px;
}

.explanation-section h4 {
    color: #EB1700;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
}

.explanation-section p {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 5px;
}

/* Final Screen */
.final-screen {
    min-height: 100vh;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    text-align: center;
    color: white;
    background-image: url('img/end.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}

.final-content {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 60px 30px 40px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.final-top {
    text-align: left;
    flex-grow: 1;
}

.final-footnotes {
    margin-top: auto;
    text-align: right;
    font-size: 10px;
    color: white;
    line-height: 1.4;
}

.final-footnotes ol {
    margin-bottom: 10px;
    list-style-position: inside;
}

.reference-code {
    margin-top: 10px;
}

.year-display {
    font-size: 72px;
    font-weight: 700;
    margin-bottom: 30px;
    color: white;
}

.final-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.final-content .sichern {
    font-size: 24px;
font-style: normal;
font-weight: 400;
line-height: 110%;
margin-top: 20px;
}



.disclaimer {
    font-size: 10px;
    opacity: 0.7;
    line-height: 1.4;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.checkmark {
    color: #38A169;
    font-weight: bold;
    margin-left: 10px;
}

.cross {
    color: #EB1700;
    font-weight: bold;
    margin-left: 10px;
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .quiz-container {
        max-width: 100%;
    }
    
    
    
   
    
    /* .year-header {
        font-size: 48px;
    } */
    
    /* .question-text {
        font-size: 24px;
    } */
    

    
    .welcome-screen, .final-screen {
        padding: 30px 20px;
    }
    
    .name-builder {
        justify-content: center;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* .dropdown {
        padding: 18px 20px;
    } */
    
    .drag-item {
        padding: 10px 20px;
        font-size: 16px;
        min-width: 80px;
    }
    
    .drop-zone {
        min-height: 50px;
        padding: 14px 8px;
    }
    
    .cell {
        min-height: 50px;
        padding: 14px 8px;
    }
    
    /* .check-btn, .next-btn, .next-question-btn {
        padding: 18px 36px;
    } */
}