#loading-screen {
  position: fixed;
  transition: opacity 1s ease;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  border: 8px solid #f3f3f3; /* Light grey */
  border-top: 8px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 2s linear infinite; /* Apply animation */
}

.image-stack {
  position: relative;
  width: 250px;
  height: 250px;
}

.image-stack .layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-stack .spin {
  animation: spin 10s linear infinite;
}

/* .image-stack img:first-child {
    opacity: 0.9;
    top: 35%;
    left: 35%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
} */

.image-stack img:first-child {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 550px;
    height: 550px;
}

.index0 {
    z-index: 0;
}

.index1 {
    z-index: 1;
}

.index2 {
    z-index: 2;
}

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