﻿@charset "UTF-8";

/********** Font Face **********/
/* Open Sans Regular */
@font-face {
  font-family: "OpenSans";
  src: url("../fonts/Regular/OpenSans-Regular.eot");
  src: url("../fonts/Regular/OpenSans-Regular.woff2") format("woff2"),
    url("../fonts/Regular/OpenSans-Regular.woff") format("woff"),
    url("../fonts/Regular/OpenSans-Regular.ttf") format("truetype"),
    url("../fonts/Regular/OpenSans-Regular.svg#OpenSans") format("svg"),
    url("../fonts/Regular/OpenSans-Regular.eot?#iefix")
      format("embedded-opentype");
  font-weight: normal;
  font-style: normal;
}

*,
*:after,
*:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
html,
body {
  font-family: "OpenSans";
  margin: 0;
  padding: 0;
  height: 100%;
  -webkit-overflow-scrolling: touch !important;
  overflow: auto !important;
  background: #f5f5f5;
}

.container {
  position: relative;
  height: 100vh;
  overflow: hidden;
  margin: 0 auto;
}

/* Main */
main {
  display: grid;
  grid-template-columns: auto 25%;
  grid-template-rows: 1fr 2fr;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  height: 100vh;
}
header {
  background: #fff;
  grid-area: 1 / 1 / 2 / 3;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.15), 0 2px 3px rgba(0, 0, 0, 0.15);
  border-top: 3px solid #347074;
  z-index: 4;
}

.chat-relevant-topics {
  grid-area: 2 / 2 / 3 / 3;
  border-left: 1px solid rgb(198, 198, 198);
  background-color: #fff;
  height: 100%;
  overflow: scroll;
}

.chat-messages {
  grid-area: 2 / 1 / 3 / 2;
}
.header_container .relevant-topic-mobile-icon {
  display: none;
}
.header_container .relevant-topic-mobile {
  display: none;
}

h3.relevant-title {
  color: #fff;
  text-align: center;
  background-color: #084b33;
  padding: 8px;
  margin: 0;
  border-bottom: 1px solid #fff;
}
/* Accordion */

.accordion {
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 4px 4px -2px rgba(0, 0, 0, 0.5);
  -webkit-border-radius: 0px;
  -moz-border-radius: 0px;
  -ms-border-radius: 0px;
  -o-border-radius: 0px;
}
.accordion input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.tab {
  width: 100%;
  color: white;
  overflow: hidden;
}
.tab-label {
  display: flex;
  justify-content: space-between;
  padding: 1em;
  background: #0e6947;
  font-weight: 700;
  cursor: pointer;
  /* Icon */
}
.tab-label:hover {
  background: #084b33;
}
.tab-label::after {
  content: "❯";
  width: 1em;
  height: 1em;
  text-align: center;
  transition: all 0.35s;
}
.tab-content {
  max-height: 0;
  padding: 0 1em;
  color: #2c3e50;
  background: white;
  transition: all 0.35s;
  font-size: 0.8em;
}
.tab-content img {
  width: 100%;
  object-fit: cover;
}

.tab-content ul {
  margin: 0;
}

.tab-close {
  display: flex;
  justify-content: flex-end;
  padding: 1em;
  font-size: 0.75em;
  background: #0e6947;
  cursor: pointer;
}
.tab-close:hover {
  background: #084b33;
}

.btn {
  background-color: #0e6947;
  border: 0;
  color: #fff;
  padding: 10px 25px;
  outline: none;
  cursor: pointer;
  border-radius: 4px;
  box-shadow: inset 3px 3px 10px #1e7e5b;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn:hover {
  background-color: #1e7e5b;
}

.btn-mrg {
  margin: 30px auto;
}

i.refresh-ic {
  background-image: url(./../images/sync.svg);
  height: 18px;
  width: 18px;
  display: inline-block;
}

input:checked + .tab-label {
  background: #0e6947;
}
input:checked + .tab-label::after {
  transform: rotate(90deg);
}
input:checked ~ .tab-content {
  max-height: 100vh;
  padding: 1em;
}

/* Chat Elements */
.container-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 75px;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  height: calc(100vh - 85px);
}

.chat-message-wrapper {
  grid-column-start: 1;
  grid-column-end: 2;
  overflow: auto;
  padding: 1.5rem;
}
.chat-message img {
  max-width: 450px;
  object-fit: cover;
}
.chat-message iframe {
  max-width: 450px;
  max-height: 250px;
}

.chat-message-wrapper ul {
  list-style-image: url(./../images/pointer.png);
}

