.process1 {
    position: fixed; /* instead of absolute */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center; /* add this to center vertically */
  }
  
  .loading {
    /* remove margin-top and margin-bottom */
    position: relative; /* instead of absolute */
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .loading img {
    width: 40px;
    border-radius: 10px;
  }
  
  .loading .spinner {
    position: absolute;
    width: 35px;
    animation: spin 1s linear infinite;
    -webkit-animation: spin 1s linear infinite;
    -moz-animation: spin 1s linear infinite;
    -ms-animation: spin 1s linear infinite;
    -o-animation: spin 1s linear infinite;
  }