/* [1] All - Styles that are or may be used across multiple pages */

@font-face {
    font-family: 'i-eat-crayons';
    src: url('../font/ieatcrayons-cl.woff2') format('woff2'),
        url('../font/ieatcrayons-cl.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


html {
    font-size: 16px;
}

:root {
    --dc-pink: #df838b;
    --dc-lightpink: #f5cad8;
    --dc-purple: #7b437d;
    --dc-gold: #bc9a59;
    --dc-orange: #c07954;
    --dc-orange3: #f4dccf;
    --dc-paper: #eeeeec;
    --dc-black: #000;
    --dc-black2: #333;
    --dc-white: #fff;
    --dc-rsvp: #222;
    /* update colours later */
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Serif;
}

#error-img1 {
    max-width: 300px;
    width: 70vw;
    height: auto;
}


#topBar {
    transition: opacity 0.5s ease;
    background-color: transparent;
    top: calc(1.5% + env(safe-area-inset-top));
    width: 100vw;
    height: auto;
    position: fixed;
    z-index: 99;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
}

#topBarLeft,
#topBarRight {
    padding: 0.5rem 4vw;
    display: flex;
    gap: 1rem;
    background-color: transparent;
    font-size: 1.1rem;

}


@media (max-width: 768px) {
    .hideOnMobile {
        display: none;
    }
}

@media (min-width: 769px) {
    .hideOnDesktop {
        display: none;
    }
}


#topBarRight button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    /* inherit font styles from parent */
    cursor: pointer;
    text-decoration: underline;

    text-decoration-thickness: 1px;
    /* or 'auto', or a value you prefer */
    margin-left: 20px;
    color: black;
    position: relative;
    z-index: 9999999;
}

#topBarRight button:active {
    color: #333;
}

@media (hover: hover) and (pointer: fine) {
    #topBarRight button:hover {
        color: #333;
    }
}




/* "Back to top" etc. floating buttons (mobile only) => hidden on desktop. */
.floatingButton {
    position: fixed;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    font-size: 1.1em;
    text-decoration: none;
    display: none;
    /* hide initially */
    z-index: 990;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}


.floatingBackButton {
    background-color: transparent;
    cursor: pointer;
    font-size: 1.1em;
    text-decoration: none;
    z-index: 990;
    width: 15vw;
    max-width: 70px;
    -webkit-tap-highlight-color: transparent;
    /* stops weird grey highlight on button on iOS when tapping elswhere after clicking button */
}


#hamburger-button.behindOverlay {
    opacity: 0;
    display: 0;
    pointer-events: none;
}

#topBarMenuLinks.behindOverlay {
    opacity: 0;
    pointer-events: none;
    transition: transform 0s;
}


#hamburger-button {
    cursor: pointer;
    border: 0;
    background: none;
    top: calc(1.5% + env(safe-area-inset-top));
    padding: 0.5rem 5vw;
    background-color: transparent;
    -webkit-tap-highlight-color: transparent;
    z-index: 9999999999;
    /* Also acts as close button so must be above everything */
    position: absolute;
    right: 0;
    color: #333;
    touch-action: manipulation;
}

#hamburger-button svg {
    cursor: pointer;
    font-size: 1.1em;
    text-decoration: none;
    z-index: 990;
    height: 8.1vw;
    max-height: 40px;
    width: auto;
    max-width: 40px;
    touch-action: manipulation;
}

/* Animate Hamburger into X button */
/* Select the bars inside the SVG */
#hamburger-button .bar {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#hamburger-button .open {
    transition: transform 0s ease, opacity 0s ease;
}

/* Set transform-origin near left edge and vertical center of each bar */
#hamburger-button .top {
    transform-origin: 1.5px 1.5px;
}

#hamburger-button .middle {
    transform-origin: 1.5px 5.5px;
}

#hamburger-button .bottom {
    transform-origin: 1.5px 9.5px;
}

/* Animate when open */
#hamburger-button.open .top {
    transform: translateY(1px) rotate(45deg);

    color: white;
}

#hamburger-button.open .middle {
    opacity: 0;
}

#hamburger-button.open .bottom {
    transform: translateY(-1px) rotate(-45deg);

    color: white;
}




.floatingBackButton.rotated,
.floatingBackButton:hover,
.floatingBackButton:active {
    transform: rotate(-15deg);
}

