@import url('https://fonts.googleapis.com/css2?family=Imperial+Script&display=swap');

.imperial-script-regular {
    font-family: "Imperial Script", cursive;
    font-weight: 400;
    font-style: normal;
  }
  
  
:root{
    --fontePrincipal: rgb(0, 0, 0);
    --fonteSecundaria: rgb(255, 243, 243);
    --fundoPrincipal: rgb(240, 240, 240);
    --fundoSecundário: white;
    --fundoEscuro: rgb(29, 29, 29);
    --primaria: rgb(255, 139, 139);
    --primariaEscuro: rgb(253, 111, 111);
    --borda:rgba(228, 227, 227, 0.808);
}

body{
    background-color: var(--fundoPrincipal);
    margin: 0;
    font-family: 'Imperial Script', cursive;
    font-size: 1.5rem;
    font-weight: lighter;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--fontePrincipal);
}

header{
    background-color: var(--fundoSecundário);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1;
}

nav > ul {
    display: flex;
    justify-content: space-around;
    margin: 0;
}

nav > ul > li{
    list-style: none;
}

a{
    color: var(--fontePrincipal);
    text-decoration: none;
    padding: 0.4rem;
    border-radius: 10px;
}

a:hover{
    color: var(--fonteSecundaria);
    background-color: var(--primaria);
    cursor: pointer;
}

.logoMenu{
    display: none;
    margin-left: 20px;
    box-sizing: border-box;
}

.nomeTitulo{
    display: none;
    justify-content: space-evenly;
}

.nomeTitulo > img {
    width: 100%;
    height: 100px;
    margin: 0;
    padding: 0;
}

main{
    margin-top: 20px;
}

.capa{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    min-height: 100vh;
}

.capa > h1 {
    text-align: center;
    font-size: 3.5em;
    font-weight: lighter;
    margin: 1rem;
}

.container{
    display: flex;
    justify-content: space-around;
    margin: 0;
}
.container > img {
    width: 25%;
    border-radius: 20px;
}

.data{
    text-align: center;
    margin: 1rem;
    font-size: 3em;
}

.contagemRegressiva{
    background-color: var(--fundoEscuro);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 0.5rem;
}

.contagemRegressiva > h2 {
    color: var(--fonteSecundaria);
    font-weight: lighter;
    padding: 2rem;
    margin: 0;
}

.numero{
    font-size: 1.5em;
}

.contagemRegressiva > .container{
    margin: 0;
    padding: 2rem;
    width: 80%;
    justify-content: center;
    gap: 10px;
}

.containerRegressiva{
    border: 1px solid var(--fontePrincipal);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--fundoSecundário);
    width: 20%;
    max-width: 100px;
    min-width: 75px;
    height: 100px;
    border-radius: 20px;
}

.containerRegressiva > p {
    margin: 0;
}

.introducao{
    text-align: center;
    padding: 30px 20px;
    margin: 20px 0;
}

.introducao > h2{
    color: var(--primaria);
    font-size: 2em;
    font-weight: lighter;
}

.introducao > img {
    width: 25%;
    border-radius: 100px;
}

.cerimonia > img{
    width: 70%;
    border-radius: 20px;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap; /* Permite quebrar linha se não couber */
    justify-content: space-around;
    gap: 15px;
    padding: 20px;
}

.gallery-container img {
    flex: 1 1 auto; /* Cresce/encolhe conforme espaço */
    max-width: calc(25% - 15px); /* 4 imagens por linha */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    object-fit: cover;
}

.flexContainer{
    display: flex;
    justify-content: space-around;
    align-items: space-around;
    flex-wrap: wrap;
}

.flexContainer > img {
    width: 100%;
    min-width: 200px;
}

.fotoMadrinha{
    width: 32%;
}

.fotoMadrinha > img {
    width: 80%;
    border-radius: 30px;
}

.fotoMadrinha > h3 {
    margin: 0;
}

