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

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

*::-webkit-scrollbar {
    display: none !important;
}

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

.with-scrollbar::-webkit-scrollbar {
    display: block !important;
}

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

.font-greatvibes {
    font-family: 'Great Vibes', cursive !important;
}

.font-borel-regular {
    font-family: "Borel", cursive;
    font-weight: 400;
    font-style: normal;
}

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

.font-hurricane-regular {
    font-family: "Hurricane", cursive;
    font-weight: 400;
    font-style: normal;
}

.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.625rem);
}

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

.loading-page {
    background-image: url('/assets/images/loaderbg5.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1056;
}

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: var(--bs-black);
    background-color: var(--bs-dark);
}

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

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

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

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

html[data-bs-theme="dark"] #navbar-menu {
    border-top: 1px solid var(--bs-dark);
}

html[data-bs-theme="dark"] .text-red {
    color: rgba(var(--bs-black-rgb), 1) !important;
}

html[data-bs-theme="dark"] .border-red {
    border: 2px solid var(--bs-black) !important;
}

html[data-bs-theme="dark"] .border-red-1px {
    border: 1px solid var(--bs-black) !important;
}

html[data-bs-theme="dark"] .bg-red {
    background-color: rgba(var(--bs-black-rgb), 1) !important;
}

html[data-bs-theme="dark"] .shadow-red {
    filter: drop-shadow(0 0.5rem 1rem rgba(var(--bs-black-rgb), 0.15)) !important;
}

html[data-bs-theme="dark"] .placeholder-merah::placeholder {
    color: #b6474cff;
}

html[data-bs-theme="dark"] .text-cream {
    color: rgba(var(--bs-dark-rgb), 1) !important;
}

html[data-bs-theme="dark"] .border-cream {
    border: 2px solid var(--bs-dark) !important;
}

html[data-bs-theme="dark"] .border-cream-1px {
    border: 1px solid var(--bs-dark) !important;
}

html[data-bs-theme="dark"] .border-start-cream {
    border-left: 1px solid rgba(var(--bs-dark-rgb), 0.5) !important;
}

html[data-bs-theme="dark"] .shadow-cream {
    filter: drop-shadow(0 0.5rem 1rem rgba(var(--bs-dark-rgb), 0.15)) !important;
}

html[data-bs-theme="dark"] .bg-cream {
    background-color: rgba(var(--bs-dark-rgb), 1) !important;
}

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

.width-loading {
    width: 25%;
}

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

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

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

/* halaman undangan */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    opacity: 0;
}

.animate-in.animated-start {
    animation-name: fadeInUp;
    animation-duration: 0.6s;
    animation-fill-mode: forwards;
}

.animate-delay-1 { animation-delay: 0.5s; }
.animate-delay-2 { animation-delay: 1.0s; }
.animate-delay-3 { animation-delay: 1.5s; }
.animate-delay-4 { animation-delay: 2.0s; }
.animate-delay-5 { animation-delay: 2.5s; }
.animate-delay-6 { animation-delay: 3.0s; }
.animate-delay-7 { animation-delay: 3.5s; }

.carousel-item img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    width: 100%;
    border-radius: 0.5rem; /* opsional: buat sudut membulat */
}

/* bunga */
.corner-plant {
    position: absolute;
    width: 170px;
    height: auto;
    z-index: -20;
}

/* Posisi */
.top-left {
    top: 10px;
    left: -110px;
}

.mid-left {
    position: absolute;
    bottom: 20px;
    right: 10px;
    width: 70px;
    z-index: 1;
    filter: hue-rotate(140deg);
}

.bottom-right {
    bottom: -25px;
    right: -40px;
}

.bottom-right2 {
    bottom: -50px;
    right: -70px;
}

/* Animasi bunga (goyangan halus) */
@keyframes leafSway {
    0%   { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(1.5deg) scale(1.07); }
    100% { transform: rotate(0deg) scale(1); }
}

.anim-flower {
    animation: leafSway 6s ease-in-out infinite;
    transform-origin: bottom center;
}

/* animasi kupu2 */
@keyframes butterflyFlyAndFlap {
    0%   { transform: translate(0px, 0px) rotate(0deg) scaleX(1) scaleY(1); }
    20%  { transform: translate(12px, -24px) rotate(6deg) scaleX(0.65) scaleY(1.1); }
    40%  { transform: translate(-16px, -40px) rotate(-8deg) scaleX(1.2) scaleY(0.9); }
    60%  { transform: translate(10px, -32px) rotate(4deg) scaleX(0.6) scaleY(1.15); }
    80%  { transform: translate(-10px, -18px) rotate(-6deg) scaleX(1.15) scaleY(0.95); }
    100% { transform: translate(0px, 0px) rotate(0deg) scaleX(1) scaleY(1); }
}

@keyframes flyAcross {
    0% {
        transform: translateX(-200px) translateY(0) scale(0.5) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        opacity: 1;
        transform: translateX(50vw) translateY(-100px) scale(0.6) rotate(30deg);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(110vw) translateY(200px) scale(0.5) rotate(-15deg);
        opacity: 0;
    }
}

.anim-butterfly {
    animation: butterflyFlyAndFlap 4s ease-in-out infinite;
    transform-origin: center;
    will-change: transform;
}

.butterfly-fly {
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    pointer-events: none;
    z-index: 50;
    opacity: 0;
    animation: flyAcross 10s linear forwards;
}
