@import url("common.css");
@import url("animation.css");

html {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.with-scrollbar {
    scrollbar-width: auto !important;
    scrollbar-color: var(--wedding-gold-soft) rgba(233, 221, 196, 0.35) !important;
    -ms-overflow-style: auto !important;
}

.with-scrollbar::-webkit-scrollbar {
    width: 0.75rem;
}

.with-scrollbar::-webkit-scrollbar-track {
    background-color: rgba(233, 221, 196, 0.35);
    border-radius: 999px;
}

.with-scrollbar::-webkit-scrollbar-thumb {
    background-color: var(--wedding-gold-soft);
    border: 0.18rem solid rgba(233, 221, 196, 0.35);
    border-radius: 999px;
}

.with-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: var(--wedding-gold);
}

.font-esthetic {
    font-family: 'Sacramento', cursive !important;
}

.font-arabic {
    font-family: 'Noto Naskh Arabic', serif !important;
}

:root {
    --wedding-gold: #d8a63a;
    --wedding-gold-soft: rgba(216, 166, 58, 0.55);
    --wedding-gold-dark: #8b5f12;
}

main .text-secondary,
#welcome .text-secondary {
    color: var(--wedding-gold) !important;
}

main .border-secondary,
#welcome .border-secondary {
    border-color: var(--wedding-gold-soft) !important;
}

main .bg-secondary,
#welcome .bg-secondary {
    background-color: var(--wedding-gold) !important;
}

main .btn-secondary,
#welcome .btn-secondary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--wedding-gold-dark);
    --bs-btn-border-color: var(--wedding-gold);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--wedding-gold);
    --bs-btn-hover-border-color: var(--wedding-gold);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--wedding-gold-dark);
    --bs-btn-active-border-color: var(--wedding-gold-dark);
}

.img-center-crop {
    width: 13rem;
    height: 13rem;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

html[data-bs-theme="dark"] .btn-transparent {
    background-color: rgba(var(--bs-dark-rgb), 0.5) !important;
    backdrop-filter: blur(0.5rem);
}

html[data-bs-theme="light"] .btn-transparent {
    background-color: rgba(var(--bs-light-rgb), 0.5) !important;
    backdrop-filter: blur(0.5rem);
}

#navbar-menu {
    background:
        linear-gradient(180deg, rgba(95, 17, 24, 0.82), rgba(65, 8, 14, 0.88)) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 -0.35rem 1.25rem rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(0.65rem);
    overflow: hidden;
}

#navbar-menu .nav-link {
    color: rgba(255, 255, 255, 0.62) !important;
    font-weight: 600;
    padding-block: 0.65rem 0.55rem;
    transition:
        color 200ms ease,
        background-color 200ms ease;
}

#navbar-menu .nav-link i {
    color: rgba(255, 255, 255, 0.62) !important;
    font-size: 1.15rem;
    transition: color 200ms ease;
}

#navbar-menu .nav-link:hover,
#navbar-menu .nav-link.active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
}

#navbar-menu .nav-link:hover i,
#navbar-menu .nav-link.active i {
    color: #fff !important;
}

#button-music {
    color: #fff !important;
    background:
        linear-gradient(180deg, rgba(95, 17, 24, 0.82), rgba(65, 8, 14, 0.88)) !important;
    border-color: rgba(255, 255, 255, 0.24) !important;
    box-shadow:
        0 0.25rem 0.9rem rgba(0, 0, 0, 0.32),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(0.65rem);
}

#button-music i {
    color: #fff !important;
}

.loading-page {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1056;
}

#welcome.loading-page {
    box-sizing: border-box;
    padding: clamp(1rem, 4vw, 3rem);
    background-image:
        url("../assets/images/kiri_atas.webp"),
        url("../assets/images/kanan_atas.webp"),
        url("../assets/images/tengah_atas.webp"),
        url("../assets/images/kiri.webp"),
        url("../assets/images/kanan.webp"),
        url("../assets/images/bawah_tengah.webp"),
        url("../assets/images/bg-merah.webp") !important;
    background-color: #5f1118 !important;
    background-position:
        left -1.5rem top calc(4rem - 60px),
        right -1.5rem top calc(4rem - 60px),
        center top calc(5rem - 160px),
        left -1.75rem top calc(50% + 130px),
        right -1.75rem top calc(50% + 130px),
        center bottom calc(2.5rem - 80px),
        center;
    background-size:
        min(21vw, 18rem) auto,
        min(21vw, 18rem) auto,
        min(38vw, 30rem) auto,
        min(15vw, 12rem) auto,
        min(15vw, 12rem) auto,
        min(42vw, 34rem) auto,
        cover;
    background-repeat: no-repeat;
    background-origin:
        content-box,
        content-box,
        content-box,
        content-box,
        content-box,
        content-box,
        border-box;
    color: #fff;
    overflow: hidden;
}

