/* help module container */

.help-module {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 998;
    /* margin-right: 6em; */
    background: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0px 3px 6px rgba(125, 125, 125, 0.5);
    max-width: 20em;
}


/* module header */

.module-header {
    display: flex;
    display: -webkit-flex;
    display: -ms-flex;
    justify-content: space-between;
    align-items: center;
    background: #776FC4;
    padding: 0.5em 1em;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}


/* caret icon in header */

.module-header .icon-caret {
    height: 1.25em;
    width: 1.25em;
    background-image: url("../img/caret_white.svg");
}


/* when applied caret is flipped */

.icon-caret-flip {
    transform: rotate(180deg);
}

.icon-close {
    /*Close icon to close the help module*/
    background-image: url("../img/close.svg");
    background-repeat: no-repeat;
    background-size: contain;
    height: 1.25rem;
    width: 1.25rem;
}


/* styling header */

.module-header .heading-4 {
    color: white;
    margin-right: 5em;
}


/* container for chat messages */

.module-content {
    padding: 0.5em;
    padding-right: 1em;
    height: 25em;
    overflow-y: auto;
}


/* to show the chat message */

.module-body {
    visibility: visible;
    height: 100%;
}


/* to hide chat message */

.module-body-hide {
    visibility: hidden;
    height: 0;
}


/* messages container*/

.chat {
    display: flex;
    display: -webkit-flex;
    display: -ms-flex;
    justify-content: flex-start;
    align-items: baseline;
    flex-direction: row;
    flex-wrap: nowrap;
    margin-bottom: 0.75em;
}


/* message content  */

.chat-content {
    display: flex;
    display: -webkit-flex;
    display: -ms-flex;
    justify-content: space-between;
    /* align-content: flex-end; */
    flex-direction: column;
}


/* AI profile picture container */

.chat-icon {
    padding-right: 0.5em;
    align-self: flex-end;
}


/* AI profile picture */

.chat-icon .icon-tutors {
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 2rem;
    border: solid 1px #C4CAD5;
}


/* icon animation */

.chat-icon .icon-tutors:hover,
.icon-caret:hover {
    transform: scale(1.2);
}


/* caret animation */

.icon-caret-flip:hover {
    transform: rotate(180deg) scale(1.2);
}


/* sender text */

.sender-text {
    /* font-style: italic; */
    color: #776FC4;
    margin-bottom: 0;
}


/* container for sent messages */

.chat-message {
    background: #C4CAD5;
    border-radius: 5px;
    padding: 0 0.5em;
}


/* defining max width for messages */

.chat-message>p {
    max-width: 20em;
}


/* auto generated text styling */

.chat-question-text {
    color: #776FC4;
    text-align: center;
    text-decoration: none;
    border: solid 2px #776FC4;
    border-radius: 30px;
    padding: 0.75em 0.5em;
    margin-bottom: 0.5em;
    display: block;
}


/* animation for auto generated text */

.chat-question-text:hover {
    background: #776FC4;
    color: white;
}


/* user text input  */

.module-input .chat-input textarea {
    width: 100%;
    height: auto;
    background: transparent;
    padding: 0.75rem;
    font-family: SF Pro Display;
    color: #000000;
    font-size: 1em;
    border: none;
    border-top: 1px solid #776FC4;
}

.module-input .chat-input textarea:focus {
    border-top: 3px solid #776FC4;
}