body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    margin: 0;
    background-color: #ffffff;
}

.body_image {
    max-width: 60%;
    height: auto;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.body_image:hover {
    transform: scale(1.25);
}

.chat-container {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 95%;
    height: 95%;
    display: inline-flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.chat-container:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.chat-header {
    background-color: #e2e2e2;
    color: #e2e2e2;
    padding: 20px;
    font-size: 20px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    position: relative;
    display: flex;
    align-items: center;
}


.logo-container {
    background-color: #e2e2e2;
    padding: 30px;
    border-radius: 0%;
    display: inline-flex;
    align-items: left;
    margin-right: 0px
}

.logo-container img {
    height: 45px;
    margin-right: 20px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.logo-image {
    transition: transform 0.3s ease;
}

.logo-container:hover .logo-image {
    animation: bounce 1.5s infinite;
}

.chat-header img {
    height: 45px;
    margin-right: 20px;
}

.chat-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    white-space: pre-wrap;
    display: flex;
    flex-direction: column;
}

.chat-message {
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
    max-width: 80%;
}


.user-message {
    align-self: flex-end;
    color: #fff;
    transform-origin: right;
    animation: userMessageAnimation 0.5s ease forwards;
    background-color: #1a237e;
    padding: 10px 15px;
    border-radius: 20px 20px 0 20px;
}

.bot-message {
    align-self: auto;
    background-color: #f1f0f0;
    color: #333;
    padding: 10px 15px;
    border-radius: 20px 20px 20px 0;
    max-width: 80%;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}


.chat-footer {
    display: flex;
    padding: 20px;
    background-color: #e2e2e2;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.chat-input {
    flex-grow: 1;
    border: none;
    border-top: 1px solid #eee;
    padding: 15px;
    outline: none;
    font-size: 16px;
    color: #333;
    background-color: #fff;
    resize: none;
    overflow: hidden;
    max-height: 150px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.chat-input:focus {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.chat-button {
    background-color: #1a237e;
    border: none;
    color: #fff;
    padding: 15px 20px;
    font-size: 16px;
    border-radius: 10px;
    margin-left: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.chat-button:hover {
    background-color: #283593;
}


/* Typing indicator styles */
.typing-indicator {
    display: inline-block;
    position: relative;
    width: 50px;
    height: 15px;
    text-align: left;
}

.typing-indicator span {
    display: inline-block;
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #1a237e;
    border-radius: 50%;
    opacity: 0;
    animation: typing 1.5s infinite;
}

.typing-indicator span:nth-child(1) {
    left: 0;
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    left: 16px;
    animation-delay: 0.25s;
}

.typing-indicator span:nth-child(3) {
    left: 32px;
    animation-delay: 0.5s;
}

@keyframes typing {
    0% {
        opacity: 0;
        transform: translateY(0px) scale(0.8);
    }

    50% {
        opacity: 1;
        transform: translateY(-8px) scale(1.2);
    }

    100% {
        opacity: 0;
        transform: translateY(0px) scale(0.8);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes userMessageAnimation {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Add this media query for smaller screens */
@media screen and (max-width: 600px) {
    .chat-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .body_image {
        display: none;
    }

    .chat-header {
        padding: 10px;
        font-size: 16px;
    }

    .logo-container {
        padding: 3px;
        margin-right: 10px;
    }

    .logo-container img {
        height: 30px;
        margin-right: 10px;
    }

    .chat-header img {
        height: 30px;
        margin-right: 10px;
    }

    .chat-body {
        padding: 10px;
    }

    .chat-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .chat-input {
        padding: 10px;
        font-size: 14px;
        margin-bottom: 10px;
    }

    .chat-button {
        padding: 10px 15px;
        font-size: 14px;
        margin-left: 0;
        margin-top: 10px;
    }

    .chat-message {
        font-size: 14px;
    }
}