#preloader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;  /* Change this from relative to fixed */
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 100000;  /* Make sure the loader is above all other content */
    background: #212121;  /* Optional: darken the content behind the loader */
}

/*form loader*/
.loader-container {
    position: relative;
}
.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;  /* Change this from relative to fixed */
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 9999;  /* Make sure the loader is above all other content */
    background: rgba(55, 64, 74, 0.67);  /* Optional: darken the content behind the loader */
}

.loader {
    display: flex;
    align-items: center;
}

.bar {
    display: inline-block;
    width: 3px;
    height: 20px;
    background-color: rgba(255, 255, 255, .5);
    border-radius: 10px;
    animation: scale-up4 1s linear infinite;
}

.bar:nth-child(2) {
    height: 35px;
    margin: 0 5px;
    animation-delay: .25s;
}

.bar:nth-child(3) {
    animation-delay: .5s;
}

@keyframes scale-up4 {
    20% {
        background-color: #ffff;
        transform: scaleY(1.5);
    }

    40% {
        transform: scaleY(1);
    }
}