@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Pinyon+Script&display=swap');

:root {
    --color-foco: rgba(0, 0, 0, 0.1);
    --color-primario: #275088;
    --color-primario-50: #27508880;
    --color-primario-hover: #6b98c8;
    --color-primario-hover_50: #6b98c880;
    --color-countdown: #dae4c7;
    --color-text-main: #24385c;
    --font-size-base: 1.2rem;
    --font-size-large: 1.4rem;
    --font-size-small: 0.8rem;
    --font-size-extralarge: 3rem;
    --font-color-white: #ffffff;
}

html,
body {
    width: 100%;
    height: 100%;
    background-image: url('../images/background.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: 'Lato', serif;
    font-size: var(--font-size-base);
    text-align: center;
    scroll-behavior: smooth;
    color: var(--color-text-main);
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0;
}

section {
    overflow-x: hidden;
}

.main-section {
    margin-top: 105px;
}

.custom-font-Pinyon {
    font-family: "Pinyon Script", cursive;
}

.custom-font-size-2{
    font-style: italic;
}
.custom-font-size-2_4 {
    font-size: 2.5rem;
}

.custom-font-size-4 {
    font-size: 4rem;
}

.custom-font-size-2_2 {
    font-size: 2.2rem;
}

.custom-font-italic {
    font-style: italic;
}

.img-fluid,
.responsive-img {
    width: 100%;
    max-width: 100%;
    height: auto;
}

.navbar-brand img {
    margin-left: 10px;
}

.navbar-custom {
    background-color: var(--color-primario-50);
}

.navbar-toggler {
    margin-right: 15px;
    background-color: var(--font-color-white);

}

.nav-link {
    font-size: 1rem;
    text-align: center;
    color: var(--font-color-white);
}

.nav-link img {
    display: inline-block;
    margin-right: 5px;
}

.nav-link:hover {
    font-size: var(--font-size-base);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.offcanvas {
    background-color: var(--font-color-white);
}

.offcanvas-header {
    justify-content: center;
    font-size: 30px;
}

.offcanvas-header .btn-close {
    margin-top: 0;
    margin-right: 0;
}

.container-fluid {
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.main-container {
    flex-wrap: wrap;
    overflow: hidden;
}

.main-info-box {
    border: 2px solid var(--color-primario);
    padding: 20px;
    margin: 10px;
    width: 300px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top-left-radius: 99999px;
    border-top-right-radius: 99999px;
}

#recomendaciones-section {
    background-color: var(--color-primario-50);
}

.background-image-section-url{
    background-image: url('../images/sectionfoto.webp');
}

.background-image-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    width: 100%;
}

.background-overlay {
    position: relative;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@media (max-width: 768px) {
    .min-h-screen-bg {
        min-height: 20svh;
    }
    .background-overlay {
        height: 20svh;
    }
    .background-image-section{
        background-attachment: unset;
    }    
}

@media (min-width: 768px) {
    .min-h-screen-bg {
        min-height: 30svh;
    }
    .background-overlay {
        height: 30svh;
    }
    .background-image-section{
        background-attachment: fixed;
    }    
}

.min-h-screen {
    min-height: 50vh;
}

.bg-contain {
    background-size: contain;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-stone {
    width: 100%;
    background-color: #f5f5f4cc;
}

footer {
    width: 100%;
    background-color: var(--color-primario-hover);
    padding: 20px 0;
    text-align: center;
    margin-top: 20px;
    color: var(--font-color-white)
}

footer a {
    margin: 0 10px;
    text-decoration: none;
}

.modal-container {
    position: relative;
    width: 90%;
    height: 400px;
}

.modal-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.modal-dialog {
    max-width: 90vw;
    max-height: 90vh;
    margin: auto;
}

.modal-content {
    height: 90vh;
    position: relative;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal-body {
    padding: 0;
    height: 100%;
    display: flex;
    justify-content: center;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    border-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.modal-header h5 {
    margin: 0;
    font-size: var(--font-size-large);
    text-align: center;
    flex-grow: 1;
}

.btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
}

.modal-footer {
    display: flex;
    justify-content: center;
    border-top: 1px solid #dee2e6;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    padding: 1rem;
}

.modal-backdrop.show {
    background-color: var(--color-primario-hover);
}

.blur-background {
    filter: blur(8px);
    pointer-events: none;
}

/*#countdown-section{
    background: linear-gradient(to top, #d8e2cc, #ffffff);
}*/

#timeline-section {
    background: url('../images/timeline_background.webp');
    background-size: cover;
    background-position: center;
}

#weddinglist-section {
    background: linear-gradient(to bottom, var(--color-primario-hover_50), #ffffff00);
}

#lugares-section {
    background: linear-gradient(to top, #ffffff00, var(--color-primario-hover_50));
}

.countdown div {
    font-size: 0.8rem;
    width: 80px;
    height: 80px;
    background: var(--color-primario-50);
    color: #000;
    border-radius: 50%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    display: flex;
}

.countdown span {
    font-size: 2rem;
}

.btn {
    background-color: var(--color-primario);
    color: var(--font-color-white);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: var(--font-size-base);
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-foco);
    background-color: var(--color-primario);
    color: var(--font-color-white);
}

.btn:active {
    background-color: var(--color-primario);
    color: var(--font-color-white);
    outline: none;
    box-shadow: none;
}

.btn:hover {
    background-color: var(--color-primario-hover);
    color: var(--font-color-white);
}

.form-floating .form-control:focus~label,
.form-floating .form-control:not(:placeholder-shown)~label,
.form-floating textarea:focus~label,
.form-floating textarea:not(:placeholder-shown)~label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-1rem) translateX(0.15rem);
}

