@import url("https://fonts.googleapis.com/css2?family=Inria+Serif:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inria Serif", serif;
}

html {
    height: 500vh;
}

#alert-container {
    margin-top: 5rem !important;
}

.container {
    max-width: 80rem;
    margin: auto;
}

.container-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.container-flex h1 {
    font-family: "Inria Serif", serif;
    font-size: 3rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    height: 100%;
}

/* CABEÇALHO - HEADER */

header {
    width: 100%;
    padding: 4rem 4%;
    position: fixed;
    top: 0;
    left: 0;
    transition: 0.5s;
    z-index: 1;
    align-items: center;
}

header.backhead {
    background-color: #cde3ff;
    padding: 5px;
}

.header-abas {
    width: 100%;
    padding: 3.75rem 4%;
    position: fixed;
    top: 0;
    left: 0;
    transition: 0.5s;
    z-index: 1;
    align-items: center;
    background-color: #cde3ff;
    padding: 5px;
}

.header-iniciais {
    text-decoration: none;
    color: #000;
}

.header-iniciais:hover {
    color: #000;
}

/* Navegação */

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding: 0;
    height: 100%;
}

nav li {
    height: 4.2rem;
    font-size: 1.25rem;
    font-weight: 500;
}

nav a {
    height: 100%;
    padding: 0 2rem;
    text-decoration: none;
    color: #000;
    display: flex;
    align-items: center;
}

.las {
    font-size: 1.5rem;
}

/* SIDEBAR RESPONSIVE */

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 16rem;
    z-index: 2;
    background-color: #16006086;
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start !important;
}

.sidebar li {
    width: 100%;
}

.sidebar a {
    width: 100%;
}

.sidebar li a {
    color: #fff !important;
}

nav a:hover {
    color: #000;
}

.botao-menu {
    display: none;
}

section {
    margin-top: 5rem;
    text-align: center;
    width: 90%;
}

