/* Reset de estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
/* Tema claro (padrão) */
:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --bg-fundo-historia: #f4f4f4;
  --text-color-popup:#5e5959;
  --fundo-img-header: brightness(100%);
  --bg-button: #333;
  --text-button: #f4f4f4;
  --bg-count: #b8b5b5;
  --cor-flor: brightness(100%);
}

/* Tema escuro */
[data-theme="dark"] {
  --bg-color: #0e0c0d;
  --text-color: #ffffff;
  --bg-fundo-historia: #333;
  --text-color-popup:#5e5959;
  --fundo-img-header: brightness(40%);
  --bg-button: #f4f4f4;
  --text-button: #333;
  --bg-count:#9c9b9b;
  --cor-flor: brightness(500%);
}

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;
}

  
  /* Estilos gerais 
  body {
    font-family: 'Lato', sans-serif;
    color: #333;
    background-color: #fff;
  }*/

  .container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  /* Header */
  header {
    /*position: relative;
    height: 50vh;*
    background-image: url('images/header.jpeg');
    /*background-size: cover;*/
    /*background-position: center;
    color: #555;
    display: flex;
    /*justify-content: center;*/
    /*align-items: center;
    margin-top: 4rem;*/
    position: relative;
  width: 100%;
  height: 100%; /* ajustável conforme seu layout */
  overflow: hidden;
  margin-top: 4rem;
  }
  
.header-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* cobre todo o espaço mantendo proporção */
  display: block;
  /*filter: brightness(20%);*/
  filter: var(--fundo-img-header);
}

.header-caption {
  /*position: absolute;*/
  bottom: 0px;
  left: 0px;
  margin: 0;
  color: #868686;;
  font-size: 6vh;
  /*text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);*/
  z-index: 1;
  padding: 0.5rem 1rem;
  /*font-family: Helvetica;*/
  font-family: URW Chancery L, cursive;
  /*letter-spacing: 0.5rem;
  font-weight: 300;*/
  text-align: center;
  
}

.header-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.header-text h1 {
  font-size: 2.5rem;
  margin: 0;
}

.header-text p {
  font-size: 1.2rem;
  margin-top: 1rem;
}

#inicio {
  scroll-margin-top: 96px; /* ou o valor equivalente à altura da sua navbar */
}


/* Seções */
  .sessaoFundo {
    text-align: center;
    /*background-color: #f4f4f4;*/
    background-color: var(--bg-fundo-historia);
    padding-bottom: 0.7rem;
    border-radius: 10px;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .overlay {
    /*position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;*/
    background: rgba(0, 0, 0, 0.5);
  }

  .img {
    /*margin-left: -1rem;
    width: 16rem;
    margin-bottom: 1rem;*/
    /*width: 100%;
    height: auto;
    display: block;*/
    align-content: center;
  }

  .image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 8vh; /* ou a altura que quiser */
  margin-top: 4rem;
  margin-bottom: 3rem;
  filter: var(--cor-flor);
}

.image-container img {
  max-width: 25%;
  height: auto;
  width: 25vh;
  display: block;
}


  .nome-header {
    margin-bottom: 5%;
  }
  
  .info-container {
    /*text-align: center;*/
    z-index: 1;
    position: absolute;
    bottom: 2rem;
    /*left: 50%;
    transform: translateX(-50%);*/
    margin-left: 2rem;
    /*width: 20rem;*/
  }
  
.botao {
  padding: 0.7rem 1.5rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
}

