body {
  font-family: Arial, sans-serif;
  background-color: #222;
  color: #fff;
  margin: 0;
  padding: 1rem;
  text-align: center;
}

body.light-mode {
  background: #f0f0f0;
  color: #222;
}

h1 {
  font-size: 2.7rem;
  margin-bottom: 1.2rem;
  background: linear-gradient(to right, #ff9a9e, #fad0c4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

#videoElement {
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  margin-bottom: 24px;
  object-fit: cover;
}

.btn {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: 50px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  margin: 10px 0;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

.btn:hover {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
  box-shadow: 0 8px 20px rgba(56, 249, 215, 0.5);
  transform: scale(1.05);
}

#emojiDisplay {
  margin-top: 20px;
}

#emojiDisplay img {
  margin-top: 1rem;
  width: 140px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  animation: bounce 1.2s ease infinite;
}

#toggleTheme {
  background: linear-gradient(to right, #ff6a00, #ee0979);
  color: #fff;
  padding: 12px 24px;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  box-shadow: 0 6px 12px rgba(255, 106, 0, 0.4);
}

#toggleTheme:hover {
  background: linear-gradient(to right, #ee0979, #ff6a00);
  box-shadow: 0 8px 18px rgba(238, 9, 121, 0.5);
  transform: scale(1.05);
}

#emotionText {
  font-size: 1.3rem;
  margin-top: 1.2rem;
  font-weight: 500;
  color: #c7ffec;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

#downloadEmoji {
  display: none;
  background: linear-gradient(to right, #ff6a00, #ee0979);
  padding: 12px 24px;
  border-radius: 40px;
  margin-top: 20px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

#downloadEmoji:hover {
  background: linear-gradient(to right, #ee0979, #ff6a00);
  box-shadow: 0 6px 12px rgba(255, 106, 0, 0.4);
}

#capturedImagePreview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  width: 100%;
  padding: 0 1rem;
}

#snapshotImage {
  max-width: 100%;
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  margin-top: 0.5rem;
  height: auto;
}