body {
    position: relative;
}

main {
    position: relative;
}

#main {
    /* border: 1px solid #111; */
    width: 500px;
    position: absolute;
    right: 0;
    overflow: hidden;
    padding: 0;
    z-index: 1;
    background-color: aliceblue;
}


/* section{
    border: 1px solid #111;
} */

#frist-layer {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: #fff;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out, visibility 0s 0.5s;
}

#frist-layer.actives {
    opacity: 0;
    transform: translateY(-50px);
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out, visibility 0s 0.5s;
}

.main-background {
    z-index: 1;
    position: fixed;
    width: calc(100% - 500px);
    height: 100vh;
    right: 500px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}


.countdown {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.countdown .the-box {
    height: 60px;
    width: 60px;
    text-align: center;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background-color: #fff;
}

.countdown .the-box span {
    font-size: 20px;
    font-weight: bold;
}



.modal-backdrop.show {
    z-index: 5 !important;
}

#main .modal.show .modal-dialog {
    z-index: 1000 !important;
}

#galleryModal .modal.show .modal-dialog {
    z-index: 1000 !important;
}


.position-mid {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 40px 60px;
    box-sizing: border-box;
}

.position-mid.youtube-video {
    width: 100%;
    max-width: 800px;
    height: auto;
    aspect-ratio: 16 / 9;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}


.position-mid iframe {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.loading-page {
    background-color: #fff;
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-page.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out;
}

#chat-room #chat-display {
    max-height: 400px !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
    /* Untuk Firefox */
    scrollbar-color: var(--background-soft) transparent;
    /* Warna scrollbar */
}

/* Scrollbar untuk WebKit (Chrome, Edge, Safari) */
#chat-room #chat-display::-webkit-scrollbar {
    width: 4px;
    /* Lebar scrollbar */
}

#chat-room #chat-display::-webkit-scrollbar-track {
    background: transparent;
    /* Track transparan */
}

#chat-room #chat-display::-webkit-scrollbar-thumb {
    background: var(--background-soft);
    /* Warna thumb */
    border-radius: 4px;
    /* Membuatnya lebih bulat */
}

#chat-room #chat-display::-webkit-scrollbar-thumb:hover {
    background: var(--primary-black);
    /* Warna saat di-hover */
}

#chat-room .the-chat {
    background-color: #e3e3e3;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
}


/* Loading */

/* HTML: <div class="loader"></div> */
.loader {
    width: 15px;
    aspect-ratio: 1;
    border-radius: 50%;
    animation: l5 1s infinite linear alternate;
}

@keyframes l5 {
    0% {
        box-shadow: 20px 0 #444, -20px 0 #4442;
        background: #444
    }

    33% {
        box-shadow: 20px 0 #444, -20px 0 #4442;
        background: #4442
    }

    66% {
        box-shadow: 20px 0 #4442, -20px 0 #444;
        background: #4442
    }

    100% {
        box-shadow: 20px 0 #4442, -20px 0 #444;
        background: #444
    }
}

.rotating-logo {
    animation: blink 2s linear infinite;
}

/* 
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
} */

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

#frist-layer .box-invitation {
    min-width: 350px;
    max-width: 500px;
    border-radius: 14px;
}

#frist-layer .the-box {
    background-color: #4444447a;
    border-radius: 14px;
    color: #fff;
    border: 2px solid #444;
}

#bank .card-credit {
    background-image: url("../../img/invitation/credit.webp");
    background-color: #444;
    height: 230px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 14px;
    color: #f5f5f5;
    font-size: 13px !important;
}

.modal-content {
    background-color: #44444481;
}

.modal-header {
    border-bottom: none;
}

.modal-title {
    color: #f5f5f5 !important;

}

.modal-footer {
    border-top: none;
}

.gift-icon {
    font-size: 2rem;
    /* Sesuaikan ukuran ikon */
    margin-left: 8px;
    /* Tambahkan jarak antara teks dan ikon */
}

.gift-button {
    display: flex;
    align-items: center;
}

.accordion-button {
    width: 300px !important;
}

.accordion-item {
    border: none !important;
}

.modal-header .btn {
    color: #fff !important;
    box-shadow: none !important;
    border: none !important;
}

.modal-header .btn i {

    font-size: 30px !important;
}

.menu-music {
    position: fixed;
    bottom: 70px;
    right: 10px;
    z-index: 10;
}

.menu-music .btn-music {
    background-color: #007bff;
    border: none;
    color: white;
    font-size: 15px !important;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 40px;
    height: 40px;
}

.menu-music .btn-music.muted {
    background-color: #dc3545;
}

@keyframes growShrink {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

#frist-layer #playButton {
    animation: growShrink 1.5s ease-in-out infinite;
}


@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(100px);
        opacity: 0.8;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

#wheel {
    animation: scroll 1.5s infinite ease-in-out;
}

/* wave component */

.wave-container {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.wave-wrapper {
    position: absolute;
    bottom: 0;
    width: 200%;
    display: flex;
}

.wave {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Perbedaan tinggi layer */
.wave-wrapper-1 {
    height: 140px;
}

.wave-wrapper-2 {
    height: 110px;
}

.wave-wrapper-3 {
    height: 90px;
}

/* Animasi lebih smooth */
.wave-layer-1 {
    opacity: 0.4;
    animation: waveMove 16s linear infinite;
}

.wave-layer-2 {
    opacity: 0.6;
    animation: waveMove 12s linear infinite;
}

.wave-layer-3 {
    opacity: 1;
    animation: waveMove 8s linear infinite;
}

/* Gerakan lebih natural */
@keyframes waveMove {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* wave component */

.rotate-180 {
    transform: rotate(180deg);
}

#menu-navigation {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 480px;
    z-index: 1000;
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    background-color: #fff;
}

#menu-navigation .btn {
    color: #f5f5f5;
    font-size: 14px;
}

@media screen and (max-width: 500px) {
    #main {
        width: 100% !important;
    }

    .main-background {
        display: none;
    }

    #bank .card-credit {
        height: 200px !important;
        font-size: 11.5px !important;
    }

    #menu-navigation {
        width: 80% !important;
    }
}

@keyframes kelap-kelip {
    0% {
        box-shadow: 0 0 0px rgba(255, 255, 0, 0.2);
    }

    50% {
        box-shadow: 0 0 15px 5px rgba(255, 255, 0, 0.7);
    }

    100% {
        box-shadow: 0 0 0px rgba(255, 255, 0, 0.2);
    }
}

.no-payment {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    animation: kelap-kelip 1.5s infinite;
}

.bird-main-left {
    width: 400px;
    position: absolute;
    z-index: -1;
}

.bird-main {
    position: absolute;
    width: 500px;
    z-index: -1;
}

body.lock-main main { 
    overflow: hidden !important; 
    height: 0 !important; 
}

body.unlock-main main { 
    overflow: hidden !important; 
  height: auto !important; 
}