/* training.css
 * Copyright (c) 2025, 7th software Ltd.
 * All rights reserved.
 */

.mirror {
  font-size: 0.35em;
  cursor: pointer;
  color: #7ec4dd;
}

.fullscreen {
  font-size: 0.35em;
  cursor: pointer;
  color: #7ec4dd;
}

.target {
  position: absolute;
  background-image: url('images/targets/target.png');
  background-size: contain;
  background-repeat: no-repeat;
  filter: brightness(75%) contrast(90%);

  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;

  aspect-ratio: 1 / 1;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.target.visible {
  opacity: 1;
  pointer-events: auto;
}

#pauseOverlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  font-family: "Noto Sans Symbols 2", sans-serif;
  font-size: 20vw;
  color: #ffff00;

  text-shadow:
    -3px -3px 0 #000,
     3px -3px 0 #000,
    -3px  3px 0 #000,
     3px  3px 0 #000,
    0px  0px 5px #000;

  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease-in-out;
  z-index: 4;
}

#pauseOverlay.show {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 1000ms ease-out;
}

#webcamContainer {
  position: fixed;
  left: 1rem;
  width: 33.333vw;
  aspect-ratio: 4 / 3;
  min-width: 160px;
  max-width: 75vw;
  z-index: 70;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  overflow: hidden;
  resize: none;
  display: none;
  cursor: move;
}

#webcam {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#resizeHandle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 2.6rem;
  height: 2.6rem;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.85);
  font-weight: bold;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: se-resize;
}
