body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #8C9DAD;
    text-align: center;

  background-image: url('/images/background_1.jpg');

  background-size: contain;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Keeps image fixed during scroll */
  background-position: top center;
  height: 100vh; /* Ensures body is at least as tall as the viewport */

}

.container {
    max-width: 900px;
    margin: auto;
    padding: 40px;

}

.center {
    position: absolute;
    top: 0;
    left: 50vw;
    /*left: 25vw;*/
    width: 70vw;
    height: 50vh;
    transform: translateX(-50%);
}

img {
    max-width: 100%;
    max-height: 80vh;
}

button, .rsvp {
    position: absolute;
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    background: black;
    color: white;
    cursor: pointer;
    border-radius: 6px;
    z-index: 10;
}

.btn-next{
    position: relative;
    left:20%;
    top:-100%;
}
.btn-prev{
    position: relative;
    right:20%;
    top:-100%;
}

.hidden {
    display: none;
}

.card2 {
    animation: slideUp 1.0s ease;
}

.card {
    animation: fadeIn 1.0s ease;
    left: 50%;
    transform: translateX(-50%);

}

#cards {
    position: absolute;
    width: 100%;
    height: 75vh;
}

.envelope{
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: top center;
    transition: transform 1s ease;
    pointer-events: none; 
}

.envelope-container{
    position: absolute;
    top: 30vh;
    left: 0;
    width: 100%;
    height: 50vh;
    transform: translateY(-50px);
}

.open-container{
    position: absolute;
    width: 100%;
    height: 100px;
    top: 40%;
    z-index: 10;

}

.envelope-body{
    z-index: 1;
}



.invitation-container{
    position: absolute;
    left: 0;
    z-index: 2;
}

.invitation{
    transform-origin: center center;
    transition: transform 1s ease;
    z-index: 2;
    
}

.invitation-set{
    position: absolute;
    margin: auto;
    /*width: 60%;*/
    height: 100%;
    transform-origin: center center;
}

.invitation-middle{
    z-index: 1;
}

.invitation-right{
    transform-origin: center right;
    z-index: 2;
}

.invitation-left{
    transform-origin: center left;
    z-index: 3;
}

.invitation-middle{
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    margin: auto;
}
.invitation-left,
.invitation-right {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    margin: auto;
    transition: transform 2s ease;
}

.invitation-band{
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 4;
    transition: transform 3s ease, opacity 3s ease;
    opacity: 0.40;
}

.blurred-image {
  /* Apply a 5-pixel Gaussian blur */
  filter: blur(5px);
}

.band-remove {
    transform: translateY(-1000px);
    opacity: 0;
}

.open-left {
    transform: rotateY(180deg) translateX(-2px);
}

.open-right {
    transform: rotateY(-180deg) translateX(1px);
}

.rotate90{
    transition: transform 1s ease, filter 1s ease;
    transform: rotate(90deg) translateX(-60%) translateY(30%);
}

.rotateOut{
    animation: zoom 1.25s ease, blur 1.25s ease, fade 1.25s ease-in;
}

.rotateIn{
    animation: zoom 1.25s ease, blur 1.25s ease, fade 1.25s ease-out;
    animation-direction: reverse;
}

.fade-out{
    animation: fadeOut 1s ease;
}

.envelope-body-top-layer{
    z-index: 3;
}

.envelope-flap{
    z-index: 4;
}

.envelope-open{
    transition: transform 1s ease;
    transform: translateY(150px) translateX(-50%);
}

.unclickable{
    pointer-events: none;
}

.clickable{
    pointer-events: all;
}

.flap-open{
    transform: rotateX(-180deg);
}

.envelope-exit{
    transition: transform 2s ease, opacity 2s ease;
    overflow: hidden;
    transform: translateY(100vw);
    opacity: 0;
}

.flap-behind{
    z-index: 1; 
}

.hover-enabled:hover{
    transform: translateY(-50px);
}


.overlay-btn {
    padding: 1vw 2vw;
    border-radius: 8px;
    border: none;
    cursor: pointer;

    background: rgba(0, 0, 0, 0.8); /* 50% transparency */
    color: white;
    font-size: 1vw;
    backdrop-filter: blur(3px);
    z-index: 10;
    transition: all 0.25s ease;
}

.overlay-btn:hover {
    background: rgba(0, 0, 0, 0.5);
}

button.transparent{
    opacity: 0.8;
}

.button-container {
    width: 100%;
    height: 20px;
}
.reply-page {
    position: relative;
    margin: 10px;
    padding: 100px;
    corner-shape: round;
    border: none;
    border-radius: 8px;
    background: #8C9DADD0;
    width: 100%;
}

.reply-title {
    font-size: 48px;
    margin-bottom: 20px;
}

.reply-message {
    font-size: 20px;
    margin-bottom: 15px;
}

.reply-deadline {
    font-size: 22px;
    margin-bottom: 40px;
}

.rsvp-button {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    text-decoration: none;
    color: white;
    background: rgba(0,0,0,0.8);
    border-radius: 8px;
    transition: background 0.3s ease;
    z-index: 20;
}

.rsvp-button:hover {
    background: rgba(0,0,0,0.5);
}

.open-btn {
    top: auto;
    transform: translateX(-50%);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blur {
    from {
        opacity: 1;
        filter: blur(0px);
    }
    to {
        opacity: 1;
        filter: blur(10px);
    }
}

@keyframes fade {
    0% {
        opacity: 1;

    }
    100% {
        opacity: 0.25;

    }
}


@keyframes zoomMove {
    from {
        transform: scale(100%, 100%) rotate(0deg) translateY(-50%);
    }
    to {
        transform: scale(1000%, 1000%) rotate(1440deg);
    }
}

@keyframes zoom {
    from {
        transform: scale(100%, 100%) rotate(0deg);
    }
    to {
        transform: scale(1000%, 1000%) rotate(1440deg);
    }
}


@keyframes rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(1440deg);
    }
}
