*,
*: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%;

}

.marvel-device .screen {
  text-align: left;
}

.screen-container {
  height: 100%;
}

/* Status Bar */

.status-bar {
  height: 25px;
  background: #004e45;
  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 */

/* .chat {
  height: calc(100% - 69px);
  
} */


.chat {
  height: 100%;
}

.chat-container {
  height: 100%;

}

/* User Bar */
a{
  text-decoration: none;
  color: #000;
}
.user-bar {
    height: fit-content;
    background: #517da2;
    color: #fff;
    padding: 10px 20px;
    font-size: 24px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.user-bar a{
 color: #fff;
 width: 100%;
 display: flex;
    align-items: center;
    justify-content: space-between;
}
/*.user-bar:after {
  content: "";
  display: table;
  clear: both;
}*/

/*.user-bar div {
  float: left;
  transform: translateY(-50%);
  position: relative;
  top: 50%;
}*/

.header-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}
.header-right {
    display: flex;
 /*   flex-direction: row-reverse;
    align-items: center;
/*    width: 100%;*/
/*    justify-content: flex-start;*/
}
.back {
    width: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}
.back img, .actions img, .camera-form img, .photo img {
  width: 100%;
  max-height: 100%;
}
.back img{
  width: 25px;
}
.actions.more {
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.actions.attachment img{
  width: auto;
  height: 100%;
}
.actions.attachment {
    height: 20px;
    width: 25px;
    margin-left: 10px; 
    display: flex;
    justify-content: flex-end;
}
.heared-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
/*.user-bar .actions {
  float: right;
  margin: 0 20px 0 9px;
}

.user-bar .actions.more {
    margin: 0px 10px 0 22px;
}

.user-bar .actions.attachment {
    margin: 0 10px 0 20px;
}
*/
.user-bar .actions.attachment i {
  display: block;
}



.user-bar .avatar img {
    border-radius: 50%;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
    display: block;
    width: 100%;
    width: 40px;
    height: 40px;
 
}

.user-bar .name {
    font-size: 17px;
    font-weight: 600;
    text-overflow: ellipsis;
    /* letter-spacing: 0.3px; */
    margin: 0 0 0 10px;
    /* overflow: hidden; */
    /* white-space: nowrap; */
    /* width: 100%; */
}

.user-bar .status {
    display: block;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    color: #ffffffa6;
}

/* Conversation */
.conversation {
    height: calc(100% - 12px);
    position: relative;
    background: #acc15c no-repeat;
    z-index: 0;
    background-size: cover;
    background-position: center;
}
.conversation ::-webkit-scrollbar {
  transition: all .5s;
  width: 5px;
  height: 1px;
  z-index: 10;
}
.conversation::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff54;
    z-index: 0;
}
.conversation ::-webkit-scrollbar-track {
  background: transparent;
}

.conversation ::-webkit-scrollbar-thumb {
  background: #b3ada7;
}

.conversation .conversation-container {
    height: calc(100% - 55px);
    box-shadow: inset 0 10px 10px -10px #000000;
    overflow-x: hidden;
    padding: 61px 16px 0px 16px;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column-reverse;
}

.conversation .conversation-container:after {
  content: "";
  display: table;
  clear: both;
}

/* Messages */

.message {
    color: #000;
    clear: both;
    line-height: 18px;
    font-size: 18px;
    padding: 0 0 8px;
    position: relative;
    margin: 20px 0;
    width: 90%;
    max-width: 500px;
    word-wrap: break-word;
    z-index: -1;
    box-shadow: 0 1px 0.5px rgb(0 0 0 / 13%);
}
.message: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);
}



.received-one,
.received-two {
  width: 260px;
}

.message.received {
    background: #fff;
    border-radius: 10px 10px 10px 0px;
    float: left;
}
.message.received .metadata {
  padding: 0 0 0 16px;
}

.message.received:after {
    border-width: 0px 0px 10px 10px;
    border-color: transparent  transparent #fff transparent;
    bottom: 0;
    left: -6px;
}

.message.sent {
  background: #e1ffc7;
  border-radius: 5px 0px 5px 5px;
  float: right;
}

.message.sent:after {
  border-width: 0px 0 10px 10px;
  border-color: transparent transparent transparent #e1ffc7;
  top: 0;
  right: -10px;
}

/* Compose */

