*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
}

.wrapper {
    /* max-width: 500px; */
}

.chatwindow {
    width: 100%;
    display: flex;
    height: 100vh;
    flex-direction: column;
    font-family: 'Open Sans', sans-serif;
}
.chatwindow .top {
    padding: 10px;
    background-color: #25255e;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.chatwindow .top .title {
    color: #fff;
    font-size: 18px;
}
.chatwindow .messages {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow-y: auto;
}
.chatwindow .messages .bot {
    align-self: flex-start;
    display: flex;
    margin: 10px 20px;
    max-width: 70%;
}
.chatwindow .messages .bot .img img {
    max-width: 50px;
    min-width: 50px;
    max-height: 50px;
    min-height: 50px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.chatwindow .messages .bot .message {
    background-color: #fff;
    font-size: 16px;
    margin-left: 15px;
    border-radius: 15px;
    border-top-left-radius: 0px;
    box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.2);
    padding: 10px;
}
.chatwindow .messages .user {
    align-self: flex-end;
    margin: 10px 20px;
    max-width: 70%;
}
.chatwindow .messages .user .message {
    background-color: #2fcca0;
    color: #fff;
    border-radius: 15px;
    border-top-right-radius: 0px;
    box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.2);
    padding: 10px;
}
.chatwindow .input {
    display: flex;
    background-color: #fff;
    align-items: center;
    box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.2);
}
.chatwindow .input .inputField {
    width: calc(100% - 45px);
    outline: none;
    resize: none;
    overflow: hidden;
    /* height: fit-content; */
    max-height: 400px;
    min-height: 52px;
    font-family: 'Open-sans', sans-serif;
    border: none;
    padding: 18px 20px;
    font-size: 16px;
    color: #7d7d7d;
}
.chatwindow .input .submitButton {
    width: 52px;
    max-width: 52px;
    min-width: 52px;
    min-height: 52px;
    cursor: pointer;
    height: 52px;
    max-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin-right: 20px; */
    background-color: transparent;
    outline: none;
    border: none;
}
.chatwindow .input .submitButton svg {
    width: 100%;
    height: 100%;
    min-width: 24px;
    max-width: 24px;
    min-height: 24px;
    max-height: 24px;
}

.loading {
    margin: 0px 0 0 0;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-dot {
    float: left;
    width: 8px;
    height: 8px;
    margin: 0 4px;
    background: #7d7d7d;

    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;

    opacity: 0.4;

    -webkit-box-shadow: 0 0 2px black;
    -moz-box-shadow: 0 0 2px black;
    -ms-box-shadow: 0 0 2px black;
    -o-box-shadow: 0 0 2px black;
    box-shadow: 0 0 2px black;

    -webkit-animation: loadingFade 1s infinite;
    -moz-animation: loadingFade 1s infinite;
    animation: loadingFade 1s infinite;
}

.loading-dot:nth-child(1) {
    -webkit-animation-delay: 0s;
    -moz-animation-delay: 0s;
    animation-delay: 0s;
}

.loading-dot:nth-child(2) {
    -webkit-animation-delay: 0.1s;
    -moz-animation-delay: 0.1s;
    animation-delay: 0.1s;
}

.loading-dot:nth-child(3) {
    -webkit-animation-delay: 0.2s;
    -moz-animation-delay: 0.2s;
    animation-delay: 0.2s;
}

.loading-dot:nth-child(4) {
    -webkit-animation-delay: 0.3s;
    -moz-animation-delay: 0.3s;
    animation-delay: 0.3s;
}

@-webkit-keyframes loadingFade {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
    }
}

@-moz-keyframes loadingFade {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
    }
}

@keyframes loadingFade {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
    }
}
