@media (max-width: 683px) {
  .main-container {
    flex-direction: column;
  }
}

@media (max-height: 800px) {
  .intro-container {
    max-height: 700px;
  }
}

@media (max-width: 580px) {
  h1 {
    font-size: 18px;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 15px;
  }
}

@media (max-width: 306px) {
  h1 {
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .intro-container {
    font-size: 10px;
  }
}

@media (max-width: 767px) {
  .kakaoShare {
    width: 100%;
    float: none;
  }
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

button {
  background-color: #4caf50;
  /* 배경색 */
  border: none;
  /* 테두리 제거 */
  color: white;
  /* 글자색 */
  padding: 10px 20px;
  /* 내부 여백 */
  text-align: center;
  /* 가운데 정렬 */
  text-decoration: none;
  /* 밑줄 제거 */
  display: inline-block;
  /* 인라인 블록 요소로 설정 */
  font-size: 16px;
  /* 글자 크기 */
  margin: 4px 2px;
  /* 바깥 여백 */
  cursor: pointer;
  /* 마우스 커서 모양 */
  border-radius: 8px;
  /* 둥근 테두리 */
  transition: background-color 0.3s ease;
  /* 배경색 변경 트랜지션 */
}

/* 버튼에 호버 효과 */
button:hover {
  background-color: #3e8e41;
  /* 배경색 변경 */
}

#convertBtn {
  background-color: transparent;
  border: 1px solid #ccc;
  color: black;
  padding: 8px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 24px;
  margin: 4px 2px;
  cursor: pointer;
}

.aiImg {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  /* 원하는 스타일링을 추가합니다 */
}

.clipImg {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  /* 원하는 스타일링을 추가합니다 */
}

.chat-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
}

.chat-box {
  background-color: #f2f2f2;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 20px;
  margin: auto;
  overflow-y: scroll;
  height: calc(100vh - 350px);
  min-width: 250px;
  max-width: 500px;
  min-height: 300px;
  max-height: 700px;
}

.chat-message {
  background-color: #fff;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
  max-width: 70%;
}

.chat-message p {
  margin: 0;
  padding: 0;
}

.chat-input {
  display: flex;
  margin-top: 20px;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 5px;
  margin-right: 10px;
}

.chat-input button {
  background-color: #4caf50;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}

.chat-input button:hover {
  background-color: #3e8e41;
}

.hidden-chat-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
}

.hidden-chat-box {
  background-color: #f2f2f2;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 20px;
  margin: auto;
  overflow-y: scroll;
  height: calc(100vh - 350px);
  min-width: 250px;
  max-width: 500px;
  min-height: 300px;
  max-height: 700px;
}

.hidden-chat-message {
  background-color: #fff;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
  max-width: 70%;
}

.hidden-chat-message p {
  margin: 0;
  padding: 0;
}

.hidden-chat-input {
  display: flex;
  margin-top: 20px;
}

.hidden-chat-input input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 5px;
  margin-right: 10px;
}

.hidden-chat-input button {
  background-color: #4caf50;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}

.hidden-chat-input button:hover {
  background-color: #3e8e41;
}

.assistant {
  color: blue;
}

.intro-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 300px;
  margin-bottom: 20px;
}

.intro-container img {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50%;
  height: 50%;
  min-width: 300px;
  min-height: 300px;
}

.main-container {
  display: flex;
  align-items: center;
  gap: 10px;
  /* 간격 조절 */
}

label {
  font-size: 24px;
}

input[type="date"],
select {
  font-size: 24px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#loader {
  font-size: 25px;
  text-align: center;
}

#hidden-loader {
  font-size: 25px;
  text-align: center;
}

.kakao-ad {
  display: inline-block;
  min-width: 300px;
  min-height: 100px;
  width: 100%;
  height: 100px;
  position: relative;
  text-decoration: none;
  margin: 0 auto;
}

.kakao-thin-ad {
  display: inline-block;
  min-width: 300px;
  min-height: 50px;
  width: 100%;
  height: 50px;
  position: relative;
  text-decoration: none;
  margin: 0 auto;
}

.socialShare {
  margin-top: 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 300px;
}

#inputField {
  background-color: #f3f3f3;
  min-width: 200px;
}

#hidden-inputField {
  background-color: #f3f3f3;
  min-width: 200px;
}

#toast {
  visibility: hidden;
  min-width: 250px;
  padding: 16px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 2px;
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  font-size: 17px;
}
#toast.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 1.5s;
  animation: fadein 0.5s, fadeout 0.5s 1.5s;
}
@-webkit-keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}
@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}
@-webkit-keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}
@keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}

#toast-fail {
  visibility: hidden;
  min-width: 250px;
  padding: 16px;
  background-color: yellow;
  color: #fff;
  text-align: center;
  border-radius: 2px;
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  font-size: 17px;
}
#toast-fail.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 1.5s;
  animation: fadein 0.5s, fadeout 0.5s 1.5s;
}
@-webkit-keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}
@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}
@-webkit-keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}
@keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}

#qrCode {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1s; /* 천천히 사라지고 나타나는 효과 */
}
