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

a {
  color: white;
  text-decoration: none;
}
a:hover {
  color: lightblue;
}

body {
  bottom: 0;
  font-family: "Titillium Web", sans-serif;
  color: white;
  left: 0;
  margin: 0;
  position: absolute;
  right: 0;
  top: 0;
  transform-origin: 0px 0px;
  overflow: hidden;
}

.container {
  position: absolute;
  background-color: white;
  width: 100%;
  max-height: 100%;
}

.input_video {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.input_video.selfie {
  transform: scale(-1, 1);
}

.input_image {
  position: absolute;
}

.canvas-container {
  display: flex;
  height: 100%;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.output_canvas {
  max-width: 100%;
  display: block;
  position: relative;
  left: 0;
  top: 0;
}

.logo {
  bottom: 10px;
  right: 20px;
}
.logo .title {
  color: white;
  font-size: 28px;
}
.logo .subtitle {
  position: relative;
  color: white;
  font-size: 10px;
  left: -30px;
  top: 20px;
}

.control-panel {
  position: absolute;
  left: 10px;
  top: 10px;
}

.loading {
  display: flex;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  align-items: center;
  backface-visibility: hidden;
  justify-content: center;
  opacity: 1;
  transition: opacity 1s;
}
.loading .message {
  font-size: x-large;
  color: black;
}
.loading .spinner {
  position: absolute;
  width: 120px;
  height: 120px;
  animation: spin 1s linear infinite;
  border: 32px solid #bebebe;
  border-top: 32px solid #3498db;
  border-radius: 50%;
  visibility: hidden;
}

.loaded .loading {
  opacity: 0;
}

.shoutout {
  left: 0;
  right: 0;
  bottom: 40px;
  text-align: center;
  font-size: 24px;
  position: absolute;
}

.necklace-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 10px;
}

.necklace-btn {
  padding: 8px 16px;
  background: linear-gradient(145deg, #3a3a3a, #1a1a1a);
  color: #ffd700;
  border: 1px solid #ffd700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.necklace-btn:hover {
  background: linear-gradient(145deg, #4a4a4a, #2a2a2a);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.necklace-btn.active {
  background: linear-gradient(145deg, #ffd700, #ffaa00);
  color: #000;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.earring-controls {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 10px;
}

.earring-btn {
  padding: 8px 16px;
  background: linear-gradient(145deg, #3a3a3a, #1a1a1a);
  color: #ff69b4;
  border: 1px solid #ff69b4;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px rgba(255, 105, 180, 0.5);
  box-shadow: 0 0 10px rgba(255, 105, 180, 0.3);
}

.earring-btn:hover {
  background: linear-gradient(145deg, #4a4a4a, #2a2a2a);
  box-shadow: 0 0 15px rgba(255, 105, 180, 0.5);
}

.earring-btn.active {
  background: linear-gradient(145deg, #ff69b4, #ff1493);
  color: #000;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.8);
}

.jewelry-selector {
  position: absolute;
  bottom: 350px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

.jewelry-selector select {
  padding: 8px 16px;
  background: linear-gradient(145deg, #3a3a3a, #1a1a1a);
  color: white;
  border: 1px solid #666;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.jewelry-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 10px;
}

/* Hide inactive controls */
.jewelry-controls:not(.active) {
  display: none;
}

