/* Estilo geral */
body {
    margin: 0;
    font-family: 'Georgia', serif;
    background: url('images/background.jpg') no-repeat center center fixed; /* Fundo principal */
    background-size: cover;
    overflow-x: hidden; /* Impede rolagem horizontal */
}

/* Barra de navegação */
nav {
    position: fixed; /* Mantém a barra fixa no topo */
    top: 0;
    width: 100%;
    z-index: 3;
    text-align: center;
    background: rgba(0, 0, 0, 0.8); /* Fundo preto semi-transparente */
    height: 50px; /* Define altura da barra */
    display: flex; /* Ativa o Flexbox */
    align-items: center; /* Centraliza verticalmente o conteúdo */
    justify-content: center; /* Centraliza os itens horizontalmente */
    transition: top 0.3s ease-in-out; /* Transição suave ao desaparecer/reaparecer */
}

/* Lista de navegação */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px; /* Espaçamento entre itens */
    position: relative; /* Necessário para alinhar o botão login */
}

/* Links de navegação */
nav ul li a {
    text-decoration: none;
    color: white;
    padding: 10px 15px;
    font-size: 1rem; /* Tamanho da fonte */
    border-radius: 5px; /* Bordas arredondadas */
    transition: all 0.3s ease-in-out; /* Transição suave */
}

/* Botão de Login na barra de navegação (Desktop) */
.nav-login {
    position: absolute; /* Posiciona no canto direito */
    right: 20px; /* Alinha à direita da barra */
    top: 50%; /* Centraliza verticalmente */
    transform: translateY(-50%); /* Ajusta para o centro vertical */
    background-color: gold; /* Cor dourada padrão */
    color: black; /* Cor do texto */
    padding: 10px 20px; /* Espaçamento interno */
    font-size: 1rem; /* Tamanho do texto */
    font-weight: bold; /* Texto em negrito */
    border: none; /* Remove borda */
    border-radius: 5px; /* Bordas arredondadas */
    text-decoration: none; /* Remove sublinhado */
    transition: all 0.3s ease-in-out; /* Transição suave para hover */
    z-index: 5; /* Garante que esteja acima de outros elementos */
}
.evento-data {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}
/* Efeito ao passar o mouse nos links */
nav ul li a:hover {
    color: #556B2F; /* Verde oliva escuro */
    background-color: rgba(0, 0, 0, 0.5); /* Preto semi-transparente */
}

/* Efeito ao passar o mouse no botão de Login */
.nav-login:hover {
    background-color: #ffd700; /* Dourado mais claro no hover */
    color: black; /* Mantém o texto preto */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Adiciona uma leve sombra */
    transform: translateY(-50%) scale(1.05); /* Expande levemente o botão no hover */
}
/* Botão flutuante para telas pequenas */
.floating-login-btn {
    display: none; /* Inicialmente oculto para telas maiores */
    position: fixed; /* Fixa a posição na tela */
    bottom: 20px; /* Distância da parte inferior da tela */
    right: 20px; /* Distância da lateral direita */
    background-color: gold; /* Cor dourada */
    color: black; /* Cor do texto */
    padding: 10px 15px; /* Espaçamento interno */
    font-size: 0.9rem; /* Tamanho do texto */
    font-weight: bold; /* Negrito */
    border: none; /* Sem borda */
    border-radius: 50px; /* Forma arredondada */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Sombra */
    text-decoration: none; /* Remove sublinhado */
    z-index: 10; /* Garante que o botão fique acima de outros elementos */
    transition: all 0.3s ease; /* Suaviza o efeito hover */
}

.floating-login-btn:hover {
    background-color: #ffd700; /* Dourado mais claro */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3); /* Sombra mais forte no hover */
}


/* Configuração para a foto casal.jpg */
.hero {
    position: relative;
    width: 65%;
    height: 400px;
    background: url('images/casal.jpg') no-repeat center center;
    background-size: cover;
    margin: 50px auto 50px; /* Alinha com o papel-estampado */
    border-radius: 15px; /* Bordas arredondadas */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra suave */
}

