/* Estilos Gerais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth; /* Suaviza a rolagem */
}

:root {
  --background-color: #f7f9fa;
  --color-green-700: #718355;
  --color-green-500: #87986a;
  --color-green-300: #b7c0a8;
  --color-white: #f8f9fa;
  --color-black: #000000;
}

body {
  background-color: var(--background-color);
  color: var(--color-green-500);
  text-align: center;
  overflow-x: hidden; /* Evita rolagem horizontal */
}

header {
  background: var(--color-green-300);
  padding: 10px;
}

nav {
  display: flex;
  flex-direction: column;
  align-items: center;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
  background: none;
}

nav ul li {
  padding: 2px;
  flex: 1 1 120px;
}

nav ul li a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 1rem;
  font-family: "Montserrat", sans-serif;
}

.logo {
  margin-bottom: 10px; /* Espaço entre a logo e o menu */
}

.logo img {
  width: 100px; /* Tamanho da logo */
}

.menu {
  display: flex;
  justify-content: center; /* Centraliza os itens do menu */
  list-style: none;
  padding: 0;
}

/* Seção Home */
#home {
  position: relative;
}

#home .image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1; /* Coloca a imagem atrás do conteúdo */
}

.content {
  position: relative;
  padding: 20px;
  border-radius: 8px;
  z-index: 1; /* Coloca o conteúdo acima da imagem */
}

.content h1 {
  font-size: 3rem;
  font-family: "Bodoni Moda", serif;
}

.content p {
  font-size: 0.8rem;
  font-family: "Montserrat", sans-serif;
}

.contagem {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-family: "Montserrat", sans-serif;
}

.numero {
  background-color: var(--color-green-500);
  color: white;
  font-size: 0.8rem;
  padding: 10px;
  border-radius: 8px;
  display: inline-block;
}

/* Seção Ramo Divisor */
.ramo-divisor img {
  width: 250px;
}

/* Seção Cerimônia e Recepção */
.ceremony-container,
.reception-container,
.gifts-container,
.presence-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#ceremony h1,
#reception h1,
#gifts h1,
#presence h1 {
  font-size: 2rem;
  font-family: "Bodoni Moda", serif;
}

.ceremony-info,
.reception-info,
.gifts-info,
.presence-info {
  font-size: 1rem;
  font-family: "Montserrat", sans-serif;
  text-align: justify;
  line-height: 1.6rem;
  margin: 10px 0;
  width: 90%;
}

.ceremony-image img,
.reception-image img {
  width: 90%;
  border-radius: 10px;
}

iframe {
  width: 380px;
  border-radius: 10px;
}

/* Lista de Presentes */
#gifts {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.gift-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  justify-content: center;
  list-style: none;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  color: var(--color-white);
}

.gift-details {
  padding-top: 5px;
  padding-bottom: 5px;
}

.gift-item {
  background: var(--color-green-300);
  padding: 10px;
  border-radius: 8px;
}

.gift-item img {
  width: 100px;
  height: auto;
}

.buy-button {
  background: var(--color-green-500);
  color: var(--color-white);
  font-family: "Montserrat", sans-serif;
  border: none;
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  text-decoration: none;
}

.confirm-container {
  display: flex;
  justify-content: center;
  margin-top: 20px; /* Espaço superior */
}

.confirm-button {
  display: inline-block;
  background-color: var(--color-green-500); /* Cor verde do site */
  color: var(--color-white);
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.confirm-button:hover {
  background-color: var(--color-green-700); /* Cor mais escura no hover */
}

footer {
  background: var(--color-green-300); /* Mesma cor do header */
  color: var(--color-white);
  text-align: center;
  padding: 15px;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
}

footer span {
  color: red; /* Coração vermelho */
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--color-green-500);
  color: var(--color-white);
  padding: 10px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0.7;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top:hover {
  opacity: 1;
  background-color: var(--color-green-700);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* Responsivo para telas maiores */
@media (min-width: 768px) {
  .logo img {
    width: 130px; /* Tamanho da logo */
  }

  nav ul li a {
    font-size: 1.3rem; /* Aumenta o tamanho da fonte do menu em telas maiores */
  }

  #home {
    min-height: 100vh;
  }

  #home .content {
    padding-top: 60px; /* ou ajuste conforme a altura da sua navbar */
  }

  .content h1 {
    font-size: 4rem;
    font-family: "Bodoni Moda", serif;
  }

  .content p {
    font-size: 1.2rem;
    font-family: "Montserrat", sans-serif;
  }

  .contagem {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-family: "Montserrat", sans-serif;
  }

  .numero {
    background-color: var(--color-green-500);
    color: white;
    font-size: 0.8rem;
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
  }

  .ceremony-container,
  .reception-container,
  .gifts-container,
  .presence-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .ceremony-info,
  .reception-info,
  .gifts-info,
  .presence-info {
    font-size: 1.2rem;
    font-family: "Montserrat", sans-serif;
    text-align: justify;
    line-height: 1.6rem;
    margin: 10px 0;
    width: 90%;
    justify-content: center;
    align-items: center;
  }

  iframe {
    width: 700px;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  nav .logo {
    margin: 10px 0 0 120px;
  }
  nav {
    flex-direction: row;
    justify-content: space-between; /* Espaço entre logo e menu */
    margin-right: 100px;
  }

  nav ul {
    flex-wrap: nowrap;
    gap: 30px;
  }

  nav ul li a {
    font-size: 1.7rem;
  }

  nav ul li {
    flex: auto;
  }

  .logo img {
    width: 140px;
  }

  #ceremony h1,
  #reception h1,
  #gifts h1,
  #presence h1 {
    font-size: 4rem;
    font-family: "Bodoni Moda", serif;
  }

  #home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    height: 100vh;
  }

  #home .image {
    flex: 1;
    display: flex;
    justify-content: center;
  }

  #home .image img {
    position: static;
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
  }

  .home-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .content h1 {
    font-size: 7rem;
  }

  .content p {
    font-size: 1.5rem;
  }

  .numero {
    font-size: 1.2rem;
    padding: 10px;
  }

  /* Seção Ramo Divisor */
  .ramo-divisor img {
    width: 350px;
  }

  .ceremony-info,
  .reception-info,
  .gifts-info,
  .presence-info {
    font-size: 1.4rem;
    font-family: "Montserrat", sans-serif;
    text-align: justify;
    line-height: 1.6rem;
    margin: 10px 0;
    width: 90%;
    justify-content: center;
    align-items: center;
  }

  .ceremony-container,
  .reception-container {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 40px;
    height: 87vh;
    box-sizing: border-box;
  }
  
  .ceremony-image img,
  .reception-image img {
    width: auto;
    /*max-width: 100%;*/
    border-radius: 10px;
    height: 82vh;
  }
  
  .ceremony-text,
  .reception-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
    height: 100%; /* ocupa a altura total */
    overflow-y: auto; /* se o conteúdo for maior, permite rolagem */
    gap: 20px;
  }
  
  .ceremony-text iframe,
  .reception-text iframe {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
  } 
  
  #gifts {
    padding: 40px;
  }

  .gift-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    max-width: 1024px;
    margin: 0 auto;
  }

  .gift-item {
    background: var(--color-green-300);
    color: var(--color-white);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }

  .gift-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  }

  .gift-item img {
    width: 200px;
    height: auto;
    margin-bottom: 16px;
    object-fit: contain;
  }

  .gift-item {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin: 0 0 12px;
  }

  .buy-button {
    background-color: var(--color-green-500);
    color: white;
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
  }

  .buy-button:hover {
    background-color: var(--color-green-700);
  }
}
