body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

.chat-container {
    max-width: 400px;
    margin: 50px auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.chat-box {
    padding: 20px;
    height: 300px;
    overflow-y: auto;
}

.input-container {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #f4f4f4;
}

.user-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    margin-right: 10px;
    outline: none;
}

.send-btn {
    padding: 6px 10px;
    border: none;
    border-radius: 20px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.send-btn:hover {
    background-color: #0056b3;
}

/* New styles for message formatting */
.message-container {
    display: flex;
    justify-content: flex-start; /* Left-align all messages */
    margin-bottom: 10px;
}

.message {
    background-color: #f4f4f4;
    color: #333;
    border-radius: 20px;
    padding: 10px 15px;
    max-width: 70%;
    word-wrap: break-word; /* Wrap long words */
}

.user {
    align-self: flex-end;
    background-color: #007bff;
    color: white;
}

.bot {
    align-self: flex-start;
}

/* Existing CSS remains unchanged */

/* Updated styles for message formatting */
.message-container {
    display: flex;
    margin-bottom: 10px;
}

.user {
    align-self: flex-end;
    background-color: #007bff;
    color: white;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
    padding: 10px 15px;
    margin-left: auto; /* Move to the right */
}

.bot {
    align-self: flex-start;
    background-color: #f4f4f4;
    color: #333;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    padding: 10px 15px;
    margin-right: auto; /* Move to the left */
}

.intro-container{
    display: flex;
    flex-direction: column;
    justify-self: center;
    align-items: center;
    /* max-width: 200px; */
    padding: auto;
}

.intro-container img {
    width: 30%;
    min-width: 200px;
}

.result-selcet-btn {
    padding: 6px 10px;
    border: none;
    outline-style: initial;
    outline-color: #ccc;
    border-radius: 10px;
    background-color: #072f5a;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1ch;
}

.result-selcet-btn:hover {
    background-color: #127df0;
}

.space {
  width: 4px;
  height: auto;
  display: inline-block;
}

.kakao-ad{
    display: flex;
    justify-content:center;
    align-items: center;
    margin-top: 20px;
    min-width: 350px;
    min-height: 200px;
}