:root {
  --white: #fff;
  --black: #000;
  --bg: #f8f8f8;
  --grey: #999;
  --dark: #1a1a1a;
  --light: #e6e6e6;
  --wrapper: 1000px;
  --blue: #00b0ff;
  --green: #9EEA6A;
  --dark-green: #125a1e;
}

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

.chat-container {
  position: relative;
  width: 100%;
  background-color: var(--curr-background);
  line-height: normal;
  padding-top: 13px;
}
.chat-container a {
  width: 0;
}
.chat-container img {
    padding: 0;
}
.chat-container .bubble.you a {
	color: white;
	font-weight: bold
}
.chat-container h2 {
	font-weight: normal;
}
.chat-container *:nth-of-type(0) {
  position: relative;
  float: left;
  width: 100%;
  height: 100%;
}
.chat-container .top {
  width: 100%;
  padding: 15px 0;
  background-color: var(--curr-border-color);
  border-radius: 5px 5px 0 0;
}
.chat-container .top span {
  font-size: 15px;
  margin: 0 20px -20px;
  display: block;
  color: var(--grey);
}
.chat-container .top span .name {
  color: var(--dark);
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
}
.chat-container .chat {
  position: relative;
  display: none;
  overflow: hidden;
  padding: 0 35px 20px;
  border-width: 0 1px 1px 1px;
  border-style: solid;
  border-color: var(--curr-border-color);
  height: calc(100% - 48px);
  justify-content: flex-end;
  flex-direction: column;
  border-radius: 0 0 5px 5px;
}
.chat-container .chat {
  display: block;
  display: flex;
}
.chat-container .chat .bubble {
  transition-timing-function: cubic-bezier(0.4, -0.04, 1, 1);
}
.chat-container .write {
  position: absolute;
  bottom: 29px;
  left: 30px;
  height: 42px;
  padding-left: 8px;
  border: 1px solid var(--light);
  background-color: #eceff1;
  width: calc(100% - 58px);
  border-radius: 5px;
}
.chat-container .write input {
  font-size: 16px;
  float: left;
  width: 347px;
  height: 40px;
  padding: 0 10px;
  color: var(--dark);
  border: 0;
  outline: none;
  background-color: #eceff1;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 400;
}
.chat-container .write .write-link.attach:before {
  display: inline-block;
  float: left;
  width: 20px;
  height: 42px;
  content: '';
  background-image: url("../img/attachment.png");
  background-repeat: no-repeat;
  background-position: center;
}
.chat-container .bubble {
	
  font-size: var(--common-text-size);
  position: relative;
  display: inline-block;
  clear: both;
  margin-bottom: 8px;
  padding: 9px;
  vertical-align: top;
  border-radius: 5px;
  max-width: 70%;
}
.chat-container .bubble:before {
  position: absolute;
  top: 16px;
  display: block;
  width: 8px;
  height: 6px;
  content: '\00a0';
  -webkit-transform: rotate(29deg) skew(-35deg);
          transform: rotate(29deg) skew(-35deg);
}
.chat-container .bubble code{
	display:inline-block;
	margin:0
}
.chat-container .bubble.you {
  float: left;
  background-color: var(--curr-border-color);
  align-self: flex-start;
  -webkit-animation-name: slideFromLeft;
          animation-name: slideFromLeft;
}
.chat-container .bubble.you:before {
  left: -3px;
  background-color: var(--curr-border-color);
}
.chat-container .bubble.me {
  float: right;
  background-color: var(--green);
  align-self: flex-end;
  -webkit-animation-name: slideFromRight;
          animation-name: slideFromRight;
}
.chat-container .bubble.me:before {
  right: -3px;
  background-color: var(--green);
}
.dark .chat-container .bubble.me,
.dark .chat-container .bubble.me:before {
  background-color: var(--dark-green);
}

@media(prefers-color-scheme: dark){
    .auto .chat-container .bubble.me,
    .auto .chat-container .bubble.me:before {
      background-color: var(--dark-green);
    }
}
.chat-container .conversation-start {
  position: relative;
  width: 100%;
  margin: 27px 0;
  text-align: center;
}
.chat-container .conversation-start span {
    font-size: 14px;
    z-index: 1;
    position: inherit;
    display: inline-block;
    color: var(--grey);
}
.chat-container .conversation-start span:before, .chat-container .conversation-start span:after {
    position: absolute;
    top: 10px;
    margin: 0 -32%;
    display: inline-block;
    width: 30%;
    z-index: -1;
    height: 1px;
    content: '';
    background-color: var(--light);
}
.chat-container .conversation-start span:before {
  left: 0;
}
.chat-container .conversation-start span:after {
  right: 0;
}

@keyframes slideFromLeft {
  0% {
    margin-left: -200px;
    opacity: 0;
  }
  100% {
    margin-left: 0;
    opacity: 1;
  }
}
@-webkit-keyframes slideFromLeft {
  0% {
    margin-left: -200px;
    opacity: 0;
  }
  100% {
    margin-left: 0;
    opacity: 1;
  }
}
@keyframes slideFromRight {
  0% {
    margin-right: -200px;
    opacity: 0;
  }
  100% {
    margin-right: 0;
    opacity: 1;
  }
}
@-webkit-keyframes slideFromRight {
  0% {
    margin-right: -200px;
    opacity: 0;
  }
  100% {
    margin-right: 0;
    opacity: 1;
  }
}
