* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: black;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.container {
  max-width: 56rem;
  width: 100%;
}

.card {
  background-color: black;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

h1 {
  font-size: 1.875rem;
  font-weight: bold;
  color: white;
  text-align: center;
}

.confidence-container {
  color: white;
  text-align: center;
  padding: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.error {
  background-color: #ef4444;
  color: white;
  padding: 1rem;
  margin-bottom: 1rem;
}

.video-container {
  position: relative;
  background-color: black;
  overflow: hidden;
}

#video {
  display: none;
}

#canvas {
  width: 100%;
  height: auto;
  display: block;
}

/* Overlay button */
.video-overlay-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.7s ease;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.video-overlay-btn.pop {
  transform: translateX(-50%) scale(1.3);
}

.video-overlay-btn img {
  width: 120px;
  height: auto;
  transform: scaleX(-1);
}

.info-text {
  margin-top: 1rem;
  color: #9ca3af;
  font-size: 0.875rem;
  text-align: center;
}

.console-text {
  margin-top: 0.5rem;
  color: #6b7280;
  font-size: 0.75rem;
  text-align: center;
}

.hidden {
  display: none;
}