/* Título sobre a foto casal */
.hero h1 {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: gold;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
/* Estilo do título da página RSVP */
.rsvp-header {
    font-size: 2.5rem; /* Tamanho grande para destaque */
    color: #b9ae0d; /* Cor do texto */
    text-align: center; /* Centraliza o texto */
    font-family: 'Georgia', serif; /* Fonte serifada */
    margin: 20px auto; /* Espaçamento acima e abaixo */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); /* Sombra leve para destaque */
    width: 90%; /* Garante alinhamento com o papel estampado */
    max-width: 800px; /* Limita a largura máxima */
}
.general-header {
    font-size: 2.5rem;
    color: #b9ae0d;
    text-align: center;
    font-family: 'Georgia', serif;
    margin: 88px auto 20px; /* antes era 80px, agora +8px */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 800px;
}
/* Configuração para o papel estampado */
.main-content {
    background: url('images/papel-estampado.png') repeat-y center top;
    background-size: 100%; /* Igual à largura da imagem casal.jpg */
    width: 90%; /* Alinha com a largura da hero */
    margin: 0 auto; /* Remove margem extra e centraliza */
    padding: 50px 0; /* Espaçamento vertical interno */
    border-radius: 15px; /* Bordas arredondadas */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra suave */
    min-height: 100vh; /* Garante que o papel estampado cubra a altura da tela */
}
/* Centralizar conteúdo dentro do papel estampado para mensagens */
.main-content.center-content {
    display: flex; /* Ativa o Flexbox */
    flex-direction: column; /* Alinha o conteúdo em coluna */
    justify-content: center; /* Centraliza verticalmente */
    align-items: center; /* Centraliza horizontalmente */
    text-align: center; /* Centraliza o texto */
    min-height: 100vh; /* Garante que ocupe toda a altura da tela */
}

/* Estilo do cronômetro */
.countdown-container {
    display: flex;
    justify-content: center; /* Centraliza os elementos horizontalmente */
    align-items: center; /* Alinha verticalmente */
    gap: 10px; /* Espaçamento entre os quadrados */
    margin: 20px auto; /* Margem superior e inferior */
    width: auto; /* Ajusta automaticamente conforme o conteúdo */
}

.countdown-container div {
    text-align: center;
    background: #ffffff; /* Fundo branco */
    padding: 15px 20px; /* Adiciona espaçamento interno */
    border-radius: 10px; /* Bordas arredondadas */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra leve */
    font-family: 'Georgia', serif; /* Fonte serifada */
}

.countdown-container div span {
    font-size: 2.5em; /* Tamanho do número */
    font-weight: bold;
    color: #333; /* Cor dos números */
}

.countdown-container div p {
    font-size: 1em; /* Tamanho do texto descritivo */
    margin: 5px 0 0; /* Margem superior */
    color: #666; /* Cor do texto */
}

.nosso-grande-dia {
    text-align: center; /* Centraliza o texto */
    margin-top: 20px; /* Adiciona espaço entre o texto e o relógio */
    font-size: 24px; /* Ajusta o tamanho da fonte */
    color: #333; /* Altere a cor conforme sua preferência */
    font-family: 'Georgia', serif; /* Define uma fonte serifada */
    font-weight: bold; /* Destaca o texto */
}
/* Seção sobre Amanda e Pedro */
.about-section {
    display: flex;
    flex-wrap: wrap; /* Permite que os elementos se ajustem em telas pequenas */
    justify-content: center; /* Centraliza os itens */
    gap: 20px; /* Espaçamento entre os elementos */
    margin: 40px auto; /* Adiciona espaço ao redor da seção */
    width: 90%; /* Garante alinhamento com o restante do layout */
}

.about-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 300px; /* Limita a largura de cada item */
    gap: 15px;
}

.about-photo {
    width: 100%;
    height: auto;
    border-radius: 15px; /* Adiciona bordas arredondadas às fotos */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Adiciona uma sombra suave */
}

.about-text h3 {
    font-size: 1.5rem;
    color: #333; /* Cor do título */
    font-family: 'Georgia', serif;
    margin: 10px 0;
}

.about-text p {
    font-size: 1rem;
    color: #666; /* Cor do texto */
    line-height: 1.6; /* Melhora a legibilidade */
}
/* Estilo da seção "Nossa História" */
.history-section {
    text-align: center; /* Centraliza o conteúdo da seção */
    margin: 50px auto; /* Centraliza a seção na página */
    width: 70%; /* Respeita as margens laterais */
}

