/* DEINE CSS – UNVERÄNDERT + KLEINER FIX FÜR .timer-controls */
.timer-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 13px;
  color: #00ffee;
  font-family: sans-serif;
}

/* Der Rest ist DEINE perfekte CSS – unverändert! */
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(270deg, #000814, #001f3f, #000b33);
  background-size: 400% 400%;
  animation: gradientMove 15s ease infinite;
  font-family: 'Poppins', sans-serif;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
}

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

header {
  text-align: center;
  padding: 20px 0;
  animation: pulse 3s infinite alternate ease-in-out;
}

header h1 {
  font-size: 26px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

header .glow {
  color: #5c00ff;
  text-shadow: 0 0 10px #5c00ff, 0 0 20px #5c00ff, 0 0 40px #5c00ff;
}

header .chat {
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 40px #00ffff;
}

#userCount {
  background: #222;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-family: sans-serif;
  font-size: 14px;
  box-shadow: 0 0 10px #00ffff;
  border: 2px solid #00ffff;
}

@keyframes pulse {
  0% { transform: scale(1); filter: brightness(100%); }
  100% { transform: scale(1.05); filter: brightness(130%); }
}

.container {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 2;
}

.video-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
}

#mainCamera, #guestCamera {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  background: #000814;
  display: block;
  opacity: 1;
  visibility: visible;
}

#mainCamera {
  border: 3px solid #00cccc;
  background: #000a1a;
  animation: cameraGlowCyan 3s ease-in-out infinite alternate;
}

#guestCamera {
  border: 3px solid #5c00ff;
  animation: cameraGlowPurple 3s ease-in-out infinite alternate;
}

@keyframes cameraGlowCyan {
  0% { box-shadow: 0 0 10px #00cccc; }
  100% { box-shadow: 0 0 25px #00cccc, 0 0 45px #00cccc; }
}

@keyframes cameraGlowPurple {
  0% { box-shadow: 0 0 10px #5c00ff; }
  100% { box-shadow: 0 0 25px #5c00ff, 0 0 45px #5c00ff; }
}

.chat-section {
  text-align: center;
  width: 100%;
}

.chat-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 120px;
  background: rgba(0, 0, 40, 0.7);
  border-radius: 10px;
  border: 2px solid #a020f0;
  box-shadow: 0 0 15px #a020f0;
  overflow-y: auto;
  padding: 10px;
  margin-bottom: 12px;
}

.chat-message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  margin: 5px 0;
  max-width: 90%;
  word-wrap: break-word;
  animation: fadeIn 0.4s ease-out;
}

.chat-message.you {
  background-color: #00ccff;
  color: black;
  align-self: flex-end;
}

.chat-message.guest {
  background-color: #9933ff;
  color: white;
  align-self: flex-start;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.timestamp {
  font-size: 0.85rem;
  margin-left: 6px;
  color: #ffcc00;
  font-style: italic;
  text-shadow: 0 0 6px #ffcc00;
  opacity: 0.9;
}

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

.input-area {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.input-area input {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid #a020f0;
  background: #000b33;
  color: #fff;
  outline: none;
  box-shadow: 0 0 10px #a020f0;
}

.input-area button {
  border: 2px solid cyan;
  background: transparent;
  color: cyan;
  font-weight: bold;
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.input-area button:hover {
  background: cyan;
  color: #000;
  box-shadow: 0 0 15px cyan;
}

#backBtn, #nextBtn {
  border: 2px solid #ff0033;
  background: transparent;
  color: #ff0033;
  font-weight: bold;
  border-radius: 10px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#backBtn:hover, #nextBtn:hover {
  background: #ff0033;
  color: #000;
  box-shadow: 0 0 15px #ff0033;
}

.controls {
  margin-top: 10px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 10px;
}

.controls button {
  border: 2px solid cyan;
  background: transparent;
  color: cyan;
  font-weight: bold;
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.controls button:hover {
  background: cyan;
  color: #000;
  box-shadow: 0 0 15px cyan;
}

body.dark {
  background: #111;
  color: #eee;
}

body.dark .chat-message.you {
  background-color: #00cccc;
}

body.dark .chat-message.guest {
  background-color: #6600cc;
}

@media (max-width: 600px) {
  header h1 { font-size: 22px; }
  #mainCamera, #guestCamera { height: 180px; }
  .chat-box { height: 100px; }
  .chat-message { font-size: 0.95rem; }
  .avatar { width: 28px; height: 28px; }
}