.floatingButton.visible {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.floatingButton.behindOverlay {
    opacity: 0 !important;
}

/* let user click anywhere in the button for the link */
.floatingButton a {
    display: block;
    color: #333;
    background: none;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    width: 120px;
    text-decoration: none;
}

.floatingButton.fff a { /*#CL*/
    color: #fff;
}

.floatingButton.top {
    transform: translateX(-50%);
    top: calc(1.5% + env(safe-area-inset-top));
    left: 50%;
}

.floatingButton.bottom {
    transform: translateX(-50%);

}

.floatingButton.bottom.noclick { /*#CL*/
    color: #777;
    pointer-events:none;
}

.floatingButton.fff { /*#CL*/
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
    
@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

.bouncy {
   animation: bounce 1s ease-in-out infinite 0.5s;
}
    
/* on mobile, show bottom link with button style */
@media (max-width: 767px) {
 
    .floatingButton.bottom.rounded a { /*#CL*/
        color: #fff;
        background-color: rgba(0, 0, 0, 0.7);
    }

}

#floatingButtonsBottomContainer {
    bottom: calc(10% + env(safe-area-inset-bottom));
    left: 50%;
    position: fixed;
    cursor: pointer;
    z-index: 990;
    width: 150px;
    text-align: center;
}

/* iPads in landscape; make the floating buttons a bit smaller/better placed */
@media only screen and (min-device-width: 660px) and (max-device-width: 1366px) and (orientation: landscape) {
    #floatingButtonsBottomContainer {
        bottom: calc(5% + env(safe-area-inset-bottom));
    }

    .floatingButton a {
        padding: 0.4rem 0.4rem;
    }
}


.floatingButton.hidden {
    display: none !important;
}


/* Contains everything, fills body */
#everything {
    height: 100%;
    /* Full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Push .container to center, footer to bottom */
    align-items: center;
    font-family: "Spectral", serif;
    font-weight: 400;
    font-style: normal;
    color: #222;
    margin: 0;
    touch-action: pan-y;
}


/* Used on Landing page for floating content box */
.container {
    width: 90%;
    max-width: 800px;
    padding: 2vh;
    padding-bottom: 0;
    box-sizing: border-box;
    text-align: center;
    margin-top: auto;
    margin-bottom: auto;
}


/* Used on Landing page for footer snapped to bottom */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 4vw;
    /* Optional: add spacing inside the footer */
    background-color: transparent;
    font-size: 1em;
    /* Optional: adjust text size */
    width: 100dvw;
    background-color: transparent;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

.footer.locked {
    position:absolute;
    bottom:10px;
}

.footer p {
    font-size: 0.8em;
}


#footerLeft {
    color: #555;
}

#footerRight {
    color: #555;
}


h1 {
    font-weight: 400;
    margin: 0px;
    margin-bottom: 1vh;
    padding: 0;
}

h2 {
    font-weight: 400;
    font-size: 1rem;
    margin: 0;
    padding: 0;
}

p {
    font-size: 16px;
}

a {
    color: inherit;
    text-decoration: underline;
}

/* Styles for Overlays, Privacy Overlay */
html.no-scroll,
body.no-scroll {
    overflow: hidden;
    height: 100%;
    touch-action: none;
}

/* Error overlay - display prettier error message if any php issue */
.message-overlay {
    position: fixed;
    inset: 0;
    background-color: #fff;
    display: none;
    justify-content: center;
    text-align: center;
    align-items: center;
    z-index: 998;
    justify-content: center;
    align-items: center;
    overscroll-behavior: contain;
}

.message-overlay.show {
    display: flex;
}

.message-overlay p {
    font-size: 1rem;
}

#errorMsg {
    color: #999;
}

/* Overlay only shown when mobile in landscape mode so hidden by default, show warning because can't display properly */
@media screen and (orientation: landscape) and (max-width: 1024px)
/* Target iPhones and exclude iPads */
and (hover: none) and (pointer: coarse) {
    #landscape-overlay {
        display: flex;
        flex-direction: column;
        gap: 0px;
        margin: 0;
        padding: 0;
    }

    #landscape-overlay img {
        height: 40vh;
        width: auto;
    }

    #landscape-overlay p {
        font-size: 1.2em;
    }
}

