@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600);
#upload_link {
  text-decoration: none;
}

#upload {
  display: none
}

a#upload_link {
  float: right;
  width: 40px;
  height: 41px;
  margin-right: 5px;
}

html.mdl-js {
  height: 100%;
}

@media screen and (max-width: 1024px) {
  .top {
    /* margin-top: -50px; */
  }
  .adsenseChat {
    height: 300px !important;
  }
  .adsenseChat {
    margin-top: 50px;
  }
  .container .top span {
    font-size: 14vm !important
  }
  div#imageBubble img {
    width: 100% !important;
  }
  .person img {
    max-width: 119px;
  }
  .container .right .bubble {
    font-size: 14vm !important;
  }
  .wrapper {
    height: auto !important
  }
  .container_write {
    width: 100%!important;
    margin-left: 0!important;
    position: fixed !important;
    bottom: 0!important;
  }
  .left {
    display: none;
  }
  div#myContainer {
    width: 100%;
    top: 36px;
  }
  
  div#chatview {
    width: 100%;
  }
}

* {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

div#imageBubble img {
  height: auto;
  width: 300px;
}

.me .person {
  float: right!important;
  position: relative !important;
  display: none;
}

.firebaseuichat {
  display: inline-block;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  background-color: #f3f3f3;
  z-index: 10;
}

.container_write {
  WIDTH: 60%;
  height: 59px;
  position: absolute;
  /* background: red; */
  margin-top: 820px;
  float: right;
  z-index: 3;
  margin-left: 30%;
  background-color: #f5f1ee;
}

.bubble.me #nom {
  display: none;
}

.person {
  /* float: left; */
  position: absolute;
  width: 30px;
  margin-left: -44px;
  margin-top: -40px;
}

.b .person {
  position: relative;
  float: right;
}

#nom {
  margin-bottom: 5px;
  margin-top: -4px;
  font-weight: bold;
  color: red;
}

.download_app img {
  width: 100%;
  position: relative;
  padding: 10px;
}

.bubble.me {
  max-width: 60%;
  line-height: 17px;
  margin-left: 30px;
  min-width: 14%;
}

.bubble.you {
  max-width: 70%;
  line-height: 17px;
  margin-left: 30px;
  min-width: 14%;
}

.container .right .chat {
  padding-bottom: 65px !important;
}

body {
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 400;
  background-size: cover;
  background-repeat: none;
}

name {
  color: #eb0254;
  font-weight: bold;
}

.right {
  background-size: contain;
  overflow-y: scroll;
}

.wrapper {
  position: relative;
  left: 50%;
  width: 100%;
  height: 800px;
  -moz-transform: translate(-50%, 0);
  -ms-transform: translate(-50%, 0);
  -webkit-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
}

