*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    color: #000000;
    scrollbar-width: none;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

*:active,
*:focus,
*:focus-visible,
*:focus-within,
*:target,
*:visited {
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

*::-webkit-scrollbar {
    display: none;
}

html {
  scroll-behavior: smooth;
}

a:link {
    text-decoration: none;
    color: #000000;
}

a:visited {
    text-decoration: none;
    color: #000000;
}

a:hover {
    text-decoration: none;
}

a:active {
    text-decoration: none;
}

:root {
    --gradient-content: linear-gradient(270deg, #91e4e4cf 0%, #a58be4c7 100%);
    --gradient-cover: linear-gradient(to left bottom, #5ffbf1b0, #46eefacf, #41dfffcf, #52cffec9, #69bff8cc, #79b3f4cf, #8aa7ecbf, #9a9ae1a8, #aa8fd896, #ba83ca94, #c777b978, #d16ba585);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
}

body.mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dataWrap {
    margin-top: 20px;
    text-align: left;
    border: 1px solid #ccc;
    padding: 10px;
}

.numCode,
.guestN,
.partner,
.guestType,
.hash {
    margin-bottom: 5px;
}

.shareBtn {
    margin-top: 10px;
}

#search {
    margin-bottom: 10px;
}

.ucapanContainer {
    margin-top: 20px;
}

.kirimanUcapan {
    margin-top: 10px;
}

.tombol {
    margin-top: 10px;
}

.garis {
    width: 100%;
    height: 1px;
    background-color: black;
    margin: 20px 0 20px 0;
}

/* style for confirm */
/* Styles for modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

.popupu {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/************** Main Thumbnail */
.coupleImg {
    position: relative;
    display: inline-block;
    width: 170px;
    height: 180px;
    background-image: url(/assets/placeholders/wedding-model-1.jpg);
    background-size: cover;
    background-position-y: -15px;
    background-position-x: -2px;
    border-radius: 50%;
    border: 1.7px solid #326417;
}

.coupleImg::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url(/assets/placeholders/flower-decoration-2.png);
    background-size: 100% auto;
    background-repeat: no-repeat;
}

.coupleImg::before {
    top: 32%;
    left: -18%;
}

.coupleImg::after {
    top: 15%;
    left: 36%;
    transform: rotate(269deg);
}

div#cover div#couple.coverGroup div.coupleName {
    position: absolute;
    font-family: 'Ms Madi';
    font-size: 2rem;
    width: 300px;
    top: 100%;
    color: #000000;
    margin: -12px 0 0 -20px;
    text-shadow: 0px 0px 1px #000000;
    transform: skew(-3deg, -10deg);
    transition: font-size 1s ease-out, text-shadow 1s ease-out;
    z-index: 1;
}

div#cover.paperIn div#couple.coverGroup div.coupleName:hover {
    font-size: calc(30px + 1vw);
    font-weight: bold;
    text-shadow: -1px 2px 2px #74d13f;
    transition: font-size 1s ease-out, text-shadow 1s ease-out;
}

div#wrap.wrapper {
    position: absolute;
    width: 100dvw;
    min-width: 320px;
    height: 100dvh;
    margin: 0;
    overflow: hidden;
    background-color: #ffffff;
}

div#wrap.welcome {
    position: relative;
    width: 100dvw;
    min-width: 320px;
    height: auto;
    margin: 0;
    overflow: hidden;
    background-color: #ffffff;
}

div#wrap.welcome .bgSlider {
    position: absolute;
    top: 0;
    width: 100dvw;
    height: 100dvh;
    background-image: url(/assets/placeholders/wedding-model-4.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform 1s ease-in-out;
}

.blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(5px);
    /* Efek blur pada lapisan latar belakang */
}

.innerImg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    width: 90%;
    height: 85%;
    background-size: cover;
    background-repeat: no-repeat;
    border: 1px solid #673ab770;
    border-radius: 100px;
    animation: innerImage 10s ease 1s 1 alternate forwards;
}

@keyframes innerImage {
    0% {
        opacity: 1;
        transform: translate(-50%, -20%);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -55%);
    }
}

#bgOdd.active,
#bgEven.active {
    animation: backgroundActive 6s ease 0s 1 forwards;
}

#bgOdd.inactive,
#bgEven.inactive {
    animation: backgroundInActive 6s ease 0s 1 forwards;
}

@keyframes backgroundActive {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes backgroundInActive {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-100%);
    }
}

#wrap.wrapper div#cover.paperIn {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 15% 10% 40% 35%;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    position: relative;
    width: 100dvw;
    height: 100dvh;
    border: 1px solid #005183;
    border-bottom: 0;
    padding: 50px 20px 20px 20px;
    font-family: 'AR One Sans';
    background-image: url(/assets/placeholders/super-background-5.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position-y: center;
    background-color: #ffffff;
    overflow: hidden;
    justify-content: center;
    justify-items: center;
    align-items: center;
}

#wrap.wrapper div#cover.paperIn::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: var(--gradient-cover);
    margin: 0;
    padding: 0;
    background-color: transparent;
    border-radius: 50px 50px 0 0;
}

#wrap.welcome div#cover.paperOut {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 15% 10% 40% 35%;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    position: relative;
    width: 100dvw;
    height: 100dvh;
    opacity: 1;
    border: 1px solid #005183;
    border-bottom: 0;
    padding: 50px 20px 20px 20px;
    font-family: 'AR One Sans';
    background-image: url(/assets/placeholders/super-background-5.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position-y: center;
    background-color: #ffffff;
    overflow: hidden;
    justify-content: center;
    justify-items: center;
    align-items: center;
    border-top: 1px solid #000000;
    transform: translateY(-105%);
    animation: HomeWrapperOut 5s ease 0s 1 alternate forwards;
}

#wrap.welcome div#cover.paperOut::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: var(--gradient-cover);
    margin: 0;
    padding: 0;
    background-color: transparent;
    border-radius: 50px 50px 0 0;
}

