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

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

.with-scrollbar {
    scrollbar-width: auto !important;
    -ms-overflow-style: auto !important;
}

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

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

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

.object-fit-cover {
    object-fit: cover;
}

.couple-name-stack {
    white-space: pre-line;
    line-height: 1.35;
    text-wrap: balance;
}

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);
}

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

/* Background cover (portrait) */
#welcome {
    overflow: hidden;
}

#welcome::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.55)),
        url("../assets/images/bg-cover.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform-origin: center center;
    animation: welcome-zoom 22s ease-in-out infinite alternate;
    will-change: transform;
    backface-visibility: hidden;
}

#welcome .welcome-content {
    position: relative;
    z-index: 1;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

@keyframes welcome-zoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

@media screen and (min-width: 992px) {
    #welcome::before {
        background-position: center 30%;
    }
}

@media (prefers-reduced-motion: reduce) {
    #welcome::before {
        animation: none;
    }
}

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

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

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));
}

.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 {
    overflow: hidden !important;
    transform: translateZ(0) !important;
}

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

/* Opened invitation background */
.desktop-bg {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)),
        url("../assets/images/bg-invitation.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.invitation-bg {
    position: sticky;
    top: 0;
    z-index: 0;
    height: 100vh;
    height: 100dvh;
    margin-bottom: -100vh;
    margin-bottom: -100dvh;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35)),
        url("../assets/images/bg-invitation.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    pointer-events: none;
}

#root main {
    position: relative;
    z-index: 1;
}

#root main .svg-wrapper {
    display: none;
}

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

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

html[data-bs-theme="light"] #root main .bg-light-dark {
    background-color: rgba(var(--bs-light-rgb), 0.5);
}

html[data-bs-theme="dark"] #root main .bg-light-dark {
    background-color: rgba(var(--bs-dark-rgb), 0.45);
}