.page-overlay {
    position: fixed;
    z-index: 1000000;
    top: 0;
    left: 0;
    display: none;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    pointer-events: all;

    &.freezing {
        display: block;
        background: transparent;
    }

    &.dimming {
        display: block;
    }

    &.loading {
        display: flex;
        align-items: center;
        justify-content: center;

        &:after {
            content: '';
            position: absolute;
            display: inline-block;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            border: 3px solid #b5b5b5;
            border-top: 3px solid #000;
            box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
            animation: spin 1s linear infinite;
        }
    }
}
