@import url('https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,100..900;1,100..900&family=Roboto+Slab:wght@100..900&family=Sour+Gummy:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,100..900;1,100..900&family=Patrick+Hand&family=Winky+Sans:ital,wght@0,300..900;1,300..900&display=swap');

.main-container {
		 background-image:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, .3),
            rgba(224, 255, 255, .9)35%
        );
		border-radius:6px;
		border:1px dashed rgba(0,0,0,.1);
}
.id_licao{
	opacity:70%;
}

.page-quiz .project-header {
    margin-bottom: 20px;
}

.page-quiz .project-header-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: nowrap;
	opacity:60%;
}

.page-quiz .project-header .project-logo-wrap {
    margin-bottom: 0;
    flex: 0 0 auto;
}

.page-quiz .project-header .logo {
    width: min(100%, 280px);
}

.page-quiz .project-header .app-nav {
    margin-top: 0;
    gap: 10px;
    flex: 0 0 auto;
}

.page-quiz .project-header .app-nav a {
    width: 76px;
    padding: 8px 12px;
    font-size: 0.85rem;
}

.page-quiz .project-subtitle {
    display: none;
}

.id_licao_nome--quiz-title .page-title-heading {
    font-size: clamp(18px, 2vw, 21px);
    line-height: 1.08;
    color: #0a2f67;
    font-family: 'Sour Gummy', sans-serif;
}

.quiz-materia-aluna {
    display: inline-block;
    margin-left: 10px;
    font-family: "Baloo 2", sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #4e7fb0;
    vertical-align: middle;
}

.quiz-shell {
	 background:rgba(240, 234, 189, .30);
	 border-radius:6px;
    padding: 40px 20px;
    border: 1px solid rgba(189, 212, 231, 0.9);
	box-shadow: -1px 1px 2px rgba(166, 209, 115, .1);
}

.quiz-stage {
    background: rgba(255,255,255,.75);
    border: 1px dashed var(--accent-soft);
    border-radius: 8px;
    padding: 5px;
    margin-top: 8px;
    margin-bottom: 16px;
    color: var(--text-soft);
    line-height: 1.4;
	font-size:.9375rem !important;
}

.quiz-question {
	

  border-image-source: url('../imgs/blocos/fr_exerc.svg');
  border-image-slice: 10 10 10 10 fill;
  border-image-width: 10px 10px 10px 10px;
  border-image-repeat: round stretch;
  padding: 8px 16px;
	
	 background-image:
        linear-gradient(
            180deg,
            rgba(255, 255, 65, .8),
            rgba(255, 230, 138, .9)65%
        );
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: -1px 1px 2px rgba(0,0,0,.3);
    font-size: 1.875rem !important;
    font-family: "Patrick Hand", cursive !important;
    line-height: 1.3 !important;
    font-weight: 500;
    color: var(--text-strong);
    white-space: pre-line;
}

.quiz-question-frame {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.quiz-question-media {
    display: none;
}

.quiz-question-media:not(.hidden) {
    display: block;
}

.quiz-question-media__figure {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(189, 212, 231, 0.95);
    box-shadow: -2px 2px 3px rgba(0,0,0,.12);
}

.quiz-question-media__img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    background: #fff;
}

.options-grid {
    display: flex;
    gap: 12px;
    margin: 0 auto;
    margin-top: 10px;
    margin-bottom: 10px;
}

.option-btn,
.quiz-retry {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 25%;
    text-align: center;
    background: linear-gradient(
        180deg,
        rgba(255, 252, 231),
        rgba(252, 247, 164) 50%
    );
  border-image-source: url('../imgs/blocos/fr_exerc2.svg');
  border-image-slice: 10 10 10 10 fill;
  border-image-width: 10px 10px 10px 10px;
  border-image-repeat: round stretch;
    color: #000;
    padding: 12px;
    font-family: "Winky Sans", sans-serif !important;
    line-height: 1.1 !important;
    font-size: 1.25rem !important;
    font-weight: 400;
    cursor: pointer;
    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease,
        color .18s ease,
        opacity .18s ease;
    position: relative;
    margin: 0 auto;
	box-shadow: -1px 1px 2px rgba(0,0,0,.5); 
}

