.modalx {
    position: fixed;
    z-index: 2000;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: transparent;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateY(0);
    background-image: url('images/bg-modal.png');
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}

.modalx.hide {
    opacity: 0;
    transform: translateY(100%);
}

@media (max-width: 768px) {
    .modalx {
        background-image: url('images/bg-main2.jpg');
    }
}

.content-modalx {
    background-color: transparent;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 2002;
    top: 10px;
    color: #fff;
    left: 0;
}

.info_modalx {
    width: 100%;
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.image-container {
    max-width: 22%;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

@media (max-width: 480px) {
    .image-container {
        max-width: 70%;
    }
}


@media (max-width: 768px) {
    .image-container {
        max-width: 50%;
    }
}

.wdp-content {
    color: #000000;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wdp-bride {
    font-family: 'Great Vibes', Sans-serif;
    font-size: 50px;
    color: #161d51;
}

.wdp-dear {
    font-size: 18px;
    font-weight: 455;
    color: #000000;
}

.wdp-name {
    font-weight: 600;
    font-size: 25px;
}

.wdp-text {
    font-size: 18px;
}

.wdp-button-wrapper {
    margin-top: 10px;
    text-align: center;
}

.btn.invitation {
    background-color: #161d51;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 21px 21px 21px 21px;
}

.main-content {
    text-align: center;
    z-index: 1;
}

/* Cover Section */
.cover {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.cover-section-1 {
    background-image: url('images/bg-main1.jpg');
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cover-section-2 {
    background-image: url('images/bg-main2.jpg');
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cover-section-3 {
    background-image: url('images/bg-main1.jpg');
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cover-section-4 {
    background-image: url('images/bg-main1.jpg');
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 375px) and (max-width: 480px) {
    .cover-section-1 {
        background-size: 100%;
    }

    .cover-section-2 {
        background-size: 170%;
    }

    .cover-section-3 {
        background-size: 200%;
    }

    .cover-section-4 {
        background-size: 130%;
    }
}

@media (min-width: 768px) {
    .cover-section-1 {
        background-size: 100%;
    }

    .cover-section-2 {
        background-size: 110%;
    }

    .cover-section-3 {
        background-size: 100%;
    }

    .cover-section-4 {
        background-size: 100%;
    }
}

@media (min-width: 1024px) {
    .cover-section-2 {
        background-size: 100%;
    }
}

.cover-container {
    padding: 20px;
    text-align: center;
}

.cover-title {
    color: #000;
    font-family: 'Roboto Slab', Sans-serif;
    line-height: 1;
}

.cover-image {
    max-width: 22%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.cover-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

@media (max-width: 480px) {
    .cover-image {
        max-width: 70%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .cover-image {
        max-width: 50%;
        margin-left: auto;
        margin-right: auto;
    }
}

.cover-image-ring img {
    max-width: 10%;
    height: auto;
    border-radius: 10px;
    filter: brightness(0%) contrast(0%) saturate(100%) blur(0px) hue-rotate(0deg);
}

@media (max-width: 768px) {
    .cover-image-ring img {
        max-width: 27%;
    }
}

.cover-name {
    font-family: 'Great Vibes', Sans-serif;
    font-size: 39px;
    color: #161D51;
    margin: 10px 0;
}

.cover-name-event {
    font-family: 'Dancing Script', Sans-serif;
    font-size: 50px;
    color: #161D51;
    margin: 10px 0;
}

.cover-date {
    font-size: 18px;
    color: #555;
    margin: 10px 0;
}

.cover-countdown-container {
    margin-top: 20px;
}

.cover-countdown-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: table;
    table-layout: fixed;
    width: 100%;
}

.cover-countdown-items>li {
    list-style: none;
    margin: 0;
    padding: 0;
    display: table-cell;
    position: relative;
}

.cover-countdown-item>div {
    text-align: center;
    padding: 20px;
    background: #111;
    margin-right: 9px;
    margin-left: 9px;
    border-radius: 20px 20px 20px 20px;
    background: #161d51;
}

.cover-countdown-label {
    color: #ffffff;
    font-family: 'Poppins', Sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.cover-countdown-digits {
    color: #ffffff;
    font-family: 'Abril Fatface', Sans-serif;
    font-size: 21px;
    font-weight: 400;
}

.cover-doa {
    left: 0;
    width: 100%;
    height: 25vh;
    background-color: #161d51;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.cover-doa p {
    font-family: 'Roboto Slab', Sans-serif;
    color: #fff;
}

.cover-gallery>a img {
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    border: solid 2px #161D51;
    border-radius: 0px;
}

.timeline-container {
    margin: 0 auto;
    position: relative;
    padding: 50px 20px;
    font-family: 'Poppins', sans-serif;
    max-width: 600px;
}

.timeline-title {
    text-align: center;
    font-family: 'Great Vibes', cursive;
    font-size: 46px;
    color: #161d51;
    margin-bottom: 40px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
    width: 100%;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    width: 2px;
    height: 100%;
    background-color: #161d51;
    z-index: 0;
}

.timeline-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    background-color: #fff;
    border: 2px solid #161d51;
    border-radius: 50%;
    text-align: center;
    font-size: 16px;
    line-height: 26px;
    margin-right: 20px;
    color: #161d51;
    z-index: 1;
}

.timeline-content {
    background-color: transparent;
    padding: 10px;
    border-radius: 5px;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.timeline-content h4 {
    margin: 0;
    color: #161d51;
    font-weight: 600;
    font-size: 14px;
}

.timeline-content h3 {
    margin: 5px 0;
    font-size: 20px;
    font-weight: 600;
    color: #161d51;
}

.timeline-content p {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .timeline-container {
        padding: 30px 15px;
    }

    .timeline-content h3 {
        font-size: 18px;
    }

    .timeline-content p {
        font-size: 13px;
    }
}

.cover-reservation {
    background-image: url('images/bg-main3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reservation-heading {
    color: #161D51;
    font-family: "Barlow", Sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1em;
    letter-spacing: 0px;
}

.cover-wishes {
    background-image: url('images/bg-main1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

.animate {
    animation: fadeIn 1s ease-out forwards;
}

.animateFromBottom {
    animation: fadeInUp 1s ease-out forwards;
}

.animateFromTop {
    animation: fadeInDown 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animateFromLeft {
    animation: slideInLeft 1s ease-out forwards;
}

.animateFromRight {
    animation: slideInRight 1s ease-out forwards;
}

.animateScale {
    animation: scaleIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-150px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}