@import url("https://fonts.googleapis.com/css2?family=DynaPuff&family=Gamja+Flower&family=Roboto:wght@100;300&display=swap");

/*** START OF OVERAL LAYOUT STYLE ***/
body,
html {
  color: #333;
  background: #f7f7f7;
  width: 100%;
  height: 100%;
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  background-image: url("./images/pawbgimg.jpg");
}

* {
  /* box-sizing: border-box; */
  font-family: "Roboto", "Noto Sans KR", sans-serif;
}

#main-loading-icon {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  color: rgb(103, 93, 80);
  font-size: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: rgb(243, 222, 186);
}

#main-loading-icon.hidden {
  display: none;
}

#content-div {
  display: none;
}

#container {
  width: 100%;
  max-width: 550px;
  height: 100%;
  max-height: 1100px;
  position: absolute;
  top: 50%;
  left: calc(50%);
  transform: translate(-50%, -50%);
}

/**** start: fg-container style ****/
#fg-container {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 100;
  background-color: rgba(103, 93, 80, 0.9);
  color: rgb(210, 210, 210);
  display: none;
}

#fg-container .language-button {
  position: fixed;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  padding: 5px;
  text-align: center;
  height: 1.5rem;
  border-radius: 10px;
  background-color: rgb(169, 144, 126);
  color: rgb(230, 230, 230);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  transition: color, background-color, 0.3s ease-in-out;
}

#fg-container .language-button:hover {
  cursor: pointer;
}

#fg-container .fg-closeButton {
  position: fixed;
  bottom: 20px;
  right: 30px;
  width: 4rem;
  height: 2rem;
  border-radius: 10px;
  background-color: rgb(243, 222, 186);
  color: rgb(103, 93, 80);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  transition: color, background-color, 0.3s ease-in-out;
}

#fg-container .fg-closeButton:hover {
  cursor: pointer;
  color: rgb(83, 73, 60);
  background-color: rgb(250, 240, 230);
  transition: color, background-color, 0.3s ease-in-out;
}

#fg-container .fg-message {
  box-sizing: border-box;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 80%;
  transform: translate(-50%, -50%);
  overflow-y: auto;
  padding-right: 30px;
  padding-left: 30px;
  font-size: 1rem;
  text-align: justify;
  line-height: 1.5;
}

#fg-container .fg-message hr {
  margin: 10px 30px 20px 30px;
}
#fg-container .fg-message .fg-image {
  width: 150px;
  height: 150px;
  border-radius: 50% 20% / 10% 40%;
  float: left;
  margin-top: 10px;
  margin-right: 15px;
  margin-bottom: 10px;
  background-image: url("./images/bella1.jpg");
  background-size: cover;
  box-shadow: 4px 4px 10px rgb(200, 200, 200, 0.5);
}

#fg-container .fg-message .qna {
  background-color: rgba(171, 196, 170, 0.5);
  border-radius: 30px;
  margin: 10px;
  padding: 10px;
}

#fg-container .fg-message .qna a {
  color: #00bfff; /* set the text color to bright blue */
  text-decoration: none; /* remove the default underline */
}

#fg-container .fg-message .qna a:hover {
  color: #87cefa; /* set the text color to a lighter blue when the link is hovered over */
}

#fg-container .fg-message .qna details {
  padding: 10px;
  border-bottom: 1px solid rgba(243, 222, 186, 0.3);
  margin-bottom: 1rem;
}
/**** end: fg-container style ****/

/**** start - refresh chekter window style ****/
#refresh-checker,
#refresh-for-language {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 110;
  background-color: rgba(50, 50, 50, 0.8);
  color: rgb(250, 250, 250);
  display: none;
}

#refresh-checker .message,
#refresh-for-language .message {
  box-sizing: border-box;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: black;
  border-radius: 20px;
}

#refresh-checker .message #icon,
#refresh-for-language .message #icon {
  color: tomato;
  font-size: 3rem;
}

#refresh-checker .message span,
#refresh-for-language .message span {
  width: 10rem;
  /* height: 1.5rem; */
  text-align: center;
  padding: 6px 10px;
  border-radius: 10px;
  margin-bottom: 10px;
  background-color: gray;
}

#refresh-checker .message span:hover,
#refresh-for-language .message span:hover {
  cursor: pointer;
}

#refresh-checker .message .button-yes,
#refresh-for-language .message .button-yes {
  background-color: coral;
}

