* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f5f5f5;
  font-family: "Noto Sans KR", sans-serif;
  background-color: #393c3c;
  width: 100%;
  height: 100%;
}

.chat-container {
  width: 90%;
  height: 100%;
  max-width: 500px;

  margin: 20px auto;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  border: 5px solid #b774c3;
  background-color: #b774c3;
}

.chat-header {
  padding: 20px 20px 0 20px;
  text-align: center;
  background-color: #b774c3;
  color: #fff;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;

  display: flex;
  /* flex-direction: row; */
  /* justify-content: center; */
  justify-content: space-between;
}

.chat-header-img {
  width: 50px;
  height: 50px;
  /* margin-right: 20px; */
  border-radius: 50%;
}

.gift-b {
  color: #4763ff;
}

.gift-t {
  text-align: right;
  padding-right: 5%;
  color: #fde533;
  @media screen and (min-width: 500px) {
    padding-right: 3%;
  }
}

.chat-header h1 {
  font-size: 20px;
  margin: 0 20px;

  display: flex;
  justify-content: center;
  align-items: center;
}

.chat-box {
  /* min-height: 100%; */
  padding: 20px 20px 20px 20px;
  /* width: 100%; */
  height: 400px;
  overflow-y: scroll;
  background-color: #393c3c;
  border-radius: 10px;
  /* border-top-left-radius: 5px; */
  /* border-top-right-radius: 5px; */
  position: relative;
}

.chat-input {
  /* display: flex; */
  /* align-items: center; */
  padding: 10px;
  /* border-top: 1px solid #eee; */
  display: flex;
  justify-content: center;
  align-items: stretch;
}
.chat-input #btn {
  /* height: 100%; */
  width: 10%;
}

.chat-input * {
  border-radius: 10px;
  border: #b774c3;
}

.chat-input input[type="text"] {
  flex-grow: 1;
  padding: 10px;
  margin-right: 10px;
  border-radius: 5px;
}

.fa-regular {
  color: #b774c3;
}

.assistant-message {
  margin-bottom: 20px;
  margin-left: 5%;
}

/* 초기 시작 멘트 */
.assistant-message p {
  max-width: 80%;
  padding: 10px 15px;
  margin-left: -5%;
  background-color: #c5e5ff;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.user-message {
  margin-bottom: 20px;
  text-align: right;
}

.user-message p {
  max-width: 80%;
  padding: 10px 15px;
  background-color: #ffffff;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.user {
  max-width: 80%;
  padding: 10px 15px;
  background-color: #c5e5aa;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  text-align: right;
  margin-bottom: 20px;
  margin-left: 20%;
}

.answer {
  max-width: 80%;
  padding: 10px 15px;
  background-color: #c5e5ff;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);

  margin-bottom: 20px;
}

.intro-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  width: 100%;
  height: 100%;
  min-height: 550px;
}

.intro-container .startBnt {
  margin: 20px 10px 10px 10px;
  background-color: #b774c3;
  color: white;
  width: 200px;
  height: 40px;
  border-radius: 10px;
  border: 0;
  font-size: 1.5rem;
}

.intro-container h1 {
  margin: 10px 10px 10px 10px;
  background-color: #b774c3;
  border-radius: 10px;
  width: 90%;
  max-width: 450px;
  min-width: 340px;
  height: 4rem;
  /* min-width: 400px; */
  /* min-height: 60px; */
  /* text-align: center; */

  display: flex;
  /* flex-direction: column; */
  justify-content: center;
  align-items: center;
}

.intro-container img {
  width: 350px;
  min-width: 300px;
  margin-bottom: 20px;
  border-radius: 10%;
  margin: 0 10px;
}

#loader {
  font-size: 25px;
  align-items: cneter;
  color: white;
}

#chat-loader {
  font-size: 25px;
  align-items: cneter;
  color: white;
}

.kakao_ad_area {
  margin-top: 20px;
  min-width: 330px;
  min-height: 60px;
}

.kakao_ad {
  display: flex;
  justify-content: center;
  width: 400px;
  margin: 0 auto;
}

.date_item1 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  .warning {
    color: red;
    font-size: 0.8rem;
    visibility: hidden;
    &.on {
      visibility: visible;
    }
  }
}

/* 가운데 정렬 정리해놓기!!  */
#chat-loader {
  position: absolute;
  /* top: 0; */
  /* left: 0; */
  /* right: 0; */
  /* bottom: 0; */
  /* background-color: #393c3c; */
  /* opacity: 0.8; */
  /* height: 2000px; */
  /* height: 100%; */

  /* position: absolute; */
  top: 50%;
  left: 50%;
  /* transform: translate(-50%, -50%); */

  text-align: center;
}

/* 
#chat-loader-content {
  font-size: 1rem;
  background-color: #393c3c;
  border: #b774c3 solid;
  border-radius: 20px;
  width: 300px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}
 */

#chat-loader-content {
  font-size: 0.8rem;
  background-color: #393c3c;
  border: #b774c3 solid;
  border-radius: 20px;

  width: 300px;
  /* margin-left: 10%; */
  /* margin-right: 10%; */

  /* 주의! 부모 요소에 position: relative나 position: absolute 속성이 있다면 fixed속성이 잘 적용되지 않아서 화면에 고정되지 않고 이동할 수 있다 */
  position: fixed;
  /* top: 45%; */
  /* left: 40%; */
  /* bottom: 0; */
  /* right: 0; */

  transform: translate(-50%, -50%);

  /* width: 100%; */
  /* height: 10%; */
  display: flex;
  justify-content: center;
  align-items: center;

  /* color: #b774c3; */
  color: white;
  /* background-color: #b774c3; */
  /* border-radius: 20px; */

  @media screen and (max-height: 600px) {
    top: 50%;
  }

  @media screen and (min-height: 600px) {
    top: 35%;
  }
}

#chat-spin {
  margin-left: 20px;
}
