/* Premium Flat Wedding Invitation Styles */
@font-face {
    font-family: 'Amoresa';
    src: url('assets/fonts/3354dd4840447d071ca919cafbf4664b.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Recoleta';
    src: url('assets/fonts/ce20cab7b6eacfd53bf5fcba29438496.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('assets/fonts/90a37e32189d53dee7034244d1a84180.woff') format('woff');
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: 'HK Grotesk';
    src: url('assets/fonts/82a0c0e0d657d2924cd6bc9dc29e1d73.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

:root {
    --container-width: 100vw;
    --primary-color: #3f5f3f;
    --gold-color: #c49035;
    --timer-color: #828b49;
    /* exact olive green */
}

@media (min-width: 480px) {
    :root {
        --container-width: 450px;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #121212;
    color: #333333;
    font-family: 'Canva Sans', 'Noto Sans', sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.invitation-wrapper {
    width: var(--container-width);
    background-image: url('assets/media/8ae472c0a6aa194c7a567bc05339705e.jpg');
    background-size: cover;
    background-repeat: repeat;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.invitation-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* Specific background and dimensions for sections */
.sec1-bg {
    background-image: url('assets/media/bg_screen1.png');
    height: calc(var(--container-width) * (1024 / 617));
}

.sec2-bg {
    background-image: url('assets/media/bg_screen2.png');
    height: calc(var(--container-width) * (952 / 632));
}

.sec3-bg {
    background-image: none;
    /* transparent to show base marble background */
    height: calc(var(--container-width) * (1230 / 1366));
}

.abs-el {
    position: absolute;
    transform-origin: top left;
}

.abs-el img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* RSVP Card on Section 3 - stretched to 100% width to put roses at the border */
.rsvp-card {
    top: 7.3171%;
    left: 0%;
    width: 100.0%;
    height: 67.3200%;
    /* scaled to match image aspect ratio of 314/518 */
    z-index: 1;
}

.rsvp-card img {
    object-fit: fill;
    /* fill to avoid gaps on stretched container */
}

/* Section 1 Countdown positioning */
.sec1-countdown {
    top: 67.6225%;
    left: 10.0%;
    width: 80.0%;
    height: 20.9270%;
    z-index: 5;
}

/* Nuestra Boda Title Overlay */
.sec1-title-nuestra-boda {
    top: 8.0089%;
    left: 8.1578%;
    width: 73.3984%;
    height: 6.9199%;
    font-family: 'Amoresa', sans-serif;
    font-size: calc(var(--container-width) * (123.198 / 1366));
    color: #000000;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

/* Section 3 "Cómo llegar" title styling - centered over Map */
.sec3-title {
    top: 0.7042%;
    left: 50.658%;
    width: 44.014%;
    height: 5.5412%;
    font-family: 'Recoleta', sans-serif;
    font-size: calc(var(--container-width) * (57.0748 / 1366));
    color: #000000;
    text-align: center;
    z-index: 2;
}

/* Section 3 Google Map positioning - scaled and shifted for full width card */
.sec3-map {
    top: 6.375%;
    left: 50.658%;
    width: 44.014%;
    height: 39.100%;
    z-index: 2;
}

/* Section 3 WhatsApp button positioning - scaled and shifted for full width card */
.sec3-whatsapp {
    top: 55.520%;
    left: 72.800%;
    width: 12.860%;
    height: 15.320%;
    z-index: 3;
}

/* Pop-up Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.popup-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.popup-content {
    background-image: url(./assets/IMAGENES/popup.png);
    background-size: cover;
    text-align: center;
    max-width: 400px;
    height: 430px;
    width: 100%;
    animation: popupScale 0.4s ease-out;
}

@keyframes popupScale {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 232px;
    font-weight: bold;
}

.popup-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    margin-top: 30px;
    font-size: 16px;
    cursor: pointer;
    font-family: 'HK Grotesk', sans-serif;
    font-weight: bold;
    transition: background 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.popup-button:hover {
    background: #2f472f;
}

/* Custom elements styling */
.countdown-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: transparent;
    width: 100%;
    height: 100%;
    padding: 0 5%;
}

.countdown-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
}

.countdown-val {
    font-family: 'Cormorant Garamond', serif;
    font-weight: bold;
    font-style: italic;
    color: var(--timer-color);
    font-size: calc(var(--container-width) * (145 / 1366));
    line-height: 1.0;
}

.countdown-sep {
    font-family: 'Cormorant Garamond', serif;
    font-weight: bold;
    font-style: italic;
    color: var(--timer-color);
    font-size: calc(var(--container-width) * (145 / 1366));
    line-height: 1.0;
    margin-top: calc(var(--container-width) * (-10 / 1366));
}

.countdown-lbl {
    font-family: 'HK Grotesk', sans-serif;
    font-size: calc(var(--container-width) * (34 / 1366));
    color: #000000;
    font-weight: bold;
    margin-top: calc(var(--container-width) * (12 / 1366));
    text-align: center;
    white-space: nowrap;
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.whatsapp-btn {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    padding: 15%;
}

.whatsapp-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.whatsapp-btn:hover {
    transform: scale(1.08);
    background-color: #20ba5a;
}

.audio-control-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.audio-control-icon {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
}