body {
    font-family: Arial, sans-serif;
    background-color: #f1f1f1;
    padding: 20px;
}

#intro {
    background-color: #1789ed;
    color: #ffffff;
    padding: 40px;
    text-align: center;
    margin: 0 auto;
    max-width: 600px;
}

#intro h1 {
    font-size: 32px;
    margin-bottom: 30px;
}

#intro img {
    width: 50%;
    min-width: 512px;
    height: auto;
    min-height: 768px;
    margin-bottom: 30px;
}

#intro label {
    font-size: 18px;
    margin-bottom: 10px;
}

#intro input,
#intro select {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    margin-bottom: 10px;
}

#intro button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #ffffff;
    color: #1789ed;
    cursor: pointer;
}

#intro button:hover {
    background-color: #f1f1f1;
}

.chat-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #4c5b72;
    color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#chat-messages {
    padding: 20px;
    height: 800px;
    overflow-y: scroll;
}

.message {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.user-message {
    background-color: #1789ed;
    padding: 10px;
    border-radius: 5px;
}

.ai-message {
    background-color: #2f3334;
    padding: 5px;
    border-radius: 5px;
}

.message-content {
    margin-left: 10px;
}

.message-text {
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 5px;
    white-space: pre-line;
    word-break: break-word;
    display: inline-block;
    vertical-align: top;
}

.message-time {
    color: #98f3f0;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

#user-input {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #ffffff;
    border-top: 1px solid #e5e5e5;
}

#message-input {
    flex-grow: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
    margin-right: 10px;
}

#send-button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    background-color: #1789ed;
    color: #ffffff;
    cursor: pointer;
}

#send-button:hover {
    background-color: #1267c8;
}

.profile-picture {
    width: 40px;
    height: 40px;
}

.profile-picture-container {
    display: inline-block;
    vertical-align: top;
    margin-right: 10px;
}

.message.ai-message .message-content {
    display: flex;
    align-items: flex-start;
}

.message.ai-message .profile-picture-container {
    margin-right: 10px;
    margin-top: 5px;
}

.message.ai-message .message-text {
    flex-grow: 1;
}

.message.ai-message .message-time {
    align-self: flex-end;
}

#loadingIcon {
    font-size: 25px;
    text-align: center;
}
#intro label {
    font-size: 18px;
    margin-bottom: 10px;
    display: block;
    clear: both;
}

#intro img {
    width: 50%;
    min-width: 512px;
    height: auto;
    min-height: 768px;
    margin-bottom: 30px;
    float: none;
    display: block;
    margin: 0 auto;
}
