.spinner-wrapper {
  background-color: white;
  position:fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:all 0.5s;
}

@keyframes spinAndZoom {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.2);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

/* animate only the SVG inside the wrapper */
.spinner-wrapper img {
  display: block;
  transform-box: fill-box; /* ensure transform-origin works for SVG */
  transform-origin: center;
  animation: spinAndZoom 1.2s linear infinite;
}

