.chat-bar-collapsible {
  position: fixed;
  bottom: 0;
  right: 0px;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
  z-index: 9999;
  width: 50px;
  transition: width 0.2s ease-out;
}

.collapsible {
  background-color: #1ca4ff;
  color: white;
  cursor: pointer;
  padding: 10px;
  width: 100%;
  text-align: center;
  outline: none;
  font-size: 14px;
  border-radius: 10px 10px 0px 0px;
  border: 3px solid white;
  border-bottom: none;
}

.collapsible .fa {
  margin: 0;
}

.content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  background-color: #f1f1f1;
  width: 250px;
}

.full-chat-block {
  width: 100%;
  background: white;
  text-align: center;
  overflow: auto;
  scrollbar-width: none;
  height: max-content;
  transition: max-height 0.2s ease-out;
}

.outer-container {
  min-height: 400px;
  bottom: 0%;
  position: relative;
}

.chat-container {
  max-height: 400px;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  scroll-behavior: smooth;
  hyphens: auto;
}

.chat-container::-webkit-scrollbar {
  display: none;
}

.chat-bar-input-block {
  display: flex;
  float: left;
  box-sizing: border-box;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  background-color: rgb(235, 235, 235);
  border-radius: 10px 10px 0px 0px;
  padding: 10px 0px 10px 10px;
}

.chat-bar-icons {
  display: flex;
  justify-content: space-evenly;
  box-sizing: border-box;
  width: 25%;
  float: right;
  font-size: 14px;
}

#chat-icon:hover {
  opacity: 0.7;
}

/* Chat bubbles */

#userInput {
  width: 75%;
}

.input-box {
  float: left;
  border: none;
  box-sizing: border-box;
  width: 100%;
  border-radius: 10px;
  padding: 10px;
  font-size: 14px;
  color: #000;
  background-color: white;
  outline: none;
}

.userText {
  color: white;
  font-family: roboto, sans-serif;
  font-size: 14px;
  font-weight: normal;
  text-align: right;
  clear: both;
}

.userText span {
  line-height: 1.5em;
  display: inline-block;
  background: #5ca6fa;
  padding: 10px;
  border-radius: 8px;
  border-bottom-right-radius: 2px;
  max-width: 80%;
  margin-right: 10px;
  animation: floatup 0.5s forwards;
}

.botText {
  color: #000;
  font-family: roboto, sans-serif;
  font-weight: normal;
  font-size: 14px;
  text-align: left;
}

.botText span {
  line-height: 1.5em;
  display: inline-block;
  background: #e0e0e0;
  padding: 10px;
  border-radius: 8px;
  border-bottom-left-radius: 2px;
  max-width: 80%;
  margin-left: 10px;
  animation: floatup 0.5s forwards;
}

#optionButtons {
  display: flex;
  flex-direction: column;
  margin-left: 10px;
  max-height: 300px;
  overflow-y: auto;
}

.Questions {
  margin: 0%;
}

#optionButtons button {
  background-color: #1ca4ff;
  border: none;
  color: white;
  margin-top: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: justify;
  text-decoration: none;
  display: block;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s;
  width: 100%;
  max-width: 200px;
  border-bottom-left-radius: 2px;
}

#optionButtons button:hover {
  background-color: #296ba8;
}

@keyframes floatup {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: translateY(0px);
    opacity: 1;
  }
}

@media screen and (max-width: 600px) {
  .full-chat-block {
    width: 100%;
    border-radius: 0px;
  }
  .chat-bar-collapsible {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
  }
  .collapsible {
    width: 100%;
    border: 0px;
    border-top: 3px solid white;
    border-radius: 0px;
  }
}

/* SCROLLBAR */
#chatbox {
  max-height: 300px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
}

#chatbox::-webkit-scrollbar {
  width: 8px;
}

#chatbox::-webkit-scrollbar-track {
  background: #f1f1f1;
}

#chatbox::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

#chatbox::-webkit-scrollbar-thumb:hover {
  background: #555;
}
/* SCROLLBAR */

/* BOTON SELECCIONAR OTRA PREGUNTA */

#restartButton {
  background-color: rgba(0, 151, 203, 0.7);
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: block;
  font-size: 16px;
  margin: 5px 0;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s;
  width: 100%;
  max-width: 200px;
  border-bottom-left-radius: 2px;
  margin-left: 10px;
}

#optionButtons button:hover,
#restartButton:hover {
  background-color: #ffa500;
}

/* BOTON SELECCIONAR OTRA PREGUNTA */
