/* === Warm Aesthetic Theme === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

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

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #6e461b, #935f2b);
  color: #3d2b1f;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.5s ease;
}

.container {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(80, 50, 20, 0.15);
  padding: 2rem 2.5rem;
  text-align: center;
  max-width: 600px;
  width: 90%;
  transition: all 0.3s ease;
}

.container:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(80, 50, 20, 0.2);
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #5c3d2e;
  letter-spacing: 0.5px;
}

.player {
  margin-bottom: 1.2rem;
}

.player p {
  font-size: 1rem;
  margin: 0.4rem 0;
  transition: color 0.4s ease;
}

/* Gesture Text Animation */
#gesture-text {
  font-weight: 600;
  color: #b85c38;
  animation: fadePulse 2s infinite alternate;
  text-shadow: 0 0 8px rgba(184, 92, 56, 0.3);
}

@keyframes fadePulse {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.02); }
}

/* Video + Canvas */
#input_video {
  display: none;
}

#output_canvas {
  border-radius: 15px;
  border: 2px solid #b97a56;
  box-shadow: 0 0 15px rgba(185, 122, 86, 0.4);
  transition: box-shadow 0.4s ease;
}

/* Highlight canvas when gesture stable */
.stable-gesture #output_canvas {
  box-shadow: 0 0 25px rgba(185, 122, 86, 0.7);
}

/* Smooth fade transitions */
.fade {
  animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
