* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 80vh;
    width: 90vw;
    max-width: 600px;
    background-color: #f5f5f5;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chat-title {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.chat-history-wrapper {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

.message {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.user-message, .chatgpt-message {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 5px;
    width: fit-content;
    max-width: 70%;
}

.user-message {
    background-color: #e0e0e0;
    color: #333;
    align-self: flex-end;
}

.chatgpt-message {
    background-color: greenyellow;
    color: #222;
    align-self: flex-start;
}

.chat-input {
    display: flex;
    align-items: center;
}

#user-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    height: 40px;
}

#send-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: green;
    color: #fff;
    cursor: pointer;
    margin-left: 10px;
}

