* {
    box-sizing:  border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    margin: 0;
    background: #202123;
    color: white;

    display: flex;
    justify-content: center;
    align-items: center;

    height: 100vh;
}

.chat {
    width: 900px;
    max-width: 95vw;
    height: 90vh;

    background: #2b2d31;

    border-radius: 12px;
    
    display: flex;
    flex-direction: column;

    overflow: hidden;
}

h1 {
    margin: 0;
    padding: 20px;
    
    text-align: center;

    background: #313338;
}

#messages {
    flex: 1;

    overflow-y: auto;

    padding: 20px;
}

.message {
    margin-bottom: 20px;
    
    padding: 12px;

    border-radius: 8px;

    white-space: pre-wrap;
}

.user {
    background: #5865f2;
}

.ai {
    background: #40444b;
}

.inputBar {
    display: flex;

    gap: 10px;

    padding: 20px;

    background: #313338;
}

textarea {
    flex: 1;

    resize: none;

    border: none;

    outline: none;

    padding: 12px;

    border-radius: 8px;

    background: #40444b;

    color: white;

    font-size: 16px;
}

button {
    width: 120px;

    border: none;

    border-radius: 8px;

    background: #5865f2;

    color: white;

    font-size: 16px;

    cursor: pointer;
}

button:hover {
    background: #4752c4;
}