@keyframes overlay-fade {
    from {
        background-color: rgba(0, 0, 0, 0);
    }
    to {
        background-color: rgba(0, 0, 0, 0.3);
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent black */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Above most elements, below Bootstrap modals */
    animation: overlay-fade 4s ease forwards;
}

.loading-box {
    text-align: center;
    color: white;
}

@keyframes spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

.pm-spinner {
    width: 3rem;
    height: 3rem;
    border: .25em solid rgba(255, 255, 255, .25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spinner-rotate .75s linear infinite;
}

/* BOOTSTRAP UTILITY CLASSES FOR PAGES WITHOUT BOOTSTRAP */
.d-none {
    display: none;
}

.d-flex {
    display: flex;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}