*, *:before, *:after {
 box-sizing: inherit;
}

html {
 box-sizing: border-box;
 height: 100%;
 margin: 0;
 padding: 0;
}

body {
 -webkit-font-smoothing: antialiased;
 -moz-osx-font-smoothing: grayscale;
 font-family: "Roboto", sans-serif;
 margin: 0;
 padding: 0;
 height: 100%;
}

.page {
 width: 100%;
 height: 100%;
 display: flex;
 align-items: center;
 justify-content: center;
 background-color: rgb(185, 185, 185);
}


.screen-container {
 height: 100vh;
 width: 30vw;
}

.status-bar {
 height: 25px;
 background: #00A884;
 color: #fff;
 font-size: 14px;
 padding: 0 8px;
}

.status-bar:after {
 content: "";
 display: table;
 clear: both;
}

.status-bar div {
 float: right;
 position: relative;
 top: 50%;
 transform: translateY(-50%);
 margin: 0 0 0 8px;
 font-weight: 600;
}

.chat {
 height: calc(100% - 69px);
}

.chat-container {
 height: 100%;
}

.user-bar {
 height: 55px;
 background: #00A884;
 color: #FFFFFF;
 padding: 0 8px;
 font-size: 160%;
 position: relative;
 z-index: 1;
}

.user-bar:after {
 content: "";
 display: table;
 clear: both;
}

.user-bar div {
 float: left;
 transform: translateY(-50%);
 position: relative;
 top: 50%;
}

.user-bar .actions {
 float: right;
 margin: 0 0 0 20px;
}

.user-bar .actions.more {
 margin: 0 12px 0 28px;
}

.user-bar .actions.attachment {
 margin: 0 0 0 30px;
}

.user-bar .actions.attachment i {
 display: block;
 transform: rotate(-45deg);
}

.user-bar .videocam i{
 font-size: 32px;
}

.user-bar .avatar {
 margin: 0 0 0 5px;
}

.user-bar .avatar img {
 border-radius: 50%;
 box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
 display: block;
 width: 40px;
 height: 40px;
}

.user-bar .name {
 font-size: 100%;
 font-weight: 600;
 text-overflow: ellipsis;
 letter-spacing: 0.3px;
 margin: 0 0 0 20px;
 white-space: nowrap;
 width: 110px;
}

.user-bar .status {
 display: block;
 font-size: 13px;
 font-weight: 400;
 letter-spacing: 0;
}

.conversation {
 height: calc(100% - 11px);
 position: relative;
 background: #efe7dd url("https://cloud.githubusercontent.com/assets/398893/15136779/4e765036-1639-11e6-9201-67e728e86f39.jpg") repeat;
 z-index: 0;
}

.conversation ::-webkit-scrollbar {
 transition: all .5s;
 width: 0px;
 height: 1px;
 z-index: 10;
}


.conversation .conversation-container {
 height: calc(100% - 68px);
 overflow-x: hidden;
 padding: 0 16px;
 margin-bottom: 5px;
}

.conversation .conversation-container:after {
 content: "";
 display: table;
 clear: both;
}

.message {
 color: #000;
 clear: both;
 font-size: 160%;
 padding: 10px;
 position: relative;
 margin: 5px 0;
 max-width: 92%;
 width: fit-content;
 word-wrap: break-word;
 z-index: -1;
 line-height: 1.2;
}

.sent-first:after {
 position: absolute;
 content: "";
 width: 0;
 height: 0;
 border-style: solid;
}

.received-first:after {
 position: absolute;
 content: "";
 width: 0;
 height: 0;
 border-style: solid;
}

.metadata {
 display: inline-block;
 float: right;
 padding: 0 0 0 7px;
 position: relative;
 bottom: -4px;
}

.metadata .time {
 color: rgba(0, 0, 0, .45);
 font-size: 11px;
 display: inline-block;
}

.metadata .tick {
 display: inline-block;
 margin-left: 2px;
 position: relative;
 top: 4px;
 height: 16px;
 width: 16px;
}

.metadata .tick svg {
 position: absolute;
 transition: .5s ease-in-out;
}

