.user {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 11px;
    margin-left: -11px;
    margin-top: -11px;
/*    background: #000;*/
    transition: all 0.2s linear;
    opacity: 0;
    z-index: 5;
}
.user .avatarBody {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all 0.2s linear;
    border-radius: 50%;
}
.user.svg .avatarBody {
    border-radius: 6px;
}

.user.muted {
    width: 0;
    height: 0;
}

.user.muted:before {
    content: "";
    position: absolute;
    top: -0;
    left: -0;
    width: 22px;
    height: 22px;
    box-sizing: border-box;
    background: hsl(0,0%,70%);
    border-radius: 50%;
    z-index: -1;
}

.user .hitbox {
    position: absolute;
    top: -49px;
    left: -49px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    pointer-events: all;
}

.user .hitbox .name {
    position: absolute;
    font-family: sans-serif;
    left: 80px;
    top: 50px;
    height: 20px;
    display: flex;
    align-items: center;
    pointer-events: none;
    transition: opacity 0.2s, left 0.2s linear, top 0.2s linear;
    z-index: 999;
    pointer-events: none;
    color: white;
}

.streaming .hitbox {
    top: -40px;
    left: -40px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    pointer-events: all;
    z-index: 10;
}

.streaming .hitbox .name {
    left: 290px;
    top: 150px;
}
.user .hitbox:hover .name {
    opacity: 1;
}

.user.video:not(.myUser) {
    width: 100px;
    height: 100px;
    border-radius: 50px;
    margin-left: -50px;
    margin-top: -50px;
}

.user.video:not(.myUser) .hitbox .name {
    top: 87px;
    left: 160px;
}

.user:not(.streaming):not(.myUser) video {
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    border-radius: 11px;
    opacity: 0;
}

.user video {
    transform: scale(-1,1);
    transition: all 0.2s linear;
    object-fit: cover;
}

.user.video:not(.streaming):not(.myUser) video {
    opacity: 1;
    width: 100px;
    height: 100px;
    border-radius: 50px;
}

.myUser {
    position: absolute;
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: -20px;
    border-radius: 20px;
    transition: top 50ms linear, left 50ms linear, width 0.2s linear, height 0.2s linear, margin-top 0.2s linear, margin-left 0.2s linear, background 0.2s, border-radius 0.2s linear;
    opacity: 1;
    pointer-events: none;
}

.myUser.video {
/*
    pointer-events: all;
    cursor: none;
    width: 80px;
    height: 80px;
    margin-left: -40px;
    margin-top: -40px;
    border-radius: 40px;
*/
}

.myUser.video.big {
    pointer-events: all;
    cursor: none;
    width: 100px;
    height: 100px;
    margin-left: -50px;
    margin-top: -50px;
    border-radius: 50px;
}
.myUser.video.big video {
    width: 100px;
    height: 100px;
    border-radius: 50px;
    opacity: 1;
}

.myUser.muted:before {
    width: 44px;
    height: 44px;
}

.myUser.presenterMute:after {
    position: absolute;
    content: "";
    width: 40px;
    height: 40px;
    left: calc(50% - 20px);
    bottom: 10px;
    background-image: url(static/mute_icon.png);
    background-size: 100%;
    background-position: center;
}

.streamMuted:not(.interpreter):after {
    position: absolute;
    content: "";
    width: 30px;
    height: 30px;
    left: calc(50% - 20px);
    bottom: 3px;
    background-image: url(static/mute_icon.png);
    background-size: 100%;
    background-position: center;
}

.mapUser {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    transition: all 0.2s linear;
    opacity: 0;
    z-index: 1;
}

.streaming.video.myUser:not(.interpreter) {
    pointer-events: all;
    cursor: none;
}

.openAdminRoom {
    background-image: url("static/mic_icon.png");
    background-position: center;
    background-size: contain;
}

.myMapUser {
    background: red !important;
    opacity: 1;
}

.room {
    position: absolute;
    width: 0;
    height: 0;
    margin-left: 0;
    margin-top: 0;
    background-color: rgba(0,0,0,0);
    border-radius: 50%;
    transition: all 0.2s linear;
    pointer-events: none;
    z-index: 4;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.adminRoom {
/*    opacity: 0;*/
}

.user:before {
    content: "";
    width: 0px;
    height: 0px;
    position: absolute;
    top: 50%;
    left: 50%;
    border: 0px solid #fff;
    border-radius: 0px;
    transition: all 0.2s linear;
}

.adminUser:not(.streaming):not(.myUser.video) {
    opacity: 1;
    background: #fff !important;
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: -20px;
    border-radius: 20px;
}

.adminUser:not(.streaming):not(.myUser) {
    transition: all 0.2s linear;
}

.adminUser:not(.streaming):not(.myUser.video):before {
    content: "";
    width: 50px;
    height: 50px;
    position: absolute;
    top: -10px;
    left: -10px;
    border: 5px solid #fff;
    border-radius: 30px;
}

.adminUser:not(.streaming) .hitbox .name {
    top: 60px;
    left: 110px;
}

.streaming, .myUser.streaming {
    margin-top: -120px;
    margin-left: -120px;
    width: 240px;
    height: 240px;
    border-radius: 120px;
    opacity: 1;
    background: #000;
    pointer-events: all;
    cursor: none;
}

.adminMapUser, .smallGuide, .mapStreaming:not(.mapInterpreter) {
    background: #fff;
    width: 10px;
    height: 10px;
}

.adminMapUser:before, .smallGuide:before, .mapStreaming:not(.mapInterpreter):before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    width: 14px;
    height: 14px;
    box-sizing: border-box;
    border-radius: 50%;
    z-index: -1;
    border: 1px solid #fff;
}