/* Allow scrolling inside the overlay content only  */
.popup-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.2);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
    overscroll-behavior: contain;
    backdrop-filter: blur(10px);
    /* this blurs everything *behind* */
}

.popup-overlay.Dark {
    background-color: rgba(0, 0, 0, 0.9);
    /* Darker background for Privacy overlay */
}

.popup-overlay-content {
    color: white;
    position: inline-block;
    overflow-y: auto;
    /* enables scroll inside box */
    -webkit-overflow-scrolling: touch;
    /* smooth iOS scroll */
    position: relative;
    overflow-y: auto;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

.popup-overlay-content.HorizontalScroll {
    overflow-y: auto;
    display: flex;
    align-items: center;
    /* Prevent vertical scroll in the overlay */
}

#menu-content {
    background-color: transparent;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4.5vh;
}

#menu-content button {
    border: 0;
    background: 0;
    cursor: pointer;
    font-size: 2em;
    font-family: 'i-eat-crayons', sans-serif !important;
    color: #ccc;
    -webkit-tap-highlight-color: transparent;
}

#menu-content button:focus,
#menu-content button:hover {
    color: #fff;

}

.ppLink {
    z-index: 10;
}

#privacy-content {
    width: 80vw;
    max-width: 600px;
    margin: 0 auto;
    margin-top: 10vh;
    margin-bottom: 10vh;
}

#privacy-content p,
#privacy-content h3,
#privacy-content a,
#privacy-content strong {
    font-size: 1rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.popup-overlay-cards {
    height: calc(1.4*min(min(90vw, 500px), calc(100vh / 1.7)));
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: row;
    overflow-y: hidden;
    overflow-x: hidden;
    /* CL NOTE - it's this or Snappy class below */
    scrollbar-width: none;
    /* Firefox hide scroll bar */
    -ms-overflow-style: none;
    /* IE 10+ hide scroll bar */
}

.popup-overlay-cards.Snappy {
    overflow-x: scroll !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* CL NOTE - all of these must be enabled or disabled together */
    /* Enable Snappy to allow manual scrolling & snapping, but do NOT use jsSwipe at the same time or unexpected behaviour */
    /* Use neither to completely disable swipe scrolling & manual scrolling */
    /* Use jsArrowScrolling to prevent default behaviour and let js handle arrow key navigation instead; recommended in all cases */
    /* With no Snappy and no jsArrowScrolling, users can only scroll by clicking cards/buttons */
}


.popup-overlay-cards::-webkit-scrollbar {
    display: none;
}

.popup-card {
    color: black;
    height: 97%;

    min-width: min(min(90vw, 500px), calc(100vh / 1.7));
    max-width: min(min(90vw, 500px), calc(100vh / 1.7));

    /* 80% of viewport width, capped at 600px */
    aspect-ratio: 1 / 1.4;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
    z-index: 998;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    /* subtle depth */
    background-color: #f5cad8;
    position: relative;

    margin-left: 0;
    transition: filter 0.4s ease, transform 0.2s ease;
    transform: translateZ(0);
    /* or translate3d(0, 0, 0), trigger GPU*/
    scroll-snap-align: center;

}

.popup-card-spacer {
    /* Invisible card to fill space and centre the first card */
    background-color: transparent;
    height: 100%;
    min-width: calc(50vw - (min(min(90vw, 500px), calc(100vh / 1.7)) / 2));
    max-width: calc(50vw - (min(min(90vw, 500px), calc(100vh / 1.7)) / 2));
    position: relative;
}

@media (max-width: 374px) {

    /* Smaller Styles for small phones (smaller than iPhone mini) */
    .popup-card-spacer {
        /* Invisible card to fill space and centre the first card */
        background-color: transparent;
        height: 100%;
        min-width: calc(50vw - (min(min(80vw, 500px), calc(100vh / 1.7)) / 2));
        max-width: calc(50vw - (min(min(80vw, 500px), calc(100vh / 1.7)) / 2));
        position: relative;
    }

    .popup-card {
        margin-top: 5%;
        height: 86%;
        min-width: min(min(80vw, 500px), calc(100vh / 1.7));
        max-width: min(min(80vw, 500px), calc(100vh / 1.7));
        /* 80% of viewport width, capped at 600px */
        aspect-ratio: 1 / 1.4;
    }

}

