html,
body {
  height: 100%;
}

.roboto-body {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.lato-regular {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
}

body {
  margin: 0;
  background-color: #212121;
  font-family: "Lato";
}
div {
  box-sizing: border-box;
}
.chatbox {
  height: 100%;
  max-width: 27rem;
  margin: 0px auto;
  display: flex;
  flex-direction: column;
  background-color: #d7173e;
  overflow: hidden;
}
.headersection {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #d7173e;
  /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
  padding: 10px;
  color: white;
}
.img {
  display: block;
  width: 7rem;
  height: auto;
  margin-right: 3px;
  cursor: pointer;
}
.img2 {
  display: block;
  width: 5rem;
  height: auto;
  margin-right: 3px;
  cursor: pointer;
}
.main-body {
  overflow: auto;
  height: 100%;
  position: relative;
  padding: 25px 15px 10px 15px;
  padding-bottom: 0px;
  border-radius: 30px 30px 0px 0px;
  background-color: #ffffff;
}
.footer {
  height: auto;
  color: white;
  display: flex;
  flex-direction: column;
  -webkit-box-pack: justify;
  background-color: #f5f5f5ff;
  position: relative;
  padding-top: 10px;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 42%);
  z-index: 2;
}

.chat {
  width: 100%;
  height: 100%;
  overflow: auto;
  display: flex;
  flex-direction: column;
  transition: scroll-top 0.5s ease-in-out;
  scroll-behavior: smooth;
}

.chat::-webkit-scrollbar {
  width: 0;
  background: transparent;
}
.conversation {
  display: flex;
  gap: 6px;
}
.conversation img {
  height: 25px;
  margin-top: 6px;
}
.bot-img {
  height: 25px;
  margin-top: 6px;
}
.conversation .message-container {
  min-height: 40px;
  border-radius: 0px 8px 8px;
  margin-top: 6px;
  min-width: 25%;
  max-width: 80%;
  position: relative;
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.user-container {
  align-items: flex-end;
}
.message-part {
  display: flex;
  gap: 5px;
}
.user-message-part {
  justify-content: flex-end;
}
.message-text {
  border-radius: 24px;
  background-color: #F2F2F2;
  padding: 12px 14px 12px 14px;
  line-height: 1.8;
  position: relative;
  font-size: 2.55vh;
  overflow-wrap: anywhere;
  /* letter-spacing: 0.2px; */
  width: fit-content;
  /* max-width: 50%; */
}
.user-text {
  background-color: #E51C31;
}
.user-text p{
  color: #ffffff !important;
}
.vulgar-text {
  color: #de3c49;
  background-color: #ffe8ea;
}
.conversation .message-text p {
  margin: 0;
  line-height: 1.4;
  font-size: 14px;
  color: #6f6f6f;
}

.chat-time {
  font-size: 0.6em;
  color: #919699;
  font-style: italic;
}
.user {
  justify-content: flex-end;
  align-items: baseline;
}
.bot {
  justify-content: flex-start;
}

.typing {
  display: flex;
  align-items: center;
  gap: 4px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background-color: #999;
  border-radius: 50%;
  animation: blink 1.4s infinite both;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0% { opacity: 0.2; transform: translateY(0); }
  20% { opacity: 1; transform: translateY(-2px); }
  100% { opacity: 0.2; transform: translateY(0); }
}

.speaker {
  border-radius: 37px;
  width: 25px;
  height: 25px;
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.message-footer {
  display: flex;
  align-items: center;
  margin-top: 4px;
}
.message-footer-bot {
  width: 100%;
}
.message-footer i {
  color: #d6d6d6;
  cursor: pointer;
}
.message-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.feedback-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.message-time {
  color: #919699;
  font-style: italic;
  margin-bottom: 2px;
}
.section-one {
  padding: 5px 10px 10px 10px;
}
.fields {
  border: 1px solid rgb(218, 217, 217);
  border-radius: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  position: relative;
  padding-left: 65px;
  padding-right: 10px;
}
.f-c-c {
  display: flex;
  align-items: center;
  justify-content: center;
}
.section-one .input {
  border: none;
  font-size: 16px;
  font-weight: 400;
  outline: none;
  margin: 0px 0px 0px 5px;
  color: black;
  flex-grow: 1;
  resize: none;
  height: 21px;
  max-height: 40px;
  padding: 8px 0px;
  resize: none; /* Optional */
  overflow-y: hidden;
}
.section-one .input:focus {
  overflow-y: auto; /* Scroll when content exceeds height */
}

.kMccIk {
  height: 250px;
  width: 100%;
  position: absolute;
  bottom: 0px;
  left: 0px;
  background-color: white;
  z-index: 900;
  border-top: 1px solid rgba(128, 128, 128, 0.31);
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  padding: 25px 20px 30px 20px;
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.kMccIk2 {
  height: 500px;
  overflow-y: auto;
  color: black;
  width: 100%;
  position: absolute;
  bottom: 0px;
  left: 0px;
  background-color: white;
  z-index: 900;
  border-top: 1px solid rgba(128, 128, 128, 0.31);
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  padding: 0px 20px 30px 20px;
}
.kMccIk2::-webkit-scrollbar {
  width: 6px;
}
.kMccIk2::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.kMccIk2::-webkit-scrollbar-thumb {
  background: #888;
}
.kMccIk2::-webkit-scrollbar-thumb:hover {
  background: #d7183c;
}
.fixed-header {
  background-color: white;
  z-index: 1000;
  padding-top: 20px;
}
.pp-content {
  padding-top: 10px;
  /* font-size: 14px; */
  font-size: 2.4vh;
}
.drawer-header {
  width: 100%;
  font-size: 17px;
  font-size: 3vh;
  text-align: center;
  margin-bottom: 0px;
  color: rgb(96, 96, 96);
  font-weight: 600;
}
#speech.btn {
  border: none;
  padding: 0;
  border-radius: 100%;
  width: 50px;
  height: 50px;
  font-size: 1.5em;
  background: #d7183c;
}

.pulse-ring {
  width: 54px;
  height: 54px;
  border: 5px solid #d7183c;
  border-radius: 50%;
  position: absolute;
  /* top: 0.5px; */
  animation: pulsate infinite 2s;
}

@-webkit-keyframes pulsate {
  0% {
    -webkit-transform: scale(1, 1);
    opacity: 1;
  }
  100% {
    -webkit-transform: scale(1.2, 1.2);
    opacity: 0;
  }
}
.container {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 370px) {
  .fields {
    padding-left: 40px !important;
  }
  .section-one .input {
    padding: 8px 2px;
    width: 10px;
  }
}

.powered-by {
  display: flex;
  -webkit-box-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  align-items: center;
  background: rgb(249, 249, 249);
  height: 25px;
  overflow-y: hidden;
  padding: 0px 5px;
  justify-content: space-between;
}

.powered-by span {
  font-size: 1.7vh;
  margin-right: 4px;
  display: block;
  color: black;
}
.powered-by a {
  text-decoration: none;
  display: block;
  cursor: pointer;
}
.powered-by a img {
  width: 10vh;
  margin-bottom: 1px;
}
.powered-by a sup {
  color: rgb(255, 87, 34);
  font-size: 11px;
}

.loader {
  width: 11px;
  aspect-ratio: 1;
  border-radius: 50%;
  animation: l5 1s infinite linear alternate;
}
@keyframes l5 {
  0% {
    box-shadow: 20px 0 #005c9f, -20px 0 rgba(60, 106, 181, 0.196);
    background: #005c9f;
  }
  33% {
    box-shadow: 20px 0 #005c9f, -20px 0 rgba(60, 106, 181, 0.196);
    background: rgba(60, 106, 181, 0.196);
  }
  66% {
    box-shadow: 20px 0 rgba(60, 106, 181, 0.196), -20px 0 #005c9f;
    background: rgba(60, 106, 181, 0.196);
  }
  100% {
    box-shadow: 20px 0 rgba(60, 106, 181, 0.196), -20px 0 #005c9f;
    background: #005c9f;
  }
}
.hidden {
  display: none !important;
}
.sendicon {
  color: #E51C31;
  font-size: 2.7vh;
  padding-left: 4px;
}
.micicon {
  color: #E51C31;
  font-size: 145%;
  padding-left: 4px;
}
/* Language Drawer */
.language-drawer {
  position: fixed;
  bottom: -800px;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 27rem);
  /* height: 280px; */
  background: #fff;
  /* border-radius: 20px 20px 0 0; */
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.15);
  transition: bottom 0.3s ease-in-out;
  z-index: 9999;
  padding: 16px;
}

