
#chatPanel {
    position: relative;
    height: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #333;
}
.disNon{
  display: none !important;
}

#chatSettings {
    display: flex;
    justify-content: flex-end;
    margin: 5px;
    /* height:  */
}

#chatSettings #resetInterview {
    margin-right: 20px;
}

#audioAnswer {
    display: flex;
    align-items: center;
    margin: 0 20px;
    color: var(--text-color);
}
.smallMargin{
  margin: 0px 3px !important;
}

#chatContainer {
    position: relative;
    height: 100%;
    max-height: 200px;
    background: #a9b3d0;
    background: linear-gradient(90deg, var(--medium-dark-color-alpha) 0%, rgba(222, 234, 237, 0.7) 100%);
    background-size: 100% 100%;
}

#chatContainer .question, #chatContainer .answer, #chatContainer  .tip, #chatContainer  .gtip {
    margin: 10px;
    padding: 10px;
    clear: both;
    max-width: 80%;
    position: relative;
    word-break: break-word;
}

.littleSize {
    font-size: 14px !important;
}
.mediumSize {
    font-size: 17px !important;
}
.bigSize {
    font-size: 20px !important;
}

#chatContainer .question {
    background-color: #a9b3d0;
    float: right;
    text-align: right;
    padding-left: 30px;
    transition: background-color 1s, color 1s;
}

#chatContainer .question.good {
    background-color: #92d39c;
}
#chatContainer .question.dumb {
    background-color: #a7b38a;
}

#chatContainer .question.evil {
    background-color: #c47a6d;
}
#chatContainer .question.bad {
    background-color: #d66363;
}

#chatContainer .answer {
    background: #fff;
    float: left;
    text-align: left;
    padding-right: 30px;
}
#questionContainer, #loadingQuestions {
    flex-grow: 0;
    flex-shrink: 0;
    margin: 10px 0;
    height: 120px;
    overflow-y: auto;
    position: relative;
}

#questionContainer {
    display: flex;
    align-items: center;
}

#questionContainer textarea {
    font-family: 'Microsoft New Tai Lue', sans-serif;
    font-size: inherit;
    resize: none;
    height: 100%;
    width: 100%;
    border-width: 3px;
    border-style: solid;
    border-image-source: linear-gradient(to right, #ddd 0%, #eee 100%);
    border-image-slice: 1;
    background: #f1f1f1;
    padding: 10px;
    outline: none;
}
#questionContainer textarea:focus {
    border-image-source: linear-gradient(to right, #1daae2 0%, #a9b3d0 100%);
}

#questionContainer #sendQuestion {
    margin: 20px;
}

#loadingQuestions {
    overflow: hidden;
    margin-top: -130px;
}
#clickingQuestions {
    padding: 10px; 
    background: #a9b3d0;
    background: linear-gradient(90deg, var(--medium-dark-color-alpha) 0%, rgba(222, 234, 237, 0.7) 100%);
    background-size: 100% 100%;
    display: flex;
    flex-direction:column;
}
#questionAnswerContainer {
    height: 100%;
    overflow-y: auto;
    padding-bottom: 100px;
    user-select: text;
}
#popupSuggest{
    position: fixed; 
    left: 10%; 
    bottom: 150px; 
    z-index: 11;
}
.popupShow{
    display: block;
}
.popupHide{
    display: none;
}
.clickQuestion{
    margin: 5px auto;
    padding: 2px 12px;
    border: 1px dashed #000;
    border-radius: 20px;
    cursor: pointer; 
    background-color: whitesmoke;
}

#chatPanel.hideAllQuestions #questionContainer .question {
    display: none;
}

#questionContainer .no_more_questions {
    margin: 15px 30px;
    padding: 5px 10px;
    text-align: center;
}

#questionContainer .question {
    cursor: pointer;
    margin: 15px 30px;
    padding: 5px 10px;
    background: #535d6e;
    border: 2px solid #e0bf7e;
    border-width: 2px 0;
    color: #EDE3D7;
    position: relative;
    overflow: visible;
    line-height: 20px;
    padding-right: 60px;
}

#questionContainer .question span {
    height: 20px;
    display: block;
    overflow: hidden;
}

