body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fd6ffd;
}

.intro-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  flex-direction: column;
}

.intro-container h1 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
}

.intro-container img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.intro-container .input-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-container input[type="text"],
.intro-container button,
.intro-container select,
.intro-container input[type="date"] {
  padding: 10px;
  font-size: 16px;
  border: 2px solid #007BFF;
  border-radius: 5px;
  margin-bottom: 10px;
}

.intro-container button {
  background-color: #007BFF;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.intro-container button:hover {
  background-color: #0056b3;
}

/* 기존 코드 */

.chat-container {
  display: none; /* 기본적으로 채팅 UI는 숨김 */
  max-width: 500px;
  margin: 20px auto;
  border: 2px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  background-color: #FFFFFF;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
}

.chat-messages {
  height: 300px;
  overflow-y: scroll;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  background-image: none;
}

.chat-messages .message-container {
  margin-bottom: 10px;
}

.user-message {
  background-color: #007BFF;
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  position: relative;
}

.prof-message {
  background-color: #F0F0F0;
  color: #000;
  padding: 8px 20px;
  border-radius: 20px;
  position: relative;
}

.chat-input {
  display: flex;
  margin-top: 10px;
}

.chat-input input[type="text"] {
  flex: 1;
  padding: 8px 10px;
  font-size: 14px;
  border: 2px solid #ccc;
  border-radius: 5px 0 0 5px;
  outline: none;
}

.chat-input button {
  padding: 8px 15px;
  font-size: 14px;
  background-color: #007BFF;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.chat-input button:hover {
  background-color: #0056b3;
}

.loading-spinner {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.3);
  border-top: 4px solid #007BFF;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

.background-image-container img {
  display: none;
}

.chat-container {
  position: relative;
}

/* 신비로운 디자인 */
.chat-background {
  display: none; /* 기본적으로 배경 이미지는 숨김 */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('background.jpg'); /* 채팅 UI 배경 이미지 경로 */
  background-size: cover;
  opacity: 0.5;
  pointer-events: none;
}

.user-message:before {
  content: '';
  position: absolute;
  top: 50%;
  left: -15px;
  border: 7px solid transparent;
  border-right: 10px solid #007BFF;
  transform: translateY(-50%);
}

.prof-message:before {
  content: '';
  position: absolute;
  top: 50%;
  right: -15px;
  border: 7px solid transparent;
  border-left: 10px solid #F0F0F0;
  transform: translateY(-50%);
}

/* 채팅 UI 보이게 하는 스타일 */
.chat-container.show {
  display: block;
}

/* 애니메이션 */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.intro-container label {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
}



