body::-webkit-scrollbar {
    display: none;
}

body {
    margin: 0;
    background-color: #fff;
}

html {
    scroll-behavior: smooth;
}


.referencia {
    justify-content: center;
    align-items: center;
    justify-items: center;
}

.referencia-text {
    font-family: "Dancing Script", serif;
    font-weight: bold;
    font-size: 3rem;
}

.wedding-header {
    position: relative;
    height: 100vh;
    background: url("../img/fotoprin.jpg") no-repeat center center/cover;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    color: white;
}

.overlay {
    background: rgba(0, 0, 0, 0.371);
    padding: 20px;
    width: 100%;
}

.couple-names {
    font-family: "Dancing Script", serif;
    text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff;
    color: #0a2d55;
    font-size: 5rem;
    margin: 0;
    font-weight: bold;
}

.wedding-text {
    font-family: "Playfair Display", serif;
    font-size: 3rem;
    margin: 10px 0;
    color: #fff;
}

.wedding-date {
    font-size: 3rem;
    margin-bottom: 5px;
    color: #fff;
    text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff;
}

.textofinal {
    font-size: 3rem;
    margin-bottom: 5px;
    margin-top: -5px;
    color: #0045e7;
    text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.countdown span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    background: rgba(0, 0, 255, 0.537);
    border: 4px solid rgba(0, 0, 100, 0.8);
    color: white;
    border-radius: 5px;
    text-align: center;
    font-size: 5rem;
    position: relative;
}

.countdown span div {
    font-size: 4rem;
    margin-bottom: 25px;
}

.countdown span::after {
    content: attr(data-label);
    font-size: 2rem;
    position: absolute;
    bottom: 5px;
    color: white;
}

/* Diseño responsivo para tamaños de pantalla más pequeños */
@media (max-width: 768px) {
    .wedding-header {
        height: 75vh;
    }

    .countdown {
        flex-wrap: wrap;
        gap: 15px;
    }

    .countdown span {
        width: 60px;
        height: 60px;
        font-size: 0.9rem;
    }

    .countdown span div {
        font-size: 1.2rem;
    }

    .countdown span::after {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .countdown {
        gap: 10px;
    }

    .countdown span {
        width: 70px;
        height: 70px;
        font-size: 0.8rem;
        margin-top: 3px;
        margin-bottom: 3px;
    }

    .countdown span div {
        font-size: 2rem;
    }

    .countdown span::after {
        font-size: 1rem;
    }

    .couple-names {
        font-size: 3.5rem;
        margin-bottom: 5px;
    }

    .wedding-date {
        font-size: 2.5rem;
    }
}

.navbar {
    position: sticky;
    top: 0;
    background-color: #eaeaead4;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 10px 50px;
    margin-bottom: 80px;
    box-shadow: 0 2px 5px rgba(0, 5, 157, 0.64);
}

.navbar-logo {
    height: 100px;
    margin-right: 20px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: auto;
}

.bar {
    height: 3px;
    width: 25px;
    background-color: black;
    margin: 4px 0;
    transition: 0.3s;
}

.navbar-links {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.navbar a {
    position: relative;
    color: black;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 15px;
    padding: 5px 10px;
    border: 2px solid;
    border-radius: 10px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.navbar a:hover {
    background-color: rgba(87, 115, 179, 0.377);
    border-color: rgb(0, 0, 0);
}

/* Media Queries para diseño responsivo */
@media (max-width: 768px) {
    .navbar-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 90px;
        left: 0;
        background-color: #eaeaead3;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    }

    .navbar-links.active {
        display: flex;
    }

    .navbar a {
        font-size: 0.9rem;
        margin: 10px 0;
        padding: 8px;
    }

    .hamburger {
        display: flex;
    }

    .navbar-logo {
        height: 70px;
        margin-right: 20px;
    }
}

/* Estilos para los botones de Google Calendar */
.calendar-buttons {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

.google-calendar-buttons,
.ios-calendar-buttons {
    display: inline;
}

.google-calendar-button,
.ios-calendar-button {
    background-color: white;
    border: 2px solid rgb(0, 24, 95);
    font-size: 18px;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;
    text-decoration: none;
    padding: 14px 20px;
    color: #1d2025;
    border-radius: 5px;
    margin: 0 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.google-calendar-button:hover,
.ios-calendar-button:hover {
    background-color: #5b96d8f2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: scale(1.5);
}

@media (max-width: 768px) {

    .google-calendar-buttons,
    .ios-calendar-buttons {
        display: block;
        margin: 0 0 10px 0;
        padding: 20px;
    }

    .google-calendar-button,
    .ios-calendar-button {
        max-width: 100%;
    }
}

.tarjetas {
    display: flex;
    justify-content: center;
    gap: 100px;
    padding: 20px 0;
    flex-wrap: wrap;
    max-width: 100%;
    box-sizing: border-box;
}

.tarjeta {
    perspective: 1200px;
    /* Habilita el efecto 3D */
    width: 450px;
    height: 350px;
}

.tarjeta .inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out;
}

.tarjeta:hover .inner {
    transform: rotateY(180deg);
    /* Gira sobre su eje */
}

.frontal,
.trasera {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
}

.frontal {
    transform: rotateY(0deg);
    background-color: rgba(255, 255, 255, 0.1);
    position: relative;
}

.frontal::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(1px);
    z-index: 0;
}

.tarjeta:nth-child(1) .frontal::before {
    background-image: url("../img/iglesia.jpg");
    /* URL de imagen */
}

.tarjeta:nth-child(2) .frontal::before {
    background-image: url("../img/jardin.jpg");
    /* URL de imagen */
}

.frontal .texto-frontal {
    position: relative;
    z-index: 1;
    color: white;
}

.trasera {
    transform: rotateY(180deg);
    background-image: url("../img/");
    background-size: cover;
    background-position: center;
    filter: blur(0px);
    background-color: rgb(224, 224, 225);
    color: #333;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    display: flex;
    flex-direction: column;
    /* Organiza el contenido en columna */
    align-items: center;
    justify-content: center;
    padding: 10px;
    /* Añade espacio interior */
    box-sizing: border-box;
}

.trasera ul li {
    margin: 10px 0;
    /* Espaciado entre los elementos de la lista */
    font-size: 1.5rem;
    color: #000000;
    /* Color para diferenciar el texto */
}

.trasera button {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.trasera button:hover {
    background-color: #477db7;
}

@media (max-width: 768px) {
    .tarjeta {
        width: 200px;
        height: 300px;
    }

    .frontal .texto-frontal,
    .trasera ul li {
        font-size: 0.9rem;
    }

    .trasera button {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .tarjeta {
        width: 250px;
        height: 320px;
    }

    .frontal .texto-frontal,
    .trasera ul li {
        font-size: 1.2rem;
    }

    .trasera button {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}