.chat-message.sender a {
  color: #fff;
  font-weight: 700;
}
.chat-message.sender a:visited {
  color: #fff;
  font-weight: 700;
}

.chat-message.sender a:hover {
  color: #fff;
  font-weight: 700;
}

.chat-message.ded-bot-agent > span.time_date {
  color: #747474;
  font-size: 10px;
  float: right;
}

.chat-message.sender > span.time_date {
  color: #fff;
  font-size: 10px;
}

.chat-message.ded-bot-agent a {
  color: #0e6947;
  font-weight: 700;
}
.chat-message.ded-bot-agent a:visited {
  color: #0e6947;
}
.chat-message.ded-bot-agent a:hover {
  color: #0e6947;
}

.tab-content a {
  color: #07b173;
}
.tab-content a:visited {
  color: #07b173;
}
.tab-content a:hover {
  color: #0e6947;
}

.message-wrapper .chat-message {
  background-color: #fff;
  max-width: 80%;
  border-radius: 12px;
  padding: 6px 16px;
  margin: 8px 0;
  color: #333;
  margin-left: 84px;
  display: inline-block;
  position: relative;
}
.message-wrapper .chat-message p {
  margin: 6px 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.message-wrapper .chat-message:nth-of-type(n + 2) {
  clear: both;
}
.message-wrapper .chat-message:nth-of-type(n + 2) .arrow {
  display: none;
}
.message-wrapper.agent .chat-message:nth-of-type(n + 2) {
    margin-left: 68px !important;
}
.message-wrapper.customer .chat-message:nth-of-type(n + 2) {
    margin-right: 68px !important;
}

.message-wrapper.agent .chat-message {
    margin-left: 20px;
    margin-right: 0;
    float: left;
}
.message-wrapper.customer .chat-message {
    background: #1e7e5b;
    color: #fff;
    margin-left: 0;
    margin-right: 20px;
    float: right;
}

.message-wrapper .chat-message .arrow {
  width: 0;
  height: 0;
  border-top: 0;
  border-bottom: 10px solid transparent;
  position: absolute;
  top: 12px;
}
.message-wrapper.agent .chat-message .arrow {
    border-right: 10px solid #fff;
    left: -10px;
}
.message-wrapper.customer .chat-message .arrow {
    border-left: 10px solid #1e7e5b;
    right: -10px;
}

.message-wrapper .avatar {
  width: 48px;
  height: 48px;
  background-size: contain !important;
  display: block;
  margin-top: 5px;
}
.message-wrapper.agent .avatar {
    background: url(../images/bot_avatar_ded.png) no-repeat center center;
    float: left;
}
.message-wrapper.customer .avatar {
    background: url(../images/avatar.png) no-repeat center center;
    float: right;
}

.message-wrapper::after,
.chat-message::after {
  content: "";
  clear: both;
  display: table;
}

.message-wrapper.agent .time {
    float: right;
    color: #000;
    opacity: 0.5;
    font-size: 12px;
}
.message-wrapper.customer .time {
    float: left;
    color: #fff;
    opacity: 0.5;
    font-size: 12px;
}

/* messages */

.inbox_msg {
  clear: both;
  overflow: hidden;
}

.incoming_msg_img {
  display: inline-block;
  width: 6%;
}

.received_msg {
  display: inline-block;
  padding: 0 0 0 10px;
  vertical-align: top;
  width: 92%;
}
.received_withd_msg p {
  background: #ebebeb none repeat scroll 0 0;
  border-radius: 3px;
  color: #646464;
  font-size: 14px;
  margin: 0;
  padding: 5px 10px 5px 12px;
  width: 100%;
}
.time_date {
  color: #747474;
  display: block;
  font-size: 12px;
  margin: 8px 0 0;
}
.received_withd_msg {
  width: 57%;
}
.mesgs {
  float: left;
  padding: 30px 15px 0 25px;
  width: 100%;
}

.sent_msg p {
  background: #05728f none repeat scroll 0 0;
  border-radius: 3px;
  font-size: 14px;
  margin: 0;
  color: #fff;
  padding: 5px 10px 5px 12px;
  width: 100%;
}
.outgoing_msg {
  overflow: hidden;
  margin: 26px 0 26px;
}
.sent_msg {
  float: right;
  width: 46%;
}
.input_msg_write input {
  background: rgba(0, 0, 0, 0) none repeat scroll 0 0;
  border: medium none;
  color: #4c4c4c;
  font-size: 15px;
  min-height: 48px;
  width: 100%;
}

.type_msg {
  border-top: 1px solid #c4c4c4;
  position: relative;
}
.msg_send_btn {
  background: #05728f none repeat scroll 0 0;
  border: medium none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 17px;
  height: 33px;
  position: absolute;
  right: 0;
  top: 11px;
  width: 33px;
}
.messaging {
  padding: 0 0 50px 0;
}
.msg_history {
  height: 516px;
  overflow-y: auto;
}
/* end of .accordion */

.chat-message-wrapper button {
  background-color: #1e7e5b;
  color: #fff;
  border: none;
  outline: none;
  margin: 10px 0px;
  padding: 6px 12px;
  border-radius: 20px;
}
select {
  background-color: white;
  background: none;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 4px 10px;
  width: 100%;
  margin-top: 10px;
}
.header_container {
  width: 100%;
  height: 100%;
  padding: 0 50px;
  margin: 0 auto;
}
.header_container > span {
  height: 64px;
  margin: 6px;
  display: block;
}
.header_container .de-logo {
  background: url(../images/de_logo.svg) no-repeat center center;
  background-size: contain !important;
  width: 180px;
  float: left;
}
.header_container .chatbot-logo {
  background: url(../images/logo.png) no-repeat center center;
  background-size: contain !important;
  width: 220px;
  float: right;
}

/* Action Buttons */
.action-btns {
  display: inline-block;
}
.action-btns a {
  border: 1px solid #347074;
  border-radius: 15px;
  padding: 3px 10px;
  margin: 5px 3px;
  min-width: 50px;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  color: #347074;
  cursor: pointer;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}
.modal-header {
  padding: 0;
  position: relative;
}
.modal-content {
  background-color: #fefefe;
  max-height: 440px;
  margin: 4% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 900px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s;
  border-radius: 16px;
}
.modal-body {
  padding: 2px 16px;
  max-height: 400px;
  overflow: auto;
  color: #333;
}

@-webkit-keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

.close {
  background: #f1e630;
  width: 32px;
  height: 32px;
  color: #333;
  float: right;
  font-size: 28px;
  position: absolute;
  right: -32px;
  top: -30px;
  text-align: center;
  border-radius: 50%;
  line-height: 30px;
}
.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Text Message Input */
.text-message-input {
  grid-area: 2 / 1 / 3 / 2;
  background-color: #fff;
  border-top: 1px solid rgb(198, 198, 198);
}
.text-message-input .message-wrapper {
  width: 100%;
  padding: 0 50px;
  position: relative;
}
.text-message-input .message-wrapper input[type="text"] {
  width: 100%;
  display: block;
  height: 48px;
  font-size: 16px;
  border-radius: 50px;
  padding: 5px 16px;
  border: 1px solid #ddd;
  outline: none;
  margin-top: 15px;
  padding-right: 85px;
  -webkit-appearance: none;
}
.text-message-input .message-wrapper .send {
  background: #1e7e5b url(../images/send_btn.svg) no-repeat center center;
  background-size: 50%;
  position: absolute;
  top: 4px;
  right: 54px;
  border: none;
  outline: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}
.text-message-input .message-wrapper .send:hover {
  background: #084b33 url(../images/send_btn.svg) no-repeat center center;
  background-size: 50%;
}
.text-message-input .message-wrapper .speachtotext {
  background: #34707400 url(../images/mic.svg) no-repeat center center;
  background-size: 50%;
  position: absolute;
  top: 4px;
  right: 100px;
  border: none;
  outline: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}
.text-message-input .message-wrapper .speachtotext:hover {
  background: #fecd5e url(../images/mic.svg) no-repeat center center;
  background-size: 50%;
}

/* Loader */
.loader-overlay {
  background: rgba(0, 0, 0, 0.7);
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 100;
  display: none;
}
.loader,
.loader:before,
.loader:after {
  background: #fecd5e;
  -webkit-animation: load1 1s infinite ease-in-out;
  animation: load1 1s infinite ease-in-out;
  width: 1em;
  height: 4em;
}
.loader {
  color: #ffffff;
  text-indent: -9999em;
  margin: 20% auto;
  position: relative;
  font-size: 11px;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}
.loader:before,
.loader:after {
  position: absolute;
  top: 0;
  content: "";
}
.loader:before {
  left: -1.5em;
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}
.loader:after {
  left: 1.5em;
}
@-webkit-keyframes load1 {
  0%,
  80%,
  100% {
    box-shadow: 0 0;
    height: 4em;
  }
  40% {
    box-shadow: 0 -2em;
    height: 5em;
  }
}
@keyframes load1 {
  0%,
  80%,
  100% {
    box-shadow: 0 0;
    height: 4em;
  }
  40% {
    box-shadow: 0 -2em;
    height: 5em;
  }
}

/* Responsive Part */

/* For typical mobile devices */
@media only screen and (min-width: 280px) and (max-width: 319px) {
  body {
    font-size: small;
  }
  main {
    display: grid;
  }
  header {
    grid-area: auto;
  }
  .header_container {
    width: 100vw;
    padding: 0 10px;
    position: relative;
  }
  .chat-message-wrapper {
    padding: 0.5rem;
  }
  .header_container .de-logo {
    display: none;
  }
  .container-wrapper {
    width: 100vw;
  }
  h3.relevant-title {
    display: none;
  }

  .header_container .relevant-topic-mobile-icon {
    display: inline-block;
    margin-top: 25px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.15), 0 2px 3px rgba(0, 0, 0, 0.15);
    z-index: 4;
    cursor: pointer;
    background-color: #1e7e5b;
    padding: 5px 5px 0;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
  }

  .header_container .relevant-topic-mobile-icon:hover {
    background-color: #0e6947;
  }

  .header_container .relevant-topic-mobile {
    display: block;
  }

    #relevantBox {
        width: 300px;
        position: absolute;
        left: -350px;
        background-color: #fff;
        z-index: 1001;
        overflow: hidden;
        text-align: left;
        -webkit-transition: transform 250ms ease-in-out;
        transition: transform 250ms ease-in-out;
        -moz-transition: transform 250ms ease-in-out;
        -ms-transition: transform 250ms ease-in-out;
        -o-transition: transform 250ms ease-in-out;
        height: 80%;
        overflow: scroll;
    }

  .active {
    -webkit-transform: translateX(350px);
    -moz-transform: translateX(350px);
    -o-transform: translateX(350px);
    -ms-transform: translateX(350px);
    transform: translateX(350px);
    box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22);
    -moz-box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3),
      0 15px 12px rgba(0, 0, 0, 0.22);
    -webkit-box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3),
      0 15px 12px rgba(0, 0, 0, 0.22);
  }

  .chat-message img {
    width: 100%;
    object-fit: cover;
  }
  .chat-message iframe {
    width: 100%;
    max-height: 250px;
  }
}