@keyframes HomeWrapperOut {
    0% {
        transform: translateY(0%);
        opacity: 1;
    }

    100% {
        transform: translateY(-105%);
        opacity: 1;
    }
}

#wrap div#cover .coverGroup {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    width: 80%;
    line-height: 20px;
    z-index: 1;
}

#wrap #cover div#title {
    grid-area: 1 / 1 / 2 / 2;
    width: 90%;
    line-height: 1.5;
}

#wrap #cover #title.coverGroup div#heading {
    font-size: calc(20px + 2vw);
    letter-spacing: 0.1px;
    font-family: 'Niconne';
    font-weight: bold;
}

#wrap #cover #title.coverGroup div#subhead {
    font-family: 'AR One Sans';
    font-size: 13px;
    line-height: 1.3;
    letter-spacing: -0.5px;
    font-weight: lighter;
}

div#wTime.coverGroup div.wDate {
    font-family: 'Langar';
    font-size: 1em;
}

div#wSubdate {
    font-size: 10px;
    font-style: italic;
    line-height: 1.5;
}

div#wTime {
    grid-area: 2 / 1 / 3 / 2;
    margin-top: -10px;
}

div#couple {
    grid-area: 3 / 1 / 4 / 2;
    margin: -10px 0 20px 0;
}

div#guest {
    grid-area: 4 / 1 / 5 / 2;
}

div#invLabel {
    font-family: 'AR One Sans';
    font-size: calc(7px + 1vw);
    line-height: 1.3;
    letter-spacing: -0.5px;
    font-weight: lighter;
}

div#invName {
    display: flex;
    position: relative;
    width: 60%;
    max-width: 210px;
    height: 65px;
    background-color: whitesmoke;
    border: 1px solid black;
    border-radius: 20px;
    align-items: center;
    justify-content: center;
    margin: 5px 0 3px 0;
}

div#invName .guestName span {
    font-family: 'Neucha';
    font-size: 14px;
    line-height: 1;
}

div#invSub {
    /*font-family: 'Niconne';*/
    font-size: calc(6px + 1vw);
}

.guestCat,
div#invCode {
    font-style: italic;
    font-size: 10px;
    line-height: 1.3;
    letter-spacing: -0.5px;
    font-weight: lighter;
    perspective: 1000px;
    overflow: hidden;
}

.guestInfo {
    transform: translateY(-1px);
}

div.flipFront.err404 {
    color: red;
    font-size: calc(7px + 1vw);
    line-height: 1;
}

/*.flip-card {}*/

div#invCard {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.flipFront,
.flipBack {
    position: absolute;
    width: 95%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.flipBack {
    overflow: scroll;
    transform: rotateY(180deg);
}

div#invName.sticker.flipped div#invCard {
    transform: rotateY(180deg);
}

div#decor .decorRight {
    position: absolute;
    width: calc(300px + 15vw);
    min-width: 300px;
    height: calc(260px + 10vw);
    min-height: 260px;
    background-image: url(/assets/placeholders/flower-decoration-5.png);
    background-repeat: no-repeat;
    background-size: cover;
    transform: matrix(1, 0, 0, 1, 77, -31) rotate3d(0, -99, -3, 20deg);
    top: 0;
    right: 0;
    animation: topFloristRight 20s ease 0s infinite alternate forwards;
}

@keyframes topFloristRight {
    0% {
        transform: translate(0) matrix(1, 0, 0, 1, 77, -31) rotate3d(0, -99, -3, 20deg);
    }

    20% {
        transform: translate(-2px, 2px) matrix(1, 0, 0, 1, 77, -31) rotate3d(0, -99, -3, 20deg);
    }

    40% {
        transform: translate(-2px, -2px) matrix(1, 0, 0, 1, 77, -31) rotate3d(0, -99, -3, 20deg);
    }

    60% {
        transform: translate(2px, 2px) matrix(1, 0, 0, 1, 77, -31) rotate3d(0, -99, -3, 20deg);
    }

    80% {
        transform: translate(2px, -2px) matrix(1, 0, 0, 1, 77, -31) rotate3d(0, -99, -3, 20deg);
    }

    100% {
        transform: translate(0) matrix(1, 0, 0, 1, 77, -31) rotate3d(0, -99, -3, 20deg);
    }
}

div#decor .decorLeft {
    content: "";
    position: absolute;
    width: calc(300px + 15vw);
    min-width: 300px;
    height: calc(260px + 10vw);
    min-height: 260px;
    background-image: url(/assets/placeholders/flower-decoration-5.png);
    background-repeat: no-repeat;
    background-size: cover;
    transform: matrix(-1, 0, 0, 1, -77, -31) rotate3d(0, -99, -3, 20deg);
    top: 0;
    left: 0;
    animation: topFloristLeft 15s ease 0s infinite alternate forwards;
}

@keyframes topFloristLeft {
    0% {
        transform: translate(0) matrix(-1, 0, 0, 1, -77, -31) rotate3d(0, -99, -3, 20deg);
    }

    20% {
        transform: translate(-2px, 2px) matrix(-1, 0, 0, 1, -77, -31) rotate3d(0, -99, -3, 20deg);
    }

    40% {
        transform: translate(-2px, -2px) matrix(-1, 0, 0, 1, -77, -31) rotate3d(0, -99, -3, 20deg);
    }

    60% {
        transform: translate(2px, 2px) matrix(-1, 0, 0, 1, -77, -31) rotate3d(0, -99, -3, 20deg);
    }

    80% {
        transform: translate(2px, -2px) matrix(-1, 0, 0, 1, -77, -31) rotate3d(0, -99, -3, 20deg);
    }

    100% {
        transform: translate(0) matrix(-1, 0, 0, 1, -77, -31) rotate3d(0, -99, -3, 20deg);
    }
}

div#wrap.welcome div#subCover.paperOut,
div#wrap.wrapper div#subCover.paperOut,
div#wrap.wrapper div#subCover.paperIn {
    display: none;
}

