/**
* Name: style.css
*/


body {
  font-family: 'Noto Sans KR', sans-serif;
  background-color: #fff;
  color: #fff;
  display: flex;
  min-height: 100%;
  justify-content: center;
  padding-top: 30px;
  padding-bottom: 30px;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  /* background-image: url(img/bg.jpg); */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  opacity: 0.8;
  filter: grayscale(100%);
}

.intro-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.chat-container {
  background-color: rgba(0, 0, 0, 0.9);
  border-radius: 20px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  padding: 20px;
  width: 80%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  margin-top: 1%;
  z-index: 1;
  position: relative;
  padding-bottom: 20px;
  min-width: 360px;
}

.chat-content {
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 360px;
}

.messages {
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  min-height: 20px;
}

.message {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 20px;
  max-width: 80%;
  word-wrap: break-word;
  font-size: 16px;
  line-height: 1.5;
}

.message.me {
  align-self: flex-end;
  background-color: #8d6aff;
  color: #fff;
}

.message.bot {
  align-self: flex-start;
  background-color: #fff;
  color: #333;
}

input[type="text"] {
  padding: 10px;
  border-radius: 20px;
  border: none;
  font-size: 16px;
  background-color: #f787db;
  color: #000;
  width: calc(100% - 70px);
  margin-right: 10px;
}

input:focus {
  outline: none;
  border-color: blue;
  background-color: rgb(252, 230, 230);  
}

button {
  padding: 10px;
  background-color: #8d6aff;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  transition: all 0.3s ease;
  align-self: flex-end;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

button:hover {
  background-color: #4b2f91;
}

button:disabled,
button[disabled] {
  border: 1px solid #999999;
  background-color: #cccccc;
  color: #666666;
}

.message.me:before {
  content: "";
  position: absolute;
  border-width: 20px 20px 20px 0;
  border-color: transparent rgba(255, 255, 255, 0.8) transparent transparent transparent;
  top: 0;
  left: -20px;
}

.message.bot:before {
  content: "";
  position: absolute;
  border-width: 20px 0 20px 20px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.8);
  top: 0;
  right: -20px;
}

h1 {
  font-size: 24px;
  text-shadow: 2px 2px #000;
  text-align: center;
  margin: 0;
}

p {
  font-size: 24px;
  margin-bottom: 30px;
  text-align: center;
}

#introduction {
  font-size: 12px;
  text-align: center;
  margin-top: 3px;
  margin-bottom: 3px;
}

#copyright {
  font-size: 12px;
  color: #ecdc48e0;
  text-decoration: underline;
  text-align: center;
  margin-top: 3px;
  margin-bottom: 10px;
}

#loading {
  padding-bottom: 10px;
  display: none;
}

#intro-message {
  font-size: 20px;
  margin: 0;
  text-align: center;
}

#intro-question {
  display: flex;
  flex-direction: column;
}

#start-btn {
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 20px;
  width: 100%;
  border-radius: 20px;
}

label {
  font-size: 20px;
  text-align: center;
  margin-top: 5px;
  margin-bottom: 5px;
}

#chat {
  display: none;
}

#kakao-ad {
  min-width: 320px;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-top: 25px;
  margin-bottom: 5px;
}

/* PC 테블릿 스타일 */
@media (max-width: 1024px) {
  #intro-message { font-size: 20px; }
}

/* 핸드폰 스타일 */
@media (max-width: 480px) {
  #intro-message { font-size: 17px; }
}