/* TODO: */

@media only screen and (min-width: 320px) and (max-width: 479px) {
  body {
    font-size: small;
  }
  main {
    display: grid;
  }
  header {
    grid-area: auto;
  }
  .header_container {
    width: 100vw;
    padding: 0 10px;
    position: relative;
  }
  .chat-message-wrapper {
    padding: 0.5rem;
  }
  .header_container .de-logo {
    display: none;
  }
  .container-wrapper {
    width: 100vw;
  }
  h3.relevant-title {
    display: none;
  }

  .header_container .relevant-topic-mobile-icon {
    display: inline-block;
    margin-top: 25px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.15), 0 2px 3px rgba(0, 0, 0, 0.15);
    z-index: 4;
    cursor: pointer;
    background-color: #1e7e5b;
    padding: 5px 5px 0;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
  }

  .header_container .relevant-topic-mobile-icon:hover {
    background-color: #0e6947;
  }

  .header_container .relevant-topic-mobile {
    display: block;
  }

    #relevantBox {
        width: 300px;
        position: absolute;
        left: -350px;
        background-color: #fff;
        z-index: 1001;
        overflow: hidden;
        text-align: left;
        -webkit-transition: transform 250ms ease-in-out;
        transition: transform 250ms ease-in-out;
        -moz-transition: transform 250ms ease-in-out;
        -ms-transition: transform 250ms ease-in-out;
        -o-transition: transform 250ms ease-in-out;
        height: 80%;
        overflow: scroll;
    }

  .active {
    -webkit-transform: translateX(350px);
    -moz-transform: translateX(350px);
    -o-transform: translateX(350px);
    -ms-transform: translateX(350px);
    transform: translateX(350px);
    box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22);
    -moz-box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3),
      0 15px 12px rgba(0, 0, 0, 0.22);
    -webkit-box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3),
      0 15px 12px rgba(0, 0, 0, 0.22);
  }

  .chat-message img {
    width: 100%;
    object-fit: cover;
  }
  .chat-message iframe {
    width: 100%;
    max-height: 250px;
  }
}