.conversation-compose {
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
    height: fit-content;
    width: 100%;
    z-index: 2;
    position: fixed;
    bottom: 0;
    /* position: relative; */
    z-index: 1;
    background-color: #fff;
    justify-content: center;
 
}
.conversation-compose a{
   display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: center;
    padding: 10px;
}
.conversation-compose .final-btn {
    background-color: #009ce2;
    border-radius: 10px;
    padding: 10px;
    width: 100%;
    color: #fff;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
/*    background: linear-gradient(to right, #0162c8, #55e7fc);*/
    overflow: hidden;
}
.conversation-compose .final-btn:before {
  content: '';
  width: 50%;
  height: 200%;
  position: absolute;
  top: 0; left: 0;
  opacity: 0.2;
  filter: blur;
  background: linear-gradient(to left, transparent 0%, #fff 40%, #fff 60%, transparent 100%);
  transform: translate(-100%, -25%) rotate(10deg);
  animation: blick 4s infinite;
     animation-timing-function: linear;
}
@keyframes blick {
  0% {
    transform: translate(-100%, -25%) rotate(10deg);
  }
  50% {
    transform: translate(100%, -25%) rotate(10deg);
  }
  100% {
    transform: translate(200%, -25%) rotate(10deg);
  }
}

.camera-form {
    flex: 0 0 auto;
    text-align: center;
    position: relative;
    width: 25px;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 13px;
}

.caht {
  height: 100%;
}

.fa-camera {
  display: block;
  color: #7d8488;
  font-size: 20px;
  transform: translate(-50%, -50%);
  position: relative;
  top: 50%;
  left: 50%;
}

.common-message.is-time {
    align-self: center;
    background-color: rgb(0 0 0 / 29%);
    color: rgb(255 255 255 / 88%);
    font-size: 14px;
    padding: 7px 10px;
    border-radius: 11px;
    text-transform: uppercase;
    box-shadow: 0 1px 0.5px rgb(0 0 0 / 13%);
}

.data {
  text-align: center;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
 

}

.data p {
    margin: 0px;
    font-weight: bold;
}


/* .pl__typing {
  opacity: 1;
  position: absolute;
} */






.bubble1 {
  display: none;
  position: relative;
  /*display: inline-block;*/
  margin-bottom: 5px;
  color: #000;
  font-size: 0.7em;
  /* padding: 10px 10px 10px 12px; */
  border-radius: 20px;
  clear: both;

}

.bubble {

  position: relative;
  /*display: inline-block;*/
  display: block;
  margin-bottom: 5px;
  color: #000;
  font-size: 0.7em;
  /* padding: 10px 10px 10px 12px; */
  border-radius: 20px;
  clear: both;

}

.bubble p,
.bubble1 p {
  font-size: 14px;
  color: rgba(74, 74, 74, 0.88);
}

.photo-girl1 {
  /* margin-top: 230px; */
}

.photo-girl1,
.photo-girl2,
.photo-girl3 {
  width: 250px;


}

.photo-girl1 img, .photo-girl2 img, .photo-girl3 img {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    border: 2px solid #fff;
    box-sizing: border-box;
}

@keyframes translating {
  0% {
    transform: translate(0, 100px);
  }

  50% {
    transform: translate(0, 100px);
  }

  100% {
    transform: translate(0, 0);
  }
}

/* Small Screens */


.marvel-device.nexus5 {
  border-radius: 0;
  flex: none;
  padding: 0;
  max-width: none;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

.marvel-device>.screen .chat {
  visibility: visible;
}

.marvel-device {
  visibility: hidden;
}

.marvel-device .status-bar {
  display: none;
}

.screen-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.conversation {
  height: 100%;
}

/* .conversation .conversation-container {
    height: calc(100vh - 120px);
  } */



@media (max-width:420px) {


  .message {
    font-size: 15px;
  }

  .photo-girl1,
  .photo-girl2,
  .photo-girl3 {
    width: 200px;
    position: relative;

  }
}
.image-wrap {
    position: relative;
    margin-bottom: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    overflow: hidden;
}
.message .main-pic, .image-wrap{
  width: 100%;
}
.image-wrap .video-time {
    display: flex;
    top: 5px;
    left: 5px;
    position: absolute;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-color: #0000007d;
    border-radius: 50px;
    padding: 5px 10px;
}
.video-time img{
  width: 15px;
  margin-left: 7px;
}
.play{
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
  height: 60px;
  background-color: #0000007d;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 50%;
  width: 60px;
}
.play img {
    width: 100%;
    margin-left: 3px;
    height: 100%;
}
.message__text {
    color: #000;
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
    width: 100%;
    /* height: 100%; */
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
    padding: 0 10px;
    margin-bottom: 15px;
}
.reaction {
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.reaction .smile {
    margin-right: 10px;
    margin-bottom: 7px;
    padding: 4px 9px;
    background-color: #2196f31a;
    border-radius: 50px;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    color: #517da2;
    font-weight: bold;
}
.reaction .smile:last-child{
  margin-right: 0;
}
.time-info {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 5px;
    /* border-bottom: 1px solid #517da2; */
    font-size: 12px;
}
.time {
    color: rgba(0, 0, 0, .45);
   
    display: inline-block;
    line-height: 1;
    float: right;
    display: flex;
    align-items: center;
    justify-content: center;
 
}
.time-info .views {
    display: flex;
    align-items: center;
    margin-right: 15px;
    color: rgba(0, 0, 0, .45);
}
.time-info .views img{
  width: 20px;
  height: 11.95px;
  margin-right: 5px;
}

.btn {
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid #517da2;
    padding: 10px;
    padding-bottom: 0;
    text-transform: uppercase;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #517da2;
}
.data:last-child {
    margin-top: 20px;
}