/* The Modal (background) */
.chataipopquizmodal {
  display: none; /* Hidden by default */
  /* display: flex;  */
  align-items: center;
  justify-content: center;
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.chataipopquizmodal .close_quiz:hover,
.chataipopquizmodal .close_quiz:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.chatai_quiz {
    display: flex;
    flex-direction: column;
    background-color: #fefefe;
    /*margin: 15% auto; /* 15% from the top and centered */
    padding: 10px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    height: 60%;
}

.chatai_quiz .close_quiz,
.chatai_quiz .popquiz-voice,
.chatai_quiz .mute-btn-quiz {
    background: transparent;
    border: 0;
    border-radius: 3px;
    color: rgba(13, 59, 112, 0.5);
    cursor: pointer;
    height: fit-content;
    min-height: 28px;
    font-size: 28px;
    font-weight: bold;
    display: inline-flex;
    align-items: flex-start;
    line-height: 20px;
    opacity: 1;
    visibility: visible;
}

.chatai_quiz .close_quiz:hover,
.chatai_quiz .close_quiz:focus,
.chatai_quiz .popquiz-voice:hover ,
.chatai_quiz .mute-btn-quiz:hover {
  color: rgba(13, 59, 112, 1);
  text-decoration: none;
  cursor: pointer;
}

.chatai_quiz .popquiz-voice.activeBtn {
  color: rgba(13, 59, 112, 1);
  text-decoration: none;
  cursor: pointer;
}

.chatai_quiz .submit_quiz, 
.chatai_quiz .speaker {
    background: #0d3b70;
    border: 0;
    border-radius: 3px;
    color: #ffffff;
    cursor: pointer;
    height: fit-content;
    min-height: 28px;
    height: 100%;
    padding: 0 20px;
}

.chatai_quiz .submit_quiz:hover,
.chatai_quiz .submit_quiz:focus {
  background: #3a7bc8;
}

.chatai_quiz .header {
    padding-bottom: 20px;
    display: flex;
    background: transparent;
}
.chatai_quiz .header .title {
    padding: 10px 20px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: bold;
    flex: 1;
    display: inline-flex;
    align-items: center;
}
.chatai_quiz .header .title .subtitle {
    font-size: small;
}
.chatai_quiz .messages_quiz {
    padding: 10px;
    margin: 0;
    list-style: none;
    overflow-y: scroll;
    overflow-x: hidden;
    flex-grow: 1;
    border-radius: 4px;
    background: transparent;
}
.chatai_quiz .messages_quiz::-webkit-scrollbar {
    width: 5px;
}
.chatai_quiz .messages_quiz::-webkit-scrollbar-track {
    border-radius: 5px;
    background-color: rgba(180, 180, 180, 0.1);
}
.chatai_quiz .messages_quiz::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: rgba(180, 180, 180, 0.2);
}
.chatai_quiz .messages_quiz li {
    position: relative;
    clear: both;
    display: inline-block;
    padding: 14px;
    padding-bottom: 8px;
    margin: 0 0 20px 0;
    font: 12px/16px 'Noto Sans', sans-serif;
    border-radius: 10px;
    word-wrap: break-word;
    max-width: 81%;
}
.chatai_quiz .messages_quiz li:before {
    position: absolute;
    top: 0;
    width: 25px;
    height: 25px;
    border-radius: 25px;
    content: '';
    background-size: cover;
}
.chatai_quiz .messages_quiz li:after {
    position: absolute;
    top: 10px;
    content: '';
    width: 0;
    height: 0;
}
.chatai_quiz .messages_quiz li.self {
    animation: show-chat-odd 0.15s 1 ease-in;
    -moz-animation: show-chat-odd 0.15s 1 ease-in;
    -webkit-animation: show-chat-odd 0.15s 1 ease-in;
    float: right;
    margin-right: 45px;
    color: white;
    background-color: #3a7bc8;
}
.chatai_quiz .messages_quiz li.divider {
    width: 95%;
    max-width: 100%;
    color: lightgray;
    text-align: center;
    background-color: rgba(0, 0, 0, 0);
    margin: 0;
    padding: 14px;
}
.chatai_quiz .messages_quiz li.self:before {
    right: -45px;
    background-image: url(https://chatai.eitidc.com/static/images/person.png);
    background-color: #3a7bc8;
}
.chatai_quiz .messages_quiz li.self:after {
    border-right: 10px solid transparent;
    right: -10px;
    border-top: 10px solid #3a7bc8;
}
.chatai_quiz .messages_quiz li.other {
    animation: show-chat-even 0.15s 1 ease-in;
    -moz-animation: show-chat-even 0.15s 1 ease-in;
    -webkit-animation: show-chat-even 0.15s 1 ease-in;
    float: left;
    margin-left: 45px;
    color: white;
    background-color: #0d3b70;
}
.chatai_quiz .messages_quiz li.other:before {
    left: -45px;
    background-image: url(https://chatai.eitidc.com/static/images/person.png);
    background-color: #0d3b70;
}
.chatai_quiz .messages_quiz li.other:after {
    border-left: 10px solid transparent;
    left: -10px;
    border-top: 10px solid #0d3b70;
}
.chatai_quiz .messages_quiz li div.timestamp {
    display: inline;
    float: right;
    padding: 10px 0 0 15px;
    font-size: 11px;
    color: #ffffff;
}
.ellipsis {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 5px;
    background-color: #ffffff;
}
.chatai_quiz .ellipsis:nth-last-child(1) {
    animation: fallingAnimation 1s 0.3s linear infinite;
}
.chatai_quiz .ellipsis:nth-last-child(2) {
    animation: fallingAnimation 1s 0.2s linear infinite;
}
.chatai_quiz .ellipsis:nth-last-child(3) {
    animation: fallingAnimation 1s 0.1s linear infinite;
}
.chatai_quiz .footer {
    flex-shrink: 0;
    display: flex;
    padding-top: 10px;
    max-height: 250px;
    background: transparent;
}
.chatai_quiz .footer .text-box-quiz {
    border-radius: 3px;
    background: rgba(180, 180, 180, 0.2);
    min-height: 20px;
    max-height: 200px;
    width: 100%;
    margin: 0 5px;
    color: #0d3b70;
    overflow-y: auto;
    padding: 2px 5px;
    outline: none;
    border: none;
}
.chatai_quiz .footer .text-box-quiz::-webkit-scrollbar {
    width: 5px;
}
.chatai_quiz .footer .text-box-quiz::-webkit-scrollbar-track {
    border-radius: 5px;
    background-color: rgba(180, 180, 180, 0.1);
}
.chatai_quiz .footer .text-box-quiz::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: rgba(180, 180, 180, 0.2);
}
@keyframes show-chat-even {
    0% {
        margin-left: -480px;
   }
    100% {
        margin-left: 0;
   }
}
@-moz-keyframes show-chat-even {
    0% {
        margin-left: -480px;
   }
    100% {
        margin-left: 0;
   }
}
@-webkit-keyframes show-chat-even {
    0% {
        margin-left: -480px;
   }
    100% {
        margin-left: 0;
   }
}
@keyframes show-chat-odd {
    0% {
        margin-right: -480px;
   }
    100% {
        margin-right: 0;
   }
}
@-moz-keyframes show-chat-odd {
    0% {
        margin-right: -480px;
   }
    100% {
        margin-right: 0;
   }
}
@-webkit-keyframes show-chat-odd {
    0% {
        margin-right: -480px;
   }
    100% {
        margin-right: 0;
   }
}
  
@keyframes fallingAnimation {
    0% {
        transform: translate(0,-5px);
        opacity:0;
    }
    25%, 50%, 75% {
        transform: translate(0,0);
        opacity:1;
    }
    100% {
        transform: translate(0,5px);
        opacity:0;

    }
}  
@-moz-keyframes fallingAnimation {
    0% {
        transform: translate(0,-5px);
        opacity:0;
    }
    25%, 50%, 75% {
        transform: translate(0,0);
        opacity:1;
    }
    100% {
        transform: translate(0,5px);
        opacity:0;

    }
}  
@-webkit-keyframes fallingAnimation {
    0% {
        transform: translate(0,-5px);
        opacity:0;
    }
    25%, 50%, 75% {
        transform: translate(0,0);
        opacity:1;
    }
    100% {
        transform: translate(0,5px);
        opacity:0;

    }
}
#chatArea_quiz {
    resize: vertical;
    padding: 10px;
}
#transcribe_quiz {
    background: transparent;
    border: 0;
    color: #0d3b70;
    cursor: pointer;
    height: fit-content;
    min-height: 40px;
    max-width: 100%;
    font-weight:900;
    padding: 0;
}
.micActive_quiz {
  color: #8b0000 !important;
  animation: blinker 1.5s linear infinite;
}
@keyframes blinker {
  50% {
    opacity: 0.5;
  }
}

.chatai_quiz .header .settings {
    position: relative;
}

.chatai_quiz .header .settings .voices {
    overflow: auto;
    position: absolute;
    right: 0;
    top: 35px;
    border: 0;
    outline: 0;
    padding: 10px;
    box-shadow: 3px 3px 5px 3px rgba(0,0,0,0.05);
    z-index: 9999;
    display: none;
}
