body {
  font-family: Arial, sans-serif;
  background: #121212;
  color: #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

header {
  text-align: center;
  margin-bottom: 1rem;
}

header p {
  margin-top: 0.5rem;
}

.video-wrapper {
  position: relative;
  width: 640px;
  max-width: 100%;
  height: auto;
}

#video {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.overlay {
  position: absolute;
  transform: translateY(-100%);
  margin-bottom: 5px; 
  background: rgba(0,0,0,0.7);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 1.2rem;
  color: #00bcd4;
  z-index: 10;
  display: none;
}

.bounding-box {
  position: absolute;

  border: 2px solid #00FF00; 
  
  box-sizing: border-box; 
}

/* Mobile */
@media screen and (max-width: 700px) {
  .video-wrapper { width: 100%; }
  .overlay { font-size: 1rem; }
}


/* Page background gradient */
body {
  background: linear-gradient(135deg, #1e2328, #2f3a4f);
}

/* Animate background shift */

/* Header text color animation */
header h1 {
  color: #00bcd4;
}


/* Overlay “pop” animation on emotion change */
.overlay {
  animation: pop 0.3s ease forwards;
}

@keyframes pop {
  0%   { transform: translateX(-50%) scale(1); }
  50%  { transform: translateX(-50%) scale(1.2); }
  100% { transform: translateX(-50%) scale(1); }
}