div#wrap.welcome div#subCover.paperIn {
    display: flex;
    position: relative;
    align-items: center;
    width: 100%;
    height: auto;
    animation: content-wrapper-paper-in 5s ease 0s 1 alternate forwards;
    flex-direction: column;
    flex-wrap: nowrap;
}

@keyframes content-wrapper-paper-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

div#subCover.paperIn.disabled {
    display: none !important;
    pointer-events: none;
    overflow: hidden;
}

div#subCover.paperIn div#bioContent,
div#subCover.paperIn div#mapContent,
div#subCover.paperIn div#envelope,
div#subCover.paperIn div#storyContent,
div#subCover.paperIn div#galleryContent,
div#subCover.paperIn div#rsvpContent,
div#subCover.paperIn div#wishes,
div#subCover.paperIn div#footer {
    opacity: 1;
}

div#subCover.paperIn div#cCover {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    background-color: transparent;
    background-image: none;
    transform: translateY(-100%);
    z-index: 1;
}

div#subCover.paperIn div#cCover:not(#inner::before, #inner::after) {
    overflow: hidden;
}

div#inner {
    position: absolute;
    width: 100%;
    height: 180px;
    bottom: 0;
    overflow: hidden;
    border-top: 2px solid #0000ff36;
    border-radius: 57% 57% 0 0;
    background: var(--gradient-content);
    padding: 10px;
}

div#cTitle {
    font-size: 20px;
    font-family: Oregano;
}

div#hbDecor {
    position: relative;
    font-size: 5rem;
    transform: translateY(-20px);
    animation: nameHeartBeat 15s ease-in-out infinite;
}

@keyframes nameHeartBeat {

    0%,
    100% {
        transform: scale(1) translateY(-20px);
    }

    10% {
        transform: scale(0.91) translateY(-20px);
    }

    20% {
        transform: scale(0.98) translateY(-20px);
    }

    30% {
        transform: scale(0.87) translateY(-20px);
    }

    40% {
        transform: scale(1) translateY(-20px);
    }

    50% {
        transform: scale(0.91) translateY(-20px);
    }

    60% {
        transform: scale(0.98) translateY(-20px);
    }

    70% {
        transform: scale(0.87) translateY(-20px);
    }

    80% {
        transform: scale(1) translateY(-20px);
    }

    90% {
        transform: scale(0.91) translateY(-20px);
    }
}


div#cCover.section div.coupleName {
    position: relative;
    font-family: 'Corinthia';
    font-size: 3rem;
    text-shadow: 0px 0px 1px #000000;
    transform: translateY(-95px);
    z-index: 1;
}

.timerWrap {
    display: flex;
    transform: translateY(-80px);
    flex-direction: row;
    justify-content: space-between;
}

div#timer {
    position: relative;
    display: inline-flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    column-gap: 10px;
    width: 60%;
    max-width: 280px;
    min-width: 100px;
}

.countItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 8px;
    background-color: #673ab761;
    border: 1px solid #3F51B5;
    border-radius: 10px;
    padding: 2px;
    overflow: hidden;
    width: 50px;
    height: 44px;
    transition: background-color 1s;
    justify-content: center;
}

.countItem:hover {
    background-color: #2196f378;
    transition: background-color 1s;
}

.num {
    font-size: 2em;
    font-weight: 700;
    display: inline-block;
    position: relative;
}

.num.secs {
    animation: digitCountdown 1s ease-out 0s infinite alternate forwards;
}

@keyframes digitCountdown {
    0% {
        opacity: 1;
        transform: translateY(0);
        color: #ed3698;
    }

    100% {
        opacity: 0;
        transform: translateY(50px);
        color: #000000;
    }
}

.label {
    font-size: 1.2em;
}

div#calBtn {
    width: 45px;
    height: 45px;
    background: transparent url(/assets/icons/calendar.gif) center center / cover no-repeat;
    border: 1px solid black;
    border-radius: 50%;
    cursor: pointer;
}

div#sound {
    width: 45px;
    height: 45px;
    background: transparent url(/assets/icons/disc.gif) center center / cover no-repeat;
    border: 1px solid black;
    border-radius: 50%;
    cursor: pointer;
}

.section:nth-child(odd) {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100dvw;
    height: 100dvh;
    background: var(--gradient-content);
    background-color: transparent;
    transform: translateY(-100%);
    z-index: 2;
}

