:root {
    --color-darkgrey: #5f5d5d;
    --color-lightgrey: #ebebeb;
    --color-transgrey: #5f5d5d23;
    --color-red: #ff4550;
    --color-green: #8080FF;
    --color-brightblue: #0a76ff;
    --color-greyblue: #5481bc;
    --color-transwhite: rgba(255, 255, 255, 0.87);
    --color-transred: rgba(255, 69, 80, 0.85);
}

.fas{
    font-size:40px;
}
.chat-context {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    padding: 1em;
    box-sizing: border-box;
    font-family: Yekan;
    text-align:right;
    padding-top: 0em;
}

#chat {
    flex: 1 1 0;
    overflow-y: scroll;
    overflow-x: scroll;
    padding-left: 2.5em;
    padding-right: 2.5em;
    box-sizing: border-box;
}
#chat::-webkit-scrollbar, #ui-options::-webkit-scrollbar {
    width: 0 !important;
}
.button {
    cursor: pointer;
}
.chat-response {
    direction:rtl;
    max-width: 80%;
    opacity: 0;
    padding: 0.3em;
    border-radius: 10px 10px 0px 10px;
    background-color: var(--color-green);
    text-align: center;
    margin-right: 0;
    margin-left: auto;
    margin-top: 1em;
    margin-bottom: 1em;
    position: relative;
    color: var(--color-transwhite);
    width: fit-content;
    text-align:right !important;
    font-family: Yekan;
}
.chat-response p {
    margin: 0;
    direction:rtl;
    text-align:right;
    font-family: Yekan;
}
.chat-response.robot {
    direction:rtl;
    background-color: var(--color-lightgrey);
    border-radius: 15px 15px 15px 0px;
    text-align: right;
    color: var(--color-darkgrey);
}
.chat-response:after {
    direction:rtl;
    content: "";
    width: 2em;
    height: 2em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: absolute;
    bottom: -1.2em;
    left: -1.4em;
    font-size: 0.02em;
}
.chat-response.user:after {
    content: "";
    left: auto;
    right: -1.1em;
}

#ui-response {
    height: 50px;
    max-height: 50px;
    position: relative;
    transition: all .5s ease-out;
    -webkit-transition: all .5s ease-out;
    -moz-transition: all .5s ease-out;
}
#ui-response.full-submit #response-text {
    display: none;
}
#ui-response.full-submit #ui-submit {
    width: 100%;
}
#ui-response.hide {
    overflow: hidden;
    animation: hide .5s forwards;
    -webkit-animation: hide .5s forwards;
    -moz-animation: hide .5s forwards;
}
@keyframes hide {
    0% {
        opacity: 1;
    }
    99.9999% {
        opacity: 0;
        max-height: 60px;
    }
    100% {
        max-height: 0em;
    }
}

#ui-submit {
    width: 50px;
    height: 50px;
    background-color: var(--color-green);
    color: var(--color-transwhite);
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    cursor: pointer;
}
#response-text {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding-left: 1em;
    border: 1px solid var(--color-lightgrey);
    transition: all .5s ease-in;
    -webkit-transition: all .5s ease-in;
    -moz-transition: all .5s ease-in;
    color: var(--color-darkgrey);
    font-size: 16px;
    font-family:"Yekan";
}
#response-text:focus {
    outline: none;
    box-shadow: 0 0 15px var(--color-lightgrey);
}
#response-text.invalid {
    background-color: var(--color-transred);
    color: var(--color-transwhite);
}
#ui-options {
    justify-content: flex-start;
    padding: 1em;    
    overflow-x: scroll;
}
.uiopt{
  display: flex;	
}
#ui-options:empty {
    padding: 0em;
}
#ui-options2 {
    display: flex;
    justify-content: flex-start;
    padding: 1em;    
    overflow-x: scroll;
}
#ui-options2:empty {
    padding: 0em;
}
.ui-option {
    border-radius: 3px;
    border: 1px solid var(--color-green);
    padding: 0.3em;
    margin-right: 1em;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    transition: background-color .2s ease-in;
    color: var(--color-darkgrey);
}
.ui-option:hover, .ui-option.selected {
    background-color: var(--color-green);
    color: #FFF;
}
.ui-option:last-child {
    margin: 0;
}
.ui-option p {
    margin: 0;
}
.ui-option .subtext {
    color: var(--color-greyblue);
    font-size: .85em;
}
.ui-option:hover .subtext, .ui-option.selected .subtext {
    color: var(--color-transwhite);
}
.ui-option.filtered-out {
    display: none;
}
.ui-option.filteredall-out {
    display: none;
}
.ui-option-all {
    border-radius: 3px;
    border: 0px solid #ff0000;
    padding: 0.3em;
    margin-right: 1em;
    cursor: pointer;
    display: flex;
	flex-direction: column;
    justify-content: center;
    text-align: center;
	font-size:6px;
    transition: background-color .2s ease-in;
    color:transparent;
	pointer-events: none;
  cursor: default;
  text-decoration: none;
}
.ui-option-all:hover, .ui-option-all.selected {
    background-color: var(--color-green);
    color: #FFF;
}
.ui-option-all:last-child {
    margin: 0;
}
.ui-optiona-all p {
    margin: 0;
}
.ui-option-all .subtext {
    color:transparent;
    font-size: .85em;
}
.ui-option-all:hover .subtext, .ui-option-all.selected .subtext {
    color: var(--color-transwhite);
}
.ui-option-all.filtered-out {
    display: none;
}
.ui-option-all.filteredall-out {
    display: none;
}
#ui-control > * {
    opacity: 1;
    transition: opacity 1s ease-in-out, max-height 1s ease-in-out;
    -moz-transition: opacity 1s ease-in-out, max-height 1s ease-in-out;
    -webkit-transition: opacity 1s ease-in-out, max-height 1s ease-in-out;
}
#ui-control .hidden {
    opacity: 0;
    -webkit-transition: background 0s;
    -moz-transition: background 0s;
    -ms-transition: background 0s;
    -o-transition: background 0s;
    transition: background 0s;
}


.loader {
    border: 16px solid #f3f3f3;
    border-top: 16px solid var(--color-green);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    margin: auto;
    animation: spin 2s linear infinite;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


@media (max-width: 600px) {
    .chat-context {
        padding: 0em;
    }
    #chat {
        padding: 1.25em;
        padding-bottom: 0em;
    }
    .chat-response.user:after {
        right: -1em;
    }
    .chat-response:after {
        left: -1em;
        bottom: -1em;
    }
}