#refresh-checker .message .button-no,
#refresh-for-language .message .button-no {
  background-color: #448ee4;
}

/**** end - refresh chekter window style ****/

/**** start: chat style ****/
#chat {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  align-items: stretch;
  width: 100%;
  height: 100%;
  /* border-radius: 2rem; */
  background: white;
  box-shadow: 0 0 8rem 0 rgba(0, 0, 0, 0.1),
    0rem 2rem 4rem -3rem rgba(0, 0, 0, 0.5);
}

#chat #kakao-ad {
  display: block;
  height: 50px;
  width: 100%;
}
/***** end-chat bar style*****/
#chat #bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  flex-basis: 70px;
  min-height: 70px;
  background-image: url("images/pets.jpg");
  background-size: cover;
  padding-left: 10%;
  /* border-radius: 10px 10px 0 0; */
}

#chat #bar::before {
  content: "";
  position: absolute;
  top: 0px;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: rgba(103, 93, 80, 0.8);
  z-index: 1;
  /* border-radius: 10px 10px 0 0; */
}

#chat #bar * {
  margin: 0;
  z-index: 2;
  color: rgba(243, 222, 186, 0.9);
}
#chat #bar .title {
  font-family: "DynaPuff", cursive;
  font-weight: 500;
  font-size: 1.8rem;
  padding-right: 100px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

#chat #bar .title:hover {
  color: rgba(250, 250, 250, 0.9);
}

#chat #bar .title__sub {
  font-size: 0.8rem;
}

#chat #bar .fa.fa-paw {
  position: absolute;
  right: 30px;
  top: 12px;
  font-size: 2.5rem;
  border-radius: 0.5rem;
  align-self: flex-end;
  transform: scale(1) rotate(-30deg);
  transition: transform 0.3s ease-in-out;
}

#chat #bar .fa.fa-paw:hover {
  color: white;
  transform: rotate(0);
}

body .label4image2 {
  position: absolute;
  bottom: 42px;
  right: 20px;
  font-size: 0.6rem;
  color: rgba(103, 93, 80, 0.7);
}

#chat #bar .label4image {
  position: absolute;
  top: 59px;
  right: 2px;
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
}

/***** end-chat bar style*****/

/***** start-chat messenger style*****/
#chat #chat__messages {
  /* font-family: "Dongle", sans-serif; */
  font-weight: 400;
  line-height: 1.25em;
  letter-spacing: 0.025em;

  padding: 1rem;
  background: rgba(243, 222, 186, 0.7);
  /* background: red; */
  flex-grow: 1;
  overflow-y: auto;
  box-shadow: inset 0 2rem 2rem -2rem rgba(0, 0, 0, 0.05),
    inset 0 -2rem 2rem -2rem rgba(0, 0, 0, 0.05);
}

#chat #chat__messages .notice {
  font-size: 0.7rem;
  background: #eee;
  /* background-color: black; */
  padding: 0.25rem 1rem;
  border-radius: 1rem;
  color: #999;
  width: fit-content;
  margin: 0 auto;
}

#chat #chat__messages *:not(.notice) {
  padding: 0.8rem 1rem;
  min-height: 2.25rem;
  width: fit-content;
  max-width: 66%;

  box-shadow: 0 0 2rem rgba(0, 0, 0, 0.075),
    0rem 1rem 1rem -1rem rgba(0, 0, 0, 0.1);

  animation: floating 0.3s ease-in-out;
}
#chat #chat__messages .assistant {
  /* box-sizing: border-box; */
  margin: 0.5rem;
  background: #fff;
  border-radius: 1.125rem 1.125rem 1.125rem 0;
  /* box-shadow: 0 0 2rem rgba(0, 0, 0, 0.075),
    0rem 1rem 1rem -1rem rgba(0, 0, 0, 0.1); */
}
#chat #chat__messages .user {
  margin: 1rem 1rem 1rem auto;
  border-radius: 1.125rem 1.125rem 0 1.125rem;
  background: rgba(171, 196, 170, 0.6);
  color: rgb(103, 93, 80);
}

#chat #chat__messages .assistant span {
  background-color: transparent;
  box-shadow: none;
}

#chat #chat__messages .assistant .fa.fa-paw {
  background-color: transparent;
  padding: 0 5px;
  font-size: 1.5rem;
  border-radius: 50%;
  /* box-shadow: none;
  border-radius: 50%; */
}