/* For mobile (landscape) */
@media only screen and (min-width: 480px) and (max-width: 767px) {
  body {
    font-size: small;
  }
  main {
    display: grid;
  }
  header {
    grid-area: auto;
  }
  .header_container {
    width: 100vw;
    padding: 0 10px;
    position: relative;
  }
  .chat-message-wrapper {
    padding: 0.5rem;
  }
  .header_container .de-logo {
    display: none;
  }
  .container-wrapper {
    width: 100vw;
  }

  h3.relevant-title {
    display: none;
  }

  .header_container .relevant-topic-mobile-icon {
    display: inline-block;
    margin-top: 25px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.15), 0 2px 3px rgba(0, 0, 0, 0.15);
    z-index: 4;
    cursor: pointer;
    background-color: #1e7e5b;
    padding: 5px 5px 0;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
  }

  .header_container .relevant-topic-mobile-icon:hover {
    background-color: #0e6947;
  }

  .header_container .relevant-topic-mobile {
    display: block;
  }

    #relevantBox {
        width: 300px;
        position: absolute;
        left: -350px;
        background-color: #fff;
        z-index: 1001;
        overflow: hidden;
        text-align: left;
        -webkit-transition: transform 250ms ease-in-out;
        transition: transform 250ms ease-in-out;
        -moz-transition: transform 250ms ease-in-out;
        -ms-transition: transform 250ms ease-in-out;
        -o-transition: transform 250ms ease-in-out;
        height: 80%;
        overflow: scroll;
    }

  .active {
    -webkit-transform: translateX(350px);
    -moz-transform: translateX(350px);
    -o-transform: translateX(350px);
    -ms-transform: translateX(350px);
    transform: translateX(350px);
    box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22);
    -moz-box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3),
      0 15px 12px rgba(0, 0, 0, 0.22);
    -webkit-box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3),
      0 15px 12px rgba(0, 0, 0, 0.22);
  }
  .chat-message img {
    width: 100%;
    object-fit: cover;
  }
  .chat-message iframe {
    width: 100%;
    max-height: 250px;
  }
}

