@font-face {
  font-family: "NeoDunggeunmoPro-Regular";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2302@1.0/NeoDunggeunmoPro-Regular.woff2")
    format("woff2");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "omyu_pretty";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2304-01@1.0/omyu_pretty.woff2")
    format("woff2");
  font-weight: normal;
  font-style: normal;
}
:root {
  --font1: "omyu_pretty";
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-image: url(./img/webBg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
}
.wrap {
  max-width: 600px;
  overflow: hidden;
  height: 90vh;
  position: relative;
  border-radius: 0.5rem;
  width: calc(100% - 1rem);
  margin: 50px auto;
  background-color: #eaeaea50;
  backdrop-filter: blur(3px);
  font-family: var(--font1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-family: "NeoDunggeunmoPro-Regular";
  padding: 1rem 0;
  text-align: center;
}
.guide_chat {
  padding: 1rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.guide_chat > label {
  width: 40%;
  display: flex;
  align-items: center;
}
.guide_chat > input {
  width: 40%;
  margin: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: none;
  background-color: rgb(252, 221, 249);
  font-family: var(--font1);
}
.guide_chat > input::placeholder {
  font-family: var(--font1);
}
.guide_chat > input:focus {
  outline: none;
  box-shadow: 0 0 5px #00000040;
}
#btnSendMessage {
  cursor: pointer;
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 0 2px #00000020;
  background-color: rgb(235, 183, 220);
  padding: 0.5rem;
  width: 150px;
  margin-top: 1rem;
  font-family: var(--font1);
  box-shadow: 0 4px 2px #00000040;
}
#btnSendMessage:hover {
  box-shadow: none;
  transform: translateY(2px);
}
.chat_con {
  width: calc(100% - 1rem);
  margin: 10px;
  background-color: #21212170;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-y: scroll;
  height: calc(100vh - 350px);
}
.chat_con::-webkit-scrollbar {
  background-color: transparent;
  width: 8px;
}
.chat_con::-webkit-scrollbar-thumb {
  border-radius: 1rem;
  background-color: rgb(235, 183, 220);
}
.loader {
  box-shadow: none;
  width: 100%;
  text-align: center;
}
.loader img {
  width: 100%;
}
.restart {
  margin-top: 20px;
  cursor: pointer;
  border: none;
  background-color: rgb(235, 183, 220);
  border-radius: 0.5rem;
  padding: 0.5rem;
  box-shadow: 0 4px 2px #00000040;
  margin: 1rem;
  font-family: var(--font1);
}
.restart:hover {
  box-shadow: none;
  transform: translateY(2px);
}
.kakaoAd {
  height: 50px;
  position: absolute;
  bottom: 0;
  width: 100%;
}
.chat_message:nth-of-type(1) .assistant {
  padding: 0;
}

.chat_con .chat_message > p {
  margin-bottom: 0.5rem;
  background-color: rgb(228, 112, 193);
  border-radius: 0.5rem;
  padding: 0.5rem;
  text-align: right;
}
.chat_con .chat_message .assistant {
  text-align: left;
  background-color: rgb(241, 190, 230);
}
.chat_message:nth-of-type(2) > p {
  padding: 0;
}
.chat_message:nth-of-type(3) > p {
  padding: 0;
}
.chat-input {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 350px;
}
.chat-input input {
  width: 80%;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: none;
  background-color: rgb(252, 221, 249);
}
.chat-input input:focus {
  outline: none;
}
#btn {
  width: 50px;
  border: none;
  background-color: #eaeaea;
  border-radius: 0.5rem;
  padding: 0.5;
  font-family: var(--font1);
  cursor: pointer;
}
#btn:hover {
  box-shadow: 0px -1px 3px inset #00000080;
}
@media (max-width: 800px) {
  body {
    background-image: url(./img/m_Bg.jpg);
  }
  .wrap {
    background-color: #ffffff30;
  }
}
