body {
    font-family: Arial, sans-serif;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background-color: #f5f6f7;
}

.intro-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    /* width: 50%; */
    height: auto; /* 자동으로 높이 조정 */
}

.intro-container h1 {
    margin: 0;
    font-size: 1.25rem;
    color: #007bff;
    /* padding: 20px; */
    /* padding-bottom: 20px; h1과 이미지 사이 여백 추가 */
}

.intro-container img {
    /* width: 50%; */
    max-width: 70%; /* 이미지가 부모 요소의 너비에 맞게 조정 */
    min-width: 300px;
    padding: 20px;
    height: auto; /* 이미지의 비율 유지 */
    border-radius: 10px; /* 이미지에 둥근 모서리 추가 */
}

#loader {
    font-size: 25px;
    text-align: center;
}

.chat-container {
    display: flex;
    flex-direction: column;
    /* height: 80vh; */
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    overflow: hidden; 
}

/* .chat-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
} */


.chat-header {
    background-color: #007bff;
    color: white;
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #0056b3;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    border-bottom: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 15px;
    max-width: 80%;
    line-height: 1.5;
    word-wrap: break-word;
}

.message.user {
    background-color: #007bff;
    color: #fff;
    align-self: flex-end;
    border-top-right-radius: 0;
}

.message.assistant {
    background-color: #f1f1f1;
    color: #333;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background: #ffffff;
}

.chat-input input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px;
    font-size: 16px;
    outline: none;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

.chat-input button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0 20px;
    font-size: 16px;
    border-radius: 20px;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.chat-input button:hover {
    background-color: #0056b3;
}
