body {
  margin: 0;
  background: #2b2b2b;
  font-family: 'Arial', sans-serif;
  color: white;
}

.container {
  display: flex;
  height: 100vh;
  padding: 20px;
  gap: 20px;
}

.character-container {
  width: 350px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-container {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-container {
  padding: 20px;
  display: flex;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
}

input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.9);
}

button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background: #ff6699;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #ff4d88;
}

.message {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 15px;
  animation: fadeIn 0.3s ease;
  line-height: 1.4;
}

.user-message {
  align-self: flex-end;
  background: #ff6699;
}

.bot-message {
  align-self: flex-start;
  background: #6666ff;
}

#waifu-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px rgba(255, 204, 221, 0.3));
}

@keyframes bodySway {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes blink {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.1); }
}

@keyframes sparkle {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

.emotional-effect {
  animation: float 3s ease-out forwards;
  font-size: 24px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-50px); opacity: 0; }
}

/* For the automatic blinking */
.eye-pupil {
  animation: blink 4s infinite;
  transform-origin: center;
}

.hair-strand-1, .hair-strand-2 {
  animation: slowWave 3s ease-in-out infinite;
}

@keyframes slowWave {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(2deg); }
}

.body {
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.01); }
}