#welcome.loading-page .welcome-viewport {
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    height: calc(100vh - (clamp(1rem, 4vw, 3rem) * 2));
    height: calc(100dvh - (clamp(1rem, 4vw, 3rem) * 2));
    padding-block: clamp(1.25rem, 5vh, 3rem);
}

#welcome.loading-page .welcome-content {
    width: min(100%, 31rem);
    gap: clamp(0.75rem, 2.2vh, 1.5rem);
}

#welcome.loading-page .welcome-title {
    margin: 0;
    font-size: clamp(2rem, 8vw, 3.25rem);
    line-height: 1.1;
}

#welcome.loading-page .welcome-photo {
    width: clamp(10rem, 36vh, 16rem);
    height: clamp(10rem, 36vh, 16rem);
    flex: 0 0 auto;
}

#welcome.loading-page #guest-name {
    margin-top: -0.25rem;
}

#welcome.loading-page #guest-name p {
    overflow-wrap: anywhere;
}

#welcome.loading-page .welcome-button {
    margin-top: clamp(0.25rem, 1.5vh, 0.75rem);
    max-width: 100%;
    white-space: normal;
}

@media screen and (max-width: 576px) {
    #welcome.loading-page {
        padding: 1rem;
    }

    #welcome.loading-page {
        background-image:
            url("../assets/images/tengah_atas.webp"),
            url("../assets/images/kiri.webp"),
            url("../assets/images/kanan.webp"),
            url("../assets/images/bawah_tengah.webp"),
            url("../assets/images/bg-merah.webp") !important;
        background-position:
            center top calc(-2.25rem + 65px),
            left calc(-3rem + 30px) top calc(50% - 20px),
            right calc(-3rem + 30px) top calc(50% - 20px),
            center bottom calc(0.75rem + 20px),
            center;
        background-size:
            calc(14rem + 60px) auto,
            calc(5.5rem + 40px) auto,
            calc(5.5rem + 40px) auto,
            calc(14rem + 60px) auto,
            cover;
        background-origin:
            border-box,
            border-box,
            border-box,
            border-box,
            border-box;
    }

    #welcome.loading-page .welcome-viewport {
        height: calc(100vh - 2rem);
        height: calc(100dvh - 2rem);
        padding-block: 1rem;
    }

    #welcome.loading-page .welcome-content {
        gap: clamp(0.6rem, 1.8vh, 1rem);
    }

    #welcome.loading-page .welcome-title {
        font-size: clamp(1.8rem, 10vw, 2.6rem);
    }

    #welcome.loading-page .welcome-photo {
        width: clamp(9rem, 34vh, 13rem);
        height: clamp(9rem, 34vh, 13rem);
    }
}

@media screen and (max-height: 640px) {
    #welcome.loading-page .welcome-viewport {
        align-items: flex-start !important;
    }

    #welcome.loading-page .welcome-title {
        font-size: clamp(1.65rem, 7vh, 2.25rem);
    }

    #welcome.loading-page .welcome-photo {
        width: clamp(8.5rem, 30vh, 11.5rem);
        height: clamp(8.5rem, 30vh, 11.5rem);
    }
}

html[data-bs-theme="light"] .color-theme-svg {
    color: #e9ddc4;
    background: transparent !important;
    background-color: transparent !important;
}

html[data-bs-theme="dark"] .color-theme-svg {
    color: #7b2025;
    background: transparent !important;
    background-color: transparent !important;
}

.color-theme-svg > path {
    fill: currentColor;
    fill-opacity: 1;
}

.wave-home-red .color-theme-svg > path,
.wave-cream-red .color-theme-svg > path,
html[data-bs-theme="dark"] .wave-home-red .color-theme-svg > path,
html[data-bs-theme="dark"] .wave-cream-red .color-theme-svg > path,
html[data-bs-theme="light"] .wave-home-red .color-theme-svg > path,
html[data-bs-theme="light"] .wave-cream-red .color-theme-svg > path {
    fill: url("#wave-red-pattern");
}

.wave-red-cream .color-theme-svg > path,
html[data-bs-theme="dark"] .wave-red-cream .color-theme-svg > path,
html[data-bs-theme="light"] .wave-red-cream .color-theme-svg > path {
    fill: url("#wave-cream-pattern");
}

html[data-bs-theme="light"] .bg-light-dark {
    background-color: rgb(var(--bs-light-rgb));
}

