body {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
  background-color: #1e1e1e;
  background-image: radial-gradient(
    circle at center,
    rgba(255, 0, 0, 0.626),
    rgba(255, 2, 221, 0.539) 70%
  );
  height: 100vh;
  margin: 0;
  padding: 0;
}

.chat-wrapper {
  width: 100%;
  max-width: 600px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

#chat-top-img {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.2;
}

h1 {
  margin: 0 0 20px;
  font-weight: normal;
  text-align: center;
  font-size: 1.8em;
  color: #f5f5f5;
}

.chat-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow-y: auto;
  height: 400px;
  padding: 10px;
  border: 2px solid #444;
  border-radius: 10px;
  background-color: rgba(30, 30, 30, 0.8);
}

.chat-text-container {
  overflow-y: auto;
}

.message {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.user-message {
  width: fit-content;
  max-width: 70%;
  background-color: #af1700;
  color: #fff;
  padding: 8px 12px;
  border-radius: 16px;
  margin-left: auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  line-height: 1.5rem;
}

.assistant-message {
  width: fit-content;
  max-width: 70%;
  background-color: #ae0080;
  color: #fff;
  padding: 8px 12px;
  border-radius: 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  line-height: 1.5rem;
}

.input-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

input[type="text"] {
  flex-grow: 1;
  padding: 10px;
  border: 2px solid #444;
  border-radius: 5px;
  background-color: rgba(51, 51, 51, 0.9);
  color: #f5f5f5;
}

button {
  padding: 10px 20px;
  background-color: #af1700;
  border: none;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 10px;
}

.intro-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  color: white;
}

.intro-container img {
  width: 40%;
  min-width: 300px;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.intro-container input {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  border: 2px solid #444;
  border-radius: 5px;
  background-color: rgba(51, 51, 51, 0.9);
  color: #f5f5f5;
  margin: 0.2rem 0 1.2rem 0;
  text-align: center;
}

.intro-container select {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  border: 2px solid #444;
  border-radius: 5px;
  background-color: rgba(51, 51, 51, 0.9);
  color: #f5f5f5;
  margin: 0.2rem 0 1.2rem 0;
  text-align: center;
}

.intro-container button {
  background-color: #000000;
  width: 100%;
  max-width: 300px;
  margin: unset;
}

.loader {
  margin: auto;
  display: flex;
  align-items: center;
  font-size: 2rem;
  color: white;
}

.kakao-ad {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  min-width: 320px;
  min-height: 100px;
}
