body {
    font-family: monospace;
    padding: 20px;
}

.box {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 20px;
    max-width: 600px;
}

input, button {
    padding: 8px;
    margin: 5px 0;
    width: 100%;
    box-sizing: border-box;
}

input:disabled, button:disabled {
    background-color: #eee;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.message {
    margin: 5px 0;
    padding: 5px 10px;
    border-radius: 8px;
    max-width: 55%;
    word-break: break-word;
}

/* Typed before a session was open; delivered once one opens. */
.message.queued {
    background-color: #F1F0F0;
    margin-left: auto; /* Pushes the bubble to the right */
    text-align: right;
}

.message.delivered {
    background-color: #90D5FF;
    margin-left: auto; /* Pushes the bubble to the right */
    text-align: right;
}

.message.received {
    background-color: #F1F0F0;
    margin-right: auto; /* Pushes the bubble to the left */
    text-align: left;
}

.message.system {
    color: #a0a0a0;
    font-size: 0.85em;
    font-style: italic;

    background-color: transparent;
    max-width: 80%;
    padding: 2px 5px;
    margin: 5px auto;
    border-radius: 0;
    text-align: center;
}

#messagesDisplay {
    border: 1px solid #ccc;
    height: 150px;
    overflow-y: scroll;
    padding: 5px;
    margin-bottom: 10px;
}
