@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --base-color: #ffffff;
    --secondary-color: #9197AA;
    --mimosa-color: #F7B557AA;
    --orange-color: #E27921;
    --aperol-color: #C1521E;
    --text-color: #000000;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 1600px;
}
html{
    font-size: 14pt;
    font-family: 'Newsreader', Georgia, 'Times New Roman', Times, serif;
    scroll-behavior: smooth;
    
}
body{
    background-color: var(--base-color);
}

/* ==================================================================================== */
/* HEADER & NAVBAR STYLING */
/* ==================================================================================== */

nav{
    height: 60px;
    width: 100%;
    background-color: var(--secondary-color);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: fixed;
    z-index: 10;
}

nav a{
    font-size: 1.1rem;
    height: 100%;
    padding: 0px 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
}

nav .home-link{
    margin-right: auto;
}

nav a.active{
    font-weight: 900;
}

nav a:hover{
    background-color: var(--aperol-color);
    color: var(--base-color);
}

header{
    padding: 60px 0 0 0;
    display: grid;
}

header img,
#main-info-box{
    grid-area: 1/1;
}

header img{
    width: clamp(375px, 100%, 110em);
    margin: 0.0em 0.0em 0.25em 0.0em;
    border-radius: 0 0 1em 1em;
    border: 10px solid var(--secondary-color);
    object-fit: cover;
    display: block;
}

#main-info-box{
    place-self: start end;
    margin-top: 10%;
    margin-right: 5%;
    font-size: clamp(0.5rem, 3vw, 2.5rem); /* Scales text smoothly */
    text-align: left;
    z-index: 1;
    background-color: #ffffff50;
    box-shadow: 3px 3px 3px 1px #3f3f3f;
    padding: 1vw;
    border-radius: 2vw;
}

#main-info-box h1{
    padding-bottom: 2vw;
}

#main-info-box h2{
    padding-bottom: 1.5vw;
}

#main-info-box h3{
    font-weight: 300;
}

/* ==================================================================================== */
/* MAIN INFO SECTION STYLING */
/* ==================================================================================== */

main{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

section {
    margin: 0.25em 0.0em;
    width: min(110em, 100%);
    background-color: var(--mimosa-color);
    padding: min(2em, 15%);
    border-radius: 1em;
    border: 10px solid #ffefc8;
}
section h1{
    text-align: center;
    padding: 20px;
}
.infosection-flex-container {
    display: flex;
    justify-content: space-evenly;
    align-content: space-evenly;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2em;
    flex-shrink: 1;
    flex-grow: 1;
}

section .infosection-text{
    text-align: justify;
    flex: 1;
    padding: min(5px, 15%);
    /* max-width: 380px; */
    /* min-width: 375px; */

    /* Las siguientes dos instrucciones ayudan a delimitar la posición de este div. Usualmente deben estar comentadas */
    /* border: 2px solid;
    background-color: #C1521E; */
}

section .infosection-text h2{
    padding: 30px 0 10px 0;
}

section .infosection-text h2:first-child{
    padding: 0 0 10px 0;
}

section .infosection-text p{
    padding: 5px 0;
}

#where-text{
    text-align: start;
}

.logo-link{
    display: inline-flex; /* Keeps the anchor inline-sized while enabling flex alignment */
    align-items: center;   /* Vertically centers the logo and text */
    gap: 0.75rem;           /* Adds clean spacing between logo and text */
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
}

.logo{
    border: none;
    box-shadow: none;
    height: 40px;
    min-width: 40px;
}
a:visited{
    color: inherit;
}

a:hover{
    text-decoration: underline;
    color: #E27921;
}

.logo:hover{
    scale: 1.2;
}

section iframe{
    border-radius: 0.75em;  
    box-shadow: 1px 1px 3px 1px #3f3f3f;
    flex-grow: 1;
    width: clamp(375px, 10vw, 90%);
    aspect-ratio: 16 / 12;
    height: auto;
}

#dress-text{
    max-width: 1300px;
}

#dress-imgs{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 15px 15px;
}

#dress-imgs img{
    border-radius: 0.75em;
    box-shadow: 1px 1px 3px 1px #3f3f3f;
    flex-grow: 1;
    flex-shrink: 1;
    max-width: min(630px, 100%);
    min-width: 330px;
}

.registry-box{
    min-width: 280px;
}

.no-break-text{
    white-space: nowrap;
}

#bank-account{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: left;
    align-content: start;
    gap: 5px 15px;
}

#bank-account img{
    border-radius: 0.75em;
    box-shadow: 1px 1px 3px 1px #3f3f3f;
    width: 150px;
    display: block;
}

/* MEDIA QUERIES */

@media(max-width: 965px){ /*iPad 11inch*/
    section {
    padding: min(2em, 3%);
    }

    section iframe{
    width: clamp(150px, 7vw, 90%);
    }   
}

@media(max-width: 800px){ /*iPad mini and Galaxy Tab S9*/
    section .infosection-text h2:first-child{
    padding: 30px 0 10px 0;
    }
    section iframe{
    width: 90%;
    }
}

@media(max-width: 420px){ /*iPhone XR o Galaxy Note*/
    section {
    padding: 1%;
    }
    section .infosection-text h2:first-child{
    padding: 30px 0 10px 0;
    }
    section iframe{
    width: 90%;
    }
}

@media(max-width: 590px){
    header{
    padding: 60px 0 0 0;
    display: grid;
    grid-template-rows: max-content; /* So the row size is as big as its content */
    }

    #main-info-box{
    grid-row: 1/1;
    width: 100%;
    height: auto;
    place-self: center;
    font-size: 1rem;
    text-align: center;
    margin: 0px;
    z-index: 1;
    background-color:  #9197AAAA;
    box-shadow: 0 0 0 0;
    padding: 1vw;
    border-radius: 0px;
    }
    
    #main-info-box h1, h2{
    display: inline-block;
    padding: 3vw 2.5vw;
    }

    #main-info-box h1, h2{
    display: inline-block;
    padding: 3vw 2.5vw;
    }

    #main-info-box h3{
    padding-bottom: 3vw;
    }

    header img{
    grid-row: 2/2;
    width: 100%;
    margin: 0.0em 0.0em 0.25em 0.0em;
    border: 7px solid var(--secondary-color);
    }
}