body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #FFFAFA;
    color: white;
    min-height: 100vh;
    box-sizing: border-box;
}

#disclaimer {
    width: 100%;
    padding: 10px;
    background-color: #000000;
    color: white;
    text-align: center;
    font-size: 1em;
    position: fixed;
    top: 0;
    z-index: 2;
}

body, html {
    margin: 0; /* Remove default margins */
    padding: 0; /* Remove default padding */
}
header {
    width: 100%;
    padding: 20px;
    background-color: #ffbf00;
    color: rgb(4, 0, 0);
    text-align: center;
    font-size: 1.6em;
    font-weight: bold;
    position: relative;
    top: 40px;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    margin-bottom: 50px; /* Add some space below the header */

}

#home-icon {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#popup {
    display: block;
    background-color: #272727;
    color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    margin-top: 5px;
    position: absolute;
    top: 40px;
    right: 0;
    width:  auto;
    max-width: 600px;
    font-size: 0.68em;


    height: auto; /* Allow height to adjust based on content */
    max-height: 150px; /* Limit the height of the popup */

    font-size: 0.85em; /* Adjust font size for readability */
    text-align: center; /* Center-align the text */

    right: 10px; /* Move the popup closer to the right */
    top: 60px; /* Adjust the vertical position */
}

#popup::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 5px;
    border-width: 0 10px 10px;
    border-style: solid;
    border-color: transparent transparent #272727;
}

#content {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 80px;
    box-sizing: border-box;
}

#info-box {
    width: 50%;
    max-width: 600px;
    background-color: #ffbf00;
    color: rgb(2, 0, 0);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    font-size: 1.2em;
    text-align: center;
    margin-top: 10px;
}

#chatbox {
    width: 90%;
    max-width: 100%;
    height: 40vh;
    border: 1px solid #272727;
    padding: 10px;
    overflow-y: auto;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.message {
    margin: 5px 0;
}

.user {
    align-self: flex-end;
    background-color: #040000;
    color: rgb(255, 255, 255);
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
}

.bot {
    align-self: flex-start;
    background-color: #e2e3e5;
    color: black;  /* black text */
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
    white-space: pre-wrap;
}

/* Desktop styles for image and video messages */
@media screen and (min-width: 768px) {
    .message.bot.image-container,
    .message.bot.video-container {
        width: auto !important;
        max-width: 30% !important;  /* Reduced from 50% to 30% */
        padding: 8px !important;
        background-color: #e2e3e5;
    }

    .chat-image,
    .chat-video {
        width: 100% !important;
        max-width: 100% !important;
        display: block;
        margin: 0 !important;
        border-radius: 8px;
    }
}

#user-input {
    font-size: 16px;
    width: 50%;
    max-width: 700px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    margin-bottom: 10px;
    box-sizing: border-box;
    background-color: #f0f0f0;
    color: black;
    resize: none; /* Prevents manual resizing */
    overflow-y: hidden; /* Hides vertical scrollbar */
}

#send-btn {
    padding: 10px 20px;
    border: none;
    background-color: #323e4e;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 20px;
}

footer {
    width: 100%;
    padding: 20px;
    background-color: #323e4e;
    color: white;
    text-align: center;
    position: fixed;
    bottom: 0;
    z-index: 1;
}
@media (max-width: 600px) {

    header, footer {
      height: auto;

      position: relative;
    }

    header {
      width: 100%;
      padding: 10px; /* Reduce padding on mobile */
      font-size: 1.2em; /* Smaller font size for mobile */
      text-align: center;
      padding-left: 0; /* Ensure no extra padding */
      padding-right: 0;
    }

    #disclaimer {
        padding: 5px; /* Less padding for mobile */
        font-size: 0.9em; /* Reduce font size */
    }

    * {
       box-sizing: border-box;
    }

    #content {
        padding-top: 20px; /* Reduce padding on mobile */
        padding-bottom: 20px;
    }

    #chatbox {
        width: 85%; /* Make the chatbox take more space on smaller screens */
        height: 50vh; /* Adjust the height for mobile screens */
    }

    /* Mobile styles for image and video messages */
    .message.bot.image-container,
    .message.bot.video-container {
        width: auto !important;
        max-width: 85% !important;
        padding: 8px !important;
    }

    .chat-image,
    .chat-video {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block;
        margin: 0 !important;
        border-radius: 8px;
    }

    #user-input {
        width: 95%; /* Make input box fill most of the screen */
        margin-bottom: 10px;
    }

    footer {
        padding: 10px; /* Reduce padding */
        font-size: 0.9em; /* Smaller font size for mobile */
    }

    #info-box {
       font-size: 1.05em; /* Slightly smaller font */
       width: 90%; /* Take more width */
       padding: 15px; /* Reduce padding */
       margin-top: 20px; /* Ensure space between the elements */
   }

   #popup {

      width: auto; /* Use almost full-width on smaller screens */
      display:none;
      max-width: 450px; /* Set a reasonable max-width */
      max-height: 120px; /* Limit the height on mobile */
      font-size: 0.75em; /* Make text smaller on mobile */
  }
    #send-btn {
        width: 100%; /* Make the send button full-width on mobile */
        padding: 15px;
    }

    #home-icon {
        display: none; /* Hide the home icon on mobile */
    }
}