.section.animate:nth-child(odd):not(:nth-child(1))::before {
    content: "";
    display: block;
    position: absolute;
    width: 95%;
    height: 65%;
    opacity: 1;
    top: -167px;
    left: 255px;
    transform: rotate(310deg);
    background-image: url(/assets/placeholders/flower-decoration-18.png);
    background-repeat: no-repeat;
    background-size: cover;
    filter: drop-shadow(-8px 30px 17px #00000018);
    pointer-events: none;
    z-index: 2;
}

.section.animate.show:nth-child(odd):not(:nth-child(1))::before {
    animation: content-container-odd-before 15s ease 0s infinite normal forwards;
}

@keyframes content-container-odd-before {
    0% {
        opacity: 1;
        transform: translateX(20px) translateY(10px) rotate(310deg);
        filter: drop-shadow(-8px 30px 17px #00000018);
    }

    50% {
        opacity: 1;
        transform: translateX(0) translateY(0px) rotate(310deg);
        filter: drop-shadow(-8px 30px 17px #00000018);
    }

    100% {
        opacity: 1;
        transform: translateX(20px) translateY(10px) rotate(310deg);
        filter: drop-shadow(-8px 30px 17px #00000018);
    }
}

.section:nth-child(2)::after {
    border-radius: 50px 50px 0 0;
    border-top: 1px solid black;
    margin-top: 40px;
}

.section:nth-child(odd):not(:nth-child(1))::after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    background-image: url(/assets/placeholders/super-background-13.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    box-shadow: 3px 1px 20px 3px #00000085;
}

.section:nth-child(even) {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100dvw;
    height: 100dvh;
    background: var(--gradient-content);
    background-color: transparent;
    transform: translateY(-100%);
    justify-content: space-evenly;
    z-index: 1;
}

.section.animate:nth-child(even):not(:nth-child(1))::before {
    content: "";
    display: block;
    position: absolute;
    width: 95%;
    height: 65%;
    opacity: 1;
    top: -65px;
    right: 240px;
    transform: rotate(130deg);
    background-image: url(/assets/placeholders/flower-decoration-18.png);
    background-repeat: no-repeat;
    background-size: cover;
    pointer-events: none;
    z-index: 1;
}

.section.animate.show:nth-child(even):not(:nth-child(1))::before {
    animation: content-container-even-before 3s ease 0s 1 normal forwards;
}

@keyframes content-container-even-before {
    0% {
        opacity: 1;
        transform: translateX(-50px) rotate(130deg);
    }

    100% {
        opacity: 1;
        transform: translateX(0) rotate(130deg);
    }
}

.section:nth-child(even):not(:nth-child(1))::after {
    content: "";
    display: block;
    position: absolute;
    width: 95%;
    height: 100%;
    border-left: 1px solid black;
    border-right: 1px solid black;
    background-color: #ffffff;
    background-image: url(/assets/placeholders/super-background-1.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}


div#bioContent {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 5% 10% 30% 30% auto;
    grid-column-gap: 0px;
    grid-row-gap: 12px;
    justify-content: center;
    justify-items: center;
    padding: 7% 5%;
}

#hTitle {
    grid-area: 1 / 1 / 2 / 3;
    font-family: 'Birthstone';
    font-size: 25px;
    font-weight: bold;
    text-decoration: underline wavy;
    text-shadow: 1px 0px 10px #ffffff, 0px 1px 5px #ffffff;
    z-index: 2;
}

#hContent {
    grid-area: 2 / 1 / 3 / 3;
    font-family: 'Neucha';
    font-size: 14px;
    white-space: pre-line;
    word-break: break-word;
    letter-spacing: 0px;
    text-shadow: 1px 0px 10px #ffffff, 0px 1px 5px #ffffff;
    z-index: 1;
}

#hContent::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 30%;
    top: 3%;
    left: 0;
    opacity: 0.5;
    background-image: url(/assets/placeholders/arch-decoration-4.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

#gInfo {
    grid-area: 3 / 1 / 4 / 2;
}

#bInfo {
    grid-area: 4 / 2 / 5 / 3;
}

#hFooter {
    display: flex;
    grid-area: 5 / 1 / 6 / 3;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 25px;
}

/* ini kode grid untuk media screen kecil, Jangan dihapus
div#bioContent {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 5% 10% 37.5% 37.5% 10%;
    grid-column-gap: 0px;
    grid-row-gap: 10px;
    justify-content: center;
    justify-items: center;
    padding: 10%;
}

#pragraf-header { grid-area: 1 / 1 / 2 / 3; }
#hContent { grid-area: 2 / 1 / 3 / 3; }
#gMedia { grid-area: 3 / 1 / 4 / 3; }
#bMedia { grid-area: 4 / 1 / 5 / 3; }
#quote { grid-area: 5 / 1 / 6 / 3; }
*/

div#gMedia {
    display: flex;
    grid-area: 3 / 2 / 4 / 3;
    width: 100%;
    max-width: 165px;
    height: 100%;
    background-color: transparent;
    flex-direction: row-reverse;
    border: 3px solid #0000000f;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.5s ease;
    z-index: 1;
}

div#bMedia {
    display: flex;
    grid-area: 4 / 1 / 5 / 2;
    width: 100%;
    max-width: 165px;
    height: 100%;
    background-color: transparent;
    flex-direction: row;
    border: 3px solid #0000000f;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: no ne;
    transition: all 0.5s ease;
    z-index: 1;
}

div#gMedia.animate {
    opacity: 0;
    transform: translateX(-250px) rotate(-200deg);
}

div#gMedia.animate.show {
    animation: groomPhoto 2s ease 0s 1 alternate forwards;
}

@keyframes groomPhoto {
    0% {
        opacity: 0;
        transform: translateX(-250px) rotate(-200deg);
        box-shadow: -12px 18px 13px 0px #0000003d;
    }

    100% {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
        box-shadow: 6px 6px 5px 0px #0000003b
    }
}

div#bMedia.animate {
    opacity: 0;
    transform: translateX(250px) rotate(200deg);
}

div#bMedia.animate.show {
    animation: bridePhoto 2s ease 0s 1 alternate forwards;
}

@keyframes bridePhoto {
    0% {
        opacity: 0;
        transform: translateX(250px) rotate(200deg);
        box-shadow: -12px 18px 13px 0px #0000003d;
    }

    100% {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
        box-shadow: 6px 6px 5px 0px #0000003b
    }
}

div#gImg {
    width: 100%;
    height: 100%;
    background-image: url(/assets/placeholders/wedding-model-6.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #ffffff;
    transition: all 0.5s ease;
}

div#bImg {
    width: 100%;
    height: 100%;
    background-image: url(/assets/placeholders/wedding-model-7.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #ffffff;
    transition: all 0.5s ease;
}

#gContact,
#bContact {
    display: flex;
    width: 0;
    height: 100%;
    overflow: hidden;
    white-space: nowrap;
    writing-mode: vertical-lr;
    text-orientation: sideways;
    transform: rotate(180deg);
    align-items: center;
    justify-content: center;
    flex-direction: row;
    background-color: #dfe7ea;
    transition: width 0.5s ease;
    font-family: 'Neucha';
    font-size: 20px;
}

#gMedia:hover #gImg,
#bMedia:hover #bImg {
    width: 80%;
}

#gMedia:hover #gContact,
#bMedia:hover #bContact {
    width: 20%;
}

div#gNick,
div#bNick {
    position: absolute;
    font-family: 'Corinthia';
    font-size: 3rem;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    text-shadow: -1px 1px 3px #ffffff;
}

#gInfo,
#bInfo {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url(/assets/placeholders/arch-decoration-4.png);
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center;
    gap: 1rem;
    z-index: 1;
}

