body{
    
    background-color: rgb(10, 10, 10);
    background-image: linear-gradient(to right, #0f0f10 1px, transparent 1px),
    linear-gradient(to bottom, #0f0f10 1px, transparent 1px);
  background-size: 0.5rem 0.5rem;
  background-position: center center;
    font-family: SF Pro Text;
    margin: 0;
   padding: 0;
   box-sizing: border-box;
   scroll-behavior: smooth;
}
/* Input field styling */
input[type="text"] {
    width: 89%;
    height: 40px;
    color: white;
    border: none;
    background-color: rgb(17, 17, 33);
    font-size: 20px;
    font-family: SF Pro Text;
    border-radius: 20px;
}

input[type="text"]:focus {
    outline: none;
}

/* Button styling */
button {
    width: 5%;
    height: 40px;
    background-color: rgb(17, 17, 33);
    border: 1px solid rgb(17, 17, 33);
    border-radius: 20px;
    font-family: SF Pro Text;
    font-size: larger;
    font-weight: 800;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

button:hover {
    background-color: rgb(79, 149, 9);
    cursor: pointer;
}

button i {
    font-size: 20px;
    color: white;
    margin-left: 5px;
}

/* Mobile view: Adjust for smaller screens */
@media only screen and (max-width: 768px) {
    #chat-form {
        width: 90%; /* Increase width to fill more space on smaller screens */
        height: 50px;
    }

    input[type="text"] {
        font-size: 18px; /* Adjust font size */
        width: 80%; /* Make input a little smaller */
    }

    button {
        width: 10%; /* Increase button size to fit better */
        height: 30px;
    }

    button i {
        font-size: 16px; /* Adjust icon size */
    }
}

/* Very small screens (phones in portrait mode) */
@media only screen and (max-width: 480px) {
    #chat-form {
        width: 100%; /* Take full width */
        height: 50px; /* Adjust height */
        padding: 0 10px;
        box-sizing: border-box; /* Ensure no overflow */
    }

    .bot-message{
        padding-left: 5px;

    }

    input[type="text"] {
        width: 100%; 
        height: 20px;
        font-size: 16px; /* Reduce font size */
    }

    button {
        width: 22%; /* Make button wider to fit next to input */
        height: 40px; /* Adjust button height */
    }

    button i {
        font-size: 14px; /* Adjust icon size */
    }
}


#res-div{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;

}

#chat-box {
    color: rgb(114, 209, 255);
    height: 400px;
    width: 70%;
    overflow-y: scroll;
    padding: 10px;
    background-image: url('wp2775686.gif');
    background-position: center;
    background-size: cover;
    border-radius: 20px;
    margin-top: 0px;
}

#chat-box::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Edge */
}

.message {
    margin-bottom: 10px;
}

.user-message {
    text-align: right;
    color: rgb(175, 166, 166);
}

.bot-message {
    color: rgb(247, 250, 252);
    background-color: rgba(29, 16, 16, 0.463);
   
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    padding-left: 30px;
    width: auto;
    
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

td, th {
    border: 1px solid #ddd;
    padding: 8px;
}

th {
    background-color: #f2f2f2;
    text-align: left;
}

.message-content {
    display: inline;
    
}

#nav{
    display: flex;
    justify-content: center;
    font-family:cursive;  
}

#chat-form {

    position: relative;
    margin-top: 3%;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    height: 50px;
    background-color: black;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-sizing: border-box;
    
    /* Animated border effect */
    position: relative;
    z-index: 1;  /* Ensure the content is above the border */
    
    --border-angle: 0turn;
    --main-bg: conic-gradient(from var(--border-angle), #213, #112 5%, #112 60%, #213 95%);
    border: solid 5px transparent;
    border-radius: 2em;
    
    --gradient-border: conic-gradient(from var(--border-angle), transparent 25%, #08f, #f03 99%, transparent);
    
    background: 
      var(--main-bg) padding-box, 
      var(--gradient-border) border-box, 
      var(--main-bg) border-box;
    
    animation: bg-spin 5s linear infinite;
}

/* Shared animation keyframes and custom property */
@keyframes bg-spin {
    to {
        --border-angle: 1turn;
    }
}

#chat-form:hover {
    animation-play-state: paused; /* Pause animation on hover */
}

@property --border-angle {
    syntax: "<angle>";
    inherits: true;
    initial-value: 0turn;
}

h1 {
    font-size: 50px;
    font-weight: bold;
    text-align: center;

    /* Linear gradient for text */
    background: linear-gradient(90deg, #08f, #f03);
    -webkit-background-clip: text;  
    -webkit-text-fill-color: transparent;
    background-clip: text;  
    color: transparent;  
}


