/* 3. Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background-color: #ef6a8a; /* change if the mask should have another color then white */
    z-index: 9999999; /* makes sure it stays on top */
}

.spinner {
    position: absolute;
    inset: 50%;
    width: 50px;
    height: 30px;
    text-align: center;
    font-size: 10px;
    transform: translate(-50%, -50%);
}

.spinner > div {
    background-color: #fff;
    height: 100%;
    width: 6px;
    display: inline-block; 
    animation: stretchdelay 1.2s infinite ease-in-out;
}

.spinner .rect2 {
    animation-delay: -1.1s;
}

.spinner .rect3 {
    animation-delay: -1.0s;
}

.spinner .rect4 {
    animation-delay: -0.9s;
}

.spinner .rect5 {
    animation-delay: -0.8s;
}

@keyframes stretchdelay {
    0%, 40%, 100% { 
        transform: scaleY(0.4);
    }  
    20% { 
        transform: scaleY(1.0);
    }
}