.metadata .tick svg:first-child {
 -webkit-backface-visibility: hidden;
         backface-visibility: hidden;
 -webkit-transform: perspective(800px) rotateY(180deg);
         transform: perspective(800px) rotateY(180deg);
}

.metadata .tick svg:last-child {
 -webkit-backface-visibility: hidden;
         backface-visibility: hidden;
 -webkit-transform: perspective(800px) rotateY(0deg);
         transform: perspective(800px) rotateY(0deg);
}

.metadata .tick-animation svg:first-child {
 -webkit-transform: perspective(800px) rotateY(0);
         transform: perspective(800px) rotateY(0);
}

.metadata .tick-animation svg:last-child {
 -webkit-transform: perspective(800px) rotateY(-179.9deg);
         transform: perspective(800px) rotateY(-179.9deg);
}

.message:first-child {
 margin: 16px 0 8px;
}

.message.received-first {
 background: #FFFFFF;
 border-radius: 0px 12px 12px 12px;
 float: left;
}

.message.received-first.metadata {
 padding: 0 0 0 16px;
}

.message.received-first:after {
 border-width: 0px 10px 10px 0;
 border-color: transparent #FFFFFF transparent transparent;
 top: 0;
 left: -10px;
}

.message.received-after {
 background: #FFFFFF;
 border-radius: 12px;
 float: left;
}
.message.sent-first {
 background: #D9FDD3;
 float: right;
 border-radius: 12px 0px 12px 12px;
}

.message.sent-first:after {
 border-width: 0px 0 10px 10px;
 border-color: transparent transparent transparent #D9FDD3;
 top: 0;
 right: -10px;
}

.message.sent-after {
 background: #D9FDD3;
 float: right;
 border-radius: 12px;

}

.message.sent-after:after {
 border-width: 0px 0 10px 10px;
 border-color: transparent transparent transparent #D9FDD3;
 top: 0;
 right: -10px;
}

.conversation-compose {
 display: flex;
 flex-direction: row;
 align-items: flex-end;
 overflow: hidden;
 height: 50px;
 width: 100%;
 z-index: 2;
 bottom: 5px;
}

.conversation-compose div,
.conversation-compose input {
 background: #fff;
 height: 100%;
}

.conversation-compose .emoji {
 display: flex;
 align-items: center;
 justify-content: center;
 background: white;
 border-radius: 5px 0 0 5px;
 flex: 0 0 auto;
 margin-left: 8px;
 width: 48px;
 border-radius: 50% 0 0 50%;
}

.conversation-compose .input-msg {
 border: 0;
 flex: 1 1 auto;
 margin: 0;
 outline: none;
 min-width: 50px;
 caret-color: #00A884;
 font-size: 160%;
}

.conversation-compose .attachment {
 flex: 0 0 auto;
 background-color: white;
 width: 48px;
 /* margin-right: -28px; 
  z-index: 1; */
}

.conversation-compose .attachment i {
 display: block;
 color: #7d8488;
 font-size: 24px;
 -webkit-transform:rotate(240deg);
 -moz-transform: rotate(240deg);
 -ms-transform: rotate(240deg);
 -o-transform: rotate(240deg);
 position: relative;
 left: 5%;
}

.conversation-compose .photo {
 flex: 0 0 auto;
 border-radius: 0 50% 50% 0;
 text-align: center;
 position: relative;
 width: 48px;
}

.conversation-compose .photo i {
 display: block;
 color: #7d8488;
 font-size: 24px;
 transform: translate(-50%, -50%);
 position: relative;
 top: 50%;
 left: 40%;
 /* display: none; */
}

.conversation-compose .send {
 background: transparent;
 border: 0;
 cursor: pointer;
 flex: 0 0 auto;
 margin-left: 5px;
 margin-right: 8px;
 padding: 0;
 position: relative;
 outline: none;
}

.conversation-compose .send .circle {
 background: #008a7c;
 border-radius: 50%;
 color: #fff;
 position: relative;
 width: 48px;
 height: 48px;
 display: flex;
 align-items: center;
 justify-content: center;
}

.conversation-compose .send .circle i {
 font-size: 30px;
}

@media only screen and (max-width: 1000px) {
 .screen-container {
  height: 100vh;
  width: 100vw;
 }
}