* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Nanum Gothic", sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #3c2f41;
}

.chat-container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 350px;
  border-radius: 20px;
  background-color: #fff;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.chat-header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  background-color: #bfa5b5;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.chat-header h1 {
  font-size: 24px;
  color: #fff;
}

.chat-body {
  height: 430px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: scroll;
  scrollbar-width: none;
}

.chat-body::-webkit-scrollbar {
  display: none;
  width: 8px;
}

.message {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.message .text {
  padding: 10px;
  border-radius: 10px;
  max-width: 300px;
  word-break: break-all;
}

.message.sent .text {
  background-color: #bfa5b5;
  color: #fff;
  align-self: flex-end;
}

.message.received .text {
  background-color: #f1f1f1;
  color: #333;
  align-self: flex-start;
}

.chat-form {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 350px;
  height: 80px;
  padding: 0 20px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  background-color: #fff;
}

.chat-form input[type="text"] {
  flex-grow: 1;
  width: 250px;
  height: 50px;
  padding: 10px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  outline: none;
}

.chat-form button[type="submit"] {
  margin-left: 10px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background-color: #bfa5b5;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.chat-form button[type="submit"]:hover {
  background-color: #bfa5b5;
}

.hidden {
  display: none;
}

#intro-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#intro-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 350px;
  border: 5px solid #f5d5cb;
  border-radius: 10px;
}

@media screen and (max-width: 767px) {
  #intro-container {
    margin-top: 150px;
  }

  #chat {
    margin-top: 150px;
  }
}

#title {
  margin-top: 20px;
  color: #fff1ff;
}

#intro-wrapper img {
  width: 300px;
  height: 300px;
  margin-top: 20px;
  border-radius: 2px;
}

.label-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 300px;
  margin-top: 20px;
}

#date-label {
  color: #fff1ff;
}

#date {
  width: 200px;
  height: 40px;
  border-radius: 5px;
}

#datepicker-wrapper {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, 0);
}

#datepicker {
  width: 250px;
  height: 0px;
  border: none;
  border-radius: 5px;
}

#lunar-label {
  color: #fff1ff;
}

#lunar {
  width: 200px;
  height: 40px;
  border-radius: 5px;
}

#hour-label {
  color: #fff1ff;
}

#hour {
  width: 200px;
  height: 40px;
  border-radius: 5px;
}

#start-button {
  width: 300px;
  height: 50px;
  margin: 30px 0;
  font-size: 22px;
  font-weight: 700;
  border: none;
  border-radius: 5px;
  background-color: #f5d5cb;
  color: #414141;

  cursor: pointer;
}

#kakao-ad {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 350px;
  min-height: 200px;
}

#loader {
  display: none;
  flex-direction: column;
  position: absolute;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
}

#text-loading {
  font-size: 8px;
  letter-spacing: 2px;
  color: #bfa5b5;
  margin-bottom: 10px;
}

#loading {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#loading .line-box {
  padding: 2px;
  width: 50%;
  height: 20px;
  border: 2px solid #bfa5b5;
  border-radius: 20px;
}

#loading .line-box .line {
  height: 100%;
  border-radius: 20px;
  background-color: #3c2f41;
  animation: loading 30s forwards cubic-bezier(0.52, 1.16, 0.7, 0.49);
}

@keyframes loading {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

#guide {
  font-size: 15px;
  font-weight: 600;
  margin: 5px 0;
  color: #bfa5b5;
  text-align: center;
}

.fas {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
}
