body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
}

.chat-container {
    background-color: white;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-bottom: 10px; /* 광고와의 간격을 줍니다 */
}

.header {
    padding: 20px 0;
    background-color: #007aff;
    color: white;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    border-bottom: 1px solid #e5e5ea;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.counselor-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.title {
    font-size: 18px;
    font-weight: bold;
}

.chat-window {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f9f9f9;
    width: 100%;
    box-sizing: border-box;
}

.message {
    display: flex;
    margin-bottom: 10px;
    word-wrap: break-word;
}

.message.sent {
    justify-content: flex-end;
}

.message.received {
    justify-content: flex-start;
}

.message .bubble {
    display: inline-block;
    max-width: 100%;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 16px;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.message.sent .bubble {
    background-color: #007aff;
    color: white;
    border-bottom-right-radius: 5px;
}

.message.received .bubble {
    background-color: #e5e5ea;
    color: black;
    border-bottom-left-radius: 5px;
}

.input-container {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background-color: white;
}

.input-container input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-right: 10px;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
}

.input-container button {
    padding: 10px 20px;
    background-color: #007aff;
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.input-container button:hover {
    background-color: #005bb5;
}

.loading-spinner {
    margin-right: 10px;
    font-size: 18px;
    display: none;
}

.kakao_ad {
    text-align: center;
    padding-bottom: 10px; /* 광고가 화면에 고정되도록 여유 공간 추가 */
}