/* Foto da seção "Nossa História" (Desktop) */
.history-photo {
    width: 70%; /* Ajusta o tamanho da foto para ocupar melhor o espaço */
    max-width: 600px; /* Define um limite máximo para o tamanho */
    margin: 0 auto 20px; /* Centraliza a foto horizontalmente e adiciona margem inferior */
    border-radius: 15px; /* Bordas arredondadas */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra leve */
}

/* Título da seção */
.history-title {
    font-size: 2rem; /* Tamanho maior para destacar o título */
    color: #333; /* Cor do texto */
    margin-bottom: 20px; /* Espaçamento inferior */
    font-family: 'Georgia', serif; /* Fonte serifada */
    text-align: center; /* Centraliza o título */
}

/* Texto da seção "Nossa História" */
.history-text {
    font-size: 1.2rem; /* Ajusta o tamanho do texto */
    line-height: 1.8; /* Melhora o espaçamento entre linhas */
    color: #666; /* Cor do texto */
    font-family: 'Georgia', serif; /* Fonte serifada */
    text-align: center; /* Alinha o texto no centro */
    margin: 0 auto; /* Centraliza horizontalmente */
    width: 70%; /* Ajusta a largura do texto */
}
#home {
    height: 1px; /* Define um tamanho mínimo */
    width: 100%; /* Garante que ocupe toda a largura */
    margin-top: -50px; /* Ajusta conforme a altura da barra de navegação */
}
html {
    scroll-behavior: smooth;
}
.logged-in {
    font-size: 1rem;
    color: rgb(17, 148, 17);
    background-color: transparent;
    padding: 10px 20px;
    border: none;
    font-weight: bold;
}

/* Contêiner da página de login */
.login-container {
    max-width: 400px;
    margin: 100px auto; /* Centraliza na tela */
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Título */
.login-container h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
}

/* Labels e Inputs */
.login-container form label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
    font-size: 1rem;
    color: #555;
}

.login-container form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

/* Botão de Login */
.login-container .form-login-btn {
    width: 100%; /* Garante que o botão ocupe a largura do container */
    padding: 10px;
    font-size: 1rem;
    color: #fff;
    background-color: #556B2F; /* Verde oliva */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 15px; /* Espaçamento do topo */
    box-sizing: border-box; /* Garante que respeite os limites do container */
}

.login-container .form-login-btn:hover {
    background-color: #6b8e23; /* Verde oliva mais claro */
}

.access-login-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #556B2F; /* Verde oliva */
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.access-login-btn:hover {
    background-color: #6b8e23; /* Verde oliva mais claro */
}
.logout-btn {
    font-size: 1rem;
    color: white;
    background-color: red;
    padding: 10px 15px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-left: 15px;
}

