@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
  font-weight: normal;
  font-size: inherit;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  /* font-family: 'Poppins', sans-serif; */
  font-family: Tahoma, Verdana, Arial, Helvetica;
  background: linear-gradient(90deg, var(--grey) 31px, transparent 1px) 50%, linear-gradient(180deg, var(--grey) 31px, var(--blue) 1px) 50%;
  background-size: 32px 32px;
  color: var(--dark);
  display: flex;
  flex-direction: column;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
  border-radius: 50%;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
   scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* GLOBAL STYLES */
:root {
	--blue: #335DFF;
	--grey: #F5F5F5;
	--grey-d-1: #EEE;
	--grey-d-2: #DDD;
	--grey-d-3: #888;
	--white: #FFF;
	--dark: #222;
}

/* GLOBAL STYLES */
.chatbox-wrapper {
  position: fixed;
  bottom: 0.5rem;
  right: 0;
  width: 4rem;
  height: 4rem;
}

.chatbox-toggle {
  width: 50%;
  height: 50%;
  background: transparent;
  color: transparent;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  cursor: pointer;
  transition: .2s;
}

.chatbox-toggle:active {
   transform: scale(.9);
}

.chatbox-message-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fbfaf0;
  padding: .75rem 1.5rem;
  width: 900px;
}

.chatbox-message-profile {
  display: flex;
  align-items: center;
  grid-gap: .5rem;
}

.chatbox-message-form {
  border-radius: 0px;
}

.chatbox-message-name {
  font-size: 1.125rem;
  font-weight: 600;
}

.chatbox-message-status {
  font-size: .875rem;
  color: var(--grey-d-3);
}

.chatbox-message-dropdown {
  position: relative;
}

.chatbox-message-dropdown-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 50%;
}

.chatbox-message-dropdown-toggle:hover {
  background: var(--grey);
}

.chatbox-message-dropdown-menu {
  list-style: none;
  margin: 0;
  position: absolute;
  top: 100% ;
  right: 0;
  background: var(--white);
  padding: .5rem 0;
  width: 120px;
  box-shadow: .25rem .25rem 1.5rem rgba(0, 0, 0, .1);
  transform: scale(0);
  transition: .2s;
}

.chatbox-message-dropdown-menu a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  padding: .5rem 1rem;
  display: block;
}

.chatbox-message-dropdown-menu a:hover {
  background: var(--grey);
}

.chatbox-message-content {
  background: var(--grey);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  /* grid-row-gap: 1rem; */
  grid-row-gap: 10px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#sendbtn{
  margin-left: 100px;
  margin-top: 5px;
}
footer{
  margin-top: auto;
}

.chatbox-message-item {
  width: 90%;
  padding: 1rem;
}

.chatbox-message-item.sent {
  align-self: flex-end;
  color: var(--white);
  border-radius: .75rem 0 .75rem .75rem;
}


.chatbox-message-item-time{
  position: right;
  font-size: .75rem;
  /* margin-top: .5rem; */
  display: inline-block;
}

.chatbox-message-form {
  display: flex;
  align-items: center;
  background: var(--grey);
  border-radius: 10.5rem;
  padding: .5rem 1.25rem;
}

.chatbox-message-input {
  width: 90%;
  background: transparent;
  border: none;
  resize: none;
  scrollbar-width: none;
}

.chatbox-message-input::-webkit-scrollbar {
  display: none;
}

.chatbox-message-submit {
  font-size: 1.25rem;
  color: var(--blue);
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}
/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
  border-radius: 50%;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* GLOBAL STYLES */
.chatbox-wrapper {
  position: fixed;
  bottom: 0.5rem;
  right: 0;
  width: 4rem;
  height: 4rem;
}

.chatbox-toggle {
  width: 50%;
  height: 50%;
  background: transparent;
  color: transparent;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  cursor: pointer;
  transition: .2s;
}

.chatbox-toggle:active {
  transform: scale(.9);
}

.chatbox-message-wrapper {
  position: absolute;
  bottom: 5px;
  right: 0%;
  width: 900px;
  border-radius: .5rem;
  overflow: hidden;
  box-shadow: .5rem .5rem 2rem rgba(0, 0, 0, .5);
}

.chatbox-message {
  display: flex;
  align-items: center;
}

.chatbox-message-profile {
  display: flex;
  align-items: center;
  grid-gap: .5rem;
}

.logo-container {
  width: 3rem;
    height: 3rem;
    /* padding: 5px; */
    border-radius: 50%;
    margin-right: 10px;
}

.chatbox-message-form {
  border-radius: 0px;
}

.chatbox-message-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 5px;
}

.chatbox-message-status {
  font-size: .875rem;
  color: var(--grey-d-3);
}

.chatbox-message-dropdown {
  position: relative;
}

.chatbox-message-dropdown-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 50%;
}

.chatbox-message-dropdown-toggle:hover {
  background: var(--grey);
}

.chatbox-message-dropdown-menu {
  list-style: none;
  margin: 0;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  padding: .5rem 0;
  width: 120px;
  box-shadow: .25rem .25rem 1.5rem rgba(0, 0, 0, .1);
  transform: scale(0);
  transition: .2s;
}