.botao:hover {
  background-color: #cc9200;
}


  h1 {
    font-family: Helvetica;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    letter-spacing: 0.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px;
    text-align: center;
  }
  
  .data, .local {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    /*margin-top: 4rem;*/
    letter-spacing: 0.2rem;
    text-align: center;
  }

  .imagem-pix {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-top: 0.5rem;
    padding-right: 1rem;
  }
  
  .data-contagem {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    margin-top: 4rem;
    letter-spacing: 0.2rem;
    text-align: center;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .historia {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05rem;
    text-align: center;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .data-confirmacao {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    margin-top: 4rem;
    text-align: center;
  }
  
  #countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding-top: 3rem;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-bottom: 4rem;
  }
  
  #countdown div {
    /*background: rgba(82, 81, 81, 0.233);*/
    background: var(--bg-count);
    padding: 0.5rem;
    border-radius: 0.5rem;
  }
  
  #countdown span:first-child {
    font-size: 2rem;
    font-weight: bold;
  }
  
  
  
  h2 {
    font-family: 'Lato', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    margin-top: 3rem;
  }

  .tituloPopup{
    font-family: 'Lato', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    margin-top: -0.3rem;
  }
  
  .fotos {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .fotos img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
  }
  
  .cotas {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .cota {
    /*background: #f4f4f4;*/
    background: var(--bg-fundo-historia);
    padding: 1rem;
    border-radius: 0.5rem;
    width: 250px;
    text-align: center;
  }

  p {
    text-align: center;
  }

  .cota h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .cota p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .cota img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-top: 0.5rem;
  }
  
  form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  form input, form select {
    padding: 0.5rem;
    width: 80%;
    max-width: 400px;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
  }

  button {
    padding: 0.7rem 1.5rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
  }
  
  form button {
    padding: 0.7rem 1.5rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
  }
  
  form button:hover {
    background-color: #555;
  }
  
  .mensagens {
    /*background: #f4f4f4;*/
    background: var(--bg-fundo-historia);
    font-size: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    margin-top: 4rem;
    gap: 1rem;
    text-align: center;
    max-width: 600px; 
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
    align-items: center;
    color: var(--text-color);
  }
  
  .data-mensagem {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    margin-top: 4rem;
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Navbar */
  .navbar {
    position: fixed;
    width: 100%;
    top: 0;
    padding: 2rem 4rem;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    height: 4rem;
  }
  
  /* Logo */
  .navbar .logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
  }
  
  /* Menu de links */
  .nav-links {
    position: fixed;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2rem;
  list-style: none;
  }
  
  .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: 0.3s ease;
  }
  
  .nav-links a:hover {
    color: #ffb700;
  }
  
  /* Hamburger */
  .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
  }
  
  .hamburger span {
    height: 3px;
    width: 25px;
    background: white;
    border-radius: 2px;
    transition: 0.3s ease;
  }
  
  /* Mobile nav */
  @media (max-width: 768px) {

    header {
      /*padding-top: 80px;*/
    }
    .hamburger {
      display: flex;
    }
  
    .nav-links {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background-color: rgba(0, 0, 0, 0.95);
      flex-direction: column;
      align-items: center;
      gap: 1.5rem;
      padding: 1.5rem 0;
      display: none;
      animation: slideDown 0.3s ease forwards;
    }
  
    .nav-links.open {
      display: flex;
    }
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  

    .open-button {
      background-color: #16a34a;
      color: white;
      padding: 12px 24px;
      border: none;
      border-radius: 8px;
      font-size: 16px;
      transition: background-color 0.3s;
    }

    .open-button:hover {
      background-color: #15803d;
    }

    .popup-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: rgba(0, 0, 0, 0.4);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 999;
      padding-top: 5rem;
    }

    .popup-content {
      /*background-color: white;*/
      background-color: var(--bg-fundo-historia);
      padding: 24px;
      border-radius: 16px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
      width: 90%;
      max-width: 400px;
    }

    .popup-content h2 {
      text-align: center;
      color: #15803d;
      margin-bottom: 16px;
      font-size: 22px;
    }

    .pix-key-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background-color: #f3f4f6;
      padding: 8px 12px;
      border-radius: 6px;
      margin-bottom: 16px;
    }

    .pix-key {
      font-size: 14px;
      color: #111827;
    }

    .copy-button {
      background: none;
      border: none;
      color: #2563eb;
      font-size: 14px;
      text-decoration: underline;
      padding: 0;
    }

    textarea {
      width: 100%;
      padding: 10px;
      border: 1px solid #d1d5db;
      border-radius: 6px;
      resize: vertical;
      font-size: 14px;
      margin-bottom: 16px;
    }

    .popup-buttons {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
    }

    .close-button, .send-button {
      padding: 10px 16px;
      border: none;
      border-radius: 6px;
      font-size: 14px;
    }

    .close-button {
      /*background-color: #f4f4f4;*/
    }
  

    .close-button:hover {
      background-color: #d1d5db;
    }

    .send-button {
      background-color: #16a34a;
      color: white;
    }

    .send-button:hover {
      background-color: #15803d;
    }
    

    .footer {
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

.galeria {
  text-align: center;
  max-width: 600px;
  margin: 2rem auto;
  position: relative;
}

.imagem-container {
  position: relative;
}

.foto-principal {
  height: 30rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.seta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 0.7rem 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s;
}

.seta:hover {
  background: rgba(0, 0, 0, 0.7);
}

.seta.esquerda {
  left: 10px;
}

.seta.direita {
  right: 10px;
}

.miniaturas {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.miniaturas img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.3s ease;
}

.miniaturas img:hover,
.miniaturas img.ativa {
  opacity: 1;
  border: 2px solid #ffb700;
}


.presente {
  padding: 1rem;
  margin-bottom: 0.5rem;
  /*background: #fdf8ee;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);*/
}

/* Oculta os presentes com classe 'mais' */
.presente.mais {
  display: none;
}

#verMaisBtn {
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  background: #ffb700;
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

#verMaisBtn:hover {
  background: #e0a200;
}


