#avatar-wrapper {
    width:300px;
    max-height: 850px;
    position:fixed;
    bottom:0;
    right:0;
    border: gray solid 2px;
    border-radius: 3px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.4),0 2px 10px 0 rgba(0, 0, 0, 0.81)!important;
    transition: transform 1.5s, max-height 1.5s;
    z-index: 10001;
}

.minimized {
    max-height: 1.5em!important;
}

#maximize-avatar-text {
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
    opacity: 0;
    background: white;
    z-index: 1000004;
    transition: 1s;
    pointer-events: none;
}

.minimized #maximize-avatar-text {
    opacity: .9!important;
}

@media screen and (max-width: 640px) {
    #avatar-wrapper {
        left: 50%;
        top: 50%;
        bottom:unset;
        right:unset;
        transform: translate(-50%, -50%);
    }

    .minimized {
        top: unset!important;
        bottom: 0!important;
        transform: translate(-50%, 0%)!important;
    }
}



#avatar-question {
    background: aliceblue;
    padding: 10px 5px;
}

#avatar-question:first-child {
    text-align: center;
    font-weight: bold;
}

#avatar-nav {
    border-top: gray solid 1px;
    padding: 2px 5px;
    font-size: smaller;
    background: #f0f8ff;
}

.avatar-ques-item {

}

.minimize-icon {
    display:block;
    box-sizing:border-box;
    width:20px;
    height:20px;
    border-width:3px;
    border-style: solid;
    border-color:red;
    border-radius:100%;
    background-color:red;
    box-shadow:0px 0px 5px 2px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    z-index: 1000005;
    position: absolute;
    right: -2px;
    top: -5px;
}

.minimize-icon::before {
    content: " ";
    position: absolute;
    top: 6px;
    width: 13px;
    height: 3px;
    background-color: white;
}

.minimized .minimize-icon {
    opacity: 0!important;
}

.avatar-modal-col1 {
    display: -ms-grid;
    display: grid;
    grid-template-rows: 2fr;
}

.avatar-modal-col1 > div {
    text-align: center;
}

.avatar-modal-col2 {
    -ms-grid-column: 2;
}

.avatar-dialog-image {
    border: 1px solid #888;
    border-radius: 4px;
    width: 150px;
    max-width: none;
}

.avatar-modal-control-bar {
    -ms-grid-row: 2;
}

@keyframes pulse_animation {
    0% { opacity: 1; }
    10% { opacity: 0.75; }
    25% { opacity: 0.5; }
    50% { opacity: 0.25; }
    75% { opacity: 0.5; }
    90% { opacity: 0.75; }
    100% { opacity: 1; }
}

.pulse {
    animation-name: pulse_animation;
    animation-duration: 1000ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

#avatar-video .modal-container {
    width: 90vw;
    height: 50vw;
    margin: 0px auto;
    padding: 2px;
    background-color: #fff;
    border-radius: 0;
    box-shadow: none;
    transition: all .5s ease;
    font-family: Helvetica, Arial, sans-serif;
}

#avatar-video .modal-body {
    margin: 0;
    height: 100%;
}

#avatar-vid-frame {
    width:100%;
    height:100%;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}