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

body {
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    padding: 0;
    color: rgb(86, 78, 71);
    background-color: #f2eee2;
    overflow-x: hidden;
}

.container {
    width: 420px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    position: relative;

    @media screen and (max-width: 480px) {
        width: 100%;
    }
}

.frame-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: url(https://hebbkx1anhila5yf.public.blob.vercel-storage.com/background-iCsg2yzMnjPra02zPTocFYlH2mSPfG.jpg) no-repeat;
    background-size: 100% 100%;
}

.content {
    position: relative;
    z-index: 5;
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bride-groom-image {
    width: 70%;
    height: auto;
    margin: 0;
    border-radius: 2px;
    font-size: 14px;
    position: relative;
}

.bride-groom-image::after {
    position: absolute;
    content: "";
    background: url(https://hebbkx1anhila5yf.public.blob.vercel-storage.com/frame-VwIl5Blu88LzAJNFpGlIAKxGZCNV7r.webp);
    background-size: 100% 100%;
    width: calc(100% + 12px);
    height: calc(100% + 14px);
    top: -6px;
    left: -6px;
    z-index: 10;
}

.bride-groom-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

@keyframes wave {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.couple-names {
    font-family: 'Great Vibes', cursive;
    font-size: 25px;
    color: rgb(166, 115, 69);
    margin: 35px 0 10px 0;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.couple-names img {
    width: 40px;
    margin: 0 10px;
}

/* .couple-names span {
    display: inline-block;
    animation: wave 1.6s ease-in-out infinite;
} */

/* tạo độ trễ khác nhau cho từng ký tự */
.couple-names span:nth-child(1) {
    animation-delay: 0s;
}

.couple-names span:nth-child(2) {
    animation-delay: 0.1s;
}

.couple-names span:nth-child(3) {
    animation-delay: 0.2s;
}

.couple-names span:nth-child(4) {
    animation-delay: 0.3s;
}

.couple-names span:nth-child(5) {
    animation-delay: 0.4s;
}

.couple-names span:nth-child(6) {
    animation-delay: 0.5s;
}

.couple-names span:nth-child(7) {
    animation-delay: 0.6s;
}

.couple-names span:nth-child(8) {
    animation-delay: 0.7s;
}

.couple-names span:nth-child(9) {
    animation-delay: 0.8s;
}

.couple-names span:nth-child(10) {
    animation-delay: 0.9s;
}

.couple-names span:nth-child(11) {
    animation-delay: 1.0s;
}

.couple-names span:nth-child(12) {
    animation-delay: 1.1s;
}

.couple-names span:nth-child(13) {
    animation-delay: 1.2s;
}

.couple-names span:nth-child(14) {
    animation-delay: 1.3s;
}

.couple-names span:nth-child(15) {
    animation-delay: 1.4s;
}

.divider {
    width: 70px;
}

.divider img {
    width: 100%;
}

.invitation-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #000;
    font-weight: 500;
    letter-spacing: 1.5px;
    margin: 12px 0 20px 0;
    text-transform: uppercase;
}

.event-details {
    margin: 0;
    border-top: 1px solid #c9a961;
    border-bottom: 1px solid #c9a961;
    padding: 5px 0 10px;
}

.event-time {
    font-size: 22px;
    color: #2c2c2c;
    font-weight: 700;
    margin: 8px 0;
    line-height: 1.3;
}

.event-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #2c2c2c;
    font-weight: 600;
    margin: 6px 0;
    letter-spacing: 2px;
}

.lunar-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 500;
    margin-top: 8px;
    font-style: italic;
}

@keyframes swing {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(5deg);
    }

    50% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes zoomInOut {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Add styles for Save the Date section */
.save-the-date-section {
    background: #f2eee2;
    padding: 20px 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.save-the-date-title {
    text-align: center;
    margin-bottom: 30px;
    animation: zoomInOut 2s ease-in-out infinite;
}

.save-the-date-title img {
    width: 40%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.couple-photos {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 0 15px;
}

.person-des {
    background-color: #c9a961;
    color: #fff;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 14px;
}

.person-card {
    text-align: center;
    flex: 1;
    width: 50%;
}

.person-gif {
    height: 80px;
    margin-bottom: 15px;
}

.person-gif img {
    height: 100%;
    width: auto;
}

.person-photo {
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid #c9a961;
    margin-bottom: 20px;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.person-role {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #000;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}


@keyframes zoomInOut1 {

    0%,
    100% {
        transform: scale(0.9);
    }

    50% {
        transform: scale(1);
    }
}

.person-name {
    font-family: 'Great Vibes', cursive;
    font-size: 28px;
    color: rgb(166, 115, 69);
    margin-bottom: 15px;
    font-weight: 500;
    animation: zoomInOut1 2s ease-in-out infinite;
}

.person-info {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #202020;
    line-height: 1.6;
    font-weight: 500;
}

.person-info-label {
    font-weight: 600;
    color: #2c2c2c;
    text-transform: uppercase;
    margin-top: 6px;
}

.invite-wraper {
    background: #f2eee2 url(/image/invite.webp) no-repeat center top;
    background-size: 100% 100%;
    text-align: center;
    color: #202020;
    padding: 60px 30px;
}

.invite-title {
    font-size: 20px;
    text-transform: uppercase;
    font-weight: bold;
    color: rgb(166, 115, 69);
}

.invite-you {
    display: inline-block;
    text-align: center;
    border: 2px solid #968560;
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: bold;
    margin: 20px 0;
}

.invite-go {
    font-size: 14px;
    text-transform: uppercase;
    line-height: 22px;
}

.invite-time {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 25px 0;
}

.invite-time__left,
.invite-time__right {
    width: 25%;
    font-weight: bold;
    font-size: 18px;
    color: rgb(166, 115, 69);
}

.invite-time__middle {
    width: 50%;
    border-left: 1px solid rgb(166, 115, 69);
    border-right: 1px solid rgb(166, 115, 69);
    position: relative;
}

.invite-time__middle:after {
    position: absolute;
    content: "";
    top: -15px;
    left: 3px;
    background: url(/image/time-bg.webp) no-repeat center center;
    width: 180px;
    height: 180px;
    z-index: 1;
    display: block;
    background-size: 80%;
}

.invite-day,
.invite-month {
    font-size: 18px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    font-weight: bold;
}

.invite-date {
    font-size: 40px;
    font-weight: bold;
    color: rgb(166, 115, 69);
    padding: 10px 0;
}

.invite-al {
    font-size: 14px;
    color: rgb(166, 115, 69);
    font-style: italic;
    margin: 50px 0 20px;
}

.invite-location {
    font-size: 15px;
}

.invite-location strong {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
}

.invite-thanks {
    border-color: rgba(229, 231, 235, 1);
    font-size: 15px;
    font-weight: bold;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    color: rgb(166, 115, 69);
    font-style: italic;
    margin-top: 30px;
}

.calendar {
    padding: 50px 0 30px;
}

.calendar-wrap {
    width: 95%;
    margin: 0 auto;
    position: relative;
}

.calendar-wrap img {
    width: 100%;
}

.calendar-title {
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Great Vibes', cursive;
    font-size: 35px;
    color: rgb(166, 115, 69);
}

.calendar-wrap__tick {
    position: absolute;
    left: 18%;
    top: 51%;
    z-index: 1;
    width: 10%;
}

.album-title {
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Great Vibes', cursive;
    font-size: 24px;
    /* color: #5f1b19; */
    color: rgb(166, 115, 69);
    font-weight: 500;
}

.album-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.album-wrap img {
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 5px;
}

.letter {
    padding: 50px 0 50px;
    background: #5f1b19;
}

.ar-letter {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.ar-letter img {
    width: 100%;
    transform: rotate(-12deg);
}

.ar-letter p {
    position: absolute;
    color: #5f1b19;
    top: 9%;
    left: 18%;
    width: 60%;
    transform: rotate(-3deg);
    font-size: 13px;
    text-align: justify;
    line-height: 18px;
    font-weight: bold;
}

.ar-letter p i {
    display: block;
    margin-top: 25px;
    font-weight: bold;
    text-decoration: underline;
}

.letter-title img {
    width: 60%;
    margin: 0 auto;
}

#my-audio {
    display: none;
}

#playBtn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 999;
    animation: music-scroll 5s linear infinite;
    background: #000;
    overflow: hidden;
    cursor: pointer;
    border-radius: 50%;
    width: 35px;
    height: 35px;
}

#playBtn img {
    display: block;
    width: 100%;
    height: 100%;
}

@-webkit-keyframes music-scroll {
    100% {
        -webkit-transform: rotate(1turn);
        -ms-transform: rotate(1turn);
        transform: rotate(1turn);
    }
}

.snowflake {
    color: #fff;
    font-size: 1em;
    font-family: Arial;
    text-shadow: 0 0 1px #000;
}

@-webkit-keyframes snowflakes-fall {
    0% {
        top: -10%
    }

    100% {
        top: 100%
    }
}

@-webkit-keyframes snowflakes-shake {
    0% {
        -webkit-transform: translateX(0px);
        transform: translateX(0px)
    }

    50% {
        -webkit-transform: translateX(80px);
        transform: translateX(80px)
    }

    100% {
        -webkit-transform: translateX(0px);
        transform: translateX(0px)
    }
}

@keyframes snowflakes-fall {
    0% {
        top: -10%
    }

    100% {
        top: 100%
    }
}

@keyframes snowflakes-shake {
    0% {
        transform: translateX(0px)
    }

    50% {
        transform: translateX(80px)
    }

    100% {
        transform: translateX(0px)
    }
}

.snowflake {
    position: fixed;
    top: -10%;
    z-index: 9999;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
    -webkit-animation-name: snowflakes-fall, snowflakes-shake;
    -webkit-animation-duration: 10s, 3s;
    -webkit-animation-timing-function: linear, ease-in-out;
    -webkit-animation-iteration-count: infinite, infinite;
    -webkit-animation-play-state: running, running;
    animation-name: snowflakes-fall, snowflakes-shake;
    animation-duration: 10s, 3s;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
    animation-play-state: running, running
}

.snowflake img {
    width: 20px;
    height: auto;
}

.snowflake:nth-of-type(0) {
    left: 1%;
    -webkit-animation-delay: 0s, 0s;
    animation-delay: 0s, 0s
}

.snowflake:nth-of-type(1) {
    left: 10%;
    -webkit-animation-delay: 1s, 1s;
    animation-delay: 1s, 1s
}

.snowflake:nth-of-type(2) {
    left: 20%;
    -webkit-animation-delay: 6s, .5s;
    animation-delay: 6s, .5s
}

.snowflake:nth-of-type(3) {
    left: 30%;
    -webkit-animation-delay: 4s, 2s;
    animation-delay: 4s, 2s
}

.snowflake:nth-of-type(4) {
    left: 40%;
    -webkit-animation-delay: 2s, 2s;
    animation-delay: 2s, 2s
}

.snowflake:nth-of-type(5) {
    left: 50%;
    -webkit-animation-delay: 8s, 3s;
    animation-delay: 8s, 3s
}

.snowflake:nth-of-type(6) {
    left: 60%;
    -webkit-animation-delay: 6s, 2s;
    animation-delay: 6s, 2s
}

.snowflake:nth-of-type(7) {
    left: 70%;
    -webkit-animation-delay: 2.5s, 1s;
    animation-delay: 2.5s, 1s;
}

.snowflake:nth-of-type(8) {
    left: 80%;
    -webkit-animation-delay: 1s, 0s;
    animation-delay: 1s, 0s;
}

.snowflake:nth-of-type(9) {
    left: 90%;
    -webkit-animation-delay: 3s, 1.5s;
    animation-delay: 3s, 1.5s;
}