.mural-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 400px;
}

/*.msg {
  background: #fdf8ee;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}*/


.carousel-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  overflow: hidden;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease;
}

.msg {
  min-width: 100%;
  box-sizing: border-box;
  /*padding: 1rem;*/
  /*background-color: #f7f7f7;*/
  border-radius: 8px;
  /*box-shadow: 0 0 10px rgba(0,0,0,0.1);*/
  text-align: center;
  padding-left: 4rem;
}

p.nome{
  /*padding: 1rem;*/
  font-size: 1rem; 
  text-align: left
}

p.msg-retorno{
  font-size: 0.8rem; 
  text-align: left
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #00000000;
  color: #868686;
  border: none;
  font-size: 2rem;
  padding: 0.2rem 0.8rem;
  cursor: pointer;
  z-index: 1;
  border-radius: 4px;
}

.carousel-btn.left {
  left: 0.5rem;
}

.carousel-btn.right {
  right: 0.5rem;
}

.input-mensagem{
  padding: 0.5rem;
    width: 80%;
    max-width: 400px;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}


#btnTopo {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  background-color: #333;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 50%;
  font-size: 5px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  display: none;
  transition: background 0.3s, transform 0.2s;
}

#btnTopo:hover {
  background-color: #555;
  transform: scale(1.1);
}

/* Estilo do switch */
.switch {
  position: fixed;
  top: 5rem;
  right: 1rem;
  display: inline-block;
  width: 45px;
  height: 25px;
}

.switch input { display: none; }

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 34px;
  inset: 0;
  transition: 0.4s;
}

.slider::before {
  position: absolute;
  content: "";
  height: 20px; width: 20px;
  left: 4px; bottom: 2.56px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: ##343232;
}

input:checked + .slider::before {
  transform: translateX(18px);
}

  .btn-verde {
    background-color: var(--bg-button); /* bg-green-600 */
    color: var(--text-button);              /* text-white */
    padding: 0.75rem 1.5rem;   /* px-6 py-3 */
    border-radius: 0.5rem;     /* rounded-lg */
    transition: background-color 0.3s ease; /* transition */
  }

  .btn-verde:hover {
    /*background-color: #15803d; /* hover:bg-green-700 */
  }
