@import url("https://fonts.cdnfonts.com/css/satoshi");

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Satoshi", sans-serif;
}
header {
  padding: 2px 3rem;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
  margin-bottom: -3rem;
}
nav .title {
  font-weight: 700;
  color: #5229c6;
  font-size: 32px;
}
.top {
  margin-top: -10rem;
}
nav .title a,
nav .title a:focus {
  text-decoration: none;
  color: #5229c6;
}
.menu {
  display: flex;
  align-items: center;
  gap: 12px;
}
.menu button {
  border: none;
  background: transparent;
  visibility: hidden;
}
.chat-page section {
  display: flex;
}
.recents {
  display: flex;
  flex-direction: column;
  text-align: left;
  justify-content: center;
}
.chatbot {
  position: relative;
  overflow-y: auto;
  background-color: #eee;
  padding-bottom: 5rem;
  height: 90vh;
}
.chatbox {
  margin: auto;
  padding: 15px 20px 50px;
  max-width: 845px;
  position: relative;
}

.chatbox .chat {
  display: flex;
  align-items: first baseline;
  /* text-align: justify; */
  padding: 16px;
  overflow-wrap: break-word;
}
.chatbox .chat p {
  padding: 1px 16px 5px;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0em;
  text-align: left;
}
.chatbox .chat span img {
  width: 32px;
  margin-bottom: -14px;
}
.incoming {
  color: #5229c6;
  overflow-wrap: break-word;
}
.outgoing {
  background-color: #fff;
  color: #777777;
  line-height: 26px;
  border-radius: 20px;
  max-width: 100%;
}

.recents button {
  background: #ebe7f9;
  text-decoration: none;
  width: 70%;
  padding: 16px 24px;
  margin: 2rem 0rem 3rem;
  border-radius: 100px;
  border: none;
  color: #5229c6;
}
.recents button img {
  padding-left: 2.5rem;
}
.recents .r-chat {
  padding-left: 4px;
  color: #757575;
}
.recents h2 {
  font-size: 18px;
  color: #5229c6;
}

#user-input {
  display: flex;
  padding: 0 10px;
  width: 908px;
  margin: 0 auto 1rem;
}
.foot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  bottom: 0;
  position: fixed;
  background-color: #eee;
  margin-left: 14rem;
}
#user-input input {
  width: 100%;
  padding: 24px;
  border: 1px solid #ccc;
  border-radius: 100px;
  outline: none;
  /* padding-right: 5.5rem; */
}

#user-input button {
  padding: 2px 8px;
  border: none;
  border-radius: 100px;
  background: transparent;
  color: #5229c6;
  cursor: pointer;
  margin-left: 1.5rem;
}
.footer p {
  font-size: 12px;
}

.side {
  margin-left: -6rem;
}
.btn-mic {
  margin-left: -1rem;
}

.disclamer {
  font-size: 10px;
  align-items: start;
  max-width: 800px;
  gap: 4px;
  padding: 2px;
  margin: auto;
  color: #777777;
}
.controls button {
  background: #fff;
  border: none;
}

.menu img {
  width: 50px;
  height: 50px;
}
.controls button {
  background: #fff;
  border: none;
}

@media (max-width: 800px) {
  .foot {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    bottom: 0;
    position: fixed;
    background-color: #eee;
    margin: auto;
  }
  #user-input {
    display: flex;
    padding: 0 10px;
    width: 100%;
    margin: 0 auto 1rem;
  }
}
@media (max-width: 600px) {
  .menu button {
    border: none;
    background: transparent;
    visibility: visible;
  }
  .recents,
  .name {
    display: none;
  }
  .chatbot {
    margin: auto;
  }
  .foot {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    bottom: 0;
    position: fixed;
    background-color: #eee;
    margin: auto;
  }
  #user-input {
    display: flex;
    padding: 0 10px;
    width: 100%;
    margin: 0 auto 1rem;
  }
}
