body {
  height: 100vh;
  background: #393939;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: sans-serif;
  overflow: hidden;
}

.scene-container {
  display: flex;
  align-items: center;
  /* justify-content: center;
        transform: scale(2); */
  transform: scale(0.75);
  gap: 40px;
}

.controls-group {
  display: flex;
  gap: 20px;
  align-items: center;
}

.camera {
  width: 200px;
  height: 160px;
  background: #111;
  border-radius: 20px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  z-index: 5;
}

.lens {
  width: 100px;
  height: 100px;
  background: #222;
  border-radius: 50%;
  border: 5px solid #333;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 0 20px #000;
  position: relative;
  z-index: 6;
}
.lens-inner {
  width: 40px;
  height: 40px;
  background: #1a1a1a;
  border-radius: 50%;
  border: 2px solid #555;
}

.flash {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 20px;
  background: #fff;
  border-radius: 5px;
  opacity: 0.5;
}
.stripe {
  position: absolute;
  bottom: 20px;
  width: 100%;
  height: 10px;
  background: linear-gradient(
    90deg,
    #ff5f56,
    #ffbd2e,
    #27c93f,
    #0077b5,
    #d13d6e
  );
  pointer-events: none;
}

.shutter-trigger {
  position: absolute;
  top: -20px;
  left: 30px;
  width: 50px;
  height: 40px;
  z-index: 100;
  cursor: pointer;
}
.shutter-visual {
  width: 100%;
  height: 100%;
  background: #ff5f56;
  border-radius: 8px 8px 0 0;
  transition: 0.1s;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}
.shutter-trigger:active .shutter-visual {
  transform: translateY(10px);
}

.photo {
  position: absolute;
  top: 40px;
  width: 140px;
  height: 160px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  transition: top 0.8s cubic-bezier(0.5, 0, 0.5, 1), transform 0.5s;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 4px;
  transform: scale(0);
  opacity: 0;
}

.photo-inner {
  width: 100%;
  height: 110px;
  background: #333;
  margin-bottom: 10px;
  transition: background-color 0.1s;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
}
.photo-inner img {
  width: 100%;
  height: 107px;

  object-fit: contain;
  opacity: 0;
  transition: opacity 1.5s 0.5s;
}

.photo-text {
  /* font-family: "Comic Sans MS", cursive; */
  font-size: 14px;
  color: #333;
  opacity: 0;
  transition: opacity 1.5s 0.5s;
}

.camera.snap .photo {
  top: 150px;
  transform: scale(1);
  opacity: 1;
}
.camera.snap .photo-inner img {
  opacity: 1;
}
.camera.snap .photo-text {
  opacity: 1;
}

.slider-container {
  position: relative;
  width: 30px;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 160px;
  height: 20px;
  background: linear-gradient(
    to right,
    #ff0000,
    #ff8000,
    #ffff00,
    #00ff00,
    #00ffff,
    #0000ff,
    #8000ff,
    #ff00ff,
    #ff0000
  );
  border-radius: 50px;
  outline: none;
  cursor: pointer;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: rotate(-90deg);
  border: 2px solid #fff;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(2px);
  border: 3px solid #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  cursor: grab;
  transition: transform 0.1s;
}
input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.2);
  background: rgba(255, 255, 255, 0.8);
  cursor: grabbing;
}

.poses-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pose-btn {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #fff;
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  transition: 0.2s;
  opacity: 0.7;
  overflow: hidden;
}
.pose-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.pose-btn.active {
  border-color: #d13d6e;
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(209, 61, 110, 0.3);
}

.pose-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.flash-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 200;
}
.flash-anim {
  animation: flash 0.2s;
}
@keyframes flash {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