.containerPresentes{
    width: 80%;
    margin: auto;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.card{
    width: 25%;
    border: 1px solid var(--borda);
    background-color: var(--fundoSecundário);
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    border-radius: 10px;
    box-shadow: 3px 3px 3px var(--borda);
    box-sizing: border-box;
    padding: 20px;
}

.card > img{
    width: 95%;
    border-radius: 10px;
}

.card > p:first-of-type {
    font-size: 0.5em;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card > .preco{
   font-size: 0.8em;
}

.card > button:hover{
    cursor: pointer;
    background-color: var(--primariaEscuro);
}

.card > button {
    font-size: 0.6em;
    padding: 10px 25px;
    background-color: var(--primaria);
    border: 1px solid var(--borda);
    border-radius: 10px;
    color: var(--fonteSecundaria);
}

.card > span {
    font-size: 0.6em;
}

.containerOrdem{
    margin-bottom: 20px;
}

.containerCarregamento {
    width: 60%;
    margin: auto;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.carregamento:hover{
    cursor: pointer;
    background-color: var(--borda);
}

.carregamento{
    border: 1px solid var(--fundoEscuro);
    background-color: var(--fundoPrincipal);
    border-radius: 30px;
    height: 50px;
    width: 50px;
}

form {
    border: 1px solid var(--borda);
    background-color: var(--fundoSecundário);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 3px 3px 3px var(--borda);
    width: 80%;
    margin: auto;
}

label{
    display: flex;
    flex-direction: c;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

label > span {
    flex-grow: 1;
    max-width: 200px;
    text-align: end;
}

label > input {
    flex-grow: 2;
    padding: 10px;
    border-radius: 15px;
    border: 1px solid var(--borda);
}

select{
    border: 1px solid var(--borda);
    padding: 10px;
    border-radius: 15px;
}

fieldset{
    display: flex;
    gap: 20px;
    border-radius: 15px;
    border: 1px solid var(--borda);
    flex-wrap: wrap;
    width: 85%;
    margin: auto;
}

fieldset > div {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--borda);
    border-radius: 15px;
    padding: 2px;
}

textarea{
    flex-grow: 2;
    padding: 10px;
    font-family: Arial, Helvetica, sans-serif;
    resize: none;
    border: 1px solid var(--borda);
}

input[type='submit']:hover{
    background-color: var(--primariaEscuro);
    cursor: pointer;
}

input[type='submit']{
    font-size: xx-large;
    font-family: "Imperial Script", cursive;
    background-color: var(--primaria);
    border: 1px solid var(--borda);
    padding: 10px;
    border-radius: 20px;
    color: var(--fonteSecundaria);
}

footer{
    margin-top: 20px;
    background-color: var(--fundoSecundário);
    height: 30px;
    text-align: center;
}

#modal{
    width: 40%;
    background-color: var(--fundoSecundário);
    z-index: 9999;
    border: 1px solid var(--borda);
    box-shadow: 2px 2px 2px var(--borda);
    border-radius: 20px;
}

#presentes{
    position: relative;
}

#modal > section {
    display: flex;
    justify-content: space-between;
}

#modal > section > h2{
    margin: 20px 50px;
}

#modal > section > button{
    width: 30px;
    height: 30px;
}

#modal > form{
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 20px;
}

#modal > form > button{
    height: 50px;
}

#modal > div{
    width: 300px;
    height: 300px;
    background-color: var(--fundoEscuro);
    border-radius: 20px;
    margin: auto;
}

#imgModal > img{
    width: 300px;
}

#preco{
    color: var(--primaria);
}

#payload{
    font-size: 0.5em;
}

#botoes{
    display: flex;
    justify-content: space-around;
}

.pix-copy-button {
    padding: 8px 12px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.pix-copy-button:hover {
    background: #0b7dda;
}

#payload{
    display: inline-block;
    max-width: 100%; /* Limita à largura do modal */
    overflow: auto; /* Scroll horizontal APENAS aqui */
    white-space: nowrap;
    background: #f5f5f5;
    padding: 8px;
    border-radius: 4px;
    margin: 10px 0;
    font-family: monospace;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}

#cores{
    width: 300px;
    height: 100px;
    margin: auto;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background-color: var(--fundoSecundário);
    border: 1px solid var(--borda);
    border-radius: 20px;
}

#cores > span{
    display: inline-block;
    width: 80px;
    height: 80px;
    border-radius: 100px;
}

#cor1{
    background-color: #b60d6a;
}

#cor2{
    background-color: #d2056a;
}

#cor3{
    background-color: #f70f7d;
}

@media (max-width: 750px){
    #modal{
        width: 80%;
    }
    
    #modal > section > h2{
        margin: 0;
    }

    #modal > form{
        display: flex;
        align-items: center;
        flex-direction: column;
        margin-bottom: 20px;
    }

    fieldset > label {
        width: 100%;
    }
    .fotoMadrinha{
        width: 40%;
    }

    .fotoMadrinha > img{
        width: 100%;
    }
    .flexContainer{
        gap: 40px;
    }
    
    .card{
        width: 45%;
    }

    .card > button {
        padding: 8px 10px;
    }

    .gallery-container {
        flex-wrap: nowrap; /* Impede quebra de linha */
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 15px 10px;
        gap: 10px;
    }
    
    .gallery-container img {
        min-width: 75vw; /* Ocupa 75% da tela */
        max-width: none; /* Remove a limitação do desktop */
        scroll-snap-align: start;
    }
    .logoMenu{
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .nomeTitulo{
        display: flex;
    }
    .nomeTitulo > h1{
        display: block;
    }
    nav{
        display: none;
        background-color: var(--fundoSecundário);
    }
    nav > ul{
       flex-direction: column;
       gap: 20px;
       padding: 0;
    }
    header{
        border-radius: 0px 0px 15px 0px;
        box-sizing: border-box;
    }
    .capa{
        justify-content: space-between;
        min-height: auto;
    }
    .capa > h1{
        display: none;
        height: auto;
    }
    .container > img{
        width: 100%;
        border-radius: 0;
    }
    .fotoSecundaria{
        display: none;
    }
    .contagemRegressiva > .container{
        gap: 5px;
        padding: 1rem;
    }
    .cerimonia > img{
        width: 90%;
    }
    iframe{
        width: 90%;
    }
    label > span {
        text-align: center;
    }
}

@media (max-width: 400px){
    body{
        font-size: 0.9rem;
    }
    
    .card > p:first-of-type {
        font-size: 0.8em;
    }

    #modal > div{
        width: 200px;
        height: 200px;
    }

    #imgModal > img{
        width: 200px !important;
        height: 200px !important;
    }

    label > input{
        width: 100px;
    }
}