body {
    font-family: "Arial Hebrew", "Arial", sans-serif;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: white;
}

.display-container {
    position: relative;
    width: 480px;
    height: 720px;
    overflow: hidden;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    box-sizing: border-box;
}

.bottom-aligner {
    display: inline-block;
    height: 100%;
}

.messages-container {
    opacity: 1;
    transition: opacity 1s;
}

.messages-container.disappear {
    opacity: 0;
}

.date {
    text-align: center;
    margin: 15px 0;
}

.date p {
    margin: 0;
    background-color: #b4b4b4;
    color: white;
    text-align: center;
    display: inline-block;
    padding: 4px 8px;
    min-width: 80px;
    font-size: 14px;
    line-height: 20px;
    border-radius: 7.5px;
    box-shadow: 3px 3px 5px rgba( 0, 0, 0, 0.05 );
}

.message {
    margin: 15px 0;
}

.message p {
    margin: 0;
    display: inline-block;
    background-color: #0082ff;
    color: white;
    padding: 10px 16px;
    border-radius: 14px 4px 14px 14px;
    box-shadow: 2px 1px 4px rgba( 0, 0, 0, 0.25 );
    font-size: 16px;
    line-height: 20px;
}

.message > p > img {
    display: block;
    border-radius: 8px 2px 8px 8px;
    margin: 4px -4px;
}

.message p .attachment {
    display: block;
    background-color: rgba( 255, 255, 255, 0.35 );;
    border: 1px solid #5871ac;
    border-radius: 14px;
    margin: 8px 0 4px;
    padding: 12px;
}

.message p .attachment .image {
    display: block;
    float: left;
    width: 120px;
}

.message p .attachment .image img {
    width: 100%;
    display: block;
}

.message p .attachment .description {
    display: block;
    float: left;
    direction: ltr;
    width: 250px;
    margin: 4px 0 0 12px;
    color: black;
    font-size: 14px;
}

.message p .attachment:after {
    content: "";
    display: table;
    clear: both;
}

.three-dots {
    display: none;
}

.three-dots .dot {
    display: inline-block;
    width: 7.5px;
    height: 7.5px;
    border-radius: 8px;
    background-color: #bebebe;
    margin: 5px 3px;
    animation: dot-cycle infinite 1s;
}

.typing .three-dots {
    display: block;
}

.three-dots .dot:nth-child(1) {
    animation: dot-cycle infinite linear 750ms 750ms;
}

.three-dots .dot:nth-child(2) {
    animation: dot-cycle infinite linear 750ms 500ms;
}

.three-dots .dot:nth-child(3) {
    animation: dot-cycle infinite linear 750ms 250ms;
}

@keyframes dot-cycle {
    0% { background-color: #abaaab; }
    50% { background-color: #e2e1e2; }
    100% { background-color: #abaaab; }
}