#musicForm .form-control {
    border-radius: 5px;
    padding-top: 40px;
    font-size: larger;
}

.invalid-feedback {
    display: none;
}

.form-control.is-invalid~.invalid-feedback {
    display: block;
}

.carousel-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.modal-fullscreen {
    max-width: 100%;
    max-height: 100%;
    margin: 0;
}

.modal-fullscreen .modal-body {
    padding: 0;
}

.modal-fullscreen .img-fluid {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 576px) {
    .carousel-caption {
        font-size: 14px;
        padding: 5px;
        bottom: 10px;
        width: 100%;
    }
}

#RSVPModal .input-group {
    margin-top: 15px;
}

#RSVPModal .form-control {
    border-radius: 5px;
    padding-top: 40px;
    font-size: larger;
}

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

#searchResult .btn {
    width: auto;
    margin: 10px 0;
    background-color: #eeeeee;
}

#rsvpDetails {
    margin-top: 20px;
}

#detalleAlergia,
#mensaje {
    height: 100px;
}

#hospedaje-section {
    background-image: url('../images/Hospedaje_background.webp');
    background-size: cover;
    background-position: center;
}

#hospedajeModal .modal-content {
    border-radius: 15px;
    overflow: hidden;
}

#hospedajeModal .modal-body {
    padding: 20px;
}

.hotel-info,
.lugares-info {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.hotel-info p,
.lugares-info p {
    margin: 5px 0;
}

.map-info-container {
    flex-wrap: wrap;
    overflow: hidden;
}

.map-info-box {
    border: 3px solid var(--color-primario);
    padding: 20px;
    margin: 10px;
    width: 300px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top-left-radius: 99999px;
    border-top-right-radius: 99999px;
}

.map-info-box h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.map-info-box p {
    margin: 5px 0;
}

.modal-body {
    position: relative;
    padding: 0;
    height: 400px;
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.music-entry {
    margin-bottom: 20px;
}

#hotel-info .btn {
    margin-top: 10px;
    margin-bottom: 10px;
    display: inline-block;
    width: 200px;
}

#carrousel-section {
    padding: 50px;
    margin-top: -70px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 100% 100%;
    background-image: none;
}

.carousel-control-prev-icon {
    background-image: url('https://cdn-icons-png.flaticon.com/512/271/271220.png');
}

.carousel-control-next-icon {
    background-image: url('https://cdn-icons-png.flaticon.com/512/271/271228.png');
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.3s, opacity 0.3s;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: white;
    opacity: 1;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    filter: brightness(1.5);
}