.logout-btn:hover {
    background-color: darkred;
}
.rsvp-form {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.usuario-nome {
    font-size: 1.5rem;
    color: black;
    margin-bottom: 15px;
}

.checkbox-container {
    margin-bottom: 25px;
    font-size: 1rem;
    color: black;
}

.rsvp-form label {
    display: block;
    margin: 10px 0 5px;
    color: black;
    font-weight: 500;
    text-align: left;
}

.rsvp-form input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.form-submit-btn {
    background-color: #556B2F;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-submit-btn:hover {
    background-color: #6b8e23;
}
/* Nome do usuário */
.usuario-nome {
    color: black;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 12px;
}

/* Lista de agregados */
.agregado-lista {
    list-style: none;
    padding-left: 0;
    font-size: 1rem;
    color: black;
    text-align: center;
    margin-top: 10px;
}

.agregado-lista li {
    margin-bottom: 6px;
}

/* Botão de edição */
.editar-rsvp-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 24px;
    background-color: #556B2F;
    color: white;
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.editar-rsvp-btn:hover {
    background-color: #6b8e23;
}

.rsvp-confirmado-msg {
    font-size: 1rem;
    color: #444;
    text-align: center;
    margin-bottom: 15px;
}
.editar-agregado-admin-btn {
    font-size: 0.85rem;
    padding: 5px 10px;
    background-color: #556B2F;
    color: white;
    border-radius: 5px;
    margin-left: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.editar-agregado-admin-btn:hover {
    background-color: #6b8e23;
}
.agregado-lista {
    list-style: none;
    padding-left: 0;
    font-size: 1rem;
    color: #333;
    margin-top: 10px;
}

.agregado-lista li {
    margin-bottom: 6px;
}
.btn-criar-usuario {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 18px;
    background-color: #556B2F;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-criar-usuario:hover {
    background-color: #6b8e23;
}
.criar-usuario-form {
    max-width: 500px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 25px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.criar-usuario-form h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
}

.criar-usuario-form label {
    display: block;
    font-weight: bold;
    margin-top: 12px;
    margin-bottom: 5px;
    font-size: 0.95rem;
    color: #333;
}

.criar-usuario-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #999;
    border-radius: 5px;
    font-size: 1rem;
}

.criar-usuario-form button {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background-color: #556B2F;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.criar-usuario-form button:hover {
    background-color: #6b8e23;
}

.criar-usuario-form .access-login-btn {
    display: block;
    text-align: center;
    margin-top: 15px;
    padding: 8px 15px;
    background-color: #ccc;
    color: black;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 5px;
}
.aviso-agregado {
    font-size: 0.75rem;
    color: black;
    margin: 4px 0 12px 0;
    text-align: left;
}
.rsvp-info-msg {
    font-size: 0.9rem;
    color: black;
    margin: 4px 0 12px 0;
    text-align: center;
}
.campo-info {
    font-size: 0.80rem;
    color: black;
    margin: 4px 0 12px 0;
    text-align: left;
}
/* Feed de fotos mais recentes */
.galeria-feed {
    margin: 30px auto;
    width: 90%;
    max-width: 1000px;
    text-align: center;
}

.grid-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.foto-item {
    background-color: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.foto-thumb {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.foto-thumb:hover {
    transform: scale(1.05);
}

.foto-legenda {
    font-size: 0.9rem;
    color: #444;
    margin-top: 8px;
}

.foto-autor {
    font-size: 0.8rem;
    color: #777;
    margin-top: 4px;
}
.galeria-por-usuario {
    margin-top: 40px;
    width: 90%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}


.usuario-galeria-bloco h3 {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.ver-mais-fotos {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
    text-decoration: none;
    color: #556B2F;
}

.ver-mais-fotos:hover {
    text-decoration: underline;
}
.btn-enviar-foto {
    display: inline-block;
    margin-top: 10px;
    background-color: #556B2F;
    color: white;
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    text-align: center;
}
.grid-usuarios {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.usuario-galeria-bloco {
    background: rgba(255, 255, 255, 0.75);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-enviar-foto:hover {
    background-color: #6b8e23;
}
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 0 10px #000;
}

.foto-thumb-wrapper {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.foto-thumb-wrapper:hover {
    transform: scale(1.03);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    user-select: none;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 12px;
    border-radius: 8px;
}
#voltar-topo {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #556B2F;
    color: white;
    padding: 10px 14px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 999;
    transition: opacity 0.3s ease;
}
.menu-section {
    text-align: center;
    margin-top: 20px;
}

.menu-intro {
    font-size: 1.1rem;
    font-family: 'Georgia', serif;
    margin-bottom: 20px;
    color: #333;
    padding: 0 15px;
}

.menu-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.menu-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: 700px;
    object-fit: contain;
}
.local-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.local-intro {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.6;
}

.local-photos {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.local-img {
    width: 300px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.local-map {
    margin-top: 20px;
}

.local-map h3 {
    margin-bottom: 10px;
    color: #444;
}

#voltar-topo:hover {
    background-color: #6b8e23;
}
.music-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8); /* Preto semi-transparente */
    padding: 8px 10px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    transition: bottom 0.3s ease;
    color: #fff;
}

.player-info {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 6px;
}

#music-title {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 90%;
}

#progress-bar {
    flex: 1;
}

#current-time,
#total-time {
    font-size: 0.8rem;
}

