body {
  font-family: 'Roboto', sans-serif;
}
  
.chat-widget {
  width: 450px;
  height: 700px;
  border: 2px solid #040416;
  border-radius: 8px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  /*background-color: #021644;*/
  background: radial-gradient(
	ellipse at 50% 40%,
	#02143e 0%,
	#030c2a 100%
  );
}

.bot-logo img{
  height: 50px;
  width: auto;
  /* filter: brightness(0) invert(1); */
}

.chat-header {
  /*background-image: linear-gradient(45deg, #0084ff, #00b7ff);*/
  /*make same gradient for #008ECE*/
  background-color: #040416;
  height: 50px;
  padding: 10px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.chat-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
}

.chat-message {
  margin-bottom: 10px;
  /* max-width: 70%; */
  padding: 4px 8px;
  border-radius: 18px;
}

.chat-message p {
  margin: 0;
  padding: 4px 8px;
  display: inline-block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.user-message {
  /* align-self: flex-end; */
  background-color: #3fa2f6;
  color: #fff;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 80%;
  position: relative;
  left: 18%;
  font-weight: 600;
}

.user-message:first-of-type {
  margin-top: 0px;
}

.user-message .chat-message p {
  margin-left: 5px;
}

.bot-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background-color: #c6c7d5;
  border: 1px solid black;
  border-radius: 15px;
  margin-left: 4%;
  font-weight: 600;
}

.message-container{
  display: flex;
  align-items: center;
  width: 90%;
}

.message-container-no-avatar{
  display: flex;
  align-items: center;
  width: 76%;
  margin-left: 15%;
}

.chat-timestamp {
  font-size: 10px;
  color: #c6c7d5;
  margin: 0;
  text-align: center;
  padding: 2px 4px;
}

/* .chat-message:first-child .chat-timestamp {
  display: block;
  margin-bottom: 2px;
  margin-top: -14px;
} */

/* .language-select {
  position: absolute;
  top: 25%;
  right: 130px;
  border: none;
  outline: none;
  color: black;
  background: transparent;
  cursor: pointer;
}

.language-select img{
  width: 30px;
  height: 30px;
}

.language-select:checked {
  color: black;
}

.language-select option{
  color: black;
} */
/* 


#bot-select:checked {
  color: #fff;
} */

.typing-indicator {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.typing-indicator span {
  width: 12px;
  height: 12px;
  background-color: #333;
  border-radius: 50%;
  margin: 0 2px;
  animation: typing-indicator 1.2s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
  }
    
@keyframes typing-indicator {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.chat-input-form {
  display: flex;
  background-color: #040416;
  align-items: center;
  padding: 10px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.chat-input-form input {
  flex: 1;
  border: none;
  border-radius: 7px;
  background-color: #3fa2f6;
  color: #fff;
  padding: 8px 16px;
  outline: none;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/*placeholder color white*/
.chat-input-form input::placeholder {
  color: #fff;
}

.chat-input-form button.send-btn {
  background-color: transparent;
  padding: 0;
  font-size: 20px;
  margin-left: 5px;
  border: none;
  cursor: pointer;
}

.avatar {
  width: 30px;
  height: 30px;
  margin-right: 5px;
  border-radius: 50%;
  overflow: hidden;
}

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

.message-container .avatar{
  width: 100px;
  height: 80px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  position: absolute;
  top: 23%;
  right: 10px;
}

.close-btn img{
  width: 35px;
  height: 35px;
}

.restart-btn {
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  position: absolute;
  top: 23%;
  right: 70px;
}

.restart-btn img{
  width: 40px;
  height: 40px;
}

.chat-header {
  position: relative;
}

/* Add keyframes for bounce animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
}

/* Apply the bounce animation to messages */
.chat-message {
  animation: bounce 0.6s;
}

@media screen and (max-width: 600px) {
  .chat-widget {
    width: 100%;
    height: 100%;
    border-radius: 0;
    bottom: 0;
    right: 0;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  }

  .chat-messages {
    height: calc(100% - 130px);
    overflow-y: auto;
  }
}

.speaker-icon {
  width: 20px;
  height: 20px;
  margin-right: 1px;
  display: flex;
  align-items: center;
}

.speaker-icon img{
  width: 20px;
  height: 20px;
}

.speaker-icon button{
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
}

/*FIRST NOTIFICATION*/
.overlay {
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 1;
}

.notification {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  width: 80%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 1;
  text-align: center;
}

.show {
  display: block;
}

.notification ul li{
  margin-bottom: 10px;
  text-align: left;
  font-size: 14px;
}

.notification hr{
  margin-bottom: 10px;
}

.read-all-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  position: absolute;
  top: 7px;
  right: 55px;
}

.read-all-btn img{
  width: 30px;
  height: 30px;
}

.mic-btn{
  background: none;
  border: none;
  cursor: pointer;
}

.mic-btn img{
  width: 20px;
  height: 22px;
  position: relative;
  top: 2px;
}

