body { font-family: 'Segoe UI', Arial, sans-serif; background: #f4f6fb; margin: 0; padding: 0; } .quiz-container { background: #fff; max-width: 900px; margin: 48px auto; padding: 0 32px 32px 32px; border-radius: 16px; box-shadow: 0 8px 32px rgba(44,62,80,0.12), 0 1.5px 4px rgba(44,62,80,0.08); position: relative; } .quiz-header { display: flex; align-items: center; justify-content: space-between; background: transparent; padding: 28px 0 10px 0; border-radius: 16px 16px 0 0; margin-bottom: 18px; font-size: 22px; font-weight: 600; letter-spacing: 0.2px; border-bottom: none; position: relative; min-height: 48px; } .quiz-qcount { background: #e3e8ee; color: #6b7685; font-weight: 600; font-size: 17px; border-radius: 16px; padding: 4px 18px; margin-left: auto; margin-right: 16px; display: flex; align-items: center; gap: 4px; } .quiz-title { font-weight: bold; font-size: 22px; color: #1976d2; padding-left: 8px; } #lang-btn { position: static; margin-left: 0; margin-right: 0; background: #f7faff; color: #1976d2; border: 1.5px solid #dde3ee; border-radius: 8px; padding: 7px 18px; font-size: 15px; font-weight: 500; cursor: pointer; transition: background 0.2s, color 0.2s, border 0.2s; box-shadow: none; } #lang-btn:hover { background: #1976d2; color: #fff; border: 1.5px solid #1976d2; } #question { font-size: 19px; margin-bottom: 22px; margin-top: 10px; color: #222e3a; font-weight: 500; } #options label { display: flex; align-items: center; background: #f7faff; border: 1.5px solid #dde3ee; border-radius: 7px; padding: 10px 14px; margin-bottom: 14px; cursor: pointer; transition: border 0.2s, background 0.2s; font-size: 17px; color: #2d3a4a; } #options label:hover { border: 1.5px solid #1976d2; background: #eaf2fd; } #options input[type="radio"] { margin-right: 12px; accent-color: #1976d2; width: 18px; height: 18px; } #submit { margin-top: 12px; padding: 10px 28px; font-size: 17px; background: #1976d2; color: #fff; border: none; border-radius: 7px; cursor: pointer; font-weight: 500; box-shadow: 0 1px 4px rgba(44,62,80,0.08); transition: background 0.2s; } #submit:hover { background: #1256a3; } #next-btn { margin-top: 12px; padding: 10px 28px; font-size: 17px; background: #43a047; color: #fff; border: none; border-radius: 7px; cursor: pointer; font-weight: 500; box-shadow: 0 1px 4px rgba(44,62,80,0.08); transition: background 0.2s; } #next-btn:hover { background: #2e7031; } #feedback { margin-top: 18px; font-weight: bold; font-size: 17px; min-height: 24px; } #feedback { color: #d32f2f; } #feedback:empty { min-height: 0; } #explanation { margin-top: 18px; background: #f1f6fb; padding: 14px 18px; border-radius: 6px; color: #2d3a4a; font-size: 16px; border-left: 4px solid #1976d2; box-shadow: 0 1px 4px rgba(44,62,80,0.04); } .hidden { display: none; } .dropdown-question { display: flex; align-items: flex-start; margin-bottom: 18px; gap: 0 18px; } .dropdown-question > div { flex: 2; min-width: 340px; font-size: 18px; line-height: 1.6; margin-bottom: 0; margin-right: 28px; word-break: normal; white-space: normal; color: #2d3a4a; } .dropdown-question select { min-width: 220px; font-size: 17px; padding: 7px 10px; border-radius: 6px; border: 1.5px solid #dde3ee; background: #f7faff; color: #222e3a; transition: border 0.2s; } .dropdown-question select:focus { border: 1.5px solid #1976d2; outline: none; } .drag-area { display: flex; gap: 16px; margin-bottom: 24px; justify-content: flex-start; flex-wrap: wrap; } .drag-item { padding: 10px 10px; background: #f7faff; border: 1.5px solid #dde3ee; border-radius: 10px; cursor: grab; font-weight: 500; font-size: 16px; text-align: center; user-select: none; box-shadow: 0 1px 4px rgba(44,62,80,0.04); transition: background 0.2s, border 0.2s; word-break: break-word; min-width: 0; max-width: 260px; } /* Drag columns layout */ .dragcol-container { display: flex; gap: 24px; justify-content: center; align-items: flex-start; margin-top: 12px; flex-wrap: wrap; } .dragcol-list { min-width: 180px; max-width: 320px; min-height: 220px; background: #f7faff; border: 1.5px solid #dde3ee; border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 10px; } .dragcol-list-right { background: #fff; } .dragcol-title { font-weight: bold; margin-bottom: 8px; } .dragcol-btns { display: flex; flex-direction: column; justify-content: center; gap: 12px; margin: 0 8px; } .dragcol-btns button { font-size: 22px; padding: 4px 10px; cursor: pointer; } @media (max-width: 900px) { .quiz-container { max-width: 99vw; padding: 0 4vw 32px 4vw; } .dragcol-container { flex-direction: column; align-items: stretch; gap: 12px; } .dragcol-list, .dragcol-list-right { min-width: 0; max-width: 100%; } } .drag-item:active { background: #e3eaf7; } .drop-target { display: flex; align-items: center; margin-bottom: 18px; } .drop-target > div:first-child { flex: 2; font-size: 17px; line-height: 1.5; margin-right: 24px; color: #2d3a4a; } .drop-zone { min-width: 100px; min-height: 38px; background: #f7faff; border: 1.5px dashed #b0b8c9; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 16px; color: #1976d2; margin-left: 8px; transition: background 0.2s, border 0.2s; } @media (max-width: 800px) { .dropdown-question > div { min-width: 180px; font-size: 16px; margin-right: 10px; } .dropdown-question select { min-width: 120px; font-size: 15px; } } @media (max-width: 600px) { .dropdown-question { flex-direction: column; align-items: stretch; gap: 8px 0; } .dropdown-question > div { min-width: 0; margin-right: 0; margin-bottom: 6px; font-size: 15px; } .dropdown-question select { min-width: 100px; font-size: 15px; } }