::selection {
  background: #92c3efff;
  color: #222;
}
br {
  font-size: 0;
}

body {
  /* font-family: "Karla", sans-serif; */
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 12pt;
  background-color: #fff;
}

#chat-box {
  /* width: 300pt; */
  /* height: 400pt; */
  width: 100%;
  height: 100%;
  margin: 0;
  background-color:#fff;
  /* border-radius: 8pt 8pt 0 0; */
  overflow: hidden;
  /* border: 5pt #6f76bc solid; */
}
header {
  position: fixed;
  width: 100%;
  background-color: #3792df;
  color: #fff;
  display: flex;
  height: 40pt;
  align-items: center;
  /* padding: 0 16px; */
}
header > *  {
    /* position:absolute; */
    line-height: 40px;
}

header > h1 {
    margin: 0;
    padding-left: 8pt;
    font-size: 1.1em;
}

.spacer-span {
  flex:1;
}
/* .vertical-spacer {
  flex:1;
  display: block; 
}*/
.chat-close-button {
  cursor: pointer;
  margin-right: 10pt;
}
#message-list {
  margin-top: 40pt; /* for header */
  /* top: -80pt; */
  margin-bottom: 40pt; /* for footer */
    overflow-y: scroll;
    overflow-x: hidden;
    height: calc(100% - 40pt - 40pt); /* 40 for header and 40 for footer*/
    padding: 12px;
}
    div {
      margin: 12px 0;
    }

message-container {
  display: block;
}


message-box {
  display: inline-block;
  padding: 6px 8px;
  margin: 1px 0;
  max-width: 90%;
  word-wrap: break-word;
}

footer {
  height: 40pt;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  /* background-color: red; */
  /* color: white; */
  /* text-align: center; */
}

footer>input {
  font-family: "Karla", sans-serif;
  outline: 0;
  padding: 0 12px;
  height: 100%;
  width: 100%;
  font-size: 1em;
}

.bot {
  text-align: left;
}

message-box.bot {
  background-color: #68c;
  border-radius: 4px 16px 16px 4px;
}
message-box.bot:first-of-type {
  border-top-left-radius: 16px;
}
message-box.bot:last-of-type {
  border-bottom-left-radius: 16px;
}
  
.text-only > div {
  /* padding: 4pt; */
  margin: 0pt;
  padding: 2pt;
}
  
.user {
  text-align: right;
}
message-box.user {
  background-color: #bcf;
  border-radius: 16px 4px 4px 16px;
}
message-box.user:first-of-type {
  border-top-right-radius: 16px;
}
message-box.user:last-of-type {
  border-bottom-right-radius: 16px;
}