div#gName,
div#bName {
    font-family: 'Margarine';
    transform: scaleY(2.1);
    font-size: 12px;
    white-space: nowrap;
}

div#gName span,
div#bride-fullnam span {
    font-size: 10px;
    transform: scaleY(0);
}

div#gDetail,
div#bDetail {
    font-family: 'Oregano';
    white-space: pre-line;
    word-break: break-word;
    text-shadow: 1px 0px 10px #ffffff, 0px 1px 5px #ffffff;
}

div#quote.animate {
    position: relative;
    opacity: 0;
    width: 90%;
    height: 100%;
    font-family: 'Neucha';
    font-size: 13px;
    white-space: normal;
    word-break: break-word;
    text-shadow: 1px 0px 10px #ffffff, 0px 1px 5px #ffffff;
    z-index: 1;
}

div#mapContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: visible;
}

div#cCont {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 20% 40% 40%;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    justify-items: center;
    width: 100%;
    height: 100%;
    overflow-y: hidden;
    z-index: 1;
}

#cBg.animate {
    grid-area: 1 / 1 / 2 / 2;
    width: 100%;
    height: 100%;
    border-bottom: 1px solid #2196f359;
    background-image: url(/assets/placeholders/street-map-simulator-1.gif);
    background-repeat: repeat;
    background-size: 115% auto;
    background-position: -35px -126px;
}

#akad.animate {
    position: relative;
    display: flex;
    grid-area: 2 / 1 / 3 / 2;
    width: 100%;
    background-color: #ffffff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url(/assets/placeholders/arch-decoration-4.png);
    background-repeat: no-repeat;
    background-size: 80%;
    background-position: right center;
    padding: 4% 10%;
}

#akad.animate.show {
    animation: akadCeremony 2s ease 0s 1 normal forwards;
}

@keyframes akadCeremony {
    0% {
        animation-timing-function: ease-in;
        opacity: 1;
        transform: translateY(-100px);
    }

    38% {
        animation-timing-function: ease-out;
        opacity: 1;
        transform: translateY(0);
    }

    55% {
        animation-timing-function: ease-in;
        transform: translateY(-65px);
    }

    72% {
        animation-timing-function: ease-out;
        transform: translateY(0);
    }

    81% {
        animation-timing-function: ease-in;
        transform: translateY(-28px);
    }

    90% {
        animation-timing-function: ease-out;
        transform: translateY(0);
    }

    95% {
        animation-timing-function: ease-in;
        transform: translateY(-8px);
    }

    100% {
        animation-timing-function: ease-out;
        transform: translateY(0);
    }
}

#akad.animate::before {
    content: "";
    position: absolute;
    width: 80%;
    height: 90%;
    border: 1px solid #673AB7;
    border-radius: 15px;
    z-index: -1;
}

#resepsi.animate {
    position: relative;
    display: flex;
    grid-area: 3 / 1 / 4 / 2;
    width: 100%;
    background-color: #ffffffc4;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    background-image: url(/assets/placeholders/arch-decoration-4.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: -110px center;
}

#resepsi.animate.show {
    animation: resepsi-ceremony 2s ease 0s 1 normal forwards;
}

@keyframes resepsi-ceremony {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

#resepsi.animate::before {
    content: "";
    position: absolute;
    width: 80%;
    height: 90%;
    border: 1px solid #673AB7;
    border-radius: 15px;
    z-index: 1;
}

div#akadTitle,
div#resepsiTitle {
    font-family: 'Alex Brush';
    font-size: 2rem;
    font-weight: bold;
}

div#akadDate,
div#resepsiDate {
    font-family: 'KoHo';
    font-size: 1rem;
}

div#akadTime span,
div#resepsiTime span {
    font-family: 'Aldrich';
    font-size: 1rem;
}

div#akadTime span:nth-child(2),
div#resepsiTime span:nth-child(2) {
    font-family: 'Aldrich';
    font-size: 2rem;
}

div#akadLoc,
div#resepsiLoc {
    font-family: 'Cairo Play';
}

div#akadMap,
div#resepsiMap {
    cursor: pointer;
}

div#quote.animate.show {
    animation: footerQuote 2s ease 0s 1 normal forwards;
}

@keyframes footerQuote {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


div#sInner {
    display: flex;
    width: 100%;
    height: 100%;
    z-index: 1;
    flex-direction: column;
    align-items: center;
    background-color: #f0f8ffb0;
}

div#sHeader {
    width: 95%;
    height: 30%;
    max-height: 250px;
    background-image: url(/assets/placeholders/stopmotion-love-story-01.gif);
    background-repeat: no-repeat;
    background-size: cover;
    background-position-x: center;
    background-position-y: calc(-20px + -2vh);
}

div#sTitle {
    font-family: 'Alex Brush';
    font-size: 2rem;
    font-weight: bold;
}

#timeline {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 95%;
    background-color: #f8f8f8d4;
    padding: 0 20px;
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    height: 100%;
    justify-content: space-around;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 100%;
    background: #b1a6f5;
    z-index: 1;
}

.tItem {
    position: relative;
    width: 100%;
    text-align: center;
    z-index: 1;
}

.tItem::before {
    content: attr(data-year);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    font-weight: bold;
    color: #aca2f4;
}

.tItem::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #aea4f4;
    z-index: 3;
}

.tItem-content {
    position: relative;
    padding: 5px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(14px);
    line-height: 1;
    z-index: 3;
}

div#t2-content.tItem-content::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 60px;
    top: -56px;
    right: 0px;
    background-image: url(/assets/placeholders/arch-decoration-5.png);
    background-repeat: no-repeat;
    background-size: 100% auto;
    animation: couple-bird-animation 25s linear 0s infinite alternate forwards;
}

@keyframes couple-bird-animation {

    0%,
    100% {
        transform: rotate(0deg);
        transform-origin: 50% 100%;
    }

    10% {
        transform: rotate(1deg);
    }

    20%,
    40%,
    60% {
        transform: rotate(-1deg);
    }

    30%,
    50%,
    70% {
        transform: rotate(1deg);
    }

    80% {
        transform: rotate(-1deg);
    }

    90% {
        transform: rotate(1deg);
    }
}

