body {
    font-family: 'Arial', sans-serif;
    background-color: #f2f2f7;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

#fortune-image {
    max-width: auto; /* 이미지의 최대 너비를 설정 */
    height: 15%; /* 이미지의 높이를 자동으로 조정 */
    margin: 20px 0; /* 상하 여백 추가 */
}

#chat-container {
    width: 100%;
    max-width: 400px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#chat-window {
    height: 500px;
    overflow-y: auto;
    background-color: #e5e5ea;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#chat-messages {
    display: flex;
    flex-direction: column;
}

#chat-messages li {
    display: block;
    max-width: 70%;
    word-break: break-word;
    white-space: normal;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 20px;
    line-height: 1.4;
    text-align: left;
}

#chat-messages li.user {
    background-color: #007aff;
    color: white;
    text-align: right;
    align-self: flex-end;
}

#chat-messages li.assistant {
    background-color: white;
    text-align: left;
    align-self: flex-start;
}

#user-input, #send-button {
    padding: 12px;
    border: none;
    outline: none;
}

#user-input {
    flex-grow: 1;
    border-radius: 20px;
    margin: 10px;
    box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.1);
}

#send-button {
    background-color: #007aff;
    color: white;
    border-radius: 20px;
    width: auto; /* 너비를 자동으로 조정 */
    padding: 12px 20px; /* 좌우 패딩 추가 */
    font-size: 16px; /* 글씨 크기 조정 */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
    cursor: pointer; /* 마우스 커서 스타일 변경 */
}

#kakao_ad {
    display: flex;
    justify-self: center;
    align-items: center;
    margin-top: 20px;
    min-width: 350px;
    min-height: 200px;
}