/* Wedding Website Styles - Cole & Marisa */

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

:root {
    --burgundy: #722F37;
    --olive: #556B2F;
    --cream: #F7F4EF;
    --gold: #C5A572;
}

html, body {
    font-family: 'Georgia', serif;
    background-color: var(--cream);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Page container - holds background image and hotspots */
.page-container {
    position: relative;
    width: 100%;
    max-width: 1366px;
    margin: 0 auto;
    background-color: var(--cream);
}

/* Mobile scaling */
@media (max-width: 768px) {
    .page-container {
        max-width: 100%;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .page-container {
        max-width: 768px;
    }
}

.page-background {
    width: 100%;
    height: auto;
    display: block;
}

/* Clickable hotspot - invisible overlay */
.hotspot {
    position: absolute;
    cursor: pointer;
}

/* Home page styles */
#home-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--cream);
}

#home-page .page-background {
    width: 100%;
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    #home-page {
        width: 100vw;
        overflow: hidden;
        justify-content: center;
    }

    #home-page .page-background {
        width: auto;
        height: 100vh;
        max-width: none;
        object-fit: cover;
        object-position: center;
    }

    /* Invitation and other pages - wider on mobile */
    .page-container:not(#home-page) {
        max-width: 100vw;
    }

    .page-container:not(#home-page):not(#love-story-page):not(#details-page):not(#faqs-page) .page-background {
        width: 130%;
        max-width: none;
        margin-left: -15%;
    }

    #faqs-page .page-background {
        width: 180%;
        max-width: none;
        margin-left: -40%;
    }

    #love-story-page .page-background {
        width: 180%;
        max-width: none;
        margin-left: -40%;
    }

    #details-page .page-background {
        width: 180%;
        max-width: none;
        margin-left: -40%;
    }

    /* Back link on love-story page */
    #love-story-page .back-link-overlay {
        bottom: 10% !important;
    }

    /* Back link on details page */
    #details-page .back-link-overlay {
        bottom: 12% !important;
    }

    /* Back link on faqs page */
    #faqs-page .back-link-overlay {
        bottom: 12% !important;
    }

    /* Love Story 2 wider on mobile */
    .hotspot-love-story-2 {
        width: 32% !important;
        left: 18% !important;
    }

    /* RSVP wider on mobile */
    .hotspot-rsvp {
        width: 30% !important;
    }

    /* Details wider on mobile */
    .hotspot-details {
        width: 32% !important;
    }

    /* FAQs wider on mobile */
    .hotspot-faqs {
        width: 30% !important;
        left: 18% !important;
    }
}

/* Home page envelope hotspot */
.envelope-hotspot {
    position: absolute;
    top: 19%;
    left: 23%;
    width: 54%;
    height: 46%;
    cursor: pointer;
}

/* Envelope opening animation */
.page-container.opening {
    animation: fadeOut 0.8s ease-out forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

/* Invitation page hotspots */

/* FAQs label hotspot - left side tag */
.hotspot-faqs {
    top: 41%;
    left: 25%;
    width: 24%;
    height: 10%;
    z-index: 10;
}

/* Details hotspot - right side frame */
.hotspot-details {
    top: 33%;
    left: 50%;
    width: 26%;
    height: 16%;
    border-radius: 50%;
    z-index: 10;
}

/* Love Story hotspot - photo collage area */
.hotspot-love-story {
    top: 65%;
    left: 40%;
    width: 20%;
    height: 13%;
    z-index: 10;
}

/* Love Story hotspot 2 - second tile */
.hotspot-love-story-2 {
    top: 53%;
    left: 24%;
    width: 24%;
    height: 15%;
    z-index: 10;
}

/* RSVP button hotspot - green button right side */
.hotspot-rsvp {
    top: 50%;
    left: 54%;
    width: 24%;
    height: 14%;
    z-index: 10;
}

/* Return to envelope hotspot */
.hotspot-return {
    top: 90%;
    left: 38%;
    width: 24%;
    height: 2%;
    z-index: 10;
}

/* Back link styles */
.back-link-overlay {
    position: absolute;
    bottom: 4%;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 2%;
    cursor: pointer;
}

/* Back link on love-story page desktop */
#love-story-page .back-link-overlay {
    bottom: 10%;
    width: 20%;
}

/* Back link on details page desktop */
#details-page .back-link-overlay {
    bottom: 12%;
    width: 20%;
}

/* Back link on faqs page desktop */
#faqs-page .back-link-overlay {
    bottom: 12%;
    width: 20%;
}

/* Smooth page transitions */
.page-enter {
    animation: fadeIn 0.5s ease-out forwards;
}

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

/* Accessibility - visible focus states */
.hotspot:focus {
    outline: none;
}

/* Hide visually but keep accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
