body {
  font-family: sans-serif;
  text-align: center;
  background: #f0f0f0;
  color: #333;
  margin: 0;
  padding: 1em;
}

.video-container {
  position: relative;
  display: inline-block;
  margin: 1em;
}

#webcam {
  display: block;
  max-width: 100%;
  transform: rotateY(180deg);
}

.highlighter {
  position: absolute;
  background: rgba(0, 255, 0, 0.25);
  border: 1px dashed #fff;
  z-index: 1;
}

.label {
  position: absolute;
  background-color: #007f8b;
  color: #fff;
  border: 1px dashed rgba(255, 255, 255, 0.7);
  font-size: 12px;
  margin: 0;
  padding: 5px;
  z-index: 2;
}

.key-point {
  position: absolute;
  width: 3px;
  height: 3px;
  background-color: #ff0000;
  border-radius: 50%;
  z-index: 1;
}

button {
  font-size: 16px;
  padding: 10px 20px;
  margin: 10px;
  cursor: pointer;
}

button:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
}

.hidden {
  display: none;
}

#capturedContainer {
  margin-top: 20px;
}

#capturedPhoto {
  width: 100%;
  max-width: 700px;
  height: auto;
  border: 4px solid #444;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

/* --- Face guidance overlay --- */
#guideOverlayFixed {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

#guideOverlayFixed .guide-oval {
  position: relative;
  width: min(64vmin, 78%);
  height: calc(min(64vmin, 78%) * 1.35);
  border: 2px solid rgba(255, 255, 255, .85);
  border-radius: 50% / 55%;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.12);
}

#guideOverlayFixed .guide-cross {
  position: absolute;
  background: rgba(255,255,255,.85);
}

#guideOverlayFixed .guide-cross.v {
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

#guideOverlayFixed .guide-cross.h {
  height: 2px;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
}

#guideOverlayFixed .guide-hints {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

#guideOverlayFixed .hint {
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
}
