.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    display: none;
}

.loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: url('../img/loading.gif') no-repeat center center;
    background-size: contain;
    transform: translate(-50%, -50%);
}