/* 기존 CSS 코드 */

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #F0F0F0;
}

.intro-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  flex-direction: column;
}

.intro-container h1 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
}

/* 이미지 크기 및 배치 조정 */
.intro-container img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* 추가: 입력칸과 버튼 디자인 수정 */
.intro-container input[type="text"],
.intro-container button {
  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 {
  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 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('home.jpg'); /* 채팅 UI 배경 이미지 경로 */
  background-size: cover;
  opacity: 0.5;
  pointer-events: none;
}