.option-btn:hover,
.quiz-retry:hover {
    transform: translateY(-2px);
    border-color: var(--text-soft);
}

.option-btn:active,
.quiz-retry:active {
    transform: translateY(0) scale(0.985);
}

.option-btn.is-selected {
    border-color: #8eb4d4;
    background: #f4f9ff;
}

.option-btn.is-correct {
    background: #edf8f1;
    border-color: #8ccba2;
    color: #24523a;
    box-shadow: -3px 3px 5px rgba(0,0,0,.2);
}

.option-btn.is-wrong {
    background: #fff1f1;
    border-color: #ebb9b9;
    color: #8a3c3c;
    box-shadow: -3px 3px 5px rgba(0,0,0,.2);
}

.option-btn[disabled] {
    cursor: default;
}

.quiz-retry {
    width: auto;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.progress-bar {
    width: 100%;
    height: 14px;
    background: rgba(255,255,255,.7);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #d7e8eb;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #7db6ea 0%, #5b95c8 100%);
    transition: width .25s ease;
}

.progress-fill[data-progress-step="0"] { width: 0%; }
.progress-fill[data-progress-step="1"] { width: 5%; }
.progress-fill[data-progress-step="2"] { width: 10%; }
.progress-fill[data-progress-step="3"] { width: 15%; }
.progress-fill[data-progress-step="4"] { width: 20%; }
.progress-fill[data-progress-step="5"] { width: 25%; }
.progress-fill[data-progress-step="6"] { width: 30%; }
.progress-fill[data-progress-step="7"] { width: 35%; }
.progress-fill[data-progress-step="8"] { width: 40%; }
.progress-fill[data-progress-step="9"] { width: 45%; }
.progress-fill[data-progress-step="10"] { width: 50%; }
.progress-fill[data-progress-step="11"] { width: 55%; }
.progress-fill[data-progress-step="12"] { width: 60%; }
.progress-fill[data-progress-step="13"] { width: 65%; }
.progress-fill[data-progress-step="14"] { width: 70%; }
.progress-fill[data-progress-step="15"] { width: 75%; }
.progress-fill[data-progress-step="16"] { width: 80%; }
.progress-fill[data-progress-step="17"] { width: 85%; }
.progress-fill[data-progress-step="18"] { width: 90%; }
.progress-fill[data-progress-step="19"] { width: 95%; }
.progress-fill[data-progress-step="20"] { width: 100%; }

.quiz-note {
    margin-top: 12px;
    text-align: center;
    color: var(--text-soft);
    font-weight: 700;
}

.quiz-note-sep {
    opacity: .55;
    margin: 0 8px;
}

.quiz-status-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
    position: sticky;
    bottom: 10px;
    z-index: 5;
    border: 1px solid rgba(189, 212, 231, 0.95);
    border-radius: 2px;
    padding: 12px;
    backdrop-filter: blur(6px);
	opacity:80%;
	background:#fff;
}

.quiz-status-item {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-around;
    max-height: 32px;
    border-radius: 5px;
    background: #fff;
    border: 1px solid rgba(189, 212, 231, 0.95);
    padding: 5px 3px;
    text-align: center;
}

.quiz-status-item strong {
    font-size: 1.5rem;
    line-height: 1;
    margin-top: 6px;
}

.quiz-status-label {
    font-size: .84rem;
    font-weight: 700;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.quiz-status-item--correct {
    background: #edf8f1;
    border-color: #c9e6d3;
}

.quiz-status-item--correct strong {
    color: #24523a;
}

.quiz-status-item--wrong {
    background: #fff3f3;
    border-color: #f0d2d2;
}

.quiz-status-item--wrong strong {
    color: #8a3c3c;
}

.quiz-status-item--goal {
    background: #f3f8ff;
}

.result-screen {
    text-align: center;
    background: rgba(255,255,255,.80);
    border-radius: 18px;
    padding: 28px 20px;
    border: 1px solid rgba(189, 212, 231, 0.95);
}

.result-screen h2 {
    border-bottom: 0;
    padding-bottom: 0;
    font-size: 2rem;
}

.quiz-actions {
    justify-content: center;
    margin-top: 16px;
}

#save-status {
    margin-top: 10px;
    color: var(--text-soft);
    line-height: 1.5;
}