/* This is the scrollable text container inside the card */
.card-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    font-size: calc(min(min(90vw, 500px), calc(100vh / 1.7))/20);

    /* previously had padding here to pad the content but actually do that on inner text containers instead */
    /* to prevent text hiding completely under gradient */
    box-sizing: border-box;
    /* Stops padding taking the height over 100% */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
    position: absolute;
    z-index: 999;
    overflow-y: auto;
    /* Unless unscrollable class added */
    text-align: center;
}

.card-content-text {
    width: 100%;
    box-sizing: border-box;
    /* Don't let padding interfere with size */
    /* Keep text to the right 90% of the card for presentation */
}

.card-content-halfbox {
    height: 50%;
    overflow-y: hidden;
    position: relative;
    text-align:left;  /*#CL New*/
}


.card-content-halfbox img {  /*#CL New*/
    width:100%;
    height:auto;
}

.card-content-halfbox.text {
    margin:20px; /*#CL New*/
}

.card-content-fullbox {
    height: 100%;
    background-color: black;
    overflow-y: hidden;
    overflow-x: hidden;
    position: relative;
}


.card-content-fullbox img {
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    z-index: 998;
}

.card-content-fullbox video {
    position: absolute;
    z-index: 999;
    left: 0;
    opacity: 100%;
}

.card-content-fullbox-overlay,
.card-content-halfbox-overlay {
    position: absolute;
    top: 0;
    margin: 0;
    z-index: 999999;
    background-color: transparent;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.3em;
    padding-top: 2em;
    height: 100%;
    box-sizing: border-box;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.card-content-halfbox-overlay {
    height: 50%;
    position: relative;
}

.card-content-fullbox-overlay .white p {
    color: white !important;
}


.card-content p {
    position: relative;
    display: block;
    width: 100%;
    font-size: 0.8em;
    z-index: 999;
    margin-bottom: 0rem;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;

}


.blockBg {
    /* Use in a span tag to give translucent background incase text overlays images */
    background-color: rgba(238, 238, 236, 0.65);
}

.card-content p.header {
    font-family: 'i-eat-crayons', sans-serif !important;
    font-size: 1.4em;
    margin: 0;
    margin-top: 0.2em;
    margin-bottom: 0.5em;
    line-height: 1em;

}



/* Card images */

#itinCard1img1 {
    width: 50%;
    bottom: 55px;
    position: absolute;
    left: 24%;
    z-index: 998;
}

#itinCard1img2 {
    width: 45%;
    bottom: 30px;
    position: absolute;
    left: 52%;
    z-index: 997;
}

/* */



.card-content::-webkit-scrollbar {
    display: none;
}


/* This creates the gradient overlay */
.card-gradient-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    /* or however tall you want the fade */
    background: linear-gradient(to bottom, transparent, var(--dc-paper));
    pointer-events: none;
    z-index: 99999999;
    /* allows clicks to pass through */
}

.popup-card .unscrollable {
    overflow-y: hidden;
    overflow-x: hidden;
    /* Optional class to make a card unscrollable */
}

.popup-card::-webkit-scrollbar {
    display: none;
}

.popup-card+.popup-card {
    margin-left: 15vw;
    /* spacing for all cards except the first */
}

.popup-card:not(.centered) {
    filter: brightness(0.5);
    /* darken but no transparency */
    transform: scale(0.9);
}

.popup-card.centered {
    transform: scale(1);
}

.popup-card.no-click * {
    pointer-events: none;
}

.popup-card.no-transition,
.popup-card.no-transition .dim-overlay {
    transition: none !important;
}

.popup-card:focus {
    outline: none;
}


/* Style for X button to close overlays */
#closeOverlayX {
    position: fixed;
    top: calc(0% + env(safe-area-inset-top));
    right: 4.5vw;
    font-size: 3.2em;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 200;
    -webkit-tap-highlight-color: transparent;
}


.scrollRightBtn,
.scrollLeftBtn {
    position: fixed;
    top: 50vh;
    top: calc(50svh);
    /* 50% of the "small viewport height" — more reliable on iOS */
    font-size: 3rem;
    border: none;
    cursor: pointer;
    padding: 2rem 2.8rem;
    color: #fff;
    text-decoration: none;
    Z-index: 99999;
    -webkit-tap-highlight-color: transparent;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.4));
    transition: filter 0.3s ease;
}