.myMapUser.adminMapUser:before, .myMapUser.mapStreaming:not(.mapInterpreter):before {
    border-color: red;
}

.myUser.video:not(.muted) {
    overflow: hidden;
}

.myUser video {
    width: 80px;
    height: 80px;
    opacity: 0;
    border-radius: 40px;
    transition: all 0.2s linear;
    object-fit: cover;
}

.streaming video {
    position: absolute;
    top: 0;
    left: 0;
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 120px;
    opacity: 1;
}

.user.guide {
    background: #fff;
    margin-top: -20px;
    margin-left: -20px;
    width: 40px;
    height: 40px;
    border-radius: 20px;
}

.guide:before {
    overflow: visible;
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: 60px;
    height: 60px;
    box-sizing: border-box;
    border-radius: 50%;
    z-index: -1;
    border: 5px solid #fff;
}

.guide .hitbox .name {
    top: 60px;
    left: 110px;
}

.user.lastGuide {
    background: rgba(255,255,255,0.6);
}
.lastGuide:before {
    border: 5px solid rgba(255,255,255,0.6);
}
.lastGuide .hitbox .name {
    width: 200px;
}

.streaming.interpreter {
    z-index: 999;
    width: 22px;
    height: 22px;
    border-radius: 11px;
    margin-left: -11px;
    margin-top: -11px;
/*    background: hsla(0,0%,70%, 0.5) !important;*/
    cursor: default;
    pointer-events: none;
}
.streaming.interpreter .avatarBody {
    background: hsla(0,0%,70%, 0.5) !important;
}

.streaming.interpreter video {
    position: fixed;
    bottom: 10px;
    top: unset;
    left: unset;
    right: 10px;
    width: 320px;
    height: 240px;
    border-radius: 10px;
    max-width: 50vw;
    max-height: 50vh;
    z-index: 999;
    pointer-events: all;
    background: #000;
}
.streaming.interpreter.hidden video {
    display: none;
}

.streaming.interpreter.hidden:after {
    content: "Show interpreter";
    bottom: 20px;
    right: 20px;
    width: auto;
    height: 40px;
    border: 1px solid #fff;
    border-radius: 6px;
    padding-left: 11px;
    padding-right: 11px;
    font-size: 14px;
    font-style: italic;
    color: #fff;
    box-shadow: 0 0 3px rgba(0,0,0,0.5), inset 0 0 3px rgba(0,0,0,0.5);
    text-shadow: 0 0 3px rgba(0,0,0,0.75);
}
.streaming.interpreter:after {
    content: "✕";
    position: fixed;
    bottom: 215px;
    right: 305px;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    pointer-events: all;
    text-shadow: 0 0 3px #000;
    z-index: 999;
    color: #fff;
}

.streaming.interpreter .hitbox {
    top: -49px;
    left: -49px;
    width: 120px;
    height: 120px;
}

.streaming.interpreter .hitbox .name {
    left: 80px;
    top: 50px;
    height: 20px;
}



/* easter egg */

.user:not(.svg):not(.interpreter) {
    height: 30px;
    border-radius: 55% 55% 55% 55% / 70% 70% 40% 40%;
}
.user.muted:not(.svg):before {
    height: 30px;
    border-radius: 55% 55% 55% 55% / 70% 70% 40% 40%;
}
.myUser:not(.svg):not(.interpreter) {
    height: 50px;
    margin-top: -25px;
    border-radius: 55% 55% 55% 55% / 70% 70% 40% 40%;
}
.myUser.muted:not(.svg):before {
    height: 50px;
}
.user.video:not(.svg):not(.myUser) {
    height: 120px;
    border-radius: 55% 55% 55% 55% / 70% 70% 40% 40%;
    margin-top: -60px;
}
.user.video:not(.svg):not(.streaming):not(.myUser) video {
    height: 120px;
    border-radius: 55% 55% 55% 55% / 70% 70% 40% 40%;
}

.myUser.video.big:not(.svg) {
    height: 120px;
    margin-top: -60px;
    border-radius: 55% 55% 55% 55% / 70% 70% 40% 40%;
}
.myUser.video.big:not(.svg) video {
    height: 120px;
    border-radius: 55% 55% 55% 55% / 70% 70% 40% 40%;
}

.streaming:not(.svg):not(.interpreter), .myUser.streaming:not(.svg):not(.interpreter) {
    margin-top: -145px;
    height: 290px;
    border-radius: 55% 55% 55% 55% / 70% 70% 40% 40%;
}
.streaming:not(.svg):not(.interpreter) video {
    height: 290px;
    border-radius: 55% 55% 55% 55% / 70% 70% 40% 40%;
}
.user:not(.svg) .avatarBody {
    border-radius: inherit;
}


/*SVG avatar shapes*/

.user.svg svg {
    width: 100%;
    height: 100%;
}
.user.svg:not(.myUser) {
    width: 30px;
    height: 30px;
}
.user.svg:not(.streaming):not(.big):not(.video) .hitbox .name {
    left: 83px;
    top: 53px;
}
.user.svg.big {
    width: 100px;
    height: 100px;
}
.user.svg.streaming {
    width: 240px;
    height: 240px;
}
.user.svg, .user.big.svg, .user.svg video, .myUser.svg.big.video video {
    border-radius: 5px !important;
}
.user svg clipPath {
    transform: scale(0.75);
    transition: transform 0.2s linear;
}

.user.video clipPath, .user.myUser.video.big clipPath {
    transform: scale(2.5);
}

.user.myUser clipPath, .user.myUser.video clipPath  {
    transform: scale(1);
}
.user.svg.streaming, .user.svg.myUser.streaming {
    background: none;
}
.user.streaming clipPath, .user.myUser.streaming clipPath  {
    transform: scale(6.1);
}

