#chat {
    border: 1px solid #ccc;
    height: 600px;
    overflow-y: auto;
    padding: 10px;
    background-color: #f2f2f2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 800px;
    margin-top: 20px; /* Added margin-top to create space between title and chat box */
}
.message {
    padding: 10px;
    border-radius: 15px;
    max-width: 70%;
    word-wrap: break-word;
    margin-bottom: 8px;
}
.user {
    align-self: flex-end;
    background-color: #74AA9C;
    color: white;
}
.assistant {
    align-self: flex-start;
    background-color: #e5e5ea;
    color: black;
}
input, button {
    padding: 10px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    max-width: 800px;
}
input:focus, button:focus {
    outline: none;
}
button:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#predefined-prompts {
    /* Added styles for the predefined prompts section when added to main page */
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* space between buttons */
    margin-bottom: 15px;
}

.prompt-button {
    padding: 10px 15px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: inherit; /* maintain existing button background */
}

.prompt-button:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#title {
    font-size: 2em;
}

body {
    font-family: Arial, sans-serif;
    max-width: 600px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

/* Responsive styles */
@media (max-width: 800px) {
    #chat, input, button {
        max-width: 100%;
    }
    #message {
        width: calc(100% - 20px); /* Adjust width to fit within the container */
    }
}

@media (max-width: 600px) {
    #title {
        font-size: 1.5em;
    }
    .message {
        max-width: 100%;
    }
}
