:root {
    --theme-color: #4caf50;
    /* --theme-color: #F44336; */
}

#result {
    padding-bottom: 150px;
}

#image-field {
    position: absolute;
    top: -100px;
    left: 0px;
    width: 100%;
    height: 200%;
    z-index: 100000;
    background-image: url(/images/eye.gif);
    background-repeat: no-repeat;
    background-position: 0 250px;
    background-size: contain;
    background-color: #f0eeef;
}

#progress-bar {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 100000;
    background-color: #f0eeef;
}

#senior-overlay {
    display: block; 
    position: fixed; 
    width: 100%; 
    height: 100%; 
    top: 0; 
    left: 0; 
    /* background-color: #4caf50;  */
    z-index: 999;
    /* background-image: url(/images/mic.png); 
    background-position: center; 
    background-attachment: fixed;
    background-repeat: no-repeat; */
}

#placeholder {
    text-align: center;
    margin-top: 1.5em;
}

#video-container {
    position: fixed;
    height: 1px;
    width: 1px;
    z-index: 10000;
}

.auto-resizable-iframe {
    max-width: 1px;
    margin: 0px auto;
}

.auto-resizable-iframe > div {
    position: relative;
    padding-bottom: 75%;
    height: 0px;
}

.auto-resizable-iframe iframe {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 1px;
    height: 1px;
}

#main-wrapper {
    display: none;
    margin-bottom: 80px;
}

.clearfix {
    clear: both;
}

#modal-quick-actions {
    max-height: 75%;
    opacity: 0.8;
    height: 65%;
}

#modal-quick-actions .modal-content {
    background-color: #ffffff;
}

#modal-quick-actions h1 {
    font-size: 15px;
    padding-top: 30px;
    padding-left: 25px;
    color: gray;
}

#modal-quick-actions a {
    color: black !important;
    border: 0px solid white !important;
}

#modal-quick-actions .modal-content {
    padding: 0;
    margin: 0;
}

#modal-quick-actions .collection {
    border: none;
    margin: 0;
    padding: 0;
}

#modal-quick-actions .collection .quick-action {
    padding: 25px;
}

.quick-action-item {
    margin-left: 55px;
    margin-top: 4px;
}

.brand-logo {
    height: 220px;
    margin: -79px -90px;
    left: 90px;
}

#overlay {
    position: fixed;
    /* Sit on top of the page content */
    display: none;
    /* Hidden by default */
    width: 100%;
    /* Full width (cover the whole page) */
    height: 100%;
    /* Full height (cover the whole page) */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    /* Black background with opacity */
    z-index: 1000;
    /* Specify a stack order in case you're using a different order for other elements */
}

#input-waves {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 130px;
}

#input-text {
    position: absolute;
    top: 300px;
    width: 100%;
    text-align: center;
    font-size: 25px;
    color: #f4fff2;
    font-family: 'San Francisco', Helvetica, Arial, san-serif;
}

.input-welcome-text {
    position: absolute;
    height: 300px;
    top: 0;
    width: 100%;
    padding-top: 140px;
    text-align: center;
    font-size: 25px;
    color: #f4fff2;
    font-family: 'San Francisco', Helvetica, Arial, san-serif;
}

#nav-mobile li a {
    padding-left: 0px;
    padding-right: 15px;
}

.me-reply-node {
    margin-left: 20px !important;
    border-top-left-radius: 0px !important;
}

.ja-reply-node {
    margin-right: 20px !important;
    border-top-right-radius: 0px !important;
}

.input-field {
    box-shadow: none !important;
    border: none !important;
}

.input-field:focus {
    border-bottom: none;
    box-shadow: none;
}

#q {
    height: 4rem;
    padding-left: 15px;
    margin-left: 60px;
    margin-right: 60px;
}

#apps {
    margin: 15px;
}


/* .reply-node::before {
  content: "U";
  padding: 3px 14px;
  font-size: 25px;
  font-weight: bold;
  height: 42.6666666667px;
  width: 42.6666666667px;
  border-radius: 50%;
  background: var(--theme-color);
  float: left;
  color: #ffffff;
  position: absolute;
  margin-left: -80px;
  margin-top: -20px;
} */

