* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  width: 100%;
  height: 100%;
  font-family: Arial, sans-serif;
}

.background {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url('images/madeinhpbridge1.webp') no-repeat center center/cover;
  overflow: hidden;
}

/* Main bot container (85% width, centered) */
#botContainer {
  position: relative;
  z-index: 1;
  width: 95%;
  margin: 0 auto;
  text-align: center;
  padding-top: 30px;
}

#bot-image {
  max-width: 40%;
  height: auto;
  cursor: pointer;
  padding-top: 10px;
}

#speech-bubble {
  position: absolute;
  top: 55%;         /* Adjust vertical position as needed */
  left: 60%;         /* Position relative to botContainer */
  transform: translateX(6px); /* Shift a bit right of the bot image */
  background: rgba(255, 255, 255, 0.7);
  color: #333;
  padding: 8px 12px;
  border-radius: 10px;
  max-width: 260px;
  font-size: 16px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  z-index: 2;
}

#speech-bubble.hidden {
  opacity: 0;
  pointer-events: none;
}

.icon-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 3px;
}

#chat-icon, #mic-icon {
  width: 50px;
  height: 50px;
  cursor: pointer;
  margin: 0 10px;
}

#chat-window {
  margin: 6px auto;
  width: 90%;
  max-width: 800px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  overflow: hidden;
}

#chat-window.hidden {
  display: none;
}

#chat-messages {
  height: 100px;
  overflow-y: auto;
  padding: 10px;
  border-bottom: 1px solid #ccc;
}

#chat-input-area {
  display: flex;
}

#chat-input {
  flex: 1;
  padding: 10px;
  border: none;
  outline: none;
}

#send-btn {
  padding: 10px 15px;
  border: none;
  background: #ff4081;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}

#clear-chat-btn {
  display: block;
  width: 100px;
  padding: 10px;
  background: #ff5733; /* Red-orange color */
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 25px;
  font-size: 14px;
}

#clear-chat-btn:hover {
  background: #e04d2b;
}


@media (max-width: 768px) {
  #bot-image {
    width: 80%;
  }
  #speech-bubble {
    left: 50%;
    top: 60%;
    max-width: 60%;
  }
}