body {
    font-family: 'Arial', sans-serif;
    background: url('https://i.ibb.co/t2fVyZ6/milkyway-8190232-1280.jpg') no-repeat center center fixed, linear-gradient(to right, #f5f7fa, #c3cfe2);
    background-size: cover;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    background: rgba(255, 255, 255, 0.9); /* Slight transparency to see the background */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    width: 80%;
    max-width: 900px;
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
}

.greeting, .assistant {
    padding: 2rem;
    width: 50%;
    box-sizing: border-box;
}

.greeting {
    background: #007bff;
    color: #fff;
    text-align: left;
}

.greeting h1 {
    margin-top: 0;
}

.assistant {
    text-align: left;
}

.assistant h2 {
    color: #333;
    margin-top: 0;
}

.input-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

input {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex: 1;
    font-size: 1rem;
}

button {
    padding: 0.5rem 1rem;
    border: none;
    background-color: #007bff;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

#responseContainer {
    margin-top: 1rem;
    color: #333;
    max-height: 300px; /* Adjust as needed */
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 4px;
    background-color: #f9f9f9;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        width: 90%;
    }

    .greeting, .assistant {
        width: 100%;
    }

    .greeting {
        text-align: center;
    }

    .assistant {
        text-align: center;
    }

    .input-container {
        flex-direction: column;
    }

    input, button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
    }

    .greeting, .assistant {
        padding: 1rem;
    }

    input, button {
        font-size: 1rem;
        padding: 0.75rem;
    }
}
