@import '../assets/fonts/OpenSans.css';
@import './reset.css';

* {
  box-sizing: border-box;
}

:root {
  --primary-color: #0B7675;
  --green-5: #053A3A;
}

body,
html {
  margin: 0;
  padding: 0;
  font-size: 18px;
  background-color: transparent;
  font-family: "helvetica", sans-serif;
}

.wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}
.wrapper:after {
  content: "";
  display: table;
  clear: both;
}

.box {
  border: 2px solid #CCC;
  padding: 1rem calc(1rem - 2px);
  margin-bottom: 1rem;
}
.box:after {
  content: "";
  display: table;
  clear: both;
}
.box h1,
.box h2,
.box h3 {
  margin-top: 0;
}

footer {
  text-align: start;
}

.hero {
  text-align: center;
  padding: 2rem;
}
.hero h1 {
  font-size: 4rem;
  margin: 0;
}

a {
  color: #a795ef;
}

.copyurl {
  width: 100%;
  font-size: 1.25rem;
}

div.input label {
  font-weight: bold;
  font-size: smaller;
}

.addon {
  display: flex;
  border: 1px solid #999;
  border-radius: 6px;
  padding: 5px;
  background: #F0F0F0;
}
.addon input,
.addon textarea {
  flex-grow: 1;
  border: 0;
  background: transparent;
}
.addon button {
  flex-grow: 0;
  background: transparent;
  border: 1px solid #999;
  border-radius: 6px;
  font-weight: bold;
}
.addon button.textarea {
  align-self: flex-start;
  padding: 0.5rem;
}
.addon button:hover {
  background: #FFF;
  color: #a795ef;
}

div.hr {
  border: 1px dashed #ccc;
  width: 10%;
  margin: 4rem auto;
  height: 1px;
}

a.button {
  border: 2px solid #a795ef;
  font-weight: bold;
  margin: 0;
  border-radius: 3px;
  display: inline-block;
  padding: 0.5rem 2rem;
  text-align: center;
  text-decoration: none;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
  background-color: #FFF;
  transition: box-shadow 0.1s linear;
}
a.button:hover {
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
}

#message_window {
  background: #E3E6E8;

  height: 100vh;
  width: 100%;
  border-radius: 24px;
  overflow: clip;
  display: flex;
  flex-direction: column;
  font-family: "Open Sans";
}
#message_window .disconnected {
  background: #FFFFCC;
  padding: 0.25rem;
}
#message_window.connected .disconnected {
  display: none;
}
#message_window .offline {
  display: none;
}
#message_window.offline .disconnected {
  display: none;
}
#message_window.offline .offline {
  background: #FF0000;
  color: #FFF;
  padding: 0.25rem;
  display: block;
}
#message_window .powered_by {
  background: var(--primary-color);
  height: 47px;
  display: flex;
  flex-direction: row;

  flex-shrink: 0;
  text-align: center;
  font-size: 14px;
  padding: 0.25rem 0;
  color: #666;
}

#message_window .powered_by .avatar {
  display: flex;
  justify-content: center;
  align-content: center;
  height: 26px;
  width: 26px;
  border-radius: 100%;
  border: 2px solid #C4E6D3;
  background-image: url('../assets/imgs/avatar.png');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #C4E6D3;
  overflow: clip;
  top: 50%;
  position: relative;
  transform: translateY(-50%);
  margin-left: 15px;
}

#message_window .powered_by .title {
  top: 50%;
  position: relative;
  transform: translateY(-50%);
  padding-left: 15px;
  height: min-content;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  color: #FFFFFF;
}

#message_window .powered_by a {
  text-decoration: none;
  color: #666;
}
#message_window .powered_by img {
  position: relative;
  top: 2px;
}
#message_window section {
  flex-grow: 1;
  flex-direction: column-reverse;
  display: flex;
  overflow-y: auto;
}
#message_window section div div {
  margin: 0.25rem;
  clear: both;
}
#message_window footer {
  padding: 0.25rem;
  background: #fff;
  height: 65px;
}