.me-reply-node::before {
    content: "";
    position: absolute;
    margin-left: -34px;
    margin-top: -24px;
    height: 0;
    width: 0;
    border-style: solid;
    border-width: 0 10px 10px 0;
    border-color: transparent var(--theme-color) transparent transparent;
}

.ja-reply-node::after {
    content: "";
    float: rigt;
    position: absolute;
    margin-left: 24px;
    margin-top: -24px;
    height: 0;
    width: 0;
    border-style: solid;
    border-width: 10px 10px 0 0;
    border-color: #ffffff transparent transparent transparent;
}

body {
    /* position: relative; */
    background-color: #f2f2f2;
}

.title {
    color: #ffffff;
    text-align: center;
    font-weight: 100;
}

.wrapper {
    height: 520px;
    width: 320px;
    overflow: hidden;
    background-color: white;
    position: fixed;
    top: 100px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    box-shadow: 0px 3px 3px 0px rgba(50, 50, 50, 0.5);
    transition: 0.3s ease;
}

.wrapper .inner {
    overflow: scroll;
    height: 520px;
    padding-top: 64px;
    background: #f2f2f2;
    -ms-overflow-style: none;
    overflow: -moz-scrollbars-none;
}

.wrapper .inner::-webkit-scrollbar {
    width: 0 !important;
}

.wrapper .inner .content {
    padding: 10.6666666667px;
    position: relative;
    margin-bottom: 32px;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    z-index: 100;
    transition: 0.3s ease;
}

.nav .default-nav {
    height: 64px;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 110;
    background-color: var(--theme-color);
    border-bottom: 3px solid #ea1c0d;
    color: #ffffff;
    box-shadow: 0px 3px 3px 0px rgba(50, 50, 50, 0.1);
    transition: 0.3s ease;
}

.nav .default-nav .main-nav {
    position: absolute;
    left: 0;
    width: 100%;
    height: 64px;
    top: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: 0.3s ease;
}

.nav .default-nav .main-nav .toggle {
    height: 32px;
    width: 32px;
    background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/104946/ic_arrow_back_white_48dp.png);
    background-size: contain;
    margin: 16px;
    float: left;
}

.nav .default-nav .main-nav .toggle:hover {
    cursor: pointer;
}

.nav .default-nav .main-nav .options {
    height: 32px;
    width: 32px;
    background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/104946/ic_more_vert_white_48dp.png);
    background-size: contain;
    margin: 16px;
    position: absolute;
    right: 0;
}

.nav .default-nav .main-nav .options:hover {
    cursor: pointer;
}

.nav .default-nav .main-nav .main-nav-item {
    float: left;
    height: 64px;
    margin-right: 50px;
    position: relative;
    line-height: 64px;
    transition: 0.3s ease;
}

.nav .default-nav .main-nav .main-nav-item .main-nav-item-link {
    display: block;
    position: relative;
    height: 64px;
    width: 100%;
    text-align: center;
    line-height: 64px;
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

.bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4rem;
    background: #ffffff;
    /* box-shadow: 0px -3px 3px 0px rgba(50, 50, 50, 0.1); */
}

.bottom .input {
    height: 64px;
    background: #ffffff;
    border: none;
    width: calc(100% - 64px);
    position: absolute;
    left: 0;
    top: 0;
    padding: 0 5%;
    resize: none;
    overflow: scroll;
    font-weight: 300;
    -ms-overflow-style: none;
    overflow: -moz-scrollbars-none;
}

.bottom .input:focus {
    outline: none;
}

.bottom .input::-webkit-scrollbar {
    width: 0 !important;
}

.bottom .send {
    position: fixed;
    height: 42.6666666667px;
    width: 42.6666666667px;
    border-radius: 50%;
    border: 0;
    background: var(--theme-color);
    color: #ffffff;
    bottom: 10.6666666667px;
    right: 10.6666666667px;
}

