body {
    font-family: Arial, sans-serif;
    background-color: #333;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.chat-container {
    width: 380px;
    padding: 20px;
    border: 1px solid #666;
    border-radius: 10px;
    background-color: rgba(68, 68, 68, 0.6); /* 불투명한 회색 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    height: 640px; /* 고정된 높이 */
    display: flex;
    flex-direction: column;
}

.chat-header {
    text-align: center;
    margin-bottom: 300px;
}

.chat-messages {
    /* 대화창에 스크롤 적용 */
    overflow-y: auto;
    max-height: calc(100% - 100px); /* 최대 높이 설정 */
}

.chat-bubble {
    background-color: #555;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.user-bubble {
    background-color: #666;
    text-align: right;
}

.bot-bubble {
    background-color: #555;
    text-align: left;
}

.chat-input-container {
    display: flex;
    align-items: center;
    margin-top: auto; /* 맨 아래로 위치하도록 설정 */
}

.chat-input {
    flex: 1; /* 입력창이 남은 공간을 모두 차지하도록 설정 */
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #666;
    border-radius: 5px;
    color: #fff;
    background-color: #555;
    margin-right: 10px;
}

.send-button {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}
#loader {
    font-size: 25px;
    text-align: center;
    margin-top: 50px;
}

/* 보내기 버튼 비활성화 시 색상 변경 */
.send-button:disabled {
    background-color: #999; /* 회색 배경색 */
    color: #fff; /* 흰색 텍스트색 */

}

.kakao-ad {
    position: fixed; /* 고정 위치 */
    bottom: 70px; /* 화면 하단에 위치 */
    left: 20px; /* 화면 왼쪽에 위치 */
    width: 350px; /* 너비를 화면 너비에 맞춤 */
    justify-content: center;
    align-items: center;
    min-height: 200px; /* 높이 설정 */
    z-index: 100; /* 다른 요소들 위에 오도록 z-index 설정 */
}