
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
}

#navbar {
    background-color: #fff; /* White background */
    color: #000; /* Black text color */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px; /* Increased height */
}

#logo {
    max-width: 150px;
    margin-right: 20px;
}

#menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

#menu li {
    display: inline;
    margin-right: 20px;
}

#menu li a {
    text-decoration: none;
    color: #000; /* Black text color */
    font-weight: bold;
    font-size: 18px;
}

#main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-container {
    background-color: #fff;
    padding: 20px;
    width: 80%;
    display: flex;
    justify-content: center; /* Center the input-container horizontally */
    align-items: center;
    position: relative;
    background: #fff;
    border-radius: 10px; /* Add curveness */
    box-shadow: 0px 0px 2px 2px #0065FF; /* Increase the box shadow */
}

#chat-container {
    width: 80%;
    background: #fff;
    border-radius: 10px; /* Add curveness */
    box-shadow: 0px 0px 2px 2px #4CAF50; /* Increase the box shadow */
    padding: 20px;
    margin: 20px auto;
    overflow-y: auto;
    position: relative;
    height: calc(70vh - 40px);

}

#bot-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.chat {
    display: flex;
    flex-direction: column;
}

.message {
    border-radius: 10px;
    padding: 10px;
    margin: 5px 0;
}

.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #ADC9FF, #DCF8C6);
    box-shadow: 0px 0px 2px 2px #ADC9FF; /* Increase the box shadow */
    border-radius: 15px; /* Add curviness */
    padding: 10px;
    margin: 5px 0;
}

.bot {
    align-self: flex-start;
    background: linear-gradient(135deg, #ADC9FF, #E0E0E0);
    border-radius: 15px; /* Add curviness */
    box-shadow: 0px 0px 2px 2px #E0E0E0; /* Increase the box shadow */
    padding: 10px;
    margin: 5px 0;
}



#user-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 15px; /* Add curviness */
    margin-right: 10px;
    width: 100%;
}

#send-button {
    background: linear-gradient(135deg, #001f4e, #007BFF);
    color: #fff;
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 10px 20px;
    cursor: pointer;
}

#menu-toggle {
    font-size: 24px; /* Increase the font size for a larger icon */
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.loader {
    display: none;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 2s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animation to user and bot messages */
.message.user, .message.bot {
    animation: fadeIn 1s ease both;
}

@media (max-width: 768px) {
    /* Apply mobile styles here */
    #navbar {
        flex-direction: row; /* Revert to row layout */
        align-items: center;
        padding: 20px; /* Adjust mobile padding */
    }

    #menu {
        display: none; /* Hide the menu */
    }

    #menu.active {
        display: block;
        position: absolute;
        top: 80px;
        left: 0;
        background: #fff;
        width: 100%;
        text-align: center;
        z-index: 1;
    }

    #menu li {
        display: block;
        margin-bottom: 10px;
    }

    #menu-toggle {
        display: block; /* Display the hamburger menu icon */
    }

    #chat-container {
        max-height: calc(100vh - 180px); /* Adjust for mobile screens */
    }

    .input-container {
        width: 85%; /* Full width for smaller screens */
        position: relative;
    }
}

@media (min-width: 769px) {
    #menu-toggle {
        display: none; /* Hide the hamburger menu icon on larger screens */
    }
}