a.scrollSidewaysBtn>svg.svgIcon:active {
    color: #333;
}

@media (min-width: 768px) {
    a.scrollSidewaysBtn>svg.svgIcon:hover {
        color: #333;
        /* hover effect on desktop only, mobile behaviour unexpected */
    }
}

.scrollRightBtn {
    left: 50%;
    /* start at the horizontal center */
    transform: translate(calc(min(80vw, 550px) / 2), -50%);
}

.scrollLeftBtn {
    right: 50%;
    /* start at the horizontal center */
    transform: translate(calc(-1 * min(80vw, 550px) / 2), -50%);
}


/* Styles for mobile */
@media (max-width: 768px) {

    .scrollRightBtn,
    .scrollLeftBtn {
        top: 95vh;
        top: calc(85svh + 12vw + 5px);
        border-radius: 0px;
        cursor: pointer;
        touch-action: manipulation;
        padding: 0;
        filter: none;
    }

    a.scrollSidewaysBtn>svg.svgIcon {
        width: 1.5em;
        height: 1.5em;
    }


    .scrollRightBtn {
        left: 58%;
        right: auto;
        /* reset right since you use left */
        transform: translate(calc(min(80vw, 100px) / 2), -50%);
    }

    .scrollLeftBtn {
        right: 58%;
        left: auto;
        /* reset left since you use right */
        transform: translate(calc(-1 * min(80vw, 100px) / 2), -50%);
    }
}


/* Animation used for Overlays */
.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Styles for mobile */
@media (max-width: 768px) {
    p {
        font-size: 0.68rem;
    }

    #privacy-content p,
    #privacy-content strong {
        font-size: 1rem;
    }
}


/* *** Add to calendar button & dropdown */
.add-calendar-link {
    color: #fff;
    border: 1px solid white;
    padding: 10px 10px;

    backdrop-filter: blur(2px);
    display: inline-block;
    width: 50%;
    box-sizing: border-box;

    text-decoration: none;
    z-index: 999;
}

.add-calendar-link.clicked {
    border-color: #999;
}

/* Styles for desktop - no hover on mobile or strange behaviour */
@media (min-width: 768px) {
    .add-calendar-link:hover {
        border-color: #999;
    }
}




.add-calendar-wrapper {
    position: absolute;
    display: inline-block;
    right: 0;
    bottom: 0;
    z-index: 99999;
    bottom: 0.5em;
    right: 0.5em;
}

.add-calendar-wrapper.inline {
    position: relative;
    display: inline-block;
    right: 0;
    bottom: 0;
    z-index: 99999;
    font-size: 0.8em;

}


.add-calendar-link {
    -webkit-tap-highlight-color: transparent;
}

.calendar-options {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    font-family: "Spectral", serif;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.6s ease;
    visibility: hidden;
    font-size: 1em;
    text-shadow: none;
    
}


.popup-card .calendar-options {
    position: relative;
    width: 50%;
    left: 25%;
    top: -1px;
    /* Align the right edge or replicate padding of the button */

    z-index: 10;
    transform: translateY(-10px);

}

.calendar-options.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}

.calendar-options a {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 1.2em;
    font-size: 0.9em;
    text-decoration: none;
    color: #333;
}

.calendar-options .title {
    display: flex;
    align-items: center;
    gap: 0.4em;
    padding: 10px;
    text-decoration: none;
    color: #333;
    margin: 0.3em 0;
}


.calendar-options a img.icon {
    width: 1em;
    height: 1em;
    padding-right: 2px;
    display: inline-block;
}

.calendar-options a:hover {
    background-color: #dcdcdc;
}



/* Styles for virtual letter */
/* * * */

.letterGroup {
    /* if you’re mimicking letter ratio */
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: min(600px, calc(90vw * 11 / 9));
    min-height: 200px;
    aspect-ratio: 9 / 11;
    max-height: 80vh;

}

.letterPage {
    width: inherit;
    color: #fff;
    /* background-image: url('../img/invite_paper_green.jpg'); */
    background-color: transparent;
    /* handle background on separate elements */
    opacity: 1;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    flex-shrink: 0;
    flex-grow: 0;
    display: block;
    box-sizing: border-box;
    overflow: hidden;
    position: absolute;
    opacity: 100%;
    z-index: 13;

}