html[data-bs-theme="dark"] .bg-light-dark {
    background-color: rgb(var(--bs-dark-rgb));
}

html[data-bs-theme="light"] .bg-white-black {
    background-color: rgb(var(--bs-white-rgb));
}

html[data-bs-theme="dark"] .bg-white-black {
    background-color: rgb(var(--bs-black-rgb));
}

section.bg-light-dark,
section.bg-white-black {
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
}

section.bg-light-dark {
    background-size: cover;
}

section.bg-white-black {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.58)),
        url("../assets/images/bg-merah.webp");
}

section.bg-light-dark {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18)),
        url("../assets/images/bg-cream.webp");
    color: #1f1a16;
}

html[data-bs-theme="light"] section.bg-white-black {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.34)),
        url("../assets/images/bg-merah.webp");
}

html[data-bs-theme="light"] section.bg-light-dark {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
        url("../assets/images/bg-cream.webp");
}

section.bg-light-dark .text-secondary,
section.bg-light-dark .text-theme-auto {
    color: #1f1a16 !important;
}

section.bg-light-dark .btn-outline-auto {
    --bs-btn-color: #1f1a16;
    --bs-btn-border-color: #1f1a16;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #1f1a16;
    --bs-btn-hover-border-color: #1f1a16;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #1f1a16;
    --bs-btn-active-border-color: #1f1a16;
    --bs-btn-disabled-color: #1f1a16;
    --bs-btn-disabled-border-color: #1f1a16;
}

section.bg-light-dark .form-control,
section.bg-light-dark .form-select {
    color: #1f1a16;
    background-color: transparent;
    border-color: rgba(31, 26, 22, 0.55);
}

section.bg-light-dark .form-control::placeholder {
    color: rgba(31, 26, 22, 0.62);
}

section.bg-light-dark .form-control:focus,
section.bg-light-dark .form-select:focus {
    color: #1f1a16;
    background-color: rgba(255, 255, 255, 0.16);
    border-color: #1f1a16;
    box-shadow: 0 0 0 0.2rem rgba(31, 26, 22, 0.12);
}

section.bg-light-dark .btn-primary {
    --bs-btn-color: #1f1a16;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: rgba(31, 26, 22, 0.55);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #1f1a16;
    --bs-btn-hover-border-color: #1f1a16;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #1f1a16;
    --bs-btn-active-border-color: #1f1a16;
    --bs-btn-disabled-color: rgba(31, 26, 22, 0.5);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: rgba(31, 26, 22, 0.3);
}

main section .bg-theme-auto {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

main section.bg-light-dark .bg-theme-auto {
    border-color: rgba(31, 26, 22, 0.28);
}

main section.bg-white-black .bg-theme-auto {
    border-color: rgba(255, 255, 255, 0.38);
}

main .text-secondary,
main .text-theme-auto,
main .border-secondary,
main .bg-secondary,
main .btn-secondary {
    --bs-secondary-rgb: 216, 166, 58;
}

main .text-secondary,
main .text-theme-auto,
section.bg-light-dark .text-secondary,
section.bg-light-dark .text-theme-auto {
    color: var(--wedding-gold) !important;
}

main .border-secondary,
section.bg-light-dark .border-secondary,
section.bg-white-black .border-secondary {
    border-color: var(--wedding-gold-soft) !important;
}

main .bg-secondary,
section.bg-light-dark .bg-secondary,
section.bg-white-black .bg-secondary {
    background-color: var(--wedding-gold) !important;
}

main [data-class="animate-love"],
main .fa-circle-info,
main .fa-photo-film {
    color: var(--wedding-gold) !important;
}

section.bg-white-black,
section.bg-white-black h1,
section.bg-white-black h2,
section.bg-white-black h3,
section.bg-white-black p,
section.bg-white-black small,
section.bg-white-black span,
section.bg-white-black .font-esthetic,
section.bg-white-black .font-arabic {
    color: var(--wedding-gold) !important;
}

section.bg-light-dark #comments p,
section.bg-light-dark #comments small,
section.bg-light-dark #comments span,
section.bg-light-dark #comments button,
section.bg-light-dark #comments .btn {
    color: #1f1a16 !important;
}