.empty-state {
    text-align: center;
}

/* =========================================================
   QUESTÕES DE COLUNAS / TABELA
   ========================================================= */

.quiz-columns-wrap {
    width: 100%;
    display: grid;
    gap: 16px;
}

.quiz-columns-intro {
    margin-bottom: 0;
}

.quiz-columns-board {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, .95fr);
    gap: 14px 18px;
    align-items: stretch;
}

.quiz-columns-head {
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(180, 253, 179, .95);
    border: 1px solid rgba(189, 212, 231, 0.95);
    font-family: "Baloo 2", sans-serif;
    font-size: 1.04rem;
    font-weight: 700;
    color: #0d752e;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.quiz-columns-head--right{
    background: rgba(210, 250, 229, .95);
}

.quiz-columns-cell {
    display: flex;
    align-items: stretch;
}

.quiz-columns-row,
.quiz-columns-reference__row {
    width: 100%;
    min-height: 58px;
    border-radius: 16px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(189, 212, 231, 0.9);
    box-shadow: -2px 2px 3px rgba(0,0,0,.08);
}

.quiz-columns-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 12px;
    align-items: center;
    padding: 14px;
}

.quiz-columns-row__label {
    font-family: "Crete Round", serif;
    font-size: 1.2rem;
	font-weight: 500;
    line-height: 1.45;
    color: #023019;
}

.quiz-columns-row__select {
    width: 100%;
    height: 40px;
    border-radius: 5px;
    border: 1px solid #abc7e1;
    background: #EFFAE8;
    padding: 5px;
    font-size: .8rem;
    color: #17324d;
    outline: none;
}

.quiz-columns-row__select:focus {
    border-color: #6ea7d8;
    box-shadow: 0 0 0 3px rgba(110, 167, 216, .18);
}

.quiz-columns-reference__row {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    font-family: "Crete Round", serif;
    font-size: 1.05rem;
    line-height: 1.45;
    color: #17324d;
    background: #e7fff2;
}

.quiz-columns-submit {
    width: auto;
    min-width: 220px;
    justify-content: center;
}

.quiz-columns--correct .quiz-columns-row,
.quiz-columns--correct .quiz-columns-reference__row {
    border-color: #8ccba2;
    background: #edf8f1;
}

.quiz-columns--wrong .quiz-columns-row,
.quiz-columns--wrong .quiz-columns-reference__row {
    border-color: #ebb9b9;
    background: #fff3f3;
}

.quiz-math-wrap {
    width: 100%;
    display: grid;
    gap: 12px;
}

.quiz-math-input {
    width: min(100%, 620px);
    height: 56px;
    margin: 0 auto;
    border-radius: 14px;
    border: 1px solid #abc7e1;
    background: #fff;
    padding: 0 16px;
    font-size: 1.08rem;
    color: #17324d;
    outline: none;
}

.quiz-math-input:focus {
    border-color: #6ea7d8;
    box-shadow: 0 0 0 3px rgba(110, 167, 216, .18);
}

.quiz-math-input.is-correct {
    border-color: #8ccba2;
    background: #edf8f1;
}

.quiz-math-input.is-wrong {
    border-color: #ebb9b9;
    background: #fff3f3;
}

.quiz-answer-hint {
    color: var(--text-soft);
    line-height: 1.55;
}

.quiz-answer-btn {
    width: auto;
    min-width: 220px;
    justify-content: center;
}

@media (max-width: 860px) {
    .page-quiz .project-header-bar {
        flex-wrap: wrap;
        gap: 12px;
    }

    .page-quiz .project-header .logo {
        width: min(100%, 240px);
    }

    .option-btn,
    .quiz-retry {
        width: 80%;
    }

    .quiz-columns-board {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-quiz .project-header .app-nav a {
        width: 68px;
        height: 68px;
        font-size: 0.78rem;
    }

    .quiz-materia-aluna {
        display: block;
        margin-left: 0;
        margin-top: 4px;
    }

    .option-btn,
    .quiz-retry {
        width: 100%;
        font-size: 1.5rem !important;
    }

    .quiz-columns-row {
        grid-template-columns: 1fr;
    }

    .quiz-columns-row__select,
    .quiz-math-input {
        height: 48px;
    }
}

.quiz-topline {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 8px 0 16px;
	justify-content: space-evenly;
}

.quiz-topline #id_licao_data,
.quiz-topline #selecao_materia {
    margin: 0;
}

