/* Base body styling */
body {
  background: #222;
  color: #fff;
  font-family: "Press Start 2P", "VT323", "Consolas", monospace;
  margin: 0;
  padding: 0;
  height: 100%;
}

/* Main title styling */
h1 {
  font-family: inherit;
  font-size: 2rem;
  text-align: center;
  margin-top: 2rem;
  letter-spacing: 2px;
  text-shadow: 2px 2px 0 #000, 4px 4px 0 #ff00cc;
}

/* Photobooth container */
.photobooth-container {
  background: #222;
  border: 4px solid #ffcc00;
  box-shadow: 8px 8px 0 #000;
  padding: 32px 16px;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 420px;
  margin: 32px auto;
  position: relative;
  z-index: 2;
}

/* Pixel frame for video */
.pixel-frame,
#video {
  display: block;
  margin: 2rem auto 1rem auto;
  image-rendering: pixelated;
  background: #111;
}

/* Countdown styling */
.pixel-countdown {
  font-family: inherit;
  font-size: 2.5rem;
  color: #ff3333;
  text-shadow: 2px 2px #000;
  margin-bottom: 12px;
  min-height: 40px;
  letter-spacing: 2px;
}

/* Photo strip */
.photo-strip {
  display: flex;
  gap: 0; /* <--- remove gap */
  margin: 0;
  padding: 0;
}

.photo-strip.vertical {
  flex-direction: column;
  width: 160px;
  min-height: auto;
}

.photo-strip.horizontal {
  flex-direction: row;
  width: auto;
  min-height: auto;
}

/* Orientation strip for photo options */
.strip-orientation {
  display: flex;
  gap: 16px;
  margin: 12px 0 8px 0;
  font-family: inherit;
  font-size: 1rem;
  color: #ffcc00;
  align-items: center;
  justify-content: center;
}

.strip-orientation input[type="radio"] {
  accent-color: #ffcc00;
  margin-right: 4px;
}

/* Different orientations for photo strip */
.photo-strip.vertical {
  flex-direction: column;
  gap: 8px;
  width: 160px;
  min-height: 376px;
}

.photo-strip.horizontal {
  flex-direction: row;
  gap: 8px;
  width: 496px;
  min-height: 120px;
}

/* Individual photo canvas styling */
.photo-strip canvas {
  border: none;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

/* Pixel buttons and general button styling */
.pixel-btn,
button {
  display: block;
  margin: 1rem auto;
  padding: 0.75em 2em;
  font-family: inherit;
  font-size: 1rem;
  background: #ff00cc;
  color: #fff;
  border: 4px solid #fff;
  border-radius: 0;
  box-shadow: 2px 2px 0 #000;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 1px;
}

.pixel-btn:hover,
button:hover {
  background: #fff;
  color: #ff00cc;
  border-color: #ff00cc;
}

.pixel-btn:active,
button:active {
  transform: translateY(2px) scale(0.97);
  box-shadow: 1px 1px 0 #000;
  background: #ffe066;
  color: #222;
}

/* Actions section styling */
#actions {
  margin: 2rem auto 0 auto;
  max-width: 400px;
  background: #111;
  border: 4px solid #ff00cc;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  padding: 1em;
  text-align: center;
  box-shadow: 2px 2px 0 #000;
  word-break: break-word;
}

/* Responsive for photobooth */
@media (max-width: 600px) {
  .photobooth-container {
    max-width: 98vw;
    padding: 12px 2vw;
  }
  .photo-strip {
    gap: 2vw;
    padding: 4px;
  }
  .pixel-frame,
  #video {
    width: 95vw;
    max-width: 95vw;
    height: auto;
  }
  #actions {
    max-width: 95vw;
    font-size: 0.85rem;
  }
}
.flash-effect {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  opacity: 0.8;
  z-index: 9999;
  animation: flash 0.3s ease-out;
  pointer-events: none;
}

@keyframes flash {
  0% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
  }
}
#video {
  border: 8px solid transparent;
  border-radius: 12px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

/* Frame Styles */
.frame1 {
  border: 8px solid #00bfff; /* Blue glow */
  box-shadow: 0 0 15px #00bfff;
}

.frame2 {
  border: 8px dashed #00ff66; /* Retro green */
  box-shadow: 0 0 10px #00ff66;
}

.frame3 {
  border: 8px dotted #ff66cc; /* Pink arcade */
  box-shadow: 0 0 15px #ff66cc;
}

.frame4 {
  border: 8px double #ff3300; /* Fire pixel */
  box-shadow: 0 0 20px #ff3300;
}

.frame5 {
  border: 8px groove #9933ff; /* Cyberpunk */
  box-shadow: 0 0 20px #9933ff;
}
