  :root {
    --accent: #e23636;          /* cor ativa, muda conforme a seção */
    --track-bg: #e3e3e8;
    --pill-bg: #ffffff;
    --text-active: #1a1a1a;
    --text-inactive: rgba(255, 255, 255, 0.7);
  }


@font-face {
  font-family: "Helvetica Neue Condensed";
  src: url("fonts/HelveticaNeueCondensed.woff2") format("woff2"),
       url("fonts/Helvetica_Neue_97_Black_Condensed.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  height: 100vh;
  background: #FF10F8;
  color: #FF0000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  position: relative;

  min-height: 100vh;
  margin: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

}


.print {
  font-size: 1.1rem;
  opacity: 0.65;
  color: #fff;
  min-height: 1.1em;
  text-align: center;
}


.vermelho {
  background: url("img/vermelho.png") center / cover no-repeat;
  color: #ffffff;
}

.rosa {
    background: url("img/rosa.png") center / cover no-repeat;
  color: #111315; 
}

.video {
  background: #070707;
  color: #ffffff;
}

.preto {
  background: url("img/preto.png") center / cover no-repeat;
  color: #E60002;
}

.foto {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}




#display {
  position: fixed;
  inset: 0;                /* cobre a tela toda: top/right/bottom/left = 0 */

  display: flex;
  justify-content: center;
  align-items: center;     /* texto centralizado na tela */
  text-align: center;

  text-transform: uppercase;
  font-family: "Helvetica Neue Condensed", sans-serif;
  letter-spacing: -0.01em;
  font-size: 3rem;
  font-weight: bold;
  line-height: 1.3;
  white-space: pre-wrap;
  padding: 0 20px;

  pointer-events: none;    /* deixa clicar na barra/controles através dele */
  z-index: 1;              /* atrás da barra e dos controles */
}




/* controles embaixo — nunca encolhem */
.controls {
  position: fixed;
  bottom: 15px;
  left: 0;
  right: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  max-width: 640px;
  width: 100%;
  margin: 0 auto 16px;
  z-index: 10;
}

textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #EAEAEA;
  outline: none;
  text-align: center;
  resize: none;
  background: #fff;
  color: #000;
  font-family: inherit;
}
textarea:focus { border-color: #C4C4C4; }

p {
  font-size: 0.95rem;
  opacity: 0.8;
}




/* ---- Segmented control ---- */
  .segmented {
    position: relative;
    display: inline-flex;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 3px;
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    align-self: center;   /* agora centralizada, abaixo do texto de print */
    margin-top: 12px;
  }
 
  /* a pílula deslizante */
  .segmented .pill {
    position: absolute;
    top: 3px;
    left: 3px;
    height: calc(100% - 6px);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12), 0 1px 1px rgba(0,0,0,0.04);
    transition: transform 0.32s cubic-bezier(0.4, 0.0, 0.2, 1), width 0.32s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 0;
  }
 
  .segmented label {
    position: relative;
    z-index: 1;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-inactive);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    transition: color 0.25s ease, font-weight 0.25s ease;
  }
 
  .segmented input { display: none; }
 
  /* separadores verticais entre itens (somem perto do item ativo) */
  .segmented label:not(:first-of-type)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22%;
    height: 56%;
    width: 1px;
    background: rgba(120,120,128,0.28);
    transition: opacity 0.25s ease;
  }
 
  /* esconde o divider à esquerda do item ativo... */
  .segmented input:checked + label::before { opacity: 0; }
  /* ...e o divider à direita (que pertence ao próximo item) */
  .segmented input:checked + label + input + label::before { opacity: 0; }
 
  @media (prefers-reduced-motion: reduce) {
    .segmented .pill, .conteudo, body { transition: none; }
  }


@media (max-width: 600px) {
  body {
    height: auto;
    min-height: 100vh;
  }

  /* empurra a caixa de controles pra baixo da "dobra" da tela,
     considerando uma proporção de tela de 1080x1920 (9:16).
     Fica no fluxo normal (não absolute) pra que o body cresça
     de verdade e o background cubra até o final, sem sobrar
     área branca embaixo. */
  .controls {
    position: static;
    bottom: auto;
    margin: calc(177.78vw + 24px) auto 40px;
  }

  .segmented {
    align-self: stretch;       /* estica na largura toda do body */
    width: 100%;
    display: flex;             /* em vez de inline-flex */
    justify-content: space-between;
  }
  .segmented label {
    padding: 8px 0;            /* tira o padding lateral */
    flex: 1;                   /* cada item divide o espaço igualmente */
    font-size: 13px;
    text-align: center;
  }

}
