@import url("https://fonts.googleapis.com/css2?family=Pacifico&family=Poppins:wght@300&display=swap");

:root {
  --userclr: #498869;
  --botclr: #63b9d4;
  --botcahtclr: #777;
  --botclrmute: #63b9d430;
}
html,
body {
  height: 100%;
  width: 100%;
  background-color: #222;
}
* {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
#page {
  max-width: 600px;
  padding:20px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 20px;
}
#home_logo{
  padding:0px;
    margin: 0px;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
  max-width: 300px;
  
}

#txt{
  padding:20px;
  color:white;
  text-align: center;
  font-size: 20px;;
}

#letschat{
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#letschat a{
  width:100%;
  background-color: var(--botclr);
  color:white;
  text-decoration: none;
  padding:20px;
  border-radius: 10px;
  text-align: center;
}
#letschat a:hover{
  background-color: var(--botclrmute);
}

#home_logo img{
  width:100%;
}
#content {
  flex: 20%;
  position: relative;
}
.convowrap{
    position: relative;
}

.welcome p {
  font-size: 10px;
  padding: 10px;
  color: white;
}
.welcome{
  width:100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.home{
  position: absolute;
  bottom:20px;
}
.welcome img{
  width:300px;
  /* margin:0 auto; */
}
/* .welcome h1 {
  font-family: "Pacifico", cursive;
  font-size: 30px;
  text-align: center;
  color: var(--botclr);
} */

.chatinput {
  padding-top: 20px;
  padding-bottom: 20px;
  width: 100%;
}
#chatin {
  width: 65%;
  border: none;
  background-color: #2b2b2b;
  color:white;
  padding: 20px;
}
#chatin:focus-visible{
    background-color:#316575;
    color:#e2e2e2;
    font-weight: bolder;
    outline: none;
}
#chatin,
#btn {
    font-size: 16px;
  padding: 15px;
  border-radius: 10px;
  float: left;
}
#btn {
  background-color: var(--botclr);
  color: white;
  border: none;
  text-align: center;
  margin-left: 10px;
}

#convo {
  width: 100%;
  height: 80vh;
  background-color: #2b2b2b;
  border: solid 20px #2b2b2b;
  border-radius: 20px;
  overflow-x: scroll;
  position: relative;
}

.chat {
  width: 100%;
  display: inline-block;
}
.chat p {
  padding: 10px;
  display: inline-flex;
  margin: 8px;
  border-radius: 10px;
  color: white;
  word-break: break-all;
}
.chatin p {
  background-color: var(--botclr);
  float: right;
}
.chatback p {
  background-color: var(--botcahtclr);
}

.dots {
  position: absolute;
  bottom: 30px;
  left: 30px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: var(--botclr);
  color: var(--botclr);
  animation: dot-flashing 1s infinite linear alternate;
  animation-delay: 0.5s;
}
.dots::before,
.dots::after {
  content: "";
  display: inline-block;
  position: absolute;
  top: 0;
}
.dots::before {
  left: 15px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: var(--botclr);
  color: var(--botclr);
  animation: dot-flashing 1s infinite alternate;
  animation-delay: 0s;
}
.dots::after {
  left: 30px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: var(--botclr);
  color: var(--botclr);
  animation: dot-flashing 1s infinite alternate;
  animation-delay: 1s;
}

@keyframes dot-flashing {
  0% {
    background-color: var(--botclr);
  }
  50%,
  100% {
    background-color: var(--botclrmute);
  }
}
