* {
    box-sizing: border-box;
}

:root {
    --primary-color: #ff96a7;
    --color-pink: #ffb1be;
    --bold-color: #ff3a3a;
    --title-font: "Dancing-script";
}

html {
    font-size: 62.5%;
}

body {
    font-size: 1.6rem;
    font-family: "Mulish";
    line-height: 1.6;
    caret-color: red;
    color: #333;
}

/* Common */
input,
textarea,
select,
button {
    font-size: inherit;
    font-family: inherit;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 100vw;
    height: auto;
}

.input,
.btn,
.select {
    height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    border: solid 1px var(--primary-color);
    outline: none;
}

.fa-solid {
    color: var(--bold-color);
}

.fa-download,
.fa-copy {
    color: green;
    margin-right: 6px;
}

.fa-square-facebook {
    color: #1a74ed;
    font-size: 2rem;
    margin-right: 6px;
}

.size-20 {
    font-size: 2rem;
}

.size-25 {
    font-size: 2.5rem;
}

.size-30 {
    font-size: 3rem;
}

.mr-4 {
    margin-right: 4px;
}

.mr-6 {
    margin-right: 6px;
}

.ml-4 {
    margin-left: 4px;
}

.ml-6 {
    margin-left: 6px;
}

.btn {
    background-color: var(--primary-color);
    font-weight: 700;
    z-index: 0;
    cursor: pointer;
}

.btn:hover {
    opacity: 0.8;
}

.primary-color {
    color: var(--primary-color);
}

.bold-color {
    color: var(--bold-color);
}

.color-pink {
    color: var(--color-pink);
}

