body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, red, blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

h1 {
    color: #fff;
    margin-bottom: 20px;
    text-align:center;
}

#chatContainer {
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 15px;
}

#messages {
    flex-grow: 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    height: 350px;
    overflow-y: auto;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
}

.message {
    max-width: 70%;
    margin: 8px 0;
    padding: 12px;
    border-radius: 8px;
    word-wrap: break-word;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 15px;
}

.self {
    background-color: #e74c3c;
    color: #ffffff;
    align-self: flex-end;
    text-align: right;
    margin-left: auto;
}

.other {
    background-color: #3498db;
    color: #ffffff;
    align-self: flex-start;
    text-align: left;
    margin-right: auto;
}

#inputContainer {
    display: flex;
    margin-top: 15px;
}

input[type="text"] {
    flex-grow: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px;
    font-size: 15px;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

button {
    padding: 10px 20px;
    margin-left: 10px;
    background-color: #3498db;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

h6 {
    margin-top: 15px;
    color: #fff;
    font-size: 12px;
    text-align:center;
}
@media screen and (max-width: 600px) {
    #chatContainer {
        width: 90%;
        max-width: none;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
}
