#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f85b3f;
    background-image: url('../pages/balance-animation.gif');
    width: 100vw; /* Full viewport width */
    height: 100vh; /* Full viewport height */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Prevent tiling */
    display: flex;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  #loader {
    opacity: 1;
    transition: opacity 0.5s ease;
  }
  .hidden {
    opacity: 0;
    pointer-events: none;
  }  
  #loader .spinner {
    border: 8px solid #f3f3f3; /* Light border */
    border-top: 8px solid #ec542e; /* Blue border */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }