/* Loader overlay */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;                  /* background color */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;    /* fade out later */
}

/* Loader container with logo as background */
.loader {
    width: 200px;
    height: 160px;
    position: relative;
    background: url('MNDlogo.webp') center center no-repeat;
    background-size: 120px 60px;
    z-index: 10;                       /* logo on top of borders */
}

/* Spinning borders around the logo */
.loader::before,
.loader::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 160px;
    box-sizing: border-box;
    border: 5px solid #ff4800;
    border-radius: 8px;
    animation: rotation 2s linear infinite;
    z-index: 1;                        /* behind logo */
}

.loader::after {
    border-color: #ff9407;
    animation-direction: reverse;
}

/* Spin animation */
@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