.iTitle {
    font-family: 'Licorice';
    font-size: 2rem;
    font-weight: bold;
    color: #6f0082;
    text-transform: capitalize;
}

.iSub {
    font-family: 'Neucha';
    font-size: 15px;
    color: #777;
}

.iText {
    font-family: 'AR One Sans';
    font-size: 12px;
    color: #000000;
    line-height: 1.5;
}

/* Gallery Style */
div#gInner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10%;
    overflow: hidden;
    background-color: #f5faff;
    background-image: url(/assets/placeholders/arch-decoration-6.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

div#gTitle {
    display: flex;
    font-family: 'Alex Brush';
    font-size: 2rem;
    font-weight: bold;
    position: absolute;
    background-color: #f0f8ffad;
    top: 0;
    width: 100%;
    height: 10%;
    z-index: 2;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

div#gWrap.animate {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    transform: translate(140px, -110px);
}

div#gWrap.animate.show {
    transform: translate(0px, 220px) scale(1.4);
    animation: galerry-wrapper 10s ease 0s 1 alternate forwards;
}

@keyframes galerry-wrapper {
    0% {
        opacity: 1;
        transform: translate(140px, -110px);
    }

    100% {
        opacity: 1;
        transform: translate(0px, 220px) scale(1.4);
    }
}

.imgWrap {
    -webkit-clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
    clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
    padding: 5px;
    background: linear-gradient(grey, lightgrey);
    max-height: 250px;
    max-width: 250px;
    transition: transform 1s;
    position: absolute;
    cursor: pointer;
    box-sizing: content-box;
}

.imgWrap:hover {
    transform: translate(calc(50vw - 50%), calc(25vh - 50%)) scale(2);
    top: 0 !important;
    left: 0 !important;
    width: auto;
    height: 150px;
    clip-path: none;
    -webkit-clip-path: none;
    transition: all 1s;
    border: 1px solid #5c5c5c;
    border-radius: 4px 4px 2px 2px;
    z-index: 10;
    overflow: hidden;
}

.imgWrap:before {
    content: '';
    position: absolute;
    opacity: 0.5;
    width: 500px;
    height: 50px;
    background: white;
    top: 0;
    left: 0;
    z-index: 1;
    transform: rotate(45deg);
    transition: transform 0.5s;
}

.imgWrap:hover:before {
    transform: translate(-200px, 500%) rotate(45deg);
    /*perlu di setting*/
    transition: transform 0.5s;
}

.imgWrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shadow {
    position: absolute;
    top: 500px;
    left: 100px;
    width: 500px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(#805d78, rgba(0, 0, 0, 0) 70%);
}

.imgWrap {
    width: 150px;
    height: 150px;
}

.imgWrap:nth-child(1) {
    top: 0;
    left: 0;
}

.imgWrap:nth-child(2) {
    top: 0;
    left: 145px;
}

.imgWrap:nth-child(3) {
    top: 0;
    left: 290px;
}

.imgWrap:nth-child(4) {
    top: 121px;
    left: 73px;
}

.imgWrap:nth-child(5) {
    top: 121px;
    left: 218px;
}

.imgWrap:nth-child(6) {
    top: 242px;
    left: 290px;
}

.imgWrap:nth-child(7) {
    top: 121px;
    left: -72px;
}

.imgWrap:nth-child(8) {
    top: 242px;
    left: 0px;
}

.imgWrap:nth-child(9) {
    top: 242px;
    left: 145px;
}

.imgWrap:nth-child(10) {
    top: 363px;
    left: 72px;
}

.imgWrap:nth-child(11) {
    top: 363px;
    left: 217px;
}

.imgWrap:nth-child(12) {
    top: 484px;
    left: 0px;
}

.imgWrap:nth-child(13) {
    top: 484px;
    left: 144px;
}

.imgWrap:nth-child(14) {
    top: 363px;
    left: 362px;
}

.imgWrap:nth-child(15) {
    top: 484px;
    left: 289px;
}

.imgWrap:nth-child(16) {
    top: -121px;
    left: 217px;
}

.imgWrap:nth-child(17) {
    top: -121px;
    left: 73px;
}

.imgWrap:nth-child(18) {
    top: -121px;
    left: -72px;
}

.imgWrap:nth-child(19) {
    top: 121px;
    left: 363px;
}

.imgWrap:nth-child(20) {
    top: 363px;
    left: -73px;
}

/* RSVP */
.rsvpWrap {
    position: absolute;
    display: flex;
    width: 100%;
    height: 100%;
    background-image: url(/assets/placeholders/arch-decoration-13.png);
    background-repeat: no-repeat;
    background-size: 80% auto;
    background-position: 50% 120%;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.rsvpWrap button {
    margin: 5px;
    z-index: 2;
}

.popupx {
    display: none;
    position: fixed;
    width: 95%;
    height: 50%;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border: 1px solid #ccc;
    z-index: 3;
}

.overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #98d2ff12;
}

div#rInner {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    background-color: #f0f8ffb0;
    background-image: url(/assets/placeholders/super-background-19.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 65% 90%;
    z-index: 1;
}

#icons {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.icon {
    position: absolute;
    font-size: 60px;
    opacity: 0;
    animation: bubble-icon 2s forwards;
}

.happy {
    color: green;
}

.sad {
    color: red;
}

@keyframes bubble-icon {
    0% {
        bottom: 0;
        opacity: 1;
    }

    100% {
        bottom: 100px;
        opacity: 0;
    }
}

/* CSS untuk tampilan popup */
div#popup.popup.rsvpPop {
    position: absolute;
    display: none;
    top: 41%;
    left: 50%;
    width: 75%;
    max-width: 500px;
    height: auto;
    transform: translate(-50%, -50%);
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px #00000033;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    row-gap: 10px;
    overflow: hidden;
    animation: popupFadeIn 0.3s ease-in-out;
    z-index: 2;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

