@media (min-width: 360px) {
  h1 {
    font-size: 1.75rem;
  }
  .start-label {
    font-size: 1.25rem;
  }
  #start-btn {
    font-size: 1.25rem;
  }
  .start-input {
    font-size: 1rem;
  }
  .chat-messages {
    height: 300px;
  }
  .chat-title {
    font-size: 1.3rem;
  }
  .chat-profile-img {
    width: 40px;
  }
  .chat-messages {
    font-size: 1rem;
  }
  .chat-item {
    font-size: 0.75rem;
  }
  #toss-ad {
    font-size: 0.75rem;
  }
}

@media (min-width: 760px) {
  h1 {
    font-size: 2.75rem;
  }
  .start-label {
    font-size: 1.6rem;
  }
  #start-btn {
    font-size: 1.6rem;
  }
  .start-input {
    font-size: 1.25rem;
  }
  .chat-messages {
    height: 450px;
  }
  .chat-title {
    font-size: 1.6rem;
  }
  .chat-profile-img {
    width: 55px;
  }
  .chat-messages {
    font-size: 1.1rem;
  }
  .chat-item {
    font-size: 1rem;
  }
  #toss-ad {
    font-size: 0.9rem;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3.5rem;
  }
  .start-label {
    font-size: 2rem;
  }
  #start-btn {
    font-size: 2rem;
  }
  .start-input {
    font-size: 1.5rem;
  }
  .chat-messages {
    height: 600px;
  }
  .chat-title {
    font-size: 2rem;
  }
  .chat-profile-img {
    width: 75px;
  }
  .chat-messages {
    font-size: 1.3rem;
  }
  .chat-item {
    font-size: 1.1rem;
  }
  #toss-ad {
    font-size: 1.1rem;
  }
}

.start-inputs {
  display: block;
  margin-top: 20px;
  margin-bottom: 20px;
  min-width: 200px;
  max-width: 600px;
  width: 50%;
}

.start-label {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  font-weight: bold;
  color: #333;
}

.start-input {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  margin-bottom: 15px;
}

.intro-container img {
  width: 50%;
  min-width: 200px;
  max-width: 600px;
}

#start-btn {
  background-color: #c23117;
  width: 50%;
  min-width: 180px;
  max-width: 600px;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
}

#start-btn:hover {
  background-color: #921904;
}

/* Chat container */
.chat-container {
  width: 70%;
  margin: 0 auto;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #efdfcf;
}

/* Chat header */
.chat-header {
  padding: 10px;
  background-color: #651204;
  color: #fff;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  text-align: center;
}

/* Chat messages */
.chat-messages {
  padding: 10px;
  overflow-y: scroll;
}

/* Add styles to mark messages sent by the user */
.chat-messages .message.user .meta {
  text-align: right;
  color: #825405;
}

.chat-messages .message.user .text {
  background-color: #f4cc74;
  color: #000000;
  width: fit-content;
  border-radius: 5px;
  padding: 10px;
  margin-left: auto;
}

/* Add styles to mark messages received by the astrologer */
.chat-profile {
  display: flex;
  align-items: center;
}

.chat-profile-img {
  margin-right: 15px;
  border-radius: 50%;
}

.chat-messages .message.astrologer .meta {
  flex-direction: row; 
  align-items: center;
  color: #c31f06;
}

.chat-messages .message.astrologer .text {
  background-color: #f5a952;
  width: fit-content;
  border-radius: 5px;
  padding: 10px;
  margin-right: auto;
}

.chat-input {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: #f1f1f1;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  margin-right: 10px;
  border-radius: 5px;
  border: none;
}

.chat-input button {
  padding: 10px;
  border-radius: 5px;
  border: none;
  background-color: #c23117;
  color: #fff;
  cursor: pointer;
}

.chat-input button:hover {
  background-color: #921904;
}

.intro-container {
    display: flex;
    flex-direction: column; /* 가로 정렬로 변경 */
    justify-content: center;
    align-items: center;
}
 
.loader {
    font-size: 40px;
    text-align: left;
}

.kakao-ad {
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

#toss-ad {
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
  margin-top: 20px;
}