.chatbox-message-dropdown-menu a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  padding: .5rem 1rem;
  display: block;
}

.chatbox-message-dropdown-menu a:hover {
  background: var(--grey);
}

.chatbox-message-content {
  background: var(--grey);
  padding: 1.5rem;
  /* padding-top: 0px; */
  display: flex;
  flex-direction: column;
  grid-row-gap: 10px;
  height: 395px;
  -ms-overflow-style: none;
  /* for Internet Explorer, Edge */
  scrollbar-width: none;
  /* for Firefox */
  overflow-y: scroll;
}

.chatbox-message-content::-webkit-scrollbar {
  display: white;
  /* for Chrome, Safari, and Opera */
}

.chatbox-message-item {
  width: 90%;
  padding: 1rem;
}

.chatbox-message-item.sent {
  align-self: flex-end;
  background: #1f3f78;
  color: var(--white);
  border-radius: .75rem 0 .75rem .75rem;
  font-size: 14px;
  padding-top: 0px;
  width: fit-content;
}

.chatbox-message-item.sent>span {
  white-space: pre-line;
}

.chatbox-message-item.received>span {
  white-space: pre-line;
}

.chatbox-message-item.received {
  color: #fff;
  border-radius: 0 .75rem .75rem .75rem;
  box-shadow: .25rem .25rem 1.5rem rgba(0, 0, 0, .05);
  font-size: 14px;
  padding-top: 0px;
  width: fit-content;
}

.chatbox-message-item.received:last-child {
  margin-bottom: 0;
  margin-top: 0;
  padding-top: unset;
  display: inline;
}

.chatbox-message-item-text {
  margin-top: 0;
  margin-bottom: auto;
}

.chatbox-message-item-time {
  /* position: right; */
  /* font-size: .70rem; */
  /* margin-top: 1rem; */
  display: inline-block;
  font-size: 9px;
  float: right;
}

.chatbox-message-item-time-sent {
  position: right;
  font-size: .70rem;
  /* margin-top: 1.5rem; */
  display: inline-block;
  font-size: 10px;
  float: right;
}

.chatbox-message-bottom {
  background: var(--white);
  padding: .75rem 1.5rem;
}

.chatbox-message-form {
  display: flex;
  align-items: center;
  background: var(--grey);
  border-radius: 10.5rem;
  padding: .5rem 1.25rem;
}

.chatbox-message-input {
  width: 100%;
  background: transparent;
  border: none;
  resize: none;
  scrollbar-width: none;
  outline: none !important;
  border: none;
  box-shadow: none;
  font-size: 14px;
}

.chatbox-message-input::-webkit-scrollbar {
  display: none;
}

.chatbox-message-submit {
  font-size: 1.25rem;
  color: var(--blue);
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
}

/* for typing animation */
.chat-bubble {
  
  color: #fff;
  padding:16px 28px;
  border-radius: 0 .75rem .75rem .75rem;
  box-shadow: .25rem .25rem 1.5rem rgba(0, 0, 0, .05);
  width: 90px;
}

.typing {
  align-items: center;
  display: flex;
  height: 17px;
}

.typing .dot {
  animation: mercuryTypingAnimation 1.8s infinite ease-in-out;
  background-color: white;
  border-radius: 50%;
  height: 7px;
  margin-right: 4px;
  vertical-align: middle;
  width: 7px;
  display: inline-block;
}

.typing .dot:nth-child(1) {
  animation-delay: 200ms;
}

.typing .dot:nth-child(2) {
  animation-delay: 300ms;
}

.typing .dot:nth-child(3) {
  animation-delay: 400ms;
}

.typing .dot:last-child {
  margin-right: 0;
}

@keyframes mercuryTypingAnimation {
  0% {
    transform: translateY(0px);
    background-color: #5b79ac; 
  }

  28% {
    transform: translateY(-7px);
    background-color: #5b79ac; 
  }

  44% {
    transform: translateY(0px);
    background-color: #5b79ac; 
  }
}

@media only screen and (min-width: 600px) {
  /* For tablets: */
  .col-s-1 {width: 8.33%;}
  .col-s-2 {width: 16.66%;}
  .col-s-3 {width: 25%;}
  .col-s-4 {width: 33.33%;}
  .col-s-5 {width: 41.66%;}
  .col-s-6 {width: 50%;}
  .col-s-7 {width: 58.33%;}
  .col-s-8 {width: 66.66%;}
  .col-s-9 {width: 75%;}
  .col-s-10 {width: 83.33%;}
  .col-s-11 {width: 91.66%;}
  .col-s-12 {width: 100%;}
}
@media only screen and (min-width: 768px) {
  /* For desktop: */
  .col-1 {width: 8.33%;}
  .col-2 {width: 16.66%;}
  .col-3 {width: 25%;}
  .col-4 {width: 33.33%;}
  .col-5 {width: 41.66%;}
  .col-6 {width: 50%;}
  .col-7 {width: 58.33%;}
  .col-8 {width: 66.66%;}
  .col-9 {width: 75%;}
  .col-10 {width: 83.33%;}
  .col-11 {width: 91.66%;}
  .col-12 {width: 100%;}
}