.player-controls {
    flex: 1 1 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.player-controls button {
    background: none;
    border: none;
    cursor: pointer;
}

.icon-btn {
    width: 20px;
    height: 20px;
}

#volume-control {
    width: 100px;
}
.presentes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.presente-card {
    background: #fff;
    border: 4px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.presente-card:hover {
    transform: scale(1.03);
}

.card-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.valor {
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 5px;
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 1.4rem;
    cursor: pointer;
}

.pix-copia-cola {
    margin-top: 20px;
}

textarea#pix-codigo {
    width: 100%;
    height: 80px;
    margin-bottom: 10px;
}
.tabela-admin {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

.tabela-admin th,
.tabela-admin td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
    vertical-align: top;
}

.tabela-admin th {
    background-color: #f9f9f9;
    font-weight: bold;
}
/* 🎁 MODAL DE PRESENTE */

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #888;
    cursor: pointer;
}

.qrcode-container {
    margin: 20px 0;
}

.pix-section textarea,
.form-input,
.form-textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 12px;
    resize: none;
}

/* 🎨 Botões gerais */
.modal-content button {
    font-family: inherit;
    font-size: 16px;
    padding: 10px 20px;
    margin-top: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

/* Botão: Copiar PIX */
.btn-copiar {
    background-color: #444;
    color: white;
}
.btn-copiar:hover {
    background-color: #222;
}

/* Botão: Já efetuei o pagamento */
.btn-confirmar-pagamento {
    background-color: #e6c300;
    color: black;
    font-weight: bold;
    margin-top: 20px;
}
.btn-confirmar-pagamento:hover {
    background-color: #d4b200;
}

/* Botão: Enviar */
.btn-enviar-presente {
    background-color: #006400;
    color: white;
    font-weight: bold;
}
.btn-enviar-presente:hover {
    background-color: #004d00;
}
.instructions-intro {
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
    font-size: 1.1rem;
    color: #333;
}

.instructions-image {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.manual-img {
    max-width: 90%;
    height: auto;
    border-radius: 10px;
}

@media (max-width: 768px) {
    #voltar-topo {
        padding: 8px 12px;
        font-size: 1.3rem;
        bottom: 16px;
    }
}
.video-link-btn {
    display: block;
    width: fit-content;
    margin: 10px auto 40px auto;
    background-color: #c0392b;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.video-link-btn:hover {
    background-color: #a93226;
    transform: scale(1.05);
}
.presenca-tooltip {
    background-color: #ffdede;
    color: #900;
    padding: 8px 12px;
    border-radius: 5px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    z-index: 9999;
    max-width: 300px;
}

   /* Estilo da barra de navegação em telas menores */
@media (max-width: 768px) {
    nav ul {
        flex-wrap: wrap; /* Permite quebra de linha */
        justify-content: center; /* Centraliza os itens */
        gap: 6px; /* Ajusta o espaçamento */
    }
    .presenca-tooltip {
        font-size: 13px;
        padding: 6px 10px;
        max-width: 90%;
        text-align: center;
        line-height: 1.4;
    }
    nav ul li {
        display: inline-block; /* Garante alinhamento em linha */
        margin: 0; /* Remove margens extras */
    }

    nav ul li a {
        font-size: 0.85rem; /* Reduz o tamanho da fonte para caber */
        padding: 6px 8px; /* Ajusta o padding dos itens */
        border-radius: 5px; /* Mantém bordas arredondadas */
        transition: all 0.3s ease-in-out; /* Suaviza o hover */
        white-space: nowrap; /* Impede quebra de texto */
    }

    /* Ajuste para exibir a barra corretamente */
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        transition: top 0.3s ease-in-out;
    }
    
    .nav-login {
        display: none; /* Esconde o botão de login na barra de navegação */
    }
    /* Estilo do nome do usuário na barra de navegação */
.nav-username {
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 10px 15px;
    background-color: #556B2F; /* Verde oliva */
    border-radius: 5px;
    text-align: center;
    white-space: nowrap;
}
 /* Esconde o botão logout fixo e substitui pelo flutuante */
    .logout-btn {
        display: none;
    }

    /* Botão flutuante de login para telas menores */
    .floating-login-btn {
        display: flex;
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: gold;
        color: black;
        padding: 10px 15px;
        font-size: 0.9rem;
        font-weight: bold;
        border-radius: 50px;
        text-decoration: none;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
    }

    .floating-login-btn:hover {
        background-color: #ffd700;
        box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
    }

    /* Botão flutuante de logout */
    .floating-logout-btn {
        display: flex;
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #556B2F; /* Verde oliva */
        color: white;
        padding: 10px 15px;
        font-size: 0.9rem;
        font-weight: bold;
        border-radius: 50px;
        text-decoration: none;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
        transition: all 0.5s ease-in-out;
    }

    .floating-logout-btn:hover {
        background-color: #6b8e23;
        box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
    }
 /* Nome do usuário estilizado */
 .logged-in {
    display: flex;
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: #556B2F; /* Verde oliva */
    color: white;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

/* Oculta o botão de logout ao rolar para baixo */
.floating-logout-btn {
    transition: transform 0.5s ease-in-out;
}

.hidden-logout {
    transform: translateX(120%);
}
    /* Imagem casal.jpg */
    .hero {
        width: 90%;
        height: 300px;
        border-radius: 10px;
    }

    .hero h1 {
        font-size: 1.4rem; /* Um pouco menor */
        white-space: nowrap; /* Impede a quebra de linha */
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
        width: 100%;
    }

   /* Papel estampado */
/* Papel estampado */
.main-content {
    width: 95%;
    max-width: 95%;
    margin: 0 auto;
    padding: 20px 10px;
    background: url('images/papel-estampado.png') repeat-y center top;
    background-size: 90%; 
    border-radius: 0; /* Remove bordas arredondadas para ficar rente às laterais */
    box-shadow: none; /* Remove sombra se quiser efeito colado */
    min-height: 100vh;

}
    /* Cronômetro */
    .countdown-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .countdown-container div {
        width: 60px;
        padding: 8px;
    }

    .countdown-container div span {
        font-size: 1.3rem;
    }

    .countdown-container div p {
        font-size: 0.8rem;
    }

    /* Seção Sobre Amanda e Pedro */
     .about-section {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
        align-items: flex-start;
    }
      .about-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 8px;
        background: rgba(255, 255, 255, 0.85);
        border-radius: 10px;
    }
     .about-photo {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 50%;
        margin-bottom: 8px;
    }
      .about-text {
        text-align: justify;
        font-size: 0.8rem;
        line-height: 1.3;
        max-width: 95%;
    }
    .about-text h3 {
        font-size: 1rem;
    }

    .about-text p {
        font-size: 0.8rem;
        padding: 5px;
    }

    .general-header {
        font-size: 2rem;
        margin-top: 108px; /* antes 100px, agora +8px */
        padding: 0 10px;
    }

    /* Foto da seção "Nossa História" (Mobile) */
    .history-photo {
        width: 90%; /* Garante que a foto respeite as margens laterais */
        max-width: 100%; /* Ajusta o tamanho da imagem para não ultrapassar a largura disponível */
        margin: 0 auto 15px; /* Centraliza horizontalmente e adiciona margem inferior */
        border-radius: 10px; /* Mantém bordas arredondadas */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra leve */
    }

    /* Título da seção */
    .history-title {
        font-size: 1.5rem; /* Ajusta o tamanho do título para melhor visibilidade */
        margin: 10px 0; /* Adiciona espaçamento superior e inferior */
        text-align: center; /* Centraliza o texto */
    }

    /* Texto da seção */
    .history-text {
        font-size: 1rem; /* Ajusta o tamanho do texto */
        line-height: 1.6; /* Melhora a legibilidade */
        margin: 0 auto 20px; /* Centraliza e adiciona margem inferior */
        width: 90%; /* Garante alinhamento com as margens laterais */
        text-align: center; /* Centraliza o texto */
    }


    /* Botão de Acesso */
    .access-login-btn {
        display: inline-block;
        margin-top: 15px;
        padding: 8px 15px;
        background-color: #556B2F;
        color: white;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: bold;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }

    .access-login-btn:hover {
        background-color: #6b8e23;
    }

        .rsvp-form {
            max-width: 80%; /* Reduz para caber no papel */
            margin: 0 auto;
            padding: 10px;
            text-align: center;
        }
    
        .usuario-nome {
            font-size: 1rem;
            color: black;
            margin-bottom: 10px;
            font-weight: bold;
        }
    
        .checkbox-container {
            font-size: 0.85rem;
            margin-bottom: 18px;
            color: black;
        }
    
        .rsvp-form label {
            display: block;
            font-size: 0.85rem;
            margin-bottom: 4px;
            color: black;
            text-align: left;
        }
    
        .rsvp-form input[type="text"] {
            width: 100%;
            padding: 6px 10px;
            font-size: 0.85rem;
            border: 1px solid #ccc;
            border-radius: 5px;
            margin-bottom: 10px;
        }
    
        .form-submit-btn {
            background-color: #556B2F;
            color: white;
            font-weight: bold;
            font-size: 0.9rem;
            padding: 8px 18px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            margin-top: 10px;
            transition: background-color 0.3s ease;
        }
    
        .form-submit-btn:hover {
            background-color: #6b8e23;
        }
            /* Nome do usuário */
            .usuario-nome {
                color: black;
                font-size: 1rem;
                text-align: center;
                margin-bottom: 10px;
            }
        
            /* Lista de agregados */
            .agregado-lista {
                list-style: none;
                padding-left: 0;
                font-size: 0.95rem;
                color: black;
                text-align: center;
            }
        
            .agregado-lista li {
                margin-bottom: 5px;
            }
        
            /* Botão de edição */
            .editar-rsvp-btn {
                display: block;
                margin: 15px auto 0;
                padding: 10px 20px;
                background-color: #556B2F;
                color: white;
                border-radius: 5px;
                font-size: 0.9rem;
                text-align: center;
                text-decoration: none;
                transition: background-color 0.3s ease;
            }
        
            .editar-rsvp-btn:hover {
                background-color: #6b8e23;
            }
            .rsvp-confirmado-msg {
                font-size: 0.9rem;
                color: #444;
                text-align: center;
                margin-bottom: 12px;
            }
              .editar-agregado-admin-btn {
                    font-size: 0.75rem;
                    padding: 4px 8px;
                    background-color: #556B2F;
                    color: white;
                    border-radius: 4px;
                    margin-left: 5px;
                    text-decoration: none;
                }
            
                .editar-agregado-admin-btn:hover {
                    background-color: #6b8e23;
                }
                .btn-criar-usuario {
                    display: block;
                    width: 100%;
                    text-align: center;
                    font-size: 0.9rem;
                    padding: 10px;
                    margin-top: 15px;
                }
                
               
                    .criar-usuario-form {
                        width: 95%;
                        padding: 20px;
                    }
                
                    .criar-usuario-form h1 {
                        font-size: 1.6rem;
                    }
                
                    .criar-usuario-form label {
                        font-size: 1rem;
                    }
                
                    .criar-usuario-form input {
                        font-size: 1.1rem;
                        padding: 12px;
                    }
                
                    .criar-usuario-form button {
                        font-size: 1.1rem;
                        padding: 14px;
                    }
                
                    .criar-usuario-form .access-login-btn {
                        font-size: 1rem;
                        padding: 10px 20px;
                    }

 .aviso-agregado {
   font-size: 0.7rem;
  color: black;
   margin: 4px 0 10px;
 text-align: left;
     }
                              
     .rsvp-info-msg {
        font-size: 0.9rem;
       color: black;
        margin: 4px 0 10px;
      text-align: left;
          }      

.campo-info {
font-size: 0.8rem;
color: black;
margin: 4px 0 10px;
text-align: left;
     }                  
     .galeria-feed {
        width: 95%;
        margin: 20px auto;
      }
    
      .grid-feed {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 colunas no mobile */
        gap: 10px;
      }
    
      .foto-item {
        padding: 4px;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 0 5px rgba(0,0,0,0.05);
        text-align: center;
      }
    
      .foto-thumb {
        width: 100%;
        border-radius: 6px;
        object-fit: cover;
        max-height: 180px;
      }
    
      .foto-legenda {
        font-size: 0.8rem;
        margin-top: 5px;
        color: #333;
      }
    
      .foto-autor {
        font-size: 0.75rem;
        color: #666;
      }
    
      .usuario-galeria-bloco {
        background: rgba(255, 255, 255, 0.95);
        padding: 10px;
        border-radius: 10px;
        box-shadow: 0 0 5px rgba(0,0,0,0.05);
        text-align: center;
      }
    
      .usuario-galeria-bloco h3 {
        font-size: 1rem;
        margin-bottom: 8px;
      }
    
      .grid-usuarios {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 colunas sempre */
        gap: 10px;
      }
    
      .ver-mais-fotos {
        font-size: 0.8rem;
        margin-top: 6px;
        display: inline-block;
      }
    
      .btn-enviar-foto,
      .ver-mais-fotos {
        font-size: 0.75rem;
        padding: 4px 8px;
        text-align: center;
        background-color: #556B2F;
        color: white;
        border-radius: 6px;
        text-decoration: none;
      }
    
      .lightbox {
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.85);
        z-index: 9999;
        padding: 10px;
      }
    
      .lightbox img {
        max-width: 100%;
        max-height: 80vh;
        border-radius: 10px;
      }
    
      .lightbox-close {
        position: absolute;
        top: 12px;
        right: 16px;
        font-size: 2rem;
        color: white;
        background: transparent;
        border: none;
        cursor: pointer;
      }
    
      .foto-thumb-wrapper:hover {
        transform: none;
      }
       .menu-section {
        padding: 10px;
    }
   .menu-gallery {
        flex-direction: column;
        align-items: center;
    }

    .menu-img {
        width: 90%;
    }
    .menu-intro {
        font-size: 1rem;
        padding: 0 10px;
    }

    .menu-img {
        max-width: 100%;
        border-radius: 8px;
    }
      .local-section {
        padding: 10px;
    }

    .local-intro {
        font-size: 1rem;
        padding: 0 10px;
    }

    .local-photos {
        flex-direction: column;
        align-items: center;
    }

    .local-img {
        width: 90%;
    }

    .local-map iframe {
        height: 250px;
    }
       .music-player {
        padding: 6px;
    }

    .player-controls {
        gap: 6px;
    }

    .icon-btn {
        width: 18px;
        height: 18px;
    }

    #volume-control {
        width: 70px;
    }

    #music-title {
        font-size: 0.8rem;
    }

    .progress-container {
        width: 100%;
        gap: 4px;
    }
    .presentes-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 12px;
    }

    .presente-card {
        padding: 12px;
        border-width: 3px;
    }

    .presente-card h3 {
        font-size: 1rem;
    }

    .presente-card .descricao {
        font-size: 0.9rem;
    }

    .valor {
        font-size: 1rem;
    }

    .card-img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4; /* proporção vertical tipo polaroid */
    object-fit: cover;
    border-radius: 8px;
    background-color: #f8f8f8;
}

    .modal-content {
        width: 90%;
        padding: 20px;
    }

    .modal-content input,
    .modal-content textarea,
    .modal-content button {
        font-size: 1rem;
    }
    .tabela-admin thead {
        display: none;
    }

    .tabela-admin, 
    .tabela-admin tbody, 
    .tabela-admin tr, 
    .tabela-admin td {
        display: block;
        width: 100%;
    }

    .tabela-admin tr {
        margin-bottom: 15px;
        border: 1px solid #ccc;
        padding: 10px;
        background: #fff;
    }

    .tabela-admin td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    .tabela-admin td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        text-align: left;
    }
      .modal-content {
        padding: 20px;
        font-size: 15px;
    }

    .modal-content h3 {
        font-size: 20px;
    }

    .modal-content p {
        font-size: 14px;
    }

    .pix-section textarea,
    .form-input,
    .form-textarea {
        font-size: 13px;
    }

    .modal-content button {
        font-size: 14px;
        width: 100%;
    }

    .close-btn {
        top: 5px;
        right: 10px;
        font-size: 22px;
    }

    .qrcode-container {
        width: 180px;
        height: 180px;
        margin: 10px auto;
    }
    .instructions-intro {
        font-size: 1rem;
        padding: 0 15px;
        text-align: justify;
    }

    .instructions-image {
        flex-direction: column;
        align-items: center;
        margin: 20px 0;
    }

    .manual-img {
        width: 95%;
        max-width: 400px;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }
    .video-link-btn {
        font-size: 14px;
        padding: 10px 18px;
    }
      .evento-data {
        font-size: 1rem;
        padding: 0 10px;
    }
    }
