* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html,
body {
    color: #333;
    background: #f5f5f5;
    height: 100%;
    font-family: Poppins, sans-serif
}

.custom-container {
    background: #fff;
    border-radius: 16px;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    padding: 24px;
    display: flex;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 16px #0000001a
}

.slide {
    text-align: center;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    align-items: center;
    animation: .8s fadeIn
}

.slide.d-none {
    display: none
}

.slide.d-flex {
    display: flex
}

.slide img,
.slide i {
    margin-bottom: 32px
}

.slide img {
    width: 120px
}

.slide i {
    color: #28a745;
    font-size: 64px
}

.progress {
    background: #e0e0e0;
    border-radius: 3px;
    width: 100%;
    height: 6px;
    margin-bottom: 60px;
    overflow: hidden
}

.progress-bar {
    background: #28a745;
    height: 100%
}

.overlay {
    z-index: 10;
    background: #fffc;
    border-radius: 16px;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    display: none;
    position: absolute;
    top: 0;
    left: 0
}

.overlay.show {
    display: flex
}

/* Overlay loading by id - sesuai dengan .overlay, dipaparkan via jQuery .show() */
.bg-white.p-4.shadow.rounded {
    position: relative
}

#loader {
    z-index: 10;
    background: #fffc;
    border-radius: 16px;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    flex-direction: column;
    gap: 12px
}

#loader[style*="display: block"] {
    display: flex !important
}

#loader .spinner {
    flex-shrink: 0
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top-color: #28a745;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: 1s linear infinite spin
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: scale(1)
    }
}

@media (max-width:400px) {
    body {
        font-size: 16px
    }

    .custom-container {
        border-radius: 0;
        padding: 16px
    }

    .slide img {
        width: 100px;
        margin-bottom: 28px
    }

    .slide i {
        margin-bottom: 28px;
        font-size: 56px
    }

    h1 {
        margin-bottom: 12px;
        font-size: 24px
    }

    p {
        margin-bottom: 32px;
        font-size: 16px
    }

    .progress {
        height: 5px;
        margin-bottom: 50px
    }

    .buttons {
        padding: 16px
    }

    .buttons .btn {
        padding: 16px 0;
        font-size: 16px
    }
}

.bg-primary {
    background-color: #0f3a64 !important
}

.dot-loading {
    background-color: #fff;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    animation: 1s ease-in-out infinite pulse
}

.dot-loading:nth-child(2) {
    animation-delay: .2s
}

.dot-loading:nth-child(3) {
    animation-delay: .4s
}

@keyframes pulse {

    0%,
    80%,
    to {
        opacity: .5;
        transform: scale(.8)
    }

    40% {
        opacity: 1;
        transform: scale(1.4)
    }
}