/**
 * Avatar Page Styles
 * 3D avatar rendering page
 */

body {
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#avatar-container {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
}

/* UI Controls */
#ui {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
}

#ui button {
  margin: 5px;
  padding: 10px 15px;
  font-size: 10px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#ui button:hover {
  background: rgba(255, 255, 255, 1);
}

#ui h3 {
  color: white;
  font-family: monospace;
  margin: 10px 5px 5px 5px;
}

#ui pre {
  color: rgb(15, 15, 15);
  font-family: monospace;
  /* background: rgba(0, 0, 0, 0.7); */
  padding: 5px;
  border-radius: 5px;
  margin: 2px;
}

canvas {
  display: block;
  transform: rotate(90deg) scaleX(1.4) scaleY(1.3) translateX(-15px) translateY(-20px);
  filter: brightness(1.3);
}

#debug {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  font-family: monospace;
  font-size: 12px;
}

/* Loading Screen */
#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

#loadingOverlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  color: white;
}

.loading-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  font-family: 'Arial', sans-serif;
}

.loading-text {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.progress-container {
  width: 400px;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #fff, #f0f0f0);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.loading-percentage {
  margin-top: 15px;
  font-size: 24px;
  font-weight: bold;
}

/* Debug info */
.debug-info {
  position: fixed;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.75rem;
  line-height: 1.4;
  display: none;
}

.debug-info.visible {
  display: block;
}