#pagination .invitation-pagination {
    --bs-pagination-bg: transparent;
    --bs-pagination-border-color: var(--wedding-gold-soft);
    --bs-pagination-color: #1f1a16;
    --bs-pagination-hover-bg: rgba(216, 166, 58, 0.14);
    --bs-pagination-hover-border-color: var(--wedding-gold);
    --bs-pagination-hover-color: var(--wedding-gold-dark);
    --bs-pagination-focus-bg: rgba(216, 166, 58, 0.16);
    --bs-pagination-focus-box-shadow: 0 0 0 0.15rem rgba(216, 166, 58, 0.18);
    --bs-pagination-disabled-bg: transparent;
    --bs-pagination-disabled-border-color: rgba(216, 166, 58, 0.35);
    --bs-pagination-disabled-color: rgba(31, 26, 22, 0.45);

    border: 1px solid var(--wedding-gold-soft);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: none;
}

#pagination .invitation-pagination .page-link {
    min-height: 2.5rem;
    padding: 0.45rem 0.9rem;
    font-weight: 600;
    letter-spacing: 0;
    background-color: transparent;
    border-color: rgba(216, 166, 58, 0.35);
}

#pagination .invitation-pagination #page {
    color: var(--wedding-gold-dark) !important;
    min-width: 4.25rem;
}

#pagination .invitation-pagination i {
    color: var(--wedding-gold) !important;
}

section.bg-white-black #pagination .invitation-pagination {
    --bs-pagination-color: var(--wedding-gold);
    --bs-pagination-hover-color: #fff;
    --bs-pagination-disabled-color: rgba(216, 166, 58, 0.45);
}

section.bg-white-black #pagination .invitation-pagination #page {
    color: var(--wedding-gold) !important;
}

.bg-cover-home {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(0.5turn, transparent, black 40%, black 60%, transparent);
}

.width-loading {
    width: 25%;
}

.cursor-pointer {
    cursor: pointer;
}

@media screen and (max-width: 992px) {
    .width-loading {
        width: 50%;
    }
}

@media screen and (max-width: 576px) {
    .width-loading {
        width: 75%;
    }
}

svg {
    display: block;
    line-height: 0;
    shape-rendering: geometricPrecision;
    backface-visibility: hidden;
}

.svg-wrapper {
    display: none !important;
    overflow: hidden !important;
    transform: translateZ(0) !important;
    margin-top: -1px;
    margin-bottom: -1px;
}

section.pt-2 > .svg-wrapper:first-child,
section.py-2 > .svg-wrapper:first-child {
    margin-top: calc(-0.5rem - 1px);
}

section.pt-3 > .svg-wrapper:first-child,
section.py-3 > .svg-wrapper:first-child {
    margin-top: calc(-1rem - 1px);
}

.wave-cream-red {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18)),
        url("../assets/images/bg-cream.webp");
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
}

.wave-red-cream {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.58)),
        url("../assets/images/bg-merah.webp");
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
}

.wave-home-red {
    background: transparent !important;
}

.wave-home-red::before {
    content: none;
}

.wave-home-red > svg {
    position: relative;
}

html[data-bs-theme="light"] .wave-cream-red {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
        url("../assets/images/bg-cream.webp");
}

html[data-bs-theme="light"] .wave-red-cream {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.34)),
        url("../assets/images/bg-merah.webp");
}

.wave-bride-firman,
.wave-firman-wedding,
.wave-gallery-gift,
.wave-comment-end {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18)),
        url("../assets/images/bg-cream.webp");
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
}

.wave-bride-firman .color-theme-svg > path,
.wave-firman-wedding .color-theme-svg > path,
.wave-gallery-gift .color-theme-svg > path,
.wave-comment-end .color-theme-svg > path,
html[data-bs-theme="dark"] .wave-bride-firman .color-theme-svg > path,
html[data-bs-theme="dark"] .wave-firman-wedding .color-theme-svg > path,
html[data-bs-theme="dark"] .wave-gallery-gift .color-theme-svg > path,
html[data-bs-theme="dark"] .wave-comment-end .color-theme-svg > path,
html[data-bs-theme="light"] .wave-bride-firman .color-theme-svg > path,
html[data-bs-theme="light"] .wave-firman-wedding .color-theme-svg > path,
html[data-bs-theme="light"] .wave-gallery-gift .color-theme-svg > path,
html[data-bs-theme="light"] .wave-comment-end .color-theme-svg > path {
    fill: url("#wave-red-pattern");
}

html[data-bs-theme="light"] .wave-bride-firman,
html[data-bs-theme="light"] .wave-firman-wedding,
html[data-bs-theme="light"] .wave-gallery-gift,
html[data-bs-theme="light"] .wave-comment-end {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
        url("../assets/images/bg-cream.webp");
}

html[data-bs-theme="light"] .wave-home-red {
    background: transparent !important;
}

.no-gap-bottom {
    margin-bottom: -0.75rem !important;
}
