/* SHARED CSS STYLES */

/* This applies to the scrollbar track */
::-webkit-scrollbar {
  width: 10px;
}

/* This applies to the scrollbar handle */
::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 8px;
}

/* This applies when you hover over the scrollbar */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

header {
  background-color: #f2f2f2;
  padding: 20px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border: 1px solid black;
}

header h1 {
  width: 50%;
  margin-left: 25%;
  margin-right: 25%;
}

nav {
  margin-top: 10px;
}

nav a {
  margin-right: 10px;
  text-decoration: none;
  color: #000;
}

nav a:hover {
  color: #4CAF50;
}

main {
  flex: 1;
}

/* Existing CSS */

#headerBean {
  width: 5%;
  height: 5%;
  border: none;
  vertical-align: middle;
}

p {
  font-size: 16px;
}

footer {
  position: fixed;
  background-color: #f2f2f2;
  font-size: 7px;
  text-align: center;
  height: 6%;
  line-height: 20px;
  vertical-align: middle;
  position: fixed;
  bottom: 0;
  width: 100%;
  border: 1px solid black;
}

button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px;
  margin-top: 10px;
  cursor: pointer;
}

@media only screen and (max-width: 600px) {
  body {
    font-size: 14px;
  }

  header {
    padding: 10px;
  }

  header h1 {
    width: 70%;
    margin-left: 15%;
    margin-right: 15%;
  }

  nav a {
    margin-right: 5px;
  }

  main {
    padding: 10px;
  }

  #headerBean {
    width: 10%;
    height: 10%;
  }

  p {
    font-size: 14px;
  }

  footer {
    font-size: 5px;
    height: 10%;
    line-height: 15px;
  }

  button {
    padding: 5px;
    margin-top: 5px;
  }



  main h1 {
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
    font-size: 1.5em; /* Adjust as needed */
  }

  main nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #333; /* Adjust as needed */
  }

  main nav li {
    float: left;
  }

  main nav li a {
    display: block;
    color: white; /* Adjust as needed */
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
  }

  main nav li a:hover {
    background-color: #111; /* Adjust as needed */
  }
}



/* stytling for bean chatbot */

#chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgb(199, 128, 81);
  border: none;
  cursor: pointer;
  z-index: 100;
  border: 2px solid black;
}

.chat-button {
  background-image: url('/assets/images/bean-individual-icon.webp');
  background-size: 90%;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;
}

#chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 400px;
  height: 500px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  z-index: 99;
  display: none;
}

#chat-controls {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}

#send-button {
  height: 40px;
  padding: 5px;
  width: 20%;
  font-size: 16px;
  border-radius: 5px;
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
}

.typing {
  position: absolute;
  bottom: 80px;
  color: #888;
  font-style: italic;
  display: none;
}

#messages {
  height: 400px;
  border: 1px solid #ccc;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 10px;
  overflow-y: scroll;
  border-radius: 5px;
  background-color: #fff;
}

#input-message {
  width: 75%;
  height: 40px;
  padding: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

#close-button {
  position: absolute;
  bottom: 470px;
  right: -10px;
  z-index: 101;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 30px;
  color: #ccc;
  margin: 10px;
}

#messages p {
  margin: 5px 0;
}

#messages p:nth-child(even) {
  background-color: #f1f1f1;
  padding: 10px;
  border-radius: 5px;
}

#messages p:nth-child(odd) {
  background-color: #ddd;
  padding: 10px;
  border-radius: 5px;
}

/* Custom scrollbar styles */
#messages::-webkit-scrollbar {
  width: 10px;
}

#messages::-webkit-scrollbar-track {
  background: #f1f1f1;
}

#messages::-webkit-scrollbar-thumb {
  background: #888;
}

#messages::-webkit-scrollbar-thumb:hover {
  background: #555;
}

@media only screen and (max-width: 600px) {
  #chat-button {
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
  }

  #chat-widget {
    bottom: 10px;
    right: 10px;
    width: 300px;
    height: 400px;
  }

  #send-button {
    height: 30px;
    width: 30%;
    font-size: 14px;
  }

  .typing {
    bottom: 60px;
  }

  #messages {
    height: 300px;
  }

  #input-message {
    width: 70%;
    height: 30px;
  }

  #close-button {
    bottom: 370px;
  }
}