/* Header */
.header {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.header__background {
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: url(../img/background/header_bg_destop.webp);
    background-repeat: no-repeat;
    background-size: cover;
    filter: brightness(0.8);
    z-index: -1;
}

.header__title {
    font-family: var(--title-font);
    font-size: 2.5rem;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 16px;
}

.header__form {
    position: relative;
    top: -40px;
    width: min(500px, 100% - 38px);
    height: auto;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 16px;
    border-radius: 10px;
}

.header__form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.header__form-label {
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__form-valid--name {
    color: red;
    font-style: italic;
}

.header__des {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-style: italic;
}

.header__form-btn {
    display: block;
    margin: 0 auto;
    width: 100%;
    margin: 30px 0 14px;
    cursor: pointer;
    color: #fff;
}

.header__submit-text {
    width: 100%;
    height: auto;
    position: absolute;
    left: 50%;
    top: 50%;
    translate: -50% -100%;
    color: #fff;
    font-size: 4rem;
    font-family: "Lilita";
    text-shadow: 2px 2px 2px #333;
    text-align: center;
    display: flex;
}

.header__update-name-btn {
    font-family: "Mulish";
    font-size: 1.6rem;
}

.arrow-up {
    --size: 40px;
    position: absolute;
    width: var(--size);
    height: var(--size);
    bottom: 20px;
    left: 48%;
    transform: translateX(-50%);
    display: none;
    justify-content: center;
    align-items: center;
    font-size: var(--size);
    color: var(--color-pink);
}

.header__arrow-up {
    display: none;
}

/* Background image */
.bg-img {
    position: sticky;
    top: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    background: url(../img/couple/VIEN3915-min.webp);
    background-size: cover;
}

.title {
    position: sticky;
    top: 0;
    width: 100vw;
    height: 100vh;
    padding: 0;
}

.title .wrapper {
    position: relative;
    top: -150px;
    width: 500px;
    height: 400px;
    text-align: center;
    margin: auto;
    background: url(../img/mark/may.png);
    background-size: contain;
    background-repeat: no-repeat;
    object-fit: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.title .wrapper::before {
    position: absolute;
    content: "";
    top: 4%;
    left: 0;
    width: 300px;
    height: 300px;
    background: url(../img/mark/may_bay2.png);
    transform: scaleX(-1);
    background-repeat: no-repeat;
    background-size: contain;
    /* background-color: #ff3a3a; */
    animation: animationLeftRight 5s ease-in infinite;
}

.title .heading,
.title .desc {
    position: relative;
    top: -20px;
    text-shadow: 1.5px -1px 0px #fff;
}

.title .heading {
    font-size: 4rem;
    font-family: var(--title-font);
    display: block;
    color: var(--bold-color);
}

.title .desc {
    display: block;
    color: #ffffff;
    text-shadow: 0px 0px 4px #565656;
}

.section1,
.section2,
.section3,
.section4,
.section5,
.section6,
.section7 {
    position: relative;
    top: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100%;
    overflow: hidden;
    display: none;
}

/* SECTION 1 */
.section1 {
    overflow: hidden;
}

.section1 .wrapper {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40%;
    backdrop-filter: blur(10px);
    background-color: #ffffffd9;
    display: flex;
    align-items: center;
}

.section1 .desc {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    max-width: calc(100vw - 500px);
    flex: 1;
    font-size: 2rem;
    color: #333;
    /* text-shadow: 0.5px 0.5px #ffffff; */
    margin-left: 50px;
    overflow: hidden;
}

.section1 .img {
    position: absolute;
    border: solid 10px #ffffffd9;
    border-radius: 20px;
    bottom: 0;
    right: 0;
    width: 400px;
    height: 500px;
    object-fit: cover;
}

/* SECTION 2 */
.section2 {
    position: relative;
    height: auto;
    padding: 50px;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url(../img/mark/11.jpg);
    background-size: cover;
    object-fit: cover;
}

.section2::before {
    position: absolute;
    content: "";
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    box-shadow: 0px 4px 10px #fff;
}

.section2::after {
    position: absolute;
    content: "";
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    z-index: 2;
    box-shadow: 0px -4px 10px #fff;
}

.section2 .wrapper {
    width: 100%;
    height: 100%;
    background-color: #ffd1e85e;
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    row-gap: 20px;
}

.section2 .passport {
    display: flex;
    gap: 10px;
}

.section2 .passport .img {
    width: calc(50% - 5px);
    height: auto;
    border-radius: 10px;
    box-shadow: 0px 2px 8px #666;
}

.section2 .ticket {
    width: 80%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0px 2px 8px #666;
}

/* SECTION 3 */
.section3 {
    position: relative;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section3 .wrapper {
    position: relative;
    padding: 20px 20px 10px 20px;
    font-size: 2.5rem;
    background-color: var(--color-pink);
    border-radius: 12px;
    box-shadow: 0px 0px 4px #666;
}

.section3 .airplane {
    position: absolute; /* Để di chuyển tự do */
    width: 60px; /* Kích thước máy bay */
    animation: fly-around 15s linear infinite; /* Tạo hiệu ứng chuyển động */
}

.section3 .desc {
    margin-bottom: 10px;
    font-size: 2rem;
    text-align: center;
    font-weight: 700;
}

.section3 .maps {
    border-radius: 10px;
}

.section3 .link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    /* text-decoration: none; */
    color: none;
    font-size: 1.6rem;
    background-color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    color: #fff;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #fff;
    background-color: #ff7575;
    transition: 0.2s;
}

.section3 .link:hover {
    opacity: 0.7;
    border: 2px solid var(--color-pink);
}

/* SECTION 4 */
.section4 {
    background-color: #fff;
    height: auto;
    padding: 0 50px 80px 50px;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0px 0px 20px #fff;
}

.section4 .list-imgs {
    width: 100%;
    height: auto;
    min-height: 100%;
    gap: 20px; /* Giữ khoảng cách giữa các ảnh */
    padding: 20px;
    display: flex;
    justify-content: start;
    align-items: center;
    overflow-x: auto;
    border-radius: 20px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-shadow: 0px 0px 10px #9a9a9a;
}

.section4 .img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    padding: 2px;
}

/* SECTION 5 */
.section5 {
    background: url(../img/mark/nen-maybay.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    object-fit: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section5 .wrapper {
    width: 1100px;
    height: auto;
    padding: 50px;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: 0px 0px 8px #999;
    border-radius: 12px;
}

.section5 .heading {
}

.section5 .desc {
    margin-bottom: 20px;
}

/* Time */
.section5 .countdown {
    width: 500px;
    height: 400px;
    background-color: var(--color-pink);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section5 .items {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    column-gap: 30px;
}

.section5 .countdown .heading {
}

.section5 .countdown .box {
    width: 460px;
    height: 360px;
    background: url(../img/couple/VIEN4467-min.webp);
    background-size: cover;
    background-repeat: no-repeat;
    object-fit: cover;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
}

.section5 .countdown .box .heading {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-top: 20px;
    background-color: #ff96a799;
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 10px;
}

.section5 .countdown .times {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.section5 .countdown .time-items {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

.section5 .countdown .time {
    background-color: var(--primary-color);
    border-radius: 8px;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    box-shadow: 0px 0px 10px #333;
}

.section5 .countdown .desc {
    text-align: center;
    color: #fff;
    background-color: #ff96a799;
    backdrop-filter: blur(10px);
    width: 100%;
    height: 100%;
    padding: 10px 10px;
    border-radius: 10px;
}

/* Info */
.section5 .info-accept {
    width: 500px;
    height: 400px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
}

.section5 .info-accept .options,
.section5 .info-accept .wish {
    width: 100%;
    border: solid 1px var(--primary-color);
    border-radius: 10px;
    margin-bottom: 20px;
    background-color: #f1f1f1;
    outline: none;
}

.section5 .info-accept .options {
    height: 50px;
    padding: 6px;
}

.section5 .info-accept .wish {
    height: 300px;
    padding: 10px;
}

.section5 .info-accept span {
    font-size: 1.6rem;
    font-style: italic;
    color: #989898;
    margin-top: 4px;
    text-align: center;
}

.section5 .actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.section5 .info-accept-btn,
.section5 .gift-btn {
    width: 50%;
    height: 50px;
    color: #fff;
    background-color: var(--bold-color);
}

.section5 .gift-btn {
    border: none;
    background-color: #fff5f7;
    color: green;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: solid 1px var(--primary-color);
}

.section6 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #87878772;
    backdrop-filter: blur(10px);
    z-index: 1;
    display: none;
    justify-content: center;
    align-items: center;
}

.section6 .wrapper {
    position: relative;
    width: 400px;
    background-color: #f1f1f1;
    padding: 40px;
    padding-top: 0;
    border-radius: 10px;
}

.hidden {
    display: none;
}

.section6 .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 6px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.section6 .close-btn i {
    font-size: 3rem;
    color: #333;
}

.section6 .heading {
    margin: 10px 0 20px 0;
}

.section6 .desc {
    text-align: center;
}

.section6 .box {
}

.section6 .box .bank-img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: solid 1px var(--primary-color);
}

.section6 .box .actions {
    display: flex;
    justify-content: space-between;
}

.section6 .box .action-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section6 .box .social {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #d0d0d0;
    margin-top: 20px;
    padding: 20px;
    border-radius: 4px;
}

.section6 .box .social .sent {
    margin-bottom: 10px;
}

.section6 .box .social-items {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.section6 .box .link-bride,
.section6 .box .link-groom {
    width: 50%;
    padding: 8px;
    text-decoration: none;
    outline: none;
    border: solid 1px #1a74ed;
    text-align: center;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #dddddd;
}

.section6 .box .link-bride .text,
.section6 .box .link-groom .text {
    color: #333;
}

/* Section 7 */
.section7 {
    background: url(../img/mark/nen-maybay.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    object-fit: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-top: solid 30px var(--primary-color);
    border-bottom: solid 30px var(--primary-color);
}

.section7 .desc {
    width: 60%;
    text-align: center;
    font-style: italic;
}

.section7 .heading {
    font-family: "Thei";
    font-size: 10rem;
    text-shadow: 2px 2px #fff;
}

.section7 .couple {
    font-size: 3rem;
    border-bottom: solid 5px var(--primary-color);
}

.section1,
.section2,
.section3,
.section4,
.section5,
.section7,
.bg-img,
.title {
    display: none;
}

/* Animation */
.animation__flipY {
    display: inline-block;
    animation: flipY 2s infinite linear reverse;
}

.animation__slide-up {
    animation: animationSlideUp 1.2s ease-out infinite;
}

.animation__scale {
    animation: animationScale 2s linear infinite;
}

.animation__up-down {
    animation: animationUpDown 3s linear infinite;
}

.animation__left-right {
    animation: animationLeftRight 3s linear infinite;
}

.animation__heading {
    font-family: var(--title-font);
    font-size: 2.5rem;
    text-align: center;
    animation: animationScale 2s linear infinite;
    margin-bottom: 50px;
}

/* MODAL LOADING */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100000001; /* Ensure it is on top of other elements */
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: rgba(0, 0, 0, 0.661);
    border-radius: 50%;
    text-align: center;
    line-height: 100px;
    font-family: sans-serif;
    font-size: 9px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 4px;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
}
.ring:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid red;
    border-top: 3px solid #00ff15;
    border-right: 3px solid #00ff15;
    border-radius: 50%;
    animation: animateC 0.8s linear infinite;
}
.ring-span {
    display: block;
    position: absolute;
    top: calc(50%);
    left: 50%;
    width: 100px;
    height: 100px;
    background: transparent;
    transform-origin: left;
    animation: animateC 0.8s linear infinite;
}
.ring-span:before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00ff15;
    top: -6px;
    right: -8px;
    box-shadow: 0 0 20px #00ff15;
}
.ring-span1 {
    display: block;
    position: absolute;
    top: calc(50%);
    left: 0;
    width: 100px;
    height: 100px;
    background: transparent;
    transform-origin: left;
    animation: animateC 0.8s linear infinite;
}
.ring-span1:before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgb(255, 27, 27);
    top: 100%;
    right: 100%;
    box-shadow: 0 0 20px red;
}

@keyframes animateC {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes flipY {
    0% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(180deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

@keyframes animationSlideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-50px);
        opacity: 0;
    }
}

@keyframes animationScale {
    0% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1.5);
    }
    100% {
        transform: scale(1.2);
    }
}

@keyframes animationUpDown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes animationLeftRight {
    0% {
        left: -30%;
        opacity: 0;
        transform: scaleX(-1) translateY(200px);
    }
    1% {
        left: -30%;
        opacity: 1;
        transform: scaleX(-1) translateY(200px);
    }
    90% {
        left: 60%;
        opacity: 1;
        transform: scaleX(-1) translateY(0px);
    }
    100% {
        left: 80%;
        opacity: 0;
        transform: scaleX(-1) translateY(0px);
    }
}

@keyframes fly-around {
    0% {
        top: -40px;
        left: -55px;
        transform: scaleX(-1) rotate(0deg);
    }
    24% {
        top: -40px;
        left: 100%;
        transform: scaleX(-1) rotate(0deg);
    }
    25% {
        top: -40px;
        left: 100%;
        transform: rotate(-90deg);
    }
    49% {
        top: calc(100% + 10px);
        left: 100%;
        transform: rotate(-90deg);
    }
    50% {
        top: calc(100% + 10px);
        left: 100%;
        transform: rotate(0deg);
    }
    74% {
        top: calc(100% + 10px);
        left: -65px;
        transform: rotate(0deg);
    }
    75% {
        top: calc(100% + 10px);
        left: -65px;
        transform: scaleX(-1) rotate(50deg);
    }
    99% {
        top: -40px;
        left: -65px;
        transform: scaleX(-1) rotate(50deg);
    }
    100% {
        top: -40px;
        left: -55px;
        transform: scaleX(-1) rotate(0deg);
    }
}

@keyframes scrollX {
    0% {
        justify-content: start;
    }
    100% {
        justify-content: end;
    }
}

.delay0s5 {
    animation-delay: 0.5s;
}
.delay1s0 {
    animation-delay: 1s;
}
.delay1s5 {
    animation-delay: 1.5s;
}
.delay2s0 {
    animation-delay: 2s;
}