.language-drawer.open {
  bottom: 0;
  top: 70px;
}

.language-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin-bottom: 12px;
}

.language-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 92%;
  overflow-y: scroll;
}

.language-item {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: 0.2s;
}

.language-item.active {
  background: #d7183c;
  color: white;
  border-color: #d7183c;
}
#closeLanguageDrawer {
  cursor: pointer;
}
.state-dropdown {
  margin-top: 10px;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 26px;
  border: 1px solid #ccc;
  width: 100%;
  background: white;
  color: gray;
  font-size: 12px;
}
.location-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-top: 10px;
  min-width: 300px;
}
.location-select {
  padding: 10px 10px;
  border-radius: 20px;
}
@media (max-width: 700px) {
  .location-container {
    min-width: auto;
  }
}
#resultList {
  max-height: 100%;    /* drawer content height */
  overflow-y: auto;    /* enable vertical scroll */
  padding: 10px 20px;
}

/* smooth scroll look */
#resultList::-webkit-scrollbar {
  width: 6px;
}
#resultList::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 20px;
}

textarea::-webkit-scrollbar {
  width: 4px; /* scrollbar width */
}

textarea::-webkit-scrollbar-track {
  background: #f0f0f0; /* track color */
  border-radius: 10px;
}

textarea::-webkit-scrollbar-thumb {
  background: #888; /* thumb color */
  border-radius: 10px;
}

textarea::-webkit-scrollbar-thumb:hover {
  background: #555; /* hover effect */
}
