:root {
    --primary-color: #ffffff;
    --button-color: rgb(212, 39, 68);
    --like-color: rgb(206, 157, 157);
    --background-gradient: linear-gradient(to right, #ffecd2, #fcb69f);
    --input-bg: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    /*background: url('img/bgLog.png') no-repeat center center/cover;*/
    background: linear-gradient(to right, #1a1a1a, #333); /* Darker background */
    position: relative;
    font-family: 'Arial', sans-serif;
    text-align: center;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(10px);
    z-index: -1;
}

.chat-container {
    width: 90%;
    max-width: 400px;
    height: 80vh;
    background: var(--primary-color);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin: auto;
}

.chat-header {
    background: var(--button-color);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.chat-box {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--button-color) transparent;
}

.message {
    max-width: 75%;
    padding: 12px;
    border-radius: 20px;
    word-wrap: break-word;
    font-size: 14px;
}

.user-message {
    background: var(--button-color);
    color: rgb(255, 255, 255);
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    animation: fadeIn 0.3s ease-in;
}

.bot-message {
    background: #e0e0e0;
    color: black;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    animation: fadeIn 0.3s ease-in;
    text-align: left;
}

.input-container {
    display: flex;
    padding: 10px;
    background: var(--input-bg);
    border-top: 1px solid #ddd;
    align-items: center;
}

#user-input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 25px;
    outline: none;
    background: white;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

button {
    
    margin-left: 8px;
    padding: 12px;
    border: none;
    background: var(--button-color);
    color: white;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    
}

button:hover {
    background: darkred;
}

#bt{
    position: sticky;

}

.like-button {
    background: var(--like-color);
    color: rgb(255, 255, 255);
}

.like-button:hover {
    background: rgb(31, 100, 204);
}

.chat-box::-webkit-scrollbar {
    width: 5px;
}

.chat-box::-webkit-scrollbar-thumb {
    background: var(--button-color);
    border-radius: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media screen and (max-width: 500px) {
    .chat-container {
        width: 95%;
        height: 85vh;
    }
    .input-container {
        flex-direction: row;
    }
}