.container {
  position: relative;
  top: 60%;
  left: 50%;
  width: 80%;
  height: 100%;
  background-color: #fff;
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.container .left {
  float: left;
  width: 25%;
  height: 87%;
  border: 1px solid #e6e6e6;
  background-color: #fff;
  padding: 10px;
}

.container .top {
  position: relative;
  width: 100%;
  height: 96px;
  padding: 29px;
}

.container .top:after {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: block;
  width: 80%;
  height: 1px;
  content: '';
  background-color: #e6e6e6;
  -moz-transform: translate(-50%, 0);
  -ms-transform: translate(-50%, 0);
  -webkit-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
}

.left input {
  float: left;
  width: 188px;
  height: 42px;
  padding: 0 15px;
  border: 1px solid #e6e6e6;
  background-color: #eceff1;
  -moz-border-radius: 21px;
  -webkit-border-radius: 21px;
  border-radius: 21px;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 400;
}

.container .left a.search {
  display: block;
  float: left;
  width: 42px;
  height: 42px;
  margin-left: 10px;
  border: 1px solid #e6e6e6;
  background-color: #00b0ff;
  background-image: url("http://s11.postimg.org/dpuahewmn/name_type.png");
  background-repeat: no-repeat;
  background-position: top 12px left 14px;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}

.container .left .people {
  margin-left: -1px;
  border-right: 1px solid #e6e6e6;
  border-left: 1px solid #e6e6e6;
  width: -moz-calc(100% + 2px);
  width: -webkit-calc(100% + 2px);
  width: -o-calc(100% + 2px);
  width: calc(100% + 2px);
}

.container .left .people .person {
  position: relative;
  width: 100%;
  padding: 12px 10% 16px;
  cursor: pointer;
  background-color: #fff;
}

.container .left .people .person:after {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: block;
  width: 80%;
  height: 1px;
  content: '';
  background-color: #e6e6e6;
  -moz-transform: translate(-50%, 0);
  -ms-transform: translate(-50%, 0);
  -webkit-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
}

.container .left .people .person img {
  float: left;
  width: 40px;
  height: 40px;
  margin-right: 12px;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}

.top {
  POSITION: fixed;
  z-index: 3;
  background: #fc3567;
  width: 100%;
  padding: 10px;
  text-align: center;
  color: white;
  font-weight: bold;
  font-size: 13px;
}

.person img {
  float: left;
  width: 30px;
  height: auto;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}

.container .left .people .person .theme {
  font-size: 14vm;
  line-height: 22px;
  color: #1a1a1a;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
}

.container .left .people .person .time {
  font-size: 14px;
  position: absolute;
  top: 16px;
  right: 10%;
  padding: 0 0 5px 5px;
  color: #999;
  background-color: #fff;
}

.container .left .people .person .preview {
  font-size: 14px;
  display: inline-block;
  overflow: hidden !important;
  width: 70%;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #999;
}

.container .left .people .person.active, .container .left .people .person:hover {
  margin-top: -1px;
  margin-left: -1px;
  padding-top: 13px;
  border: 0;
  background-color: #00b0ff;
  width: -moz-calc(100% + 2px);
  width: -webkit-calc(100% + 2px);
  width: -o-calc(100% + 2px);
  width: calc(100% + 2px);
  padding-left: -moz-calc(10% + 1px);
  padding-left: -webkit-calc(10% + 1px);
  padding-left: -o-calc(10% + 1px);
  padding-left: calc(10% + 1px);
}

.container .left .people .person.active span, .container .left .people .person:hover span {
  color: #fff;
  background: transparent;
}

.container .left .people .person.active:after, .container .left .people .person:hover:after {
  display: none;
}

.container .right {
  position: relative;
  float: left;
  width: 75%;
  height: 94%;
}

.container .top {
  width: 100%;
  height: 47px;
  padding: 15px 29px;
  background-color: #eceff1;
  text-align: center;
}

.container .top span {
  font-size: 18px;
}

.container .top span .theme {
  color: #1a1a1a;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: 18px;
}

.container .right .chat {
  position: relative;
  display: none;
  padding: 0 15px 20px;
  border-width: 1px 1px 1px 0;
  height: -moz-calc(100% - 48px);
  height: -webkit-calc(100% - 48px);
  height: -o-calc(100% - 48px);
  height: calc(100% - 48px);
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
  -webkit-flex-direction: column;
  flex-direction: column;
}

.container .right .chat.active-chat {
  display: block;
  display: -webkit-flex;
  display: flex;
  height: auto;
}

.write {
  position: absolute;
  top: 10px;
  left: 10px;
  height: 42px;
  border: 1px solid #e6e6e6;
  background-color: #FFF;
  width: -moz-calc(100% - 20px);
  width: -webkit-calc(100% - 20px);
  width: -o-calc(100% - 20px);
  width: calc(100% - 20px);
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
}

.write input {
  font-size: 14px;
  float: left;
  width: 77%;
  height: 40px;
  padding: 0 10px;
  color: #1a1a1a;
  border: 0;
  outline: none;
  background-color: #FFF;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 400;
  margin-left: 0px
}

.write .write-link.attach:before {
  display: inline-block;
  float: left;
  width: 40px;
  height: 42px;
  content: '';
  background-image: url("https://assets.materialup.com/uploads/0fb6ccb8-c1f5-426e-9364-e6f513fae066/preview");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.write .write-link.smiley:before {
  display: inline-block;
  float: left;
  width: 20px;
  height: 42px;
  content: '';
  background-image: url("https://static.thenounproject.com/png/614366-200.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.write .write-link.send:before {
  display: inline-block;
  float: right;
  width: 40px;
  height: 42px;
  content: '';
  background-image: url("https://static.thenounproject.com/png/614366-200.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.container .right .bubble {
  font-size: 14px;
  position: relative;
  display: inline-block;
  clear: both;
  margin-bottom: 8px;
  padding: 10px 10px;
  vertical-align: top;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 10px;
  font-family: Helvetica;
}

.container .right .bubble:before {
  position: absolute;
  top: 4px;
  display: block;
  width: 8px;
  height: 6px;
  content: '\00a0';
  -moz-transform: rotate(29deg) skew(-35deg);
  -ms-transform: rotate(29deg) skew(-35deg);
  -webkit-transform: rotate(29deg) skew(-35deg);
  transform: rotate(29deg) skew(-35deg);
}

.container .right .bubble.you {
  float: left;
  color: #000;
  background-color: #e9ebee;
  -webkit-align-self: flex-start;
  align-self: flex-start;
  -moz-animation-name: slideFromLeft;
  -webkit-animation-name: slideFromLeft;
  animation-name: slideFromLeft;
}

.container .right .bubble.you:before {
  left: -3px;
  background-color: #FFF;
  display: none;
}

.container .right .bubble.me {
  float: right;
  color: #fff;
  background: linear-gradient(135deg, rgb(235, 45, 124) 0%, rgb(163, 15, 77) 100%);
  -webkit-align-self: flex-end;
  align-self: flex-end;
  -moz-animation-name: slideFromRight;
  -webkit-animation-name: slideFromRight;
  animation-name: slideFromRight;
}

.container .right .bubble.me:before {
  right: -3px;
  background-color: #eceff1;
  display: none;
}

.container .right .conversation-start {
  position: relative;
  width: 100%;
  margin-bottom: 27px;
  text-align: center;
}

.container .right .conversation-start span {
  font-size: 14px;
  display: inline-block;
  color: #ccc;
}

.container .right .conversation-start span:before, .container .right .conversation-start span:after {
  position: absolute;
  top: 10px;
  display: inline-block;
  width: 30%;
  height: 1px;
  content: '';
  background-color: #e6e6e6;
}

.container .right .conversation-start span:before {
  left: 0;
}

.container .right .conversation-start span:after {
  right: 0;
}

@keyframes slideFromLeft {
  0% {
    margin-left: -200px;
    filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
    opacity: 0;
  }
  100% {
    margin-left: 0;
    filter: progid:DXImageTransform.Microsoft.Alpha(enabled=false);
    opacity: 1;
  }
}

@-webkit-keyframes slideFromLeft {
  0% {
    margin-left: -200px;
    filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
    opacity: 0;
  }
  100% {
    margin-left: 0;
    filter: progid:DXImageTransform.Microsoft.Alpha(enabled=false);
    opacity: 1;
  }
}

@keyframes slideFromRight {
  0% {
    margin-right: -200px;
    filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
    opacity: 0;
  }
  100% {
    margin-right: 0;
    filter: progid:DXImageTransform.Microsoft.Alpha(enabled=false);
    opacity: 1;
  }
}

@-webkit-keyframes slideFromRight {
  0% {
    margin-right: -200px;
    filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
    opacity: 0;
  }
  100% {
    margin-right: 0;
    filter: progid:DXImageTransform.Microsoft.Alpha(enabled=false);
    opacity: 1;
  }
}

.credits {
  color: white;
  font-size: 11px;
  position: absolute;
  bottom: 10px;
  right: 15px;
}

.credits a {
  color: white;
  text-decoration: none;
}

#loader {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid #eb0254;
  width: 120px;
  height: 120px;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Add animation to "page content" */

.animate-bottom {
  position: relative;
  -webkit-animation-name: animatebottom;
  -webkit-animation-duration: 1s;
  animation-name: animatebottom;
  animation-duration: 1s
}

@-webkit-keyframes animatebottom {
  from {
    bottom: -100px;
    opacity: 0
  }
  to {
    bottom: 0px;
    opacity: 1
  }
}

@keyframes animatebottom {
  from {
    bottom: -100px;
    opacity: 0
  }
  to {
    bottom: 0;
    opacity: 1
  }
}

#myContainer {
  display: none;
}

body {
  font-family: Arial, sans-serif;
}