body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: #363636;
  color: #ffffff;
}

#rodape {
  text-align: center;
  font-size: 13px;
  color: #777;
  margin-top: 30px;
  padding: 10px 0;
  border-top: 1px solid #ddd;
}


/* Ajuste do espaçamento entre H1, H2 e H3 no topo */
#topo h1,
#topo h2,
#topo h3 {
  margin-top: 0;         /* remove espaço acima */
  margin-bottom: 5px;    /* encosta mais um no outro */
  line-height: 1.0;      /* aproxima linhas internas */
}


h1 {
  text-align: center;
  color: #f18700;
  font-weight: 300;
  font-size: 46px;
  margin: 10px 0;
}

h2 {
  text-align: center;
  color: #f18700;
  font-weight: 300;
  font-size: 28px;
  margin: 10px 0;
}

h3 {
  text-align: center;
  color: #fbc683;
  font-weight: 300;
  font-size: 18px;
  margin: 10px 0;
}

.descricao-site {
  text-align: center;
  color: #99c0f8;
  font-weight: 100;
  font-size: 25px;
  margin: 10px auto;
  max-width: 90%;
}


/* aurora-text */
.aurora-text {
  font-weight: 100;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  position: relative;
  background: linear-gradient(-45deg, #48a0fb, #f94a84, #00cc66, #b46dfc, #48a0fb);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: auroraText 12s ease-in-out infinite;
}


.aurora-text.grande {
  font-size: 55px;
  margin-bottom: 10px;
}

.aurora-text:not(.grande) {
  font-size: 55px;
}

@keyframes auroraText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#topo {
  position: relative;
  /* top: 0;  */
  width: 99%;
  background-color: transparent; 
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  padding: 10px;
  z-index: 999;
}

#setor4 {
  /* margin-top: 350px;  */
  padding: 10px;
  background-color: transparent; /* ou remova a linha */
}

#menu-categorias {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px 0;
}

#titulo-categoria {
  font-weight: 100;      /* Roboto Thin */
  text-transform: uppercase;
  font-family: 'Roboto', sans-serif;
}


#categorias-lista li.ativo {
  background-color: #f58634;
  color: #fff;
  font-weight: bold;
}


#menu-categorias button {
  padding: 5px 10px;
  border: none;
  background: #555;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
  height: 22px;             /* Altura dos botões */
  min-width: 120px;
  font-size: 12px;       /* texto mais visível */
  text-transform: uppercase; /* letras maiúsculas */
  

}

#menu-categorias button.ativo {
  background-color: #f58634;
  color: white;
  font-weight: bold;
}

#menu-categorias button:hover {
  background: #f18700;
  color: #000;
}

/* FORMULÁRIO */
#formulario {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  align-items: stretch;
}


#formulario textarea {
  background: #222;
  color: #fff;
  border: 1px solid #555;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  padding: 5px;
  resize: none;
  height: 60px;
}

#escolhas {
  width: 25%;
  height: 80px;
  resize: none;
  background: #222;
  color: #fff;
  border: 1px solid #555;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  padding: 5px;
}

#observacoes {
  width: 35%;
  height: 80px;
  resize: none;
  background: #222;
  color: #fff;
  border: 1px solid #555;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  padding: 5px;
}
.coluna-nome-email {
  display: flex;
  flex-direction: column;
  width: 32%;
  gap: 2px; /* agora vai funcionar */
}


.coluna-nome-email input {
  height: 27px;
  padding: 3px 6px;
  font-size: 12px;
  font-family: 'Roboto', sans-serif;
  background: #222;
  color: #fff;
  border: 1px solid #555;
  border-radius: 4px;
  margin: 0; /* ← Adicione esta linha */
}

/* Estilo para texto de placeholder branco */
input::placeholder,
textarea::placeholder {
  color: #ffffff;
  opacity: 1; /* Garante visibilidade total */
}



#botoes {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 8%;
  min-width: 56px;
}



#limpar.btn-flip {
  margin-top: 10px;
}



/* BOTÕES COM FLIP */
.btn-flip {
  height: 30px;            /* igual aos inputs */
  line-height: 30px;
  perspective: 1000px;
  position: relative;
  font-family: 'Roboto', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  text-decoration: none;
  display: block;
  padding: 0;
  width: 100%;
  font-size: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
}



/* ENVIAR – frente laranja, verso marrom escuro */



#enviar.btn-flip::before {
  content: attr(data-front);
  background: #f58634;
  color: #fff;
}

#enviar.btn-flip::after {
  content: attr(data-back);
  background: #9d4403;
  color: #fff;
}

/* LIMPAR – frente marrom escuro, verso laranja */
#limpar.btn-flip::before {
  content: attr(data-front);
  background: #418427;
  color: #fff;
}