/* For tablet */
@media only screen and (min-width: 768px) and (max-width: 979px) {
  body {
    font-size: small;
  }
  main {
    display: grid;
  }
  header {
    grid-area: auto;
  }
  .header_container {
    width: 100vw;
    padding: 0 10px;
    position: relative;
  }
  .chat-message-wrapper {
    padding: 0.5rem;
  }
  .header_container .de-logo {
    display: none;
  }
  .container-wrapper {
    width: 100vw;
  }

  h3.relevant-title {
    display: none;
  }

  .header_container .relevant-topic-mobile-icon {
    display: inline-block;
    margin-top: 25px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.15), 0 2px 3px rgba(0, 0, 0, 0.15);
    z-index: 4;
    cursor: pointer;
    background-color: #1e7e5b;
    padding: 5px 5px 0;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
  }

  .header_container .relevant-topic-mobile-icon:hover {
    background-color: #0e6947;
  }

  .header_container .relevant-topic-mobile {
    display: block;
  }

    #relevantBox {
        width: 300px;
        position: absolute;
        left: -350px;
        background-color: #fff;
        z-index: 1001;
        overflow: hidden;
        text-align: left;
        -webkit-transition: transform 250ms ease-in-out;
        transition: transform 250ms ease-in-out;
        -moz-transition: transform 250ms ease-in-out;
        -ms-transition: transform 250ms ease-in-out;
        -o-transition: transform 250ms ease-in-out;
        height: 80%;
        overflow: scroll;
    }

  .active {
    -webkit-transform: translateX(350px);
    -moz-transform: translateX(350px);
    -o-transform: translateX(350px);
    -ms-transform: translateX(350px);
    transform: translateX(350px);
    box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22);
    -moz-box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3),
      0 15px 12px rgba(0, 0, 0, 0.22);
    -webkit-box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3),
      0 15px 12px rgba(0, 0, 0, 0.22);
  }
  .chat-message img {
    width: 100%;
    object-fit: cover;
  }
  .chat-message iframe {
    width: 100%;
    max-height: 250px;
  }
}

/* For small desktop */
@media only screen and (min-width: 980px) and (max-width: 1023px) {
  main {
    display: grid;
    grid-template-columns: auto 25%;
    grid-template-rows: 1fr 2fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    height: 100vh;
  }
  header {
    background: #fff;
    grid-area: 1 / 1 / 2 / 3;
    height: 80px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.15), 0 2px 3px rgba(0, 0, 0, 0.15);
    border-top: 3px solid #0e6947;
    z-index: 4;
  }
}