#message_window footer .footer-content {
  height: 36px;
  width: 100%;
  border: 1px solid #CFD2D4;
  box-sizing: border-box;
  border-radius: 10px;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

#message_window footer input[type=text] {
  flex-grow: 1;
  font-size: 1.25rem;
  margin-left: 16px;
  outline: none;
  border: none;
  color: #909599;
  font-size: 16px;
  line-height: 21px;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  width: calc(100% - 50px);
}
#message_window footer button {
  background-image: url(../assets/icons/send.svg);
  background-repeat: no-repeat;
  border: 0;
  cursor: pointer;
  color: blue;
  font-weight: bold;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 8px;
  height: 20px;
  width: 20px;
  padding: 0;
  background-color: #fff;
}
#message_window form {
  display: flex;
  margin: 0;
  padding: 0.25rem;
  height: 100%;
}
#message_window #message_template {
  display: none;
}
#message_window .message {
  padding: 12px 20px;
  color: #FFF;
  width: auto;
  display: inline-block;
  max-width: 75%;

  font-style: normal;
  font-weight: normal;
  font-size: 14px;
  line-height: 19px;

  background: var(--green-5);

  box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.24), 0px 2px 4px rgba(0, 0, 0, 0.16), 0px -1px 1px rgba(0, 0, 0, 0.08);
  border-radius: 0px 24px 24px 24px;
}
#message_window .file_attachment {
  background: #F0F0F0;
  color: #333;
  border-radius: 5px;
  display: inline-block;
  max-width: 75%;
}
#message_window .file_attachment img {
  max-width: 100%;
  display: block;
}
#message_window .button_message {
  margin: 1rem 0;
  border-radius: 4px;
  border-color: orange;
  border-style: solid;
  color: orange;
  border-width: 1px;
  padding: 0.25rem 1rem;
  text-decoration: none;
  text-align: center;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
  display: block;
}
#message_window .message p {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
#message_window .message p:last-child {
  margin-bottom: 0;
}
#message_window .message.outgoing {
  float: right;
  background: var(--primary-color);

  box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.24), 0px 2px 4px rgba(0, 0, 0, 0.16), 0px -1px 1px rgba(0, 0, 0, 0.08);
  border-radius: 24px 0px 24px 24px;
}
#message_window #message_replies {
  text-align: center;
  overflow-x: auto;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
}
#message_window #message_replies ul {
  list-style-type: none;
  margin: 0px auto;
  padding: 0;
}
#message_window #message_replies ul li {
  display: inline-block;
  margin: 0.5rem;
  margin-left: 0;
}
#message_window #message_replies a {
  text-decoration: none;
  display: block;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 16px;
  padding: 0.25rem 1rem;
  font-size: 14px;
  cursor: pointer;
}
#message_window #message_replies a:hover {
  background: var(--primary-color);
  color: #FFF;
}

.typing-indicator {
  display: table;
  margin: 0 auto;
  position: relative;
}
.typing-indicator span {
  height: 5px;
  width: 5px;
  float: left;
  margin: 0 1px;
  background-color: #333;
  display: block;
  border-radius: 50%;
  opacity: 0.4;
}
.typing-indicator span:nth-of-type(1) {
  animation: 1s blink infinite 0.3333s;
}
.typing-indicator span:nth-of-type(2) {
  animation: 1s blink infinite 0.6666s;
}
.typing-indicator span:nth-of-type(3) {
  animation: 1s blink infinite 0.9999s;
}

@keyframes blink {
  50% {
    opacity: 1;
  }
}

#home {
  position: relative;
  max-width: 650px;
  margin: auto;
}
#home:after {
  content: "";
  display: table;
  clear: both;
}

#homepage_bot {
  width: 400px;
  height: 450px;
  float: left;
  border: 5px solid #333;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
}
#homepage_bot iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

#welcome {
  margin-left: 440px;
}
