body {
    font-family: Arial, sans-serif;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    background: linear-gradient(to bottom, #a18af4, #D1EAF7); /* 그라데이션 배경 */
    min-height: 92vh;
}

.title h1{
    color: white; /* 제목 텍스트 색상 */
    font-family: Arial, sans-serif; /* 제목 글꼴 */
}

button {
    padding: 10px 20px;
    background-color: #5431d5;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}
button:hover {
    background-color: #261661;
}

#loader{
    font-size: 25px;
    text-align: center;
}

/*text-align*/
.txt-alignR{
    text-align : right;
}

/*마진*/
.mg-top30{
    margin-top: 30px;
}

#fortune-result {
    margin-top: 20px;
    font-size: 18px;
}
#user-message {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.chat-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.image-container {
    text-align: center;
    max-width: 100%; /* 모바일 웹 및 PC 웹에 모두 적용됩니다. */
  }
  
  /* 이미지가 최대 너비를 넘지 않도록 설정합니다. */
  .image-container img {
    max-width: 100%; /* 이미지가 부모 요소의 최대 너비를 따르도록 합니다. */
    height: auto; /* 이미지의 가로 세로 비율을 유지합니다. */
  }

  /* 텍스트를 가운데 정렬하고 최대 너비를 설정합니다. */
 .text-container {
    text-align: center;
    max-width: 100%; /* 모바일 웹 및 PC 웹에 모두 적용됩니다. */
  }
  
  /* 텍스트 크기를 조정합니다. */
  .text-container h3 {
    font-size: 1.5em; /* 원하는 텍스트 크기로 조정합니다. */
    color:white
  }

  .chat-bubble{
    padding: 10px; /* 안쪽 여백 */
    border: 1px solid #ccc; /* 테두리 */
    border-radius: 5px; /* 모서리를 둥글게 */
    margin-bottom: 10px;
    max-width: 80%;
  }

  .user-bubble{
    background-color: #fff;
    color: #616161;
    text-align: right; 
    margin-left: 10px;
  }

  .bot-bubble{
    background-color: #6c5ca7;
    color: white;
    text-align: left;
    margin-right: 10px;
  }

  .user-message {
    align-items: flex-start; /* 챗봇 메시지를 오른쪽에 정렬합니다. */
    display: flex;
  }

  .bot-message {
    align-items: flex-end; /* 챗봇 메시지를 오른쪽에 정렬합니다. */
    display: flex;
  }

  .user-icon, .bot-icon {
    padding-bottom: 10px;
  }
  
  .user-icon img, .bot-icon img {
    width: 50px; /* 아이콘의 너비 */
    height: 50px; /* 아이콘의 높이 */
    border-radius: 50%; /* 원형 아이콘을 만듭니다. */
  }