#questionContainer .question.fullHeight span {
    height: auto;
}

#questionContainer .question:hover {
    background: #586d94;
}

#questionContainer .question:before {
    content: '';
    position: absolute;
    top: -6px;
    bottom: -6px;
    left: 0;
    right: 0;
    background: #535d6e;
    z-index: -1;
}
#questionContainer .question:hover:before {
    background: #586d94;
}



#chatContainer .question .caret, #chatContainer .answer .caret {
    border-right: .05em solid #535d6e;
    animation: caret 1s steps(1) infinite;
}

@keyframes caret {
    50% {
        border-color: transparent;
    }
}

/* .squareLoader {
    position: absolute;
    top:50%;
    left: 50%;
    transform: translate(-50%,-50%);
    
    width: 80px;
    height: 80px;
    display: inline-block;
    position: relative;
}

.squareLoader::after, .squareLoader::before {
    content: '';
    width: 80px;
    height: 80px;
    border: 3px solid #a9b3d0;
    position: absolute;
    left: 0;
    top: 0;
    box-sizing: border-box;
    animation: rotation 2s ease-in-out infinite;
}
.squareLoader::after {
    border-color: var(--medium-dark-color-alpha);
    animation-delay: 1s;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
} */



/* HTML: <div class="loader"></div> */
.squareLoader {
  position: absolute;
  top:50%;
  left: 50%;
  transform: translate(-50%,-50%);
  
  height: 15px;
  aspect-ratio: 4;
  --_g: no-repeat radial-gradient(farthest-side,#0129358c 90%,#81202000);
  background: 
    var(--_g) left, 
    var(--_g) right;
  background-size: 25% 100%;
  display: grid;
}
.squareLoader:before,
.squareLoader:after {
  content: "";
  height: inherit;
  aspect-ratio: 1;
  grid-area: 1/1;
  margin: auto;
  border-radius: 50%;
  transform-origin: -100% 50%;
  background: #0129358c;
  animation: l49 1s infinite linear;
}
.squareLoader:after {
  transform-origin: 200% 50%;
  --s:-1;
  animation-delay: -.5s;
}

@keyframes l49 {
  58%,
  100% {transform: rotate(calc(var(--s,1)*1turn))}
}


.popupBGX{
    margin:auto;
    background-color: var(--medium-dark-color-alpha);
    padding: 20px;
    text-align: center;
}

.popupbtns{
    display: flex;
    justify-content: space-evenly;
}

#popupDialogX {
    z-index: 151;
}

.popupX {
    background: rgba(233,233,233,0.6);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display:none;
    z-index:100;
    overflow: auto;
}

.popupX[style*='display: block'] {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-flow: nowrap;
    flex-direction: column;
}

.popupX a {
    color: #eee;
}
.popupX a:hover {
    color: #fff;
}
.popupX h3 {
    text-align: center;
}

.popupX.popupHideBackground {
    backdrop-filter: blur(5px);
}

.popupX .closePopupX, #errorDiv .btnError {
    margin: 0 !important;
    background: none;
    font-weight: normal;
    height: 10px;
    max-height: 10px;
    width: 10px;
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    cursor: pointer;
    z-index: 10;
    background: no-repeat;
    background-image: url("data:image/svg+xml;utf8,<svg class='svg-inline--fa fa-xmark' aria-hidden='true' focusable='false' data-prefix='fas' data-icon='xmark' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512' data-fa-i2svg=''><path fill='white' d='M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z'></path></svg>");
    background-size: contain;
    background-position: center;
    transform: scale(1);
    transition: 0.5s transform;
}
.popupX .closePopupX:hover, .popupX .closePopupX:focus, #errorDiv .btnError:hover {
    transform: scale(1.1);
}

.disableClosePopupX .popupBackgroundX {
    pointer-events: none;
}
.popupBackgroundX {
    background: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
}

#dialogTitle {

}

#dialogContainer {
    text-align: center;
    max-width: 600px;
}

#dialogContainer .dialogText {
    margin: 20px;
}

#dialogContainer .btn {
    margin: 0 10px;

    padding: 0 18px;
    width: auto;
    min-width: 100px;
}