.bottom .send:before {
    content: '';
    background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/104946/ic_send_white_48dp.png) no-repeat center center;
    background-size: 25.6px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.bottom .send:focus {
    outline: none;
}

.bottom .send:hover {
    cursor: pointer;
}

.message-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 10.6666666667px 0;
    padding: 10.6666666667px 0;
}

.message-wrapper .circle-wrapper {
    height: 42.6666666667px;
    width: 42.6666666667px;
    border-radius: 50%;
}

.message-wrapper .text-wrapper {
    padding: 10.6666666667px;
    min-height: 42.6666666667px;
    width: 60%;
    margin: 0 10.6666666667px;
    box-shadow: 0px 1px 0px 0px rgba(50, 50, 50, 0.3);
    border-radius: 2px;
    font-weight: 300;
    position: relative;
    /* word-break: break-all; */
    opacity: 0;
}

.message-wrapper .text-wrapper:before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
}

.message-wrapper.them .circle-wrapper,
.message-wrapper.them .text-wrapper {
    background: var(--theme-color);
    float: left;
    color: #ffffff;
}

.message-wrapper.them .text-wrapper:before {
    border-width: 0 10px 10px 0;
    border-color: transparent var(--theme-color) transparent transparent;
    position: absolute;
    top: 0;
    left: -9px;
}

.message-wrapper.me .circle-wrapper,
.message-wrapper.me .text-wrapper {
    background: #FF5722;
    float: right;
    color: #333333;
}

.message-wrapper.me .text-wrapper {
    background: #ffffff;
}

.message-wrapper.me .text-wrapper:before {
    border-width: 10px 10px 0 0;
    border-color: #ffffff transparent transparent transparent;
    position: absolute;
    top: 0;
    right: -9px;
}

@media (max-width: 560px) {
    .wrapper {
        width: 100%;
        height: 100%;
        height: 100vh;
        top: 0;
        left: 0;
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    .wrapper .inner {
        height: 100%;
        height: 100vh;
    }
}

/* gif state animations */
.state-animation {
  position: fixed;
  display: block;
  top: 0px;
  left: 0px;
  height: 100%;
  width: 100%;
  z-index: 999;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #000000;
}

.listening {
  background-image: url(/images/listening.gif);
}

.thinking {
    background-image: url(/images/thinking.gif);
}

.audio {
    background-image: url(/images/speaking.gif);
}

.nointernet {
    background-image: url(/images/no-internet.jpg);
    background-color: white;
}

.camera-zoom {
    background-color: black;
    background-image: none;
    overflow: auto;
}

#videoZoom {
    width: 100%;
    height: auto;
    top: 0px;
    position: absolute;
}

.progress-bar {
    color: white;
    text-align: center;
    font-size: 150px;
    font-weight: bold;
    padding-top: 230px;
}

.incompatible-browser {
    background-image: url(/images/android-in-chrome.png);
    background-color: #F1FEC9;
}

#video-iframe {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    z-index: 10000000;
    background-color: black;
}

/* preload gif animations for slow internet */
body::after {
    position: absolute; width:0; height:0; overflow:hidden; z-index:-1;
    content: url(/images/no-internet.jpg) url(/images/listening.gif) url(/images/thinking.gif) url(/images/speaking.gif);
}
/* end gif state animations */

.zoom-stop {
    position: fixed;
    width: calc(100%/3);
    height: 120px;
    background-color: #ea1c0d;
    bottom: 0px;
    right: 0px;

    background-image: url(/images/cancel.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.zoom-plus {
    position: fixed;
    width: calc(100%/3);
    height: 120px;
    background-color: #4caf50;
    bottom: 0px;
    left: 0px;

    background-image: url(/images/zoom_in.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.zoom-minus {
    position: fixed;
    width: calc(100%/3);
    height: 120px;
    background-color: #F1FEC9;
    bottom: 0px;
    left: calc(100%/3);

    background-image: url(/images/zoom_out.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.zoom-cover {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: black;
    top: 0px;
    left: 0px;
}