div#popup.popup.rsvpPop h3#pTitle {
    font-family: 'Margarine';
    margin-top: 0;
    font-size: 20px;
    color: #333333;
    pointer-events: none;
}

div#popup.popup.rsvpPop p#pContent {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 15px;
    margin-bottom: 15px;
    pointer-events: none;
}

div#popup.popup.rsvpPop p#pContent p {
    font-family: 'AR One Sans';
    font-size: 12px;
    color: #000000;
    line-height: 1.5;
    pointer-events: none;
}

div#errPop,
div#cfmPop,
div#errPop p#errMsg {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 12px;
    z-index: 3;
}

div#errPop h3#errTitle,
div#cfmPop h3#cfmTitle {
    font-family: 'Margarine';
    font-size: 20px;
    color: #333333;
    pointer-events: none;
}

div#errPop p#errMsg,
div#cfmPop p#cfmMsg {
    font-family: 'AR One Sans';
    font-size: 13px;
    color: #000000;
    line-height: 1.4;
    pointer-events: none;
}

p#cfmMsg p:nth-child(1) {
    margin-top: 5px;
}

div#errPop button#btnOk,
div#errPop button#btnGot,
div#cfmBtns button#cfmYes,
div#cfmBtns button#cfmNo {
    background-color: #2196f3;
    border: none;
    color: white;
    padding: 12px 18px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 8px;
}

div#cfmBtns button#cfmNo {
    background-color: #ef5350;
}

div#errPop button#btnOk:hover,
div#cfmBtns button#cfmYes:hover,
div#cfmBtns button#cfmNo:hover {
    background-color: #42a5f5;
}

#pContent p:nth-child(3) {
    background-color: #673ab7a6;
    color: white !important;
    padding: 2px 5px 5px 5px;
    border-radius: 10px;
    pointer-events: none;
}

span#liveJumlahRekan {
    font-family: 'Margarine';
    font-size: 15px;
    color: #ffffff;
    padding: 0 1px;
}

div#popup.popup.rsvpPop span#close {
    position: absolute;
    cursor: pointer;
    top: 10px;
    right: 15px;
    color: #F44336;
    font-size: 17px;
}

div#popup.popup.rsvpPop input[type="number"] {
    width: calc(100% - 80px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
}

input#guests::placeholder {
    color: #000000;
}

button#confirm {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
}

button#confirm:hover {
    background-color: #0056b3;
}

#glass {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff73;
    backdrop-filter: blur(10px);
    z-index: -1;
}

div#thanks {
    display: none;
    font-family: 'Corinthia';
    text-shadow: 2px 3px 4px #000000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 0.9;
    font-weight: bold;
    font-size: 3rem;
    z-index: 3;
}

div#thanks span {
    color: #ffffff;
}

div#rCont button {
    position: relative;
    padding: 12px 15px;
    margin: 10px;
    font-size: 15px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
    text-transform: capitalize;
    transition: all 0.4s ease;
}

div#rCont button::before,
div#rCont button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
    z-index: -1;
}

div#rCont button::before {
    background-color: #007bff99;
    transform: scale(0);
    transform-origin: center;
}

div#rCont button::after {
    background-color: #007bffcc;
    transform: scale(0);
    transform-origin: center;
}

div#rCont button:hover::before {
    transform: scale(1);
}

div#rCont button:hover::after {
    transform: scale(1.1);
}

div#rCont button#btnNo {
    background-color: #dc3545;
}

div#rCont button#btnNo::before {
    background-color: #dc354599;
}

div#rCont button#btnNo::after {
    background-color: #dc3545cc;
}

/* Bagian Amplop Digital */
div#envelope {
    overflow: hidden;
}

div#eInner {
    position: absolute;
    display: flex;
    width: 100%;
    height: 100%;
    z-index: 1;
    flex-direction: column;
    align-items: center;
    background-image: url();
    background-color: aliceblue;
    justify-content: flex-end;
}

#eBody {
    width: 300px;
    height: 270px;
    position: relative;
    perspective: 1000px;
    filter: drop-shadow(4px 5px 8px #00000061);
}

#eBody::before {
    content: "";
    width: 100%;
    height: 170px;
    position: absolute;
    background-color: #e6e7e8;
    bottom: 0;
    left: 0;
    z-index: 2;
}

#eBody #eCover.coverBot {
    /*Tutup amplop bawah masih tertutup*/
    width: 100%;
    height: 100px;
    position: absolute;
    top: 100px;
    left: 0;
    background-image: url(/assets/placeholders/arch-decoration-15.png);
    background-repeat: no-repeat;
    background-size: 100% auto;
    transform: rotateX(0deg);
    transition: all 2s ease;
    /*B*/
    transition-delay: 2700ms;
    /*A*/
    transform-origin: top;
    transform-style: preserve-3d;
    filter: drop-shadow(0px 12px 8px #0000003e);
    z-index: 4;
}

#eBody.open #eCover.coverBot {
    /*Tutup amplop bawah sudah terbuka*/
    transform: rotateX(88deg);
    transition: all 2s ease;
    filter: none;
    z-index: 4;
}

#eBody #eCover.coverTop {
    /*Tutup amplop atas masih tertutup*/
    width: 100%;
    height: 100px;
    position: absolute;
    top: 6px;
    left: 0;
    background-image: url(/assets/placeholders/arch-decoration-17.png);
    background-repeat: no-repeat;
    background-size: 100% auto;
    transform: rotateX(88.1deg);
    transition: all 2450ms ease;
    transition-delay: 1100ms;
    transform-origin: bottom;
    transform-style: preserve-3d;
    z-index: 4;
}

#eBody.open #eCover.coverTop {
    /*Tutup amplop bawah sudah terbuka*/
    transform: rotateX(0deg);
    transition: all 2s ease;
    /*D*/
    transition-delay: 1200ms;
    /*C*/
    z-index: 1;
}

#eMain {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url(/assets/placeholders/arch-decoration-16.png);
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: bottom;
    z-index: 3;
}

