* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: 'Segoe UI', sans-serif;
  background: #111;
  color: #fff;
}

#container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

#header {
  padding: 20px;
  text-align: center;
}

.glow {
  font-size: 3rem;
  color: #fff;
  text-shadow: 0 0 10px #ff9900, 0 0 20px #ff7a00;
  animation: pulse 2s infinite ease-in-out;
}

.typing-animation {
  font-size: 1rem;
  font-style: italic;
  color: #aaa;
  margin-top: 8px;
}

@keyframes pulse {
  0%, 100% {
    text-shadow: 0 0 10px #ff9900, 0 0 20px #ff7a00;
  }
  50% {
    text-shadow: 0 0 15px #ffaa33, 0 0 25px #ff9900;
  }
}

#chatbox {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  margin: 0 auto 20px;
  width: 90%;
  max-width: 600px;
  background: #1e1e1e;
  border-radius: 12px;
  border: 1px solid #333;
}

.message {
  margin: 10px 0;
  text-align: left;
  line-height: 1.5;
  word-wrap: break-word;
}

.ai {
  color: #00d8ff;
}

.user {
  color: #fff;
}

#chat-form {
  display: flex;
  gap: 10px;
  padding: 15px;
  border-top: 1px solid #333;
  background: #111;
  width: 90%;
  max-width: 600px;
  margin: 0 auto;
}

#user-input {
  flex: 1;
  padding: 12px;
  border-radius: 6px;
  border: none;
  outline: none;
  font-size: 1rem;
  background: #333;
  color: white;
}

button {
  padding: 12px 16px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background: #da1216;
  color: white;
  cursor: pointer;
}

button:hover {
  background: #a31125;
}
.subtitle-typing {
  font-size: 1rem;
  font-weight: 400;
  color: #fff;
  margin-top: 10px;
  white-space: pre;
  min-height: 1.2em;
}

.subtitle-typing::after {
  content: '|';
  animation: blinkCaret 0.8s step-end infinite;
  margin-left: 2px;
}

@keyframes blinkCaret {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