#chat #chat__messages .assistant .fa.fa-paw.a {
  color: rgb(169, 144, 126);
  animation: typing 3s infinite;
}
#chat #chat__messages .assistant .fa.fa-paw.b {
  color: rgb(243, 222, 186);
  animation: typing 3s 250ms infinite;
}
#chat #chat__messages .assistant .fa.fa-paw.c {
  color: rgb(171, 196, 170);
  animation: typing 3s 500ms infinite;
}
#chat #chat__messages .assistant .fa.fa-paw.d {
  color: rgb(169, 144, 126);
  animation: typing 3s 750ms infinite;
}
#chat #chat__messages .assistant .fa.fa-paw.e {
  color: rgb(243, 222, 186);
  animation: typing 3s 1s infinite;
}
#chat #chat__messages .assistant .fa.fa-paw.f {
  color: rgb(171, 196, 170);
  animation: typing 3s 1250ms infinite;
}

#chat #chat__messages .loading-icon {
  display: none;
  position: absolute;
  right: 5px;
  bottom: 135px;
  box-shadow: none;
  background-color: transparent;
  transition: display 0.3s ease-in-out;
}

#chat #chat__messages .loading-icon .loading_span {
  font-size: 1rem;
  padding: 5px 8px;
  background-color: rgb(169, 144, 126);
  /* padding: 0.5rem; */
  border-radius: 4px;
  box-shadow: none;
  /* background-color: white; */
  color: rgb(243, 222, 186);
  animation: blink 1s linear infinite;
  /* animation: rotate 1s linear infinite; */
}
@keyframes blink {
  50% {
    opacity: 0.5;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes typing {
  0%,
  75%,
  100% {
    transform: translate(0, 0.3rem) scale(0.9);
    opacity: 0.5;
  }
  25% {
    transform: translate(0, -0.3rem) scale(1);
    opacity: 1;
  }
}

@keyframes floating {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(0);
  }
}

/***** end-chat messenger style*****/

/***** start-chat input style*****/
#chat #input {
  flex-basis: 80px;
  min-height: 80px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 1.2rem;
  background-color: rgb(169, 144, 126);
  /* border-radius: 0 0 10px 10px; */
}

#chat #input #chat-form {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

#chat #input #chat-form *:not(.input-button) {
  border: none;
  background-color: white;
  border-radius: 1.125rem 0 0 1.125rem;
  flex-grow: 1;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1),
    0rem 1rem 1rem -1rem rgba(0, 0, 0, 0.2);
  font-weight: 400;
  padding: 10px;
  /* letter-spacing: 0.025em; */
  display: block;
}

#chat #input #chat-form .chat-input {
  resize: none;
  /* display: block; */
}

#chat #input #chat-form .input-button {
  border: none;
  background-image: none;
  background-color: rgb(50, 50, 50);
  color: rgb(200, 200, 200);
  border-radius: 0 1.125rem 1.125rem 0;
  flex-basis: 60px;
  min-width: 60px;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1),
    0rem 1rem 1rem -1rem rgba(0, 0, 0, 0.2);
  font-weight: 400;
}

#chat #input #chat-form .input-button:hover {
  cursor: pointer;
}

@keyframes shake {
  0% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(5deg);
    color: tomato;
  }
  75% {
    transform: rotate(-5deg);
  }
  100% {
    transform: rotate(0);
  }
}

/* Add the shake animation to the button */
.shake {
  animation: shake 0.3s ease-in-out;
}
/***** end-chat input style*****/

/**** kakao- ad ****/
#chat #kakao-ad {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-basis: 50px;
  min-height: 50px;
  min-width: 320px;
  background: rgb(255, 255, 255);
}

/* Define the animation */
@keyframes cursor-blink {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Apply the animation to the cursor element */
.fa fa-caret-left {
  width: 1rem;
  height: 1rem;
  margin: 0;
  padding: 0;
  animation: cursor-blink 0.8s infinite;
}

#chat #menubar {
  flex-basis: 35px;
  min-height: 35px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 100px 5px 100px;
  background-color: rgb(103, 93, 80);
  color: rgb(243, 222, 186);
  font-size: 1rem;
  /* border-radius: 0 0 10px 10px; */
}

#chat #menubar i {
  padding: 0 10px;
}

#chat #menubar i:hover {
  cursor: pointer;
  color: white;
}
