* { margin:0; padding:0; box-sizing:border-box; }
body { background: #0d1b2a; font-family: Arial, sans-serif; color:#fff; min-height:100vh; display:flex; justify-content:center; align-items:center; }

.quiz-wrapper { width:100%; display:flex; justify-content:center; padding:20px; }
.quiz-card { background:#101e3d; border-radius:12px; box-shadow:0 8px 24px rgba(0,0,0,0.5); max-width:700px; width:100%; padding:30px; position:relative; }
.quiz-title { color:#00bfff; font-weight:600; text-align:center; margin-bottom:20px; }

.question-section p { font-size:1.2rem; margin-bottom:1rem; }
.option-btn { display:block; width:100%; margin-bottom:10px; padding:12px; border:2px solid #00bfff; border-radius:6px; background:#0f2c55; color:#00bfff; cursor:pointer; text-align:left; transition:0.2s; }
.option-btn:hover:not(.correct):not(.wrong){ background:#144a91; }
.option-btn.correct{ background:#28a745; color:white; border-color:#28a745 !important; }
.option-btn.wrong{ background:#dc3545; color:white; border-color:#dc3545 !important; }

.buttons { display:flex; justify-content:space-between; margin-top:15px; }
.buttons .btn { min-width:120px; font-weight:500; cursor:pointer; background:#00bfff; color:#000; border:none; border-radius:6px; padding:10px; transition:0.2s; }
.buttons .btn:hover{ background:#ffd700; }

.result-section { text-align:center; max-height:none; overflow-y:none; margin-top:20px; }
.result-section h2 { color:#00bfff; margin-bottom:20px; }
.result-section ul { list-style:none; padding:0; text-align:left; }
.result-section li { margin-bottom:12px; background:#162447; padding:10px 15px; border-left:4px solid #00bfff; border-radius:4px; }

.animation-box { position:relative; margin-top:20px; padding:15px; background:#0f2c55; border-radius:8px; min-height:120px; display:none; }
.source, .diode { display:inline-block; width:50px; height:50px; text-align:center; line-height:50px; font-size:1.5rem; border-radius:6px; margin:10px; background:#1b263b; cursor:pointer; user-select:none; }
.line { position:absolute; height:4px; background:yellow; top:25px; left:0; }

.sentence { margin-bottom:15px; font-size:1.2rem; }
.drop-target { display:inline-block; width:120px; height:30px; border-bottom:2px solid #fff; margin-left:5px; text-align:center; vertical-align:middle; line-height:30px; }
.drag-container { margin-top:15px; display:flex; flex-wrap:wrap; gap:10px; }
.drag-source { background:#00bfff; color:white; padding:8px 12px; border-radius:6px; cursor:grab; }
.correct-drop { background:#28a745; color:white; }
.wrong-drop { background:#dc3545; color:white; }
#answerSummary {
    max-height:none;
    overflow:none;
}
/* --- Zamračenje pozadine kviza dok se forma popunjava --- */
body {
    position: relative;
}

/* Forma popout modal */
#userForm {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #162447;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
    color: white;
    z-index: 9999;
    text-align: center;
}

#userForm input {
    width: 80%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #00bfff;
    outline: none;
}

#userForm input:focus {
    border-color: #144a91;
}

#userForm button {
    background: #00bfff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

#userForm button:hover {
    background: #144a91;
}

/* Zamračenje pozadine kviza */

#overlay {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: block; /* ili none kad se sakrije */
    transition: 0.3s;
}
