body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  animation: backgroundColorChange 10s infinite;
  position: relative;
}

@keyframes backgroundColorChange {
  0% { background-color: #f0f8ff; }
  20% { background-color: #e6f2ff; }
  40% { background-color: #d1e6ff; }
  60% { background-color: #f0ffe6; }
  80% { background-color: #fff0f0; }
  100% { background-color: #f0f8ff; }
}

.container {
  text-align: center;
  max-width: 600px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 60px;
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease;
}

.container:hover {
  transform: translateY(-5px);
}

#loadingIndicator {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 20px;
}

#warningMessage {
  color: red;
  font-weight: bold;
  margin-top: 20px;
  display: none;
}

.hidden {
  display: none;
}

#video, #canvas {
  width: 100%;
  max-height: 400px;
  margin-top: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

#emotionResult {
  margin-top: 20px;
  font-size: 1.2rem;
  color: #333;
}

.footer {
  text-align: center;
  padding: 15px;
  position: fixed;
  bottom: 0;
  width: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.9));
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  backdrop-filter: blur(5px);
  z-index: 100;
  animation: pulseFooter 2s infinite alternate;
}

.footer p {
  margin: 0;
  font-weight: bold;
  background: linear-gradient(45deg, #ff7b25, #ff5252, #6078ea, #8e44ad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: colorChange 4s infinite alternate;
  font-size: 1.2rem;
}

@keyframes colorChange {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes pulseFooter {
  0% { transform: scale(1); }
  100% { transform: scale(1.02); }
}

h1 {
  background: linear-gradient(45deg, #333, #666);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 25px;
}
