:root {
  --logoclr: 0%;
  --bg: #fff;
  --bgop: #ffffffb8;
  --bgsec: #ececec;
  --secbtn: #ebebebcb;
  --secclr: #dcdcdccb;
  --secclrhover: #bcbcbc;
  --accent: #000000;
  --border: #d1d5db;
  --borderhover: #c1c4ca;
  --overlayclr: rgba(0, 0, 0, 0.4);
  --btn: #000;
  --btnhover: #1b1b1b;
  --btnclr: #fff;
  --text: #000;
}

[data-theme="dark"] {
  --logoclr: 100%;
  --bg: #000;
  --bgop: #000000c1;
  --bgsec: #191919;
  --secbtn: #242424cb;
  --secclr: #212121;
  --secclrhover: #2a2a2a;
  --accent: #ffffff;
  --border: #1a1a1a;
  --borderhover: #323232;
  --overlayclr: rgba(92, 92, 92, 0.5);
  --btn: #fff;
  --btnhover: #dbdbdb;
  --btnclr: #000;
  --text: #ffffff;
}

*{
    user-select: none;
}

.container{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    min-height: 100vh;
    padding: 10% 10px;
}

.qcard {
    max-width: 500px;
    margin: auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 0 24px #5555552b;
    color: var(--text);
}

.result{
    border: 1px solid var(--accent);
    box-shadow: 0 0 24px #55555532;
    transition: box-shadow 1s ease !important;
}

.result:hover{
     box-shadow: 0 0 50px #555555ad;
}

#apresentacaoCard h1 {
    opacity: 0;
    font-weight: 900;
    padding: 0 20px;
    text-align: center;
    font-size: 1.2rem;
    color: var(--text);
    transition: opacity 1s ease-in-out;
    position: absolute;            /* fica um sobre o outro */
}

/* Classe usada para exibir o h1 atual */
#apresentacaoCard h1.active {
    opacity: 1;
}

/* Apenas para centralizar visualmente o bloco (opcional) */
#apresentacaoCard {
    display: flex;
    align-items: center;
    justify-content: center;
}

.qcard h1{
    font-weight: 900;
    font-size: 1.25rem;
}
p.sub {
    font-size: 1rem;
    margin-bottom: 2rem;
}
.question {
    font-size: 1rem;
}
.options button {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
    padding: 1rem;
    border: 2px solid var(--accent);
    background: var(--bg);
    color: var(--accent);
    font-size: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.hide{
    opacity: 0;
    user-select: none;
    pointer-events: none;
    transition: opacity .5s ease;
}

.show{
    opacity: 1;
    pointer-events: all;
    transition: opacity .5s ease;
}

.back{
    position: absolute;
    top: 20px;
    left: 20px;
    color: var(--accent);
    opacity: .2;
    display: flex;
    gap: 5px;
    align-items: center;
    span{
        font-size: 1rem;
    }
    transition: opacity .5s ease;
}

.back:hover{
    opacity: 1;
}

.btn-final {
    background: var(--accent);
    color: var(--bg);
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    border-radius: 15px;
    cursor: pointer;
    transition: background .2s ease, padding .2s ease, gap .2s ease, transform .25s cubic-bezier(0.175, 0.885, 0.265, 1.55);
}
.btn-final:hover {
    background: var(--secbtn);
    color: var(--text);
    padding: 15px 35px;
}