.quiz-topline #id_licao_data .licao_data {
    margin: 0;
}

.quiz-topline #selecao_materia .btn {
    margin: 0;
	font-size: .8125rem !important;
	padding: 5px !important;
	border-radius: 5px !important;
	box-shadow: -1px 1px 2px rgba(0,0,0,.1);
	color: #fff;
	background: #628F94;
}

@media (max-width: 760px) {
    .quiz-topline {
        align-items: flex-start;
        flex-direction: column;
    }
}

.quiz-options {
    align-items: stretch;
}

.quiz-options--multipla_escolha,
.quiz-options--v_ou_f {
    display: flex;
}

.quiz-options--preenchimento,
.quiz-options--colunas {
    display: block;
}

.quiz-button.is-disabled,
.quiz-answer-field.is-disabled,
.quiz-columns-row__select.is-disabled {
    opacity: .72;
    cursor: default;
}

.quiz-answer-wrap {
    width: 100%;
    display: grid;
    gap: 12px;
}

.quiz-answer-field {
    width: min(100%, 620px);
}

.quiz-answer-field.is-correct {
    border-color: #8ccba2;
    background: #edf8f1;
}

.quiz-answer-field.is-wrong {
    border-color: #ebb9b9;
    background: #fff3f3;
}



/* =========================================================
   QUIZ HEADER — breadcrumb com logo
   ========================================================= */

.page-quiz .project-header {
    margin-bottom: 14px;
}

.quiz-header-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 8px 0;
}

.quiz-header-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.quiz-header-logo .logo {
    width: min(100%, 160px);
    height: auto;
    margin: 0;
    display: block;
}

.quiz-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1rem;
}

.qbc-sep {
    color: #9ab8c8;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1;
    user-select: none;
}

.qbc-item {
    color: #5a8aa0;
    font-weight: 400;
    text-decoration: none;
    letter-spacing: .02em;
    transition: color .15s;
}

.qbc-item:hover {
    color: #1a5a78;
    text-decoration: underline;
}

.qbc-item--current {
    color: #1a3a50;
    font-weight: 700;
    pointer-events: none;
}

@media (max-width: 520px) {
    .quiz-header-bar {
        gap: 10px;
    }
    .quiz-header-logo .logo {
        width: min(100%, 120px);
    }
    .quiz-breadcrumb {
        font-size: .9rem;
    }
}


/* =========================================================
   QUIZ PROGRESS BOX — caixa abaixo do quiz-shell
   ========================================================= */

.quiz-progress-box {
    background: rgba(255,255,255, .62);
    border: 1px dashed rgba(189, 212, 231, 0.8);
    border-left: none;
	border-right:none;
    border-radius: 4px;
    padding: 20px 20px 16px;
    margin-bottom: 18px;
}

/* quiz-note dentro do progress-box */
.quiz-progress-box .quiz-note {
    margin: 0 0 14px;
    text-align: center;
    color: var(--text-soft);
    font-weight: 700;
    font-size: .95rem;
}

/* ── TRACK DA PROGRESS BAR ── */
.quiz-progress-track {
    position: relative;
    width: 100%;
    height: 28px;
    background: rgba(255,255,255,.7);
    border-radius: 999px;
	box-shadow:-2px 2px 3px rgba(0,0,0,.3);
    overflow: visible;
    border: 2px solid #d7e8eb;
	border-style:double;
    margin-bottom: 36px;
}

.quiz-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #7db6ea 0%, #5b95c8 100%);
    border-radius: 999px;
    transition: width .4s cubic-bezier(.4,0,.2,1);
}

/* setinha indicadora de posição atual */
.quiz-progress-arrow {
    position: absolute;
    top: 100%;
    margin-top: 4px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 9px solid #5b95c8;
    transition: left .4s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
    z-index: 2;
}

