/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #e0eafc, #cfdef3);
    color: #333;
    text-align: center;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header */
header {
    margin-bottom: 20px;
}

header h1 {
    font-size: 3.5rem;
    color: #3f51b5;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: titleBounce 1s ease-in-out;
}

header p {
    font-size: 1.3rem;
    color: #666;
    letter-spacing: 1px;
}

/* Intro Section */
#intro {
    margin-bottom: 20px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

#intro p {
    font-size: 1.6rem;
}

/* Chat Container */
#chat-container {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    transition: all 0.5s ease;
}

#conversation {
    height: 400px; /* Set a fixed height for the conversation area */
    overflow-y: auto; /* Allow scrolling */
    margin-bottom: 10px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 15px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9; /* Light background for conversation area */
}

.input-section {
    display: flex;
    justify-content: center;
    gap: 10px;
}

input[type="text"] {
    width: 70%;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #ddd;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease;
}

input[type="text"]:focus {
    border-color: #3f51b5;
}

button {
    padding: 10px 15px;
    font-size: 1rem;
    border: none;
    background-color: #3f51b5;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #5f73e0;
}

/* Footer */
footer {
    margin-top: 20px;
    color: #666;
    font-size: 1rem;
}

/* Loading Overlay */
.loading-overlay {
    display: none; /* Hide overlay initially */
}

/* Animations */
@keyframes titleBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
