body {
  padding-bottom: env(safe-area-inset-bottom);
}
#app {
  position: fixed;
  bottom: -500px;
  right: 50px;
  width: 500px;
  height: 100svh;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease-out;
  font-size: 0.9em;
  z-index: 10000000000;
}

#app.active {
  transform: translateY(-500px);
}

#chat-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 80px;
  height: 40px;
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
  outline: none;
}

#app input {
  width: 85% !important;
  height: 25px;
  border: solid black 1px;
  margin-top: 12px;
  margin-left: 5px !important;
}

#app button {
  border: solid black 2px;
  background: black;
  color: white;
  padding: 10px;
  border-radius: 25px;
  font-size: 9px !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  padding-right: 13px !important;
  padding-left: 13px !important;
}

#app button:hover {
  color: black;
  background: white;
  border: solid black 2px;
}

#messageBox {
  width: 600px;
  height: 75px;
  background: blue;
}

#chat span {
  background: #eaeaeb;
  color: black;
  float: left;
  max-width: 400px;
  margin-top: 20px;
  margin-left: 2%;
  padding-top: 12px;
  padding-bottom: 12px;
  max-width: 400px;
  min-width: 51%;
  border-radius: 10px;
  padding-left: 15px;
  padding-right: 15px;
  display: table;
}

#chat span:nth-child(odd) {
  float: right;
  background: #2294fb;
  margin-top: 20px;
  color: white;
  padding-top: 12px;
  padding-bottom: 12px;
  max-width: 400px;
  min-width: 51%;
  border-radius: 10px;
  padding-left: 15px;
  padding-right: 15px;
  display: table;
  margin-right: 2%;
}

#chat {
  height: 285px;
  overflow: scroll;
  overflow-x: hidden;
  padding: 0px;
  margin-top: 100px;
}

#navButton {
  border-radius: 0px;
}

#navButton a {
  border-radius: 0px;
  color: white;
}

#navButton a:hover {
  color: black;
}

#toggleBtn {
  position: fixed;
  right: 15px;
  bottom: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50% !important;
  padding: 0 !important;
  background: black !important;
  z-index: 2147483647 !important;
}

#toggleBtn.active {
  display: inline;
  position: absolute;
  right: 15px;
  bottom: 30px;
  width: 45px;
  height: 45px;
  background: black;
  padding: 0;
}

#toggleBtn.hidden {
  display: none;
}

#toggleBtnClose {
  position: absolute;
  margin-right: -15px;
  margin-top: 5px;
  right: 0px;
  border-radius: 50% !important;
  height: 25px;
  width: 25px;
  padding: 0 !important;
  color: white;
  font-size: 22px;
  z-index: 100000;
  width: 50px;
  cursor: pointer;
}

#app button {
  margin-left: 5px;
}

@media (max-width: 800px) {
  #app {
    position: absolute !important;
    display: none;
  }

  #toggleBtn {
    display: none !important;
  }

  #app {
    display: inline-block !important;
    width: 100vw !important;
    margin: 0;
    padding: 0;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;

  }
}

#topBar {
  height: 70px;
  background: rgb(2, 0, 36);
  background: #cc3c24;
  margin: 0;
  border-bottom: 1px solid grey;
  position: fixed;
  width: 100%;
}

#botHeader {
  color: white;
  padding: 0;
  margin: 0;
  padding-left: 15px;
  display: inline-block;
  position: absolute;
  margin-top: 15px;
  font-size: 18px;
}

#botImage {
  border-radius: 50%;
  height: 75px;
  width: 75px;
  display: inline-block;
  margin-top: 10px;
  margin-left: 45px;
}

#botSubHead {
  color: white;
  padding: 0;
  margin: 0;
  padding-left: 15px;
  display: inline-block;
  position: absolute;
  margin-top: 37px;
  font-size: 12px;
}

#chat span:first-child {
  background: none;
  font-weight: bold;
  color: #3c3c3c;
  float: left;
  margin: 0 !important;
  width: 100%;
}

#sendButton {
  display: inline-block;
  color: white !important;
  background: black !important;
  margin: 0 !important;
  padding: 0px 10px 0px 10px;
  text-align: center;
  font-size: 14px !important;
  border: 2px solid black;
  border-radius: 25px;
  margin-left: 5px !important;
}

button#sendButton {
  padding-bottom: 0 !important;
}

#theBar {
  position: absolute !important;
  bottom: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 25px;
}

.inputContainer {
  display: flex;
  flex-grow: 1;
  margin-right: 10px;
}


#app input {
  width: 100%;
  border: solid black 1px;
  margin-top: 12px;
  margin-left: 5px !important;
  height: 25px;
  padding: 0 10px;
  border-radius: 25px;
}


#sendButton {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white !important;
  background: black !important;
  padding: 2px 15px 2px 15px !important;
  text-align: center;
  font-size: 12px !important;
  border: none;
  border-radius: 0;
  cursor: pointer;
}

#chat {
  display: inline-block;
  overflow: scroll;
  overflow-x: scroll;
  overflow-x: hidden;
  padding: 0px;
  margin-top: 25px;
  height: 85svh;
  width: inherit;

}

#chat span {
  background: #eaeaeb;
  color: black;
  float: left;
  max-width: 400px;
  margin-top: 20px;
  margin-left: 2%;
  padding-top: 12px;
  padding-bottom: 12px;
  max-width: 80vw;
  min-width: 51%;
  border-radius: 10px;
  padding-left: 15px;
  padding-right: 15px;
  display: table;
}

@media (min-width: 801px) {
  #app {
    display: none;
  }
}