#limpar.btn-flip::after {
  content: attr(data-back);
  background: #0fc220;
  color: #fff;
}

/* EFEITO FLIP GERAL */
.btn-flip::before,
.btn-flip::after {
  top: 0;
  left: 0;
  width: 100%;
  display: block;
  padding: 0 15px;
  height: 30px;
  line-height: 30px;
  transition: 0.5s;
  position: absolute;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  box-sizing: border-box;
}

.btn-flip::before {
  opacity: 1;
  transform: translateY(0) rotateX(0);
  z-index: 2;
}

.btn-flip::after {
  opacity: 0;
  transform: translateY(-50%) rotateX(90deg);
  z-index: 1;
}

.btn-flip:hover::before {
  opacity: 0;
  transform: translateY(50%) rotateX(90deg);
}

.btn-flip:hover::after {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

/* RESTANTE */
#miniaturas-escolhidas {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  margin-top: 10px;
}

#miniaturas-escolhidas img {
  height: 60px;
  border-radius: 4px;
  box-shadow: 0 0 3px #000;
  margin-bottom: 4px;
}


#area-imagens {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-height: 500px;
  overflow-y: auto;
}

.imagem {
  width: 120px;
  border: 2px solid transparent;
}

.imagem img {
  width: 100%;
  height: 100px;      /* altura fixa para nivelar o grid */
  object-fit: cover;  /* mantém a proporção e evita “degraus” */
  cursor: pointer;
  border-radius: 4px;
}


.imagem.selecionada {
  border-color: #f18700;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.modal img {
  display: block;
  max-width: 80%;
  margin: 50px auto;
}

.fechar {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

/* EFEITO DE FUNDO ANIMADO ESCURO */
.bg {
  animation: slide 3s ease-in-out infinite alternate;
  background-image: linear-gradient(-60deg, #111 50%, #333 50%);
  bottom: 0;
  left: -50%;
  opacity: 0.5;
  position: fixed;
  right: -50%;
  top: 0;
  z-index: -1;
}

.bg2 {
  animation-direction: alternate-reverse;
  animation-duration: 4s;
}

.bg3 {
  animation-duration: 5s;
}

.bg, .bg2, .bg3 {
  pointer-events: none;
}


@keyframes slide {
  0% {
    transform: translateX(-25%);
  }
  100% {
    transform: translateX(25%);
  }
}

/* MENU MOBILE – FORA DO @media */
#menu-categorias-mobile {
  display: none;
  width: 100%;
  padding: 8px;
  font-size: 16px;
  background: #222;
  color: white;
  border: 1px solid #555;
  border-radius: 4px;
  margin-bottom: 10px;
}

#menu-categorias-mobile:focus {
  outline: none;
}


/* RESPONSIVO MOBILE */
@media screen and (max-width: 768px) {

  #formulario {
    flex-direction: column;
    gap: 10px;
  }

#formulario textarea,
.coluna-nome-email,
#botoes,
#menu-categorias-mobile {
  max-width: 95%;
  margin-left: auto;
  margin-right: auto;
}

/* Estilo para texto de placeholder branco */
input::placeholder,
textarea::placeholder {
  color: #ffffff;
  opacity: 1; /* Garante visibilidade total */
}

.descricao-site {
  font-size: 16px;
  line-height: 1.4;
} 

.descricao-site-nota {
  font-size: 12px;
  line-height: 1.4;
  color: #ffffff;
} 

#limpar.btn-flip {
  margin-top: 0;
}


#escolhas,
#observacoes {
  height: 40px;
}

#escolhas,
#observacoes,
.coluna-nome-email,
#botoes {
  width: 100%;
  box-sizing: border-box;
}

.imagem {
  flex: 0 0 28%;
  max-width: 28%;
  margin: 1% 0.3%;
}



  #botoes {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }

  .btn-flip {
    width: 120px;
  }

  /* REDUZ TÍTULO */
  .aurora-text.grande {
    font-size: 35px;
  }



  /* REDUZ BOTÕES DE CATEGORIA CASO APAREÇAM */
  #menu-categorias button {
    height: 20px;
    font-size: 9px;
    padding: 2px 6px;
    min-width: 90px;
    margin: 1px;
  }

  /* MOSTRA O DROPDOWN, ESCONDE OS BOTÕES */
  #menu-categorias {
    display: none !important;
  }

  #menu-categorias-mobile {
    display: block !important;
  }

  #miniaturas-escolhidas {
    justify-content: center;
    flex-wrap: wrap;
  }
}

.texto-ampliar {
  font-size: 12px;
  color: #f18700;
  align-self: center;
  white-space: nowrap;
}
/* ==== Realce de imagem selecionada na grade (#area-imagens) ==== */
#area-imagens .imagem {
  position: relative; /* necessário para os pseudo-elementos funcionarem */
}

