@font-face{font-family:'DINPro';src:url("/cl350/_shared/fonts/DINPro-Light.woff2") format("woff2");font-weight:300;font-style:normal;font-display:swap;}
@font-face{font-family:'DINPro';src:url("/cl350/_shared/fonts/DINPro-Regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:'DINPro';src:url("/cl350/_shared/fonts/DINPro-Medium.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap;}
@font-face{font-family:'DINPro';src:url("/cl350/_shared/fonts/DINPro-Bold.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap;}
@font-face{font-family:'DINPro';src:url("/cl350/_shared/fonts/DINPro-Black.woff2") format("woff2");font-weight:900;font-style:normal;font-display:swap;}
/*
//*************************************************
// Flight Crew Systems, Inc. dba LOFT
// CL-350 Interactive Quiz Application
// Richard J. Sears
// richard@loft.aero
// Version 1.0.0
// November 7th, 2025
//*************************************************
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
    font-family: 'DINPro',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    background-image: url('./map_background.gif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Banner */
.banner {
    height: 60px;
    background: #b7b8b9;
    display: flex;
    align-items: center;
    padding: 0 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.banner-logo {
    height: 40px;
    margin-right: 15px;
}

.banner h1 {
    color: #fe5000;
    font-size: 24px;
    font-weight: 600;
}

/* Container */
.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Welcome Page */
.welcome-page {
    background: white;
    border-radius: 12px;
    padding: 60px 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.welcome-page h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
}

.welcome-page p {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

/* Name Input Container */
.name-input-container {
    margin: 30px auto;
    max-width: 400px;
}

.name-input-container label {
    display: block;
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
    text-align: left;
}

.name-input-container input[type="text"] {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    transition: border-color 0.3s;
}

.name-input-container input[type="text"]:focus {
    outline: none;
    border-color: #75787b;
}

.name-input-container input[type="text"]:hover {
    border-color: #75787b;
}

.deck-selector {
    margin: 40px 0;
}

.deck-selector label {
    display: block;
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

.deck-selector select {
    width: 100%;
    max-width: 400px;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.deck-selector select:hover {
    border-color: #75787b;
}

.deck-selector select:focus {
    outline: none;
    border-color: #75787b;
}

.all-systems-options {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.all-systems-options label {
    display: block;
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
}

.all-systems-options input[type="number"] {
    width: 100px;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
}

.start-btn {
    background: #75787b;
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 30px;
}

.start-btn:hover:not(:disabled) {
    background: #fe5000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 80, 0, 0.3);
}

.start-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Mode Selection Page */
.mode-selection-page {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.mode-container {
    text-align: center;
}

.mode-selection-page h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
}

.mode-selection-page p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.mode-selector h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
}

.mode-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto 30px;
}

.mode-option {
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.mode-option:hover {
    background: linear-gradient(135deg, rgba(117, 120, 123, 0.1) 0%, rgba(254, 80, 0, 0.1) 100%);
    border-color: #75787b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(117, 120, 123, 0.2);
}

.mode-option h3,
.mode-option h4 {
    font-size: 20px;
    color: #75787b;
    margin-bottom: 10px;
}

.mode-option p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Quiz Page Container */
.quiz-page {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Quiz Header */
.quiz-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.quiz-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.source-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.progress {
    font-size: 18px;
    color: #75787b;
    font-weight: 600;
}

/* Question */
.question {
    font-size: 20px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

/* Options Container */
.options {
    margin-bottom: 30px;
}

.option {
    display: flex;
    align-items: flex-start;
    padding: 15px 20px;
    margin-bottom: 12px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.option:hover:not(.disabled) {
    background: #f8f9fa;
    border-color: #75787b;
    transform: translateX(5px);
}

.option.selected {
    background: #e8f4fd;
    border-color: #3b82f6;
}

.option.correct {
    background: #d1f4dd;
    border-color: #28a745;
}

.option.incorrect {
    background: #fdd1d1;
    border-color: #dc3545;
}

.option.disabled {
    cursor: default;
    pointer-events: none;
}

.option-label {
    font-weight: 600;
    color: #75787b;
    margin-right: 12px;
    min-width: 25px;
}

.option-text {
    flex: 1;
    color: #333;
    line-height: 1.5;
}

/* Feedback */
.feedback {
    display: none;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease;
}

.feedback.show {
    display: block;
}

.feedback-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 18px;
}

.correct-feedback {
    background: #d1f4dd;
    border: 2px solid #28a745;
    color: #155724;
}

.incorrect-feedback {
    background: #fdd1d1;
    border: 2px solid #dc3545;
    color: #721c24;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hint Container */
.hint-container {
    margin-bottom: 20px;
}

.hint-btn {
    background: #75787b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.hint-btn:hover {
    background: #fe5000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(254, 80, 0, 0.3);
}

.hint-btn.active {
    background: #fe5000;
}

.hint-content {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    color: #856404;
}

.hint-content.show {
    display: block;
    animation: slideDown 0.3s ease;
}

/* Explain/Reference Button */
.explain-btn {
    display: none;
    background: transparent;
    color: #75787b;
    border: 2px solid #75787b;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.explain-btn.show {
    display: inline-block;
}

.explain-btn:hover {
    background: #75787b;
    color: white;
    transform: translateY(-2px);
}

/* Reference */
.reference {
    display: none;
    padding: 15px;
    background: #e8f4fd;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    color: #1e40af;
    margin-bottom: 20px;
}

.reference.show {
    display: block;
    animation: slideDown 0.3s ease;
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.nav-btn {
    background: #75787b;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.nav-btn:hover:not(:disabled) {
    background: #fe5000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(254, 80, 0, 0.3);
}

.nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.nav-btn.secondary {
    background: transparent;
    color: #75787b;
    border: 2px solid #75787b;
}

.nav-btn.secondary:hover:not(:disabled) {
    background: #75787b;
    color: white;
    transform: translateY(-2px);
}

.quit-btn {
    background: transparent;
    color: #dc3545;
    border: 2px solid #dc3545;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.quit-btn:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* Score Display */
.score-display {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.correct-count {
    color: #28a745;
    font-weight: 600;
    margin-right: 20px;
}

.incorrect-count {
    color: #dc3545;
    font-weight: 600;
}

/* ====================
   ENHANCED RESULTS PAGE
   ==================== */

.results-page {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Results Header */
.results-header {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.results-title {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
}

.result-quiz-title {
    font-size: 24px;
    color: #75787b;
    font-weight: 500;
}

/* Info Table Layout */
.results-info-table {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
}

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-column {
    text-align: center;
}

.info-header {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 8px;
}

.info-data {
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

/* Main Score Section - Reduced Size */
.main-score-section {
    padding: 25px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    margin-bottom: 30px;
}

.score-percentage-display {
    text-align: center;
    margin-bottom: 20px;
}

.score-percentage {
    font-size: 48px;
    font-weight: 700;
    color: #fe5000;
    line-height: 1;
    margin-bottom: 8px;
}

.score-subtitle {
    font-size: 16px;
    color: #75787b;
    font-weight: 500;
}

/* Score Breakdown - Reduced Size */
.score-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 450px;
    margin: 0 auto;
}

.score-breakdown-item {
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    background: white;
}

.score-breakdown-item.correct {
    background: #d1f4dd;
    border: 2px solid #28a745;
}

.score-breakdown-item.incorrect {
    background: #fdd1d1;
    border: 2px solid #dc3545;
}

.score-breakdown-item.skipped {
    background: #fff3cd;
    border: 2px solid #ffc107;
}

.breakdown-number {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.score-breakdown-item.correct .breakdown-number {
    color: #28a745;
}

.score-breakdown-item.incorrect .breakdown-number {
    color: #dc3545;
}

.score-breakdown-item.skipped .breakdown-number {
    color: #f39c12;
}

.breakdown-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    font-weight: 600;
}

/* System Breakdown Section */
.system-breakdown-section {
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.system-breakdown-section h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.system-scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.system-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #75787b;
    transition: all 0.3s;
}

.system-score:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Report Download Section */
.report-download-section {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(183, 184, 185, 0.1) 0%, rgba(254, 80, 0, 0.1) 100%);
    border-radius: 10px;
    text-align: center;
}

.report-download-section h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.report-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.report-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    background: white;
    color: #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.report-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.report-btn.html-report:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.report-btn.pdf-report:hover {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.report-btn svg {
    flex-shrink: 0;
}

/* Results Actions */
.results-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.results-btn {
    padding: 14px 35px;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-weight: 500;
}

.review-btn {
    background: #75787b;
    color: white;
}

.review-btn:hover {
    background: #fe5000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(254, 80, 0, 0.3);
}

.retake-btn {
    background: transparent;
    color: #75787b;
    border: 2px solid #75787b;
}

.retake-btn:hover {
    background: #75787b;
    color: white;
    transform: translateY(-2px);
}

/* Loading */
.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 1000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #75787b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #666;
    font-size: 16px;
}

/* Hidden Class */
.hidden {
    display: none !important;
}

/* EICAS Message Styles */
.eicas-message {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    line-height: 1.4;
}

.eicas-warning {
    color: #fe0101;
}

.eicas-caution {
    color: #ffcd00;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.eicas-advisory {
    color: #03aefe;
}

.eicas-status {
    color: #ffffff;
    background: #000000;
    padding: 4px 10px;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 20px auto;
    }

    .welcome-page,
    .mode-selection-page,
    .quiz-page,
    .results-page {
        padding: 30px 20px;
    }

    .welcome-page h2,
    .results-title {
        font-size: 28px;
    }

    .result-quiz-title {
        font-size: 20px;
    }

    .mode-selection-page h2 {
        font-size: 24px;
    }

    .quiz-title {
        font-size: 22px;
    }

    .question {
        font-size: 18px;
    }

    .option {
        padding: 12px 15px;
    }

    .navigation {
        flex-direction: column;
    }

    .navigation button {
        width: 100%;
    }

    /* Responsive info table */
    .info-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .info-column {
        padding: 10px;
        background: white;
        border-radius: 6px;
    }

    .info-header {
        font-size: 10px;
    }

    .info-data {
        font-size: 16px;
    }

    .results-info-table {
        padding: 15px;
    }

    /* Responsive score section */
    .score-percentage {
        font-size: 42px;
    }

    .score-subtitle {
        font-size: 16px;
    }

    .score-breakdown {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 250px;
    }

    .breakdown-number {
        font-size: 20px;
    }

    .results-info-section {
        padding: 15px;
    }

    .report-buttons {
        flex-direction: column;
    }

    .report-btn {
        width: 100%;
        justify-content: center;
    }

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

    .results-btn {
        width: 100%;
    }

    .name-input-container {
        margin: 20px auto;
    }
}

@media (max-width: 480px) {
    .banner h1 {
        font-size: 20px;
    }

    .banner-logo {
        height: 30px;
    }

    .welcome-page h2 {
        font-size: 24px;
    }

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

    .result-quiz-title {
        font-size: 18px;
    }

    .mode-option h3,
    .mode-option h4 {
        font-size: 18px;
    }

    .question {
        font-size: 16px;
        padding: 15px;
    }

    .option-text {
        font-size: 14px;
    }

    .nav-btn,
    .quit-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .score-percentage {
        font-size: 36px;
    }

    .breakdown-number {
        font-size: 18px;
    }

    .info-label {
        font-size: 12px;
    }

    .info-value {
        font-size: 14px;
    }

    .report-download-section {
        padding: 20px;
    }

    .report-download-section h3 {
        font-size: 20px;
    }

    .report-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .system-scores-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   House styling: form controls inherit DINPro, and the quiz
   buttons match the buttons used across the rest of the site.
   Appended last so it wins without touching the rules above
   (their display:none / .show toggles stay intact).
   ============================================================ */
button, input, select, textarea { font-family: inherit; }

.nav-btn,
.nav-btn.secondary,
.quit-btn,
.hint-btn,
.explain-btn {
    background: #fff;
    border: 1.5px solid #c4cad1;
    color: #2a2e33;
    border-radius: 9px;
    font-family: inherit;
    font-weight: 700;
    transition: all .17s ease;
}
.nav-btn, .nav-btn.secondary, .quit-btn { padding: 11px 30px; font-size: 14px; }
.hint-btn, .explain-btn                 { padding: 9px 18px;  font-size: 13px; }

.nav-btn:hover:not(:disabled),
.nav-btn.secondary:hover:not(:disabled),
.quit-btn:hover:not(:disabled),
.hint-btn:hover,
.explain-btn:hover,
.hint-btn.active {
    border-color: #FE5000;
    background: #FE5000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(254, 80, 0, 0.30);
}

.nav-btn:disabled {
    background: #f2f4f6;
    border-color: #d3d8dd;
    color: #a7adb4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ---- Mode selection: house heading + house cards, stacked & centred ---- */
.mode-container { text-align: center; }
.mode-selection-page h2 {
    font-size: 26px;
    letter-spacing: -0.3px;
    color: #2a2e33;
    margin: 0 0 4px;
}
.mode-selection-page p { font-size: 15px; color: #75787B; }

/* one per row, centred column */
.mode-options {
    grid-template-columns: 1fr;
    gap: 13px;
    max-width: 460px;
    margin: 22px auto 0;
}

/* Back sits centred, clear of the cards above it */
.mode-container .nav-btn,
#backToSelectionBtn { margin-top: 28px; }
.mode-option {
    background: #f2f4f6;
    border: 1.5px solid #c4cad1;
    border-radius: 11px;
    padding: 14px 16px;
    min-height: 62px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    text-align: left;
    color: #2a2e33;
    transition: all .17s ease;
}
.mode-option:hover {
    background: #FE5000;
    border-color: #FE5000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(254, 80, 0, 0.30);
}
.mode-option h3,
.mode-option h4 {
    font-size: 14.5px;
    font-weight: 500;
    color: inherit;
    margin: 0;
    line-height: 1.25;
}
.mode-option p { font-size: 12px; color: #8a9099; margin: 0; }
.mode-option:hover p { color: rgba(255, 255, 255, 0.92); }
