.loading-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  background: transparent;
  transition: opacity 0.5s ease;
}
.loading-hint {
  margin-top: 5rem;
  opacity: 0.9;
  letter-spacing: .2px;
  text-align: center;
  user-select: none;
  z-index: 1000000;
  position: relative;
  transform: translateY(30vh);
  color: var(--cream);
  animation: hint 3s infinite;
}

@keyframes hint {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}


.loading-content {
  text-align: center;
  position: relative;
}

/* Progress Text Styling */
#progress-text {
  color: var(--cream);
  font-weight: 700;
  text-shadow: 2px 2px 4px rgb(44, 30, 20);
}

.door-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999998;
}

.door-left, .door-right {
  position: absolute;
  top: 0;
  height: 100vh;
  width: 50vw;
  transition: transform 1.2s ease-in-out;
  z-index: 1;
  overflow: hidden;
}

.door-left {
  left: 0;
  transform: translateX(0);
}

.door-right {
  right: 0;
  transform: translateX(0);
}

.door-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.door-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

/* Door handles */
.door-handle {
  position: fixed;
  width: 60px;
  height: 60px;
  background-image: url('./src/Asset Door/handle.avif');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1000001;
  pointer-events: none;

}

.handle-top-left, .handle-top-right, .handle-bottom-left, .handle-bottom-right {
  transition: transform 1.2s ease-in-out;
  overflow: hidden;
  
}

.handle-top-left {
  top: 20%;
  left: 0;
  transform: scaleX(-1) translateX(0);
}

.handle-top-right {
  top: 20%;
  right: 0;
  transform: translateX(0);
}

.handle-bottom-left {
  bottom: 20%;
  left: 0;
  transform: scaleX(-1) translateX(0);
}

.handle-bottom-right {
  bottom: 20%;
  right: 0;
  transform: translateX(0);
}

.door-left.slide-out {
  transform: translateX(-100%);
}

.door-right.slide-out {
  transform: translateX(100%);
}

/* Door vignette - pure CSS (no image) */
.door-vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  /* Radial gradient: darker edges, transparent center */
  background: radial-gradient(ellipse at center,
              rgba(0,0,0,0) 40%,
              rgba(0,0,0,0.35) 70%,
              rgba(0,0,0,0.55) 100%),
              linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0) 20%, rgba(0,0,0,0) 80%, rgba(0,0,0,0.35));
  z-index: 999999;
  pointer-events: none;
  transition: opacity 1.2s ease-in-out;
}

.door-vignette.fade-out {
  opacity: 0;
}

.handle-top-left.slide-out {
  transform: scaleX(-1) translateX(1000%);
}

.handle-top-right.slide-out {
  transform: translateX(1000%);
} 

.handle-bottom-left.slide-out {
  transform: scaleX(-1) translateX(1000%); 
}

.handle-bottom-right.slide-out {
  transform: translateX(1000%);
}

.loading-text {
  /* font-size: 1.5rem; */
  color: var(--cream);
  margin-bottom: 10px;
  letter-spacing: 0.1em;
  position: relative;
  font-weight: 700;
  z-index: 1000000;
  transform: translateY(30vh);
  text-shadow: 2px 2px 4px rgb(44, 30, 20);
  transition: opacity 0.5s ease;
}

.loading-subtext {
  /* font-size: 1rem; */
  color: var(--cream);
  opacity: 0.8;
  position: relative;
  font-weight: 500;
  z-index: 1000000;
  transform: translateY(30vh);
  text-shadow: 2px 2px 4px rgb(44, 30, 20);
  transition: opacity 0.5s ease;
}

.loading-dots {
  display: inline-block;
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%, 20% { content: ""; }
  40% { content: "."; }
  60% { content: ".."; }
  80%, 100% { content: "..."; }
}

.loading-dots::after {
  content: "";
  animation: dots 1.5s infinite;
}

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

@media (max-width: 600px) {
  .handle-top-left.slide-out {
    transform: scaleX(-1) translateX(400%);
  }
  
  .handle-top-right.slide-out {
    transform: translateX(400%);
  } 
  
  .handle-bottom-left.slide-out {
    transform: scaleX(-1) translateX(400%); 
  }
  
  .handle-bottom-right.slide-out {
    transform: translateX(400%);
  }
} 