#chat-container * {
    box-sizing: border-box;
}

#chat-container {
    max-width: 480px;
    margin-bottom: 20px;
    margin-left: 15px;
    width: 230px;
    z-index: 11;
    position: fixed;
    bottom: 0px;
}

#chat-container input {
    width: 100%;
    padding: 5px;
}

#chat-container button {
    float: right;
}

#chat-container li {
    margin: 5px 0;
}

#chatControls {
    overflow: auto;
}

#chat {
    max-height: 75vh;
    overflow-y: auto;
    overflow-x: hidden;
}

#chat p {
    margin: 5px 0;
    font-weight: 300
}

#chat .timestamp {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 12px;
}

#chat article {
    background: #f1f1f1;
    padding: 10px;
    margin: 10px 0;
    border-left: 5px solid #aaa;
    border-left-color: inherit;
    position: relative;
    word-wrap: break-word;
}

#chat div:last-of-type article {
    background: #c9edc3;
    animation: enter .2s 1;
}

@keyframes enter {
    from { transform: none;        }
    50%  { transform: scale(1.05); }
    to   { transform: none;        }
}