#eToggle {
    display: block;
    margin: 20px auto;
    padding: 22px 80px;
    background-color: #007BFF;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    transition: opacity 0.5s ease;
    z-index: 2;
}

#eToggle span {
    display: block;
    position: absolute;
    font-family: 'Langar';
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease;
}

#eToggle .hide {
    opacity: 0;
    color: whitesmoke;
}

#eToggle .show {
    opacity: 1;
    color: whitesmoke;
}

#eToggle:hover {
    background-color: #0056b3;
}

div#cards {
    display: flex;
    position: absolute;
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: center;
    row-gap: 15px;
    top: 10px;
    opacity: 1;
    transform: translateY(100px);
    transition: transform 2s ease;
    z-index: 2;
}

div#cards.showCard {
    transform: translateY(-250px);
    transition: transform 4s ease;
    transition-delay: 3250ms;
}

.eCard {
    width: 300px;
    height: 200px;
    perspective: 1000px;
    cursor: pointer;
}

.eCardInner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.eCardInner.flip {
    transform: rotateY(180deg);
}

.eCardFront,
.eCardBack {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-color: #fff;
}

.eCardBack {
    transform: rotateY(180deg);
}

.chip {
    width: 50px;
    height: 35px;
    background-color: #eec56a;
    background-image: url(/assets/placeholders/arch-decoration-18.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border: 1px solid #9E9E9E;
    border-radius: 8px;
    cursor: pointer;
}

div#eBg {
    position: absolute;
    background-color: aliceblue;
    width: 100%;
    height: 13%;
    max-height: 84px;
    z-index: 1;
}

div.section {
    min-height: 100vh;
}

/* Kirim Ucapan */
div#wInner {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    z-index: 1;
    align-items: center;
    background-color: #BBDEFB;
}

div#wInner div#wTitle {
    display: flex;
    font-family: 'Alex Brush';
    font-size: 2rem;
    font-weight: bold;
    background-color: #f0f8ffad;
    width: 100%;
    height: 10%;
    max-height: 60px;
    z-index: 2;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

div#wInner div#wSub {
    font-family: 'AR One Sans';
    font-size: 12px;
    color: #000000;
    padding: 10px 2px;
}

div#wInner #wForm {
    height: auto;
    width: 95%;
    max-width: 400px;
    background: #ffffff;
    padding: 15px 20px;
    margin-bottom: 5px;
    border-radius: 5px 5px 0 0;
    box-shadow: 0px 10px 10px 5px #0000006b;
    border-bottom: 1px solid #8b8b8b82;
}

div#wInner #wForm textarea {
    font-family: 'Meow Script';
    font-size: 18px;
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 1px solid #007bff8f;
    border-radius: 4px;
    margin-bottom: 10px;
    resize: vertical;
}

div#wInner #wForm button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

div#wInner #wForm button:hover {
    background-color: #0056b3;
}

div#wInner div#wList {
    width: 95%;
    max-width: 400px;
    position: relative;
    overflow-y: scroll;
    background-color: #829aaf;
    box-shadow: 0px 5px 15px 5px #0000006b;
}

.comment-box,
.reply-box {
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px #0000001a;
    margin-bottom: 10px;
}

.comment-box {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-direction: column;
    align-items: stretch;
}

.comment-box:nth-child(1) {
    border-radius: 0 0 10px 10px;
}

.output-comment {
    display: flex;
    width: 100%;
    padding: 0px 5px;
    flex-direction: row;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 15px;
}

.sender-comment {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 41px;
    min-width: 41px;
    max-width: 41px;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    background-image: url(/assets/placeholders/user-avatar.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    border: 1px solid #0D47A1;
    border-radius: 25px;
    margin: 5px;
}

.success-comment {
    display: inline-flex;
    font-family: 'Metrophobic';
    width: 100%;
    font-size: 12px;
    margin: 3px 5px;
    text-align: left;
    background-color: #64B5F6;
    padding: 10px;
    border: 1px solid #64b5f6;
    border-radius: 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.success-comment::before {
    content: '';
    position: absolute;
    display: block;
    border-width: 12px;
    border-style: solid;
    border-color: transparent #64b5f6 transparent transparent;
    transform: translate(-35px, 2px);
}

.reply-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: auto;
    height: 40px;
    align-items: stretch;
    justify-content: space-around;
    margin: 0 10px;
}

.reply-box {
    margin-left: 40px;
}

.comment-box textarea {
    font-family: 'Allura';
    font-size: 12px;
    width: 100%;
    height: 100%;
    padding: 12px 10px;
    border: 1px solid #868686;
    border-radius: 5px;
    resize: vertical;
}

.comment-box button,
.reply-box button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.comment-box button:hover,
.reply-box button:hover {
    background-color: #218838;
}

.comment-box strong {
    font-family: 'AR One Sans';
    font-size: 12px;
    color: #333;
    text-shadow: -1px -1px 4px #ffffff;
    transform: translateY(30px);
}

.comment-box time,
.reply-box time {
    font-family: 'AR One Sans';
    font-size: 9px;
    font-style: italic;
    line-height: 1;
    color: #fff;
}

/*
div#error-comment-msg {
    position: absolute;
    display: none;
    top: 41%;
    left: 50%;
    width: 75%;
    max-width: 500px;
    height: auto;
    transform: translate(-50%, -50%);
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px #00000033;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    row-gap: 10px;
    overflow: hidden;
    animation: popupFadeIn 0.3s ease-in-out;
    z-index: 2;
}
*/
#wEmpty {
    text-align: center;
    color: #888;
    margin-top: 20px;
}

.loading {
    text-align: center;
    margin-top: 20px;
    display: none;
}

.loading img {
    width: 50px;
    height: 50px;
}

#musikBtn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  color: #6c3fc5;
  backdrop-filter: blur(8px);
  transition: transform 0.2s;
}

#musikBtn:hover { transform: scale(1.1); }

#musikBtn.playing svg {
  animation: spin 3s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}