.letterPaper,
.letterPaperTexture {
    /* Sits behind letter but above shadows so 4 shadow boxes don't flicker in */
    width: inherit;
    color: #fff;
    background-size: cover;
    opacity: 1;
    width: 90%;
    height: 90%;
    display: flex;
    flex-direction: column;
    text-align: center;
    flex-shrink: 0;
    flex-grow: 0;
    display: block;
    box-sizing: border-box;
    overflow: hidden;
    opacity: 100%;
    position: absolute;
}

.letterPaper {
    z-index: 11;
    background-color: #143420;
    /* green */
}

.letterPaperTexture {
    z-index: 12;
    background-image: url('../img/invite_paper_texture.png');
    opacity: 15%;
}


.letterShadow {
    width: inherit;
    flex-shrink: 0;
    flex-grow: 0;
    display: block;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 4;
    position: absolute;
    background-color: transparent;

}

.letterShadow.topLeft {
    opacity: 1;
    /* More transparent, so you can see the other page through it */
    z-index: 1;
    transform-origin: center;
    width: 45%;
    height: 45%;
    right: 50%;
    bottom: 50%;
    box-shadow: clamp(2px, 0.32vmin, 3px) clamp(8px, 1.26vmin, 12px) clamp(9.4px, 1.47vmin, 14px) black;
    transform: skew(0.5deg, 2deg) translate(0.6%, 1.3%);
}

.letterShadow.topRight {
    opacity: 1;
    /* More transparent, so you can see the other page through it */
    z-index: 1;
    transform-origin: center;
    width: 45%;
    height: 45%;
    left: 49.3%;
    bottom: 49.5%;
    box-shadow: clamp(5.4px, 0.84vmin, 8px) clamp(3.4px, 0.53vmin, 5px) clamp(8px, 1.26vmin, 12px) black;
    transform: rotate(0.7deg) translate(-3.1%, 1.5%);
}

.letterShadow.bottomLeft {
    opacity: 1;
    /* More transparent, so you can see the other page through it */
    z-index: 1;
    transform-origin: center;
    width: 44%;
    height: 45%;
    right: 50.6%;
    top: 49%;
    box-shadow: clamp(-4px, -0.42vmin, -2.68px) clamp(7px, 1.1vmin, 10.5px) clamp(9.4px, 1.47vmin, 14px) black;
    transform: skew(-5.2deg, 4deg) rotate(-5deg) translate(3.4%, -1%);
}

.letterShadow.bottomRight {
    opacity: 1;
    /* More transparent, so you can see the other page through it */
    z-index: 1;
    transform-origin: center;
    width: 46%;
    height: 45%;
    left: 47%;
    top: 48%;
    box-shadow: clamp(5.4px, 0.84vmin, 8px) clamp(9.4px, 1.47vmin, 14px) clamp(9.4px, 1.47vmin, 14px) black;
    transform: skew(1deg, 2deg) rotate(-1deg);
}

#letterParagraph1 {
    position: absolute;
    top: 10%;
    width: 70%;
    left: 15%;
    font-size: 0.8rem;
}

#letterParagraph2 {
    position: absolute;
    bottom: 10%;
    width: 70%;
    left: 15%;
    font-size: 0.8rem;
}

#letterImage {
    top: 33%;
    width: 40%;
    left: 30%;
    position: absolute;
}


    
    
.fadeUp, .fadeUpSlow { /*#CL*/
    /* Initial fade in for entire container */
    opacity: 0;
    transition: opacity 1.1s ease-out, transform 0.9s ease-out;
    will-change: opacity, transform;
    transform: translateY(20px);
}

.fadeUp.Still {
    /* Initial fade in for entire container */
    transition: opacity 1.1s ease-out;
    will-change: opacity;
    transform: translateY(0px);
}

.unfadeUp {
    opacity: 1;
    transform: translateY(0);
    transition: 0;
}



/* iOS PWA */
.ios-pwa-spacer {
    display: none !important;
}

.pwa-ios .ios-pwa-spacer {
    display: block !important;
    height: 4vh;
}

.pwa-ios #floatingButtonsBottomContainer {
    bottom: calc(7% + env(safe-area-inset-bottom)) !important;
}

.pwa-ios .footer {
    padding: 1.4rem;
    padding-bottom: 30px;
}

.pwa-ios #bookmark-button,
.pwa-ios #bookmark-button svg {
    display: none !important;
}