.carousel-indicators {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.carousel-indicators [data-bs-target] {
    width: 15px;
    height: 15px;
    background-color: var(--color-primario);
    border-radius: 50%;
    margin: 1px 5px;
}

.carousel-indicators .active {
    background-color: var(--color-primario-hover);
}

.carousel-indicators [data-bs-target] {
    height: 18px;
    width: 18px;
}

.custom-max-width{
    width: 100px;
}

.custom-top-60{
    margin-top: -60px;
}

.dresscode-text {
    padding: 20px;
    border-radius: 10px;
    background-color: #fafaf9b3;
    border: 1px solid var(--color-primario-hover);
    margin: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    align-content: center;
}

.dresscode-image {
    align-content: center;
    max-width: 300px;
    max-height: 300px;
}

.custom-instagram-section {
    border-radius: 10px;
    background-color: var(--color-primario-hover_50);
    border: 1px solid var(--color-primario-hover);
    padding: 20px;
    margin: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 1;
}

.timeline-section {
    padding: 50px 0;
}

.custom-icon {
    width: 80%;
}

.timeline-container {
    position: relative;
    width: 80%;
    margin: 0 auto;
}

.timeline-event {
    position: relative;
    margin: 20px 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(20%);
    transition: transform 1s ease-out, opacity 1s ease-out;
}

.timeline-event:nth-child(even) {
    flex-direction: row-reverse;
    justify-content: center;
    transform: translateX(-20%);
}

.timeline-event:nth-child(odd) {
    justify-content: center;
    transform: translateX(20%);
}

.timeline-event.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-line {
    width: 4px;
    height: 40px;
    background-color: var(--color-primario);
    position: relative;
    left: 50%;
}

.timeline-event-fontsize {
    font-size: calc(1.325rem + .9vw);
    font-weight: normal;
    align-content: center;
}

.timeline-content {
    width: 300px;
    z-index: 2; 
    position: relative;
    display: flex;
    padding-left: 20px;
    border-radius: 10px;
    color: #2c3e50;
    text-align: center;
    border: 2px solid var(--color-primario);
}

.timeline-icon-text{    
    top: 10px;
    width: 200px;
    z-index: 2;
    position: relative;
    display: inline-block;
    border-radius: 10px;
    color: #2c3e50;
    text-align: center;
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primario);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s, visibility 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top i {
    font-size: 24px;
}

#galeria-section {
    text-align: center;
    padding: 20px;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.gallery-item {
    width: calc(33% - 10px);
    cursor: pointer;
    transition: transform 0.2s;
    object-fit: cover;
    z-index: 1;
}

.gallery-item:hover {
    transform: scale(1.05);
}

#dresscode-section{
    overflow: hidden;
}
#map_banquete, #map_ceremonia, #imgregalos, #countdown_text, #countdown_date,
#galeria_header_text, #galeria_detail_text, #instagram_header_text,
#nuestroamor_main_text, #nuestroamor_detail_text {
    opacity: 0;
    overflow: hidden;
    position: relative;
    z-index: 0;
}

.slideInUp  {
    animation: slideInUp 2s ease-out forwards;
}

.slideInDown  {
    animation: slideInDown 2s ease-out forwards;
}

.slideInRight {
    animation: slideInRight 2s forwards;
}

.slideInLeft {
    animation: slideInLeft 2s forwards;
}

.fadeIn {
    animation: fadeIn 4s forwards;
}

.fadeIn3seg {
    animation: fadeIn 2s forwards;
}

.fadeOut {
    animation: fadeOut 4s forwards;
}


@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}


@media (max-width: 768px) {
    .gallery-item {
        width: calc(50% - 10px);
        height: auto;
    }
    .main-container {
        display: flex;
    }
    .main-container-xl {
        display: none;
    }

}

@media (max-width: 480px) {
    .gallery-item {
        width: calc(50% - 10px);
        height: auto;
    }
}

@media (min-width: 768px) {
    .main-container {
        display: none;
    }
    .main-container-xl {
        display: flex;
    }
}

