

/* default styles */
body {
  margin-right: 1em;
  padding: 0;
  font-family: sans-serif;
  background-color: #1a1a1a;
}


#submitBtn {
  flex-shrink: 0;
}

.container {
  display: flex;
  align-items: center;
}

.profile-pic {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 10px;
}

.profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1 {
  font-size: 24px;
  font-weight: 400;
  color: white;
  margin: 0;
  padding: 10px;
  background: #1a1a1a;
}

#root {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

#results {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  margin-bottom: 5%;
}

#inputHolder {
  padding: 10px;
  /*background: #eee;*/
  display: flex;
  position: fixed;
  bottom: 0;
  width: 95%;
  vertical-align: middle;
  z-index: 10;
}

#inputField {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  border-bottom: 1px solid #ccc;
  border-radius: 5px;
  background: #1a1a1a;
  color: white;
  /* remove margin-right */
}

#submitBtn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
}

.fa {
  color: white;
}

.message {
  padding: 10px;
  margin: 10px;
  border-radius: 5px;
  max-width: 75%;
  display: inline-block;
  word-wrap: break-word;
  clear: both;
  max-width: 100%;
  margin-bottom: 10px;
}

.message.user {
  background: #2cc3ff;
  align-self: flex-end;
}

.message.bot {
  background: #2cffab;
  align-self: flex-start;
  margin-right: auto;
}

.message:not(.user) {
  align-self: flex-end;
}

.message.user:before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-right: 10px solid #2cc3ff;
  border-bottom: 10px solid transparent;
  margin-right: -10px;
}

.message.bot:before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-left: 10px solid #2cffab;
  border-bottom: 10px solid transparent;
  margin-left: -10px;
}

/* media queries for different screen sizes */

/* for screens smaller than 600px */
@media screen and (max-width: 600px) {
  h1 {
    font-size: 20px;
  }
  #inputField {
    font-size: 14px;
    padding: 5px;
    margin-right: 5px;
  }
  .message {
    padding: 5px;
    margin: 5px;
  }
  .message.user:before {
    content: none;
  }
}

/* for screens between 600px and 900px */
@media screen and (min-width: 600px) and (max-width: 900px) {
  h1 {
    font-size: 22px;
  }
  #inputField {
    font-size: 16px;
    padding: 8px;
  }
  .message {
    padding: 8px;
    margin: 8px;
  }
}

/* for screens larger than 900px */
@media screen and (min-width: 900px) {
  h1 {
    font-size: 26px;
  }
  #inputField {
    font-size: 18px;
    padding: 10px;
  }
  .message {
    padding: 10px;
    margin: 10px;
  }
}

  /* for screens larger than 900px */
  @media screen and (min-width: 1200px) {
    .message.user:before {
      content: none;
    }
    .message.bot:before {
      content: none;
    }
    .message.user {
      align-self: flex-start;
      background: #2cffab;
    }
    .message.bot {
      align-self: flex-end;
      background: #2cc3ff;
      color: #fff;
    }
    .message.bot:before {
      content: "";
      display: inline-block;
      vertical-align: middle;
      width: 0;
      height: 0;
      border-top: 10px solid transparent;
      border-left: 10px solid #2cc3ff;
      border-bottom: 10px solid transparent;
      margin-left: -10px;
    }
    .message.user:before {
      content: "";
      display: inline-block;
      vertical-align: middle;
      width: 0;
      height: 0;
      border-top: 10px solid transparent;
      border-right: 10px solid #2cffab;
      border-bottom: 10px solid transparent;
      margin-right: -10px;
    }
  }
</style>