/* CAPA */
.capa {
    background-image: url("../assets//capa.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Iniciais */
.menu-inicial {
    padding: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    width: 100%;
}

.iniciais {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 13rem;
    height: 12rem;
    color: #000;
    text-transform: uppercase;
    border: solid 3px #000;
}

.inicial {
    font-weight: 500;
    font-size: 3.7rem;
    padding: 5px;
}

.menu-inicial h1 {
    font-weight: 500;
    color: #000000;
    font-size: 3rem;
    letter-spacing: 2.4px;
    margin-top: 2rem;
}

.data {
    text-align: center;
    margin-top: 0.5rem;
}

.wedding {
    display: grid;
    grid-template-columns: repeat(5, auto);
    column-gap: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2.4px;
    color: #000;
}

.capa,
.countdown {
    margin-top: 0;
    width: 100%;
}

/* CONTAGEM REGRESSIVA */

.countdown {
    width: 100%;
    height: 10rem;
    background-color: #0e003d;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.countdown-e {
    text-align: center;
}

.countdown span {
    font-size: 1.3rem;
}

.text {
    font-weight: bold;
    font-size: 4rem;
    line-height: 1;
    margin: 1rem 2rem;
}

/* MENU PRINCIPAL */

.container-fluid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Linha Divisória */
.floralline {
    background-image: url("../assets/FloralLine2.png");
    background-position: center;
    background-repeat: no-repeat;
    height: 5rem;
    width: 100%;
}

/* INFORMAÇÕES */
.informacoes {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.informacoes .card {
    text-align: left;
    width: 80%;
}

/* Mapa */
.mapBox {
    width: 100%;
    height: 100%;
    background-color: #0e003d;
}

.mapBox iframe {
    width: 100%;
    height: 100%;
}

/* Dados festa */
.body-infos {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.title-evento {
    font-weight: bold;
    font-size: 1.7rem;
    color: #0e003d;
}

.infos {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.infos:last-child {
    margin-bottom: 0;
}

.circle-info {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #0e003d;
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.infos-detalhe {
    font-size: 1.2rem;
    margin: 0;
}

/* Informativos */

.card-informativo {
    text-align: center !important;
}

.card-informativo .card-header {
    background: #160060;
    color: #fff;
}

.card-informativo .card-title {
    margin: 0;
    font-weight: bold; 
}

.card-informativo { 
    display: flex; 
    flex-direction: column; 
}

.card-deck .card { 
    height: 100%; 
}

.card-informativo .vermais {
    font-size: 1rem;
}

/* CONFIRMAR PRESENÇA */

/* Seção lateral */
.confirmar-presenca .card-presenca {
    position: sticky;
    top: 7rem;
    border: 2px solid #00000014;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.card-presenca .card-header {
    background: #160060 !important;
    color: #fff;
}

.card-presenca .card-title {
    margin: 0;
    font-weight: bold;
}

#codigoInputSecao {
    height: 3rem;
    border-radius: 10px;
    border: 2px solid #e8eefc;
}

.confirmar-presenca .card-list tr {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.confirmar-presenca .card-list th,
.confirmar-presenca .card-list td {
    vertical-align: middle;
}

.checks {
    margin-right: 0.5rem;
}

.confirmar-presenca .badge {
    font-size: 0.85rem !important;
}

/* Explicação Confirmação */
.hero-presenca {
    border: 2px solid #00000014 !important;
    box-shadow: 0 12px 26px #00000014;
}

.lista-passos {
    text-align: center;
    margin: 0;
    padding-left: 1rem;
}

.lista-passos li {
    margin-bottom: 0.5rem;
    list-style: none;
}

.imagem-apoio img {
    width: 100%;
    height: auto;
}

#enviarRespostas {
    display: none;
}


/* PRESENTES */
.container-presentes {
    margin-top: 7rem;
}

.price {
    color: #6b6b6b !important;
    font-weight: bold;
    font-size: 1.1rem;
}

.vermais {
    background-color: #160060 !important;
    color: #fff !important;
}

.vermais:hover {
    background-color: #0e003d !important;
    color: #fff !important;
}

/* MURAL DE RECADOS */

/* Formulário */
.form-mural-card {
    position: relative;
    z-index: 0;
    display: flex;
    border: 2px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    background: #ffffffd9;
    backdrop-filter: blur(6px);
    margin-top: 0;
}

#mensagemInput {
    height: 14rem;
    width: 100%;
    border-radius: 5px;
}

/* Adicionar Imagem */
.picture {
    width: 100%;
    height: 14rem;
    background-color: #cde3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #160060;
    border: 2px dashed;
    cursor: pointer;
    transition: 300ms;
}

.picture:hover {
    color: #0e003d;
    background-color: #adcffd;
}

.picture:active {
    color: #fff;
    background-color: #0e003d;
}

.picture-image,
.picture-img {
    max-width: 100%;
    max-height: 13.5rem;
}

#imageFileInput {
    display: none;
}

.imagem-recado {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Mural */
.row-mural { 
    align-items: flex-start; 
}

.mural-form-col { 
    align-self: flex-start; 
    height: fit-content; 
}

.area-recado{
    display: flex;
    flex-direction: column;
    width: 100%;
}

.input-group-prepend{
    margin-right: 0 !important;
}

.span-recado{
    width: 100%;
    border-radius: 5px !important;
    justify-content: center;
}

.col-mural {
    max-height: 100vh;
    overflow-y: auto;
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #adcffd #f6faff;
}

.mural-grid { 
    column-count: 2; 
    column-gap: 1rem; 
}

.mural-grid .card {
    margin-bottom: 1.2rem;
    width: 100%;
    box-sizing: border-box;
}

.recados {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.image-perfil {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    border: 2px solid #adcffd;
}

.name-recado {
    color: #160060;
    font-weight: bold;
    text-align: left;
    margin: 0 !important;
    font-size: 1.3rem;
}

.date-recado {
    color: #6b6b6b;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
}

.icone-data {
    font-size: 1.2rem;
}

.recado-texto {
    text-align: start;
}

.badge {
    font-size: 0.9rem !important;
    color: #fff;
}

/* Chrome, Edge, Safari */
.col-mural::-webkit-scrollbar {
    width: 10px;
}

.col-mural::-webkit-scrollbar-track {
    background: #f6faff;
    border-radius: 10px;
}

.col-mural::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #adcffd 0%, #160060 100%);
    border-radius: 10px;
    border: 2px solid #f6faff;
}

.col-mural::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8bb3ff 0%, #0e003d 100%);
}

/* Media queries consolidadas no final */
@media (max-width: 1000px) and (min-width: 800px) {
    .container-flex h1 { font-size: 2rem; }
    nav li { font-size: 18px; }
    nav a { padding: 0 0.7rem; }
    .header { padding: 60px 0%; }
}

/* Tablets e telas médias (Bootstrap md/lg) */
@media (max-width: 992px) {
    /* Confirmar Presença: empilha e remove sticky */
    .confirmar-presenca .card-presenca { position: static; margin-bottom: 1rem; }
    .hero-presenca { margin-top: 1rem; }

    /* Mural: formulário acima e grid 1 coluna */
    .mural-form-col { position: static; margin-bottom: 1rem; }
    .form-mural-card { position: static; }
    .col-mural { max-height: none; overflow: visible; }
    .mural-grid { column-count: 1; }

    /* Inputs mais compactos */
    #mensagemInput { height: 10rem; }
    .picture { height: 10rem; }
}

@media (max-width: 800px) {
    .hideOnMobile { display: none; }
    .botao-menu { display: block; }
    .header { padding: 20px 4%; }
    .container-flex h1 { font-size: 1.7rem; }
    header.backhead { padding: 2px; }
    nav a:hover { color: #f0f0f0; }
    .countdown span { font-size: 1.2rem; }
    .text { font-size: 2rem; margin: 1rem 1.5rem; }
    .informacoes .card { width: 100%; }
    .mural-form-col { position: static; }
    .form-mural-card { position: static; }
    .mural-grid { column-count: 1; }
}

@media (max-width: 400px) {
    .menu-inicial h1 { font-size: 30px; margin-top: 1rem; }
    .wedding { font-size: 20px; }
    nav a:hover { color: #f0f0f0; }
    .countdown span { font-size: 1rem; }
    .text { font-size: 2rem; margin: 0 1rem; }
    .mural-grid { column-count: 1; }
    .informacoes .card { width: 100%; }
    section h1 { font-size: 2rem; }
    
    .col-mural, .hero-presenca {
        margin-top: 1rem;
    }
}

@media (max-width: 800px) {
    .mural-form-col {
        position: static;
    }
    .form-mural-card {
        position: static;
    }
    .mural-grid {
        column-count: 1;
    }
}