@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary: #00b894;
    --primary-light: #96c93d;
    --danger: #e74c3c;
    --success: #2ecc71;
    --card-radius: 18px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #333;
}

#app { width: min(1100px, 95%); padding: 20px; }

/* KEZDŐLAP DESIGN VISSZAÁLLÍTÁSA */
.card { 
    background: #fff; 
    border-radius: var(--card-radius); 
    padding: 35px; 
    box-shadow: 0 20px 45px rgba(0,0,0,0.25);
    width: 100%;
}

.mainTitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 28px;
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 5px;
}

.title-logo { height: 60px; width: auto; }
.subTitle { text-align: center; font-size: 14px; color: #888; margin-top: 0; margin-bottom: 25px; }

label { display: block; margin-top: 15px; font-weight: 600; font-size: 14px; color: #444; }
input[type="text"], select { width: 100%; padding: 12px; margin-top: 5px; border-radius: 8px; border: 1px solid #ddd; font-family: inherit; }

/* KÉPMÉRET JAVÍTÁS (Hogy a robotos/emailles kép ne legyen óriási) */
.question-image {
    display: block;
    max-width: 100%;
    max-height: 300px; /* Itt korlátozzuk a magasságot */
    width: auto;
    height: auto;
    margin: 15px auto;
    border-radius: 10px;
    object-fit: contain;
    cursor: zoom-in;
}

.image-wrapper { text-align: center; background: #fcfcfc; border-radius: 10px; padding: 10px; }

/* QUIZ LAYOUT */
@media (min-width: 900px) {
    .quiz-layout {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: 30px;
        align-items: start;
    }
    .right-panel { position: sticky; top: 20px; min-width: 0; }
}

.answer-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    margin-top: 10px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #f9f9f9;
    cursor: pointer;
    width: 100%;
}

.answer-option span {
    flex: 1;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.4;
}

/* TRUE/FALSE */
.truefalse-item { margin-bottom: 20px; padding: 15px; background: #fdfdfd; border-left: 4px solid var(--primary); border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.03); }
.tf-options { display: flex; gap: 10px; margin-top: 10px; }
.tf-options .answer-option { margin-top: 0; flex: 1; justify-content: center; }

/* INFO BOXOK */
.info-box { background: #f0f7f4; border-left: 4px solid var(--primary); padding: 12px; font-size: 13px; margin: 20px 0; border-radius: 0 8px 8px 0; }
.bank-info { background: #f4f4f4; padding: 12px; border-radius: 8px; font-size: 13px; margin-bottom: 15px; border: 1px solid #ddd; line-height: 1.5; }

button { width: 100%; padding: 14px; border: none; border-radius: 10px; background: var(--primary); color: white; font-weight: 600; cursor: pointer; margin-top: 10px; font-family: inherit; transition: 0.2s; }
button:hover { opacity: 0.9; transform: translateY(-1px); }
button.secondary { background: #e0e0e0; color: #333; }

.hidden { display: none !important; }
.progress-wrapper { width: 100%; height: 8px; background: #eee; border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.progress-bar { height: 100%; width: 0%; background: var(--primary); transition: width 0.3s; }
.system-footer { text-align: center; color: rgba(255,255,255,0.5); font-size: 11px; margin-top: 30px; }

/* =====================
   KÉP NAGYÍTÁS (LIGHTBOX)
===================== */

.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

.image-modal img {
    max-width: 92%;
    max-height: 92%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: zoomIn 0.2s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.92);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

.correct-answer {
    border: 2px solid var(--success);
    background: rgba(46,204,113,0.1);
}

.wrong-answer {
    border: 2px solid var(--danger);
    background: rgba(231,76,60,0.1);
}

.answer-option input {
    margin-top: 4px;
}

/* =====================
   VÁLASZ KIEMELÉSEK
===================== */

.correct-answer {
    border: 2px solid var(--success);
    background: rgba(46,204,113,0.15);
}

.wrong-answer {
    border: 2px solid var(--danger);
    background: rgba(231,76,60,0.15);
}

.missed-answer {
    border: 2px solid #f1c40f;
    background: rgba(241,196,15,0.18);
}

/* TRUE/FALSE VISSZAJELZÉS */
.truefalse-item {
    transition: border-left 0.25s ease, background 0.25s ease;
}

.truefalse-item.correct-answer {
    border-left: 4px solid var(--success);
}

.truefalse-item.wrong-answer {
    border-left: 4px solid var(--danger);
}

.truefalse-item.missed-answer {
    border-left: 4px solid #f1c40f;
}