/* marcos de progresso */
.quiz-progress-milestones {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.quiz-milestone {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.quiz-milestone-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #a8cfe0;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.quiz-milestone-label {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Roboto Condensed', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    color: #7a9fae;
    white-space: nowrap;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.quiz-milestone--end .quiz-milestone-dot {
    border-color: #7db6ea;
}

.quiz-milestone--end .quiz-milestone-label {
    color: #4a80a0;
}

/* marcos atingidos */
.quiz-milestone.is-reached .quiz-milestone-dot {
    background: #5b95c8;
    border-color: #5b95c8;
}

.quiz-milestone.is-reached .quiz-milestone-label {
    color: #1a5a78;
    font-weight: 800;
}

/* progress fill steps (reutiliza os data-attributes do JS) */
.quiz-progress-fill[data-progress-step="0"]  { width: 0%; }
.quiz-progress-fill[data-progress-step="1"]  { width: 5%; }
.quiz-progress-fill[data-progress-step="2"]  { width: 10%; }
.quiz-progress-fill[data-progress-step="3"]  { width: 15%; }
.quiz-progress-fill[data-progress-step="4"]  { width: 20%; }
.quiz-progress-fill[data-progress-step="5"]  { width: 25%; }
.quiz-progress-fill[data-progress-step="6"]  { width: 30%; }
.quiz-progress-fill[data-progress-step="7"]  { width: 35%; }
.quiz-progress-fill[data-progress-step="8"]  { width: 40%; }
.quiz-progress-fill[data-progress-step="9"]  { width: 45%; }
.quiz-progress-fill[data-progress-step="10"] { width: 50%; }
.quiz-progress-fill[data-progress-step="11"] { width: 55%; }
.quiz-progress-fill[data-progress-step="12"] { width: 60%; }
.quiz-progress-fill[data-progress-step="13"] { width: 65%; }
.quiz-progress-fill[data-progress-step="14"] { width: 70%; }
.quiz-progress-fill[data-progress-step="15"] { width: 75%; }
.quiz-progress-fill[data-progress-step="16"] { width: 80%; }
.quiz-progress-fill[data-progress-step="17"] { width: 85%; }
.quiz-progress-fill[data-progress-step="18"] { width: 90%; }
.quiz-progress-fill[data-progress-step="19"] { width: 95%; }
.quiz-progress-fill[data-progress-step="20"] { width: 100%; }

/* status-bar dentro do progress-box — sem sticky, sem fundo branco extra */
.quiz-progress-box .quiz-status-bar {
    position: static;
    bottom: auto;
    backdrop-filter: none;
    margin-top: 0;
    opacity: 1;
}


/* =========================================================
   QUIZ SHELL AFTER — versão compacta (2 linhas)
   ========================================================= */

.quiz-shell-after--compact {
    padding: 14px 20px 10px;
    font-family: 'Roboto Condensed', sans-serif;
    opacity: .85;
}

.quiz-after-line1,
.quiz-after-line2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 6px;
    line-height: 1.4;
}

.quiz-after-line2 {
    margin-bottom: 0;
}

.qaf-materia {
    font-size: 1rem;
    font-weight: 700;
    color: #1a5a78;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.qaf-aluna {
    font-size: 1.05rem;
    font-weight: 700;
    color: #4e7fb0;
}

.qaf-titulo {
    font-size: .98rem;
    font-weight: 400;
    font-style: italic;
    color: #3a5a6a;
}

.qaf-sep {
    color: #9ab8c8;
    font-weight: 300;
    font-size: 1rem;
    user-select: none;
}

.qaf-stat {
    font-size: .88rem;
    font-weight: 400;
    color: #6a8a9a;
}

.qaf-stat strong {
    font-weight: 700;
    color: #1a3a50;
}

.qaf-preview {
    font-style: italic;
    color: #a06030;
}

.qaf-preview strong {
    color: #a06030;
}

.quiz-shell-after--compact .btn {
    margin-left: auto;
    font-size: .8125rem !important;
    padding: 5px 12px !important;
    border-radius: 5px !important;
    box-shadow: -1px 1px 2px rgba(0,0,0,.1);
    color: #fff;
    background: #628F94;
    border-color: #628F94;
    flex-shrink: 0;
}

