#loading-bg {
  position: fixed; /* Đảm bảo nó luôn ở vị trí cố định trên màn hình */
  top: 0;
  left: 0;
  width: 100vw; /* Chiếm 100% chiều rộng viewport */
  height: 100vh; /* Chiếm 100% chiều cao viewport */
  display: flex; /* Bật Flexbox */
  flex-direction: column; /* Sắp xếp các mục con theo chiều dọc (logo rồi đến spinner) */
  justify-content: center; /* Căn giữa các mục con theo chiều dọc */
  align-items: center; /* Căn giữa các mục con theo chiều ngang */
  background-color: white; /* Hoặc màu nền bạn muốn cho màn hình tải */
  z-index: 9999; /* Đảm bảo nó nằm trên cùng các phần tử khác */
}

.loading-logo {
  margin-bottom: 20px; /* Thêm khoảng cách giữa logo và spinner nếu cần */
}

.pre-loading {
  position: absolute;
  box-sizing: border-box;
  border: 3px solid transparent;
  block-size: 55px;
  border-radius: 50%;
  inline-size: 55px;
  inset-block-start: calc(40% + 35px);
  inset-inline-start: calc(50% - 27.5px);
}

.pre-loading .effect-1,
.pre-loading .effect-2,
.pre-loading .effect-3 {
  position: absolute;
  box-sizing: border-box;
  border: 3px solid transparent;
  block-size: 100%;
  border-inline-start: 3px solid var(--initial-loader-color, #eee);
  border-radius: 50%;
  inline-size: 100%;
}

.pre-loading .effect-1 {
  animation: rotate 1s ease infinite;
}

.pre-loading .effect-2 {
  animation: rotate-opacity 1s ease infinite 0.1s;
}

.pre-loading .effect-3 {
  animation: rotate-opacity 1s ease infinite 0.2s;
}

.pre-loading .effects {
  transition: all 0.3s ease;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(1turn);
  }
}

@keyframes rotate-opacity {
  0% {
    opacity: 0.1;
    transform: rotate(0deg);
  }

  100% {
    opacity: 1;
    transform: rotate(1turn);
  }
}