/* Opção A — escurecer a imagem selecionada (mantém seu contorno laranja atual) */
#area-imagens .imagem.selecionada img {
  filter: brightness(0.55) saturate(0.95);
  transition: filter .2s ease-in-out;
}

/* Opção B — “lente” sobre a imagem + leve escurecimento por overlay */
#area-imagens .imagem.selecionada::after {
  content: "✔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  color: #ffffff;
  text-shadow: 0 0 5px #000;
  pointer-events: none; /* não interfere no clique */
}

/* Botão de categoria que já tem imagens escolhidas */
#menu-categorias button.usado {
  border: 2px solid #f18700;   /* contorno laranja */
  font-weight: bold;
}

#miniaturas-escolhidas {
  display: flex;
  align-items: center;   /* força centralização vertical de tudo dentro */
  gap: 6px;              /* espaçamento automático entre itens */
}

#miniaturas-escolhidas img {
  vertical-align: middle; /* garante alinhamento das miniaturas */
}

#miniaturas-escolhidas .icone-lupa {
  display: flex;
  align-items: center;
  justify-content: center;
}

#miniaturas-escolhidas .icone-lupa-svg {
  width: 30px;    /* ajuste conforme necessário */
  height: 30px;
  stroke: #f18700;
}

/* ===== Miniaturas escolhidas: badge numérico + handle de arraste ===== */
#miniaturas-escolhidas {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap; /* caso quebre linha */
}

#miniaturas-escolhidas .miniatura-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* A miniatura em si: reaproveita seu estilo atual de <img> */
#miniaturas-escolhidas .miniatura-item img {
  display: block;
}

/* Badge com o número (1,2,3...) */
#miniaturas-escolhidas .badge-num {
  position: absolute;
  top: 4px;
  left: 4px;
  background: #111;
  color: #fff;
  border: 1px solid #f18700;
  font-size: 11px;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 10px;
  pointer-events: none;
}

/* Handle (pegador) para arrastar — ícone ☰ no canto superior direito */
#miniaturas-escolhidas .handle {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  cursor: grab;           /* só arrasta a partir do handle */
  background: rgba(0,0,0,0.60);
  border: 1px solid rgba(255,255,255,0.2);
  color: #f18700;
  user-select: none;
}
#miniaturas-escolhidas .handle:active { cursor: grabbing; }

/* Fantasma durante o arraste */
#miniaturas-escolhidas .sortable-chosen {
  opacity: .9;
  transform: scale(1.03);
}
#miniaturas-escolhidas .sortable-ghost {
  opacity: .5;
}

/* Botão de remover (X) na miniatura escolhida */
#miniaturas-escolhidas .remove-badge {
  position: absolute;
  left: 4px;
  bottom: 6px; /* controla a posição vertical */
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f10000;
  border: 1px solid #f18700;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  outline: none;
  user-select: none;
}
#miniaturas-escolhidas .remove-badge:hover {
  background: #000;
}
/* Estado ENVIANDO do botão #enviar */
#enviar.enviando,
#enviar[disabled] {
  cursor: not-allowed;
}

#enviar.enviando.btn-flip::before,
#enviar.enviando.btn-flip::after {
  background: #b35b12;   /* tom mais escuro enquanto envia */
  color: #fff;
}

/* Travar o efeito flip enquanto envia */
#enviar.enviando.btn-flip::before {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}
#enviar.enviando.btn-flip::after {
  opacity: 0;
  transform: translateY(-50%) rotateX(90deg);
}
#enviar.enviando.btn-flip:hover::before,
#enviar.enviando.btn-flip:hover::after {
  transform: none;
}

/* Navegação do slideshow (setas) */
#modal .nav-slide {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  line-height: 1;
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1001;
}
#modal #prev-slide { left: 30px; }
#modal #next-slide { right: 30px; }
#modal .nav-slide:hover { background: rgba(0,0,0,0.65); }

#miniaturas-escolhidas .icone-play {
  display: flex;
  falign-items: center;
  justify-content: center;
}
#miniaturas-escolhidas .icone-play-svg {
  width: 30px;
  height: 30px;
  color: #f18700;
}
/* Play no título da categoria */
#titulo-categoria {
  display: flex;              /* em vez de inline-flex */
  justify-content: center;    /* centraliza horizontal */
  align-items: center;        /* alinha vertical */
  gap: 8px;                   /* espaço entre texto e ícone */
  text-align: center;         /* por segurança, mantém centro */
}

.icone-play-titulo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  cursor: pointer;
}
.icone-play-titulo-svg {
  width: 26px;
  height: 26px;
  color: #f18700;
}
.icone-play-titulo-svg circle {
  fill: currentColor;  /* circulo preenchido */
  /* remova stroke se quiser 100% “chapado” */
}

