@font-face {
    font-family: "Open Sans";
    font-weight: 700;
    src: url("/font/OpenSans/OpenSans-Bold.ttf") format("truetype");
}
@font-face {
    font-family: "Open Sans";
    font-weight: 300;
    src: url("/font/OpenSans/OpenSans-Light.ttf") format("truetype");
}
@font-face {
    font-family: "Open Sans";
    font-weight: 500;
    src: url("/font/OpenSans/OpenSans-Regular.ttf") format("truetype");
}
@font-face {
    font-family: "Open Sans";
    font-weight: 400;
    src: url("/font/OpenSans/OpenSans-Regular.ttf") format("truetype");
}
@font-face {
    font-family: "Open Sans";
    font-weight: 600;
    src: url("/font/OpenSans/OpenSans-SemiBold.ttf") format("truetype");
}

* {
    box-sizing: border-box;
}

body {
    background-image: url("img/rectangle.png");
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    background-size: cover;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    position: relative;
    color: #555;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
}

* {
    font-family: "Open Sans", sans-serif;
}

#logo-header{
    width: 505px;
    background-image: url(img/footer-logo.png);
    background-size: cover;
    background-repeat: no-repeat;
    height: 219px;
    margin-left: 100px;
    transform: rotate( 180deg);
    z-index: -1;
}

#logo-footer{
    width: 353px;
    background-image: url(img/footer-logo.png);
    height: 153px;
    position: absolute;
    bottom: 3px;
    right: 100px;
    z-index: -1;
}

#footer {
    position: absolute;
    bottom: 0;
    left: 5px;
    width: calc(100% - 10px);
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 10px;
}

#content {
    position: absolute;
    width: 400px;
    height: 330px;
    left: 50%;
    top: 40%;
    background: #FFFFFF;
    box-shadow: 2px 2px 40px rgb(0 0 0 / 11%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -50%);
}
#logo-container {
    float: left;
    display: block;
    width: 100%;
    visibility: hidden;
}
#logo {
    height: 25px;
    margin: 21px 20px 30px;
    display: block;
}


#no-access {
    display: none;
    z-index: 99;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0,0,0,.65);
}
body.no-access #no-access {
    display: block;
}
#no-access-content  {
    padding: 10px;
    margin: auto;
    margin-top: 12%;
    color: #ccc;
    background-color: rgba(1,1,1,.7);
    font-size: 14px;
    line-height: 18px;
    height: 300px;
    width: 360px;
    z-index: 100;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

#no-access-browser {
    display: flex;
    justify-content: space-evenly;
}

#no-access-browser img {
    width: 100px;
}
#no-access-browser a {
    color: #ccc !important;
}


#no-access-content > div {
    width: 100%;

}

#profil-picture {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 1em auto;
    background-size: cover;
    background-repeat: no-repeat;
}

#profil-name {
    text-align: center;
    width: 100%;
    font-weight: bold;
    font-size: 16px;
    line-height: 22px;
    color: #394759;
    margin-bottom: 10px;
    height: 22px;
}

/* #message-user-listen{
    width: 316px;
    max-width: 311px;
    word-break: break-all;
    position: absolute;
    margin-top: 120px;
    /* float: left; */
    /* display: none;
    font-family: "Open Sans";
    font-style: normal;
    font-weight: normal;
    font-size: 14px;
    line-height: 19px;
    text-align: center;
    color: #394759;
    margin-left: 11%; */
/* } */ 
.message-user-first {
    max-width: calc(100% - 80px);
    word-break: break-word;
    display: none;
    font-weight: 400;
    font-size: 14px;
    line-height: 19px;
    text-align: center;
    color: #394759;
}




#dtmf {
    display: none;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 60px;
    width: 100%;
}
#dtmf div { 
    width: 33%; 
    color: #567191;
    font-weight: 800;
    font-size: 24px;
    line-height: 24px;
    cursor: pointer;
    margin: 10px 0;
}
#dtmf div span {
    font-size: 13px;
    font-weight: 300;
    display: block;
    color: #8193a8;
}

#dtmf-value {
    display: none;
    height: 34px;
    font-weight: bold;
    font-size: 25px;
    line-height: 34px;
    text-align: center;
    color: #567191;
    white-space: nowrap;
    margin-bottom: 5px;
}
body.call #dtmf {
     display: flex; 
}

body.call #dtmf-value {
    display: block; 
}

body.call #content {
    height: 550px;
}

body.call #message-user-dtmf {
    display: flex; 
}

#btns {
    position: absolute;
    width: 100%;
    height: 70px;
    left: 0;
    bottom: 20%;
}

body.call #btns {
    bottom: 8%;
}

body.listen #btns {
    bottom: 30%;
}


#flex-btns {
    display: flex;
    justify-content: space-evenly;
    padding: 0 10px;
    min-height: 35px;
}


#btns button#desktop-only  {
    padding: 14px 20px 14px;
    border-radius: 5px;
    border: 0px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    user-select: none;
    cursor: pointer;
    transition: all 0.1s;
    outline: 0;
    display: none;
}

.btn-mute-start {
    position: relative;
    cursor: pointer;
    width: 360px;
    height: 70px;
    background: #F5F6F7;
    border: 1px solid #DDDDDD;
    box-sizing: border-box;
    box-shadow: 0px 2px 0px #dddddd;
    border-radius: 10px;
    display: none;
}

.img-mute{
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
}

.img-mute-off {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
}

.text-mute {
    width: 100%;
    margin: auto;
    height: 22px;
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
    color: #567191;
}
.btn-leave-listen {
    border-radius: 10px !important;
    border: 0px;
    color: #fff;
    display: none;
    justify-content: center;
    align-items: center;;
    cursor: pointer;
    background: linear-gradient(135deg, #FFCF4F 0%, #FF9B4A 100%);
    max-width: 365px;
    width: calc(100% - 20px);
    height: 40px !important;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    line-height: 22px;
    margin: 20px auto;
}

.user-call-url {
    margin: auto;
    z-index: 2;
    border: 0;
    cursor: pointer;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    transition: .2s;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(115deg,#40e0cf 8%,#36cdcf 100%);
    box-shadow: 0 2px 14px rgb(0 173 163 / 30%);
}

.user-phone-call-url {
    width: 28px;
    margin-top: 10%;
}

.user-call-url-off {
    margin: auto;
    z-index: 2;
    display: none;
    cursor: pointer;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #E11F3F 0%, #DF3F61 100%);
    box-shadow: 0 2px 14px rgb(0 173 163 / 30%);
    border-width: 0;
}

.user-phone-call-url-off {
    width: 28px;
    margin-top: 9px;
    transform: rotate(135deg);
}

#btn-end-listen {
    border-radius: 10px;
    border: 0px;
    color: #fff;
    cursor: pointer;
    display: none;
    background: linear-gradient( 315deg, #FF7B7B 0%, #EE5A5A 100%);
    width: 90%;
    height: 40px;
    margin: 20px auto;
}

/* #message-user-hangup {
    margin-top: -70px;
    float: left;
    display: none;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: normal;
    font-size: 14px;
    line-height: 19px;
    text-align: center;
    color: #394759;
    margin-left: 80px;
} */

/* #message-listen-start{
    margin-top: 109px;
    float: left;
    display: none;
    font-family: "Open Sans";
    font-style: normal;
    font-weight: normal;
    font-size: 14px;
    line-height: 19px;
    text-align: center;
    color: #394759;
    margin-left: 135px;
    position: absolute;
} */

#message-user-dtmf{
    display: none; 
    float: left;
    font-weight: normal;
    font-size: 14px;
    line-height: 19px;
    text-align: center;
    color: #394759;
    margin-top: -20px;
}


#btns button.m50 {
    width: calc(50% - 3px);
}

#btns button.green {
    background-color: #1fc8a9;
}
#btns button.red {
    background-color: #f04e4e;
}
#btns button.orange {
    background-color: #f5a623;
}
#btns button:active {
    transform: translateY(2px) scale(0.97);
}
#btns button.green:active {
    background-color: #1cb498;
    border-color: #207464;
}
#btns button.red:active {
    background-color: #d84646;
    border-color:#7a2828;
}
#btns button.orange:active {
    background-color: #e69f2a;
    border-color: #a06e1d;
}
#btns button.green:hover {
    background-color: #1cb498;
}
#btns button.red:hover {
    background-color: #d84646;
}
#btns button.orange:hover {
    background-color: #e69f2a;
}

#btns .perms-denied { display: none; color: #d84646; font-weight: 600; }
#btns .no-device { display: none; color: #d84646; font-weight: 600; }
#btns .error-undefined { display: none; color: #d84646; font-weight: 600; }
#btns .access-failed { display: none; color: #d84646; font-weight: 600; }
body.denied     #btns .perms-denied {
    display: block;
}
body.no-device  #btns .no-device {
    display: block;
}
body.error-undefined #btns .error-undefined {
    display: block;
}
body.access-failed #btns .access-failed {
    display: block;
}
/* body.waiting    #btns button[data-click="inviteContact"] {
    display: block;
} */
body.waiting #message-user-call  {
   display: block;
}

#listen-user {
    width: 316px;
    padding: 14px 20px 14px;
    border-radius: 20px;
    border: 0px;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    display: none;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    user-select: none;
    cursor: pointer;
    transition: all 0.1s;
    margin: 0 auto;
    outline: 0;
    height: 70px;
    background: linear-gradient(134.01deg, #40E0CF 9.19%, #36CDCF 100%);
}

.text-cancel {
    margin: 0 auto;
    font-weight: bold;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
    color: #FFFFFF;
}

#call-whisper {
    width: 175px;
    height: 70px;
    display: none;
    background: #F5F6F7;
    border: 1px solid #DDDDDD;
    box-sizing: border-box;
    box-shadow: 0px 2px 0px #dddddd;
    border-radius: 10px;
    cursor: pointer;
}

.text-btn-listen{
    width: 100%;
    height: 22px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    color: #567191;
}

#call-talk{
    width: 175px;
    height: 70px;
    background: #F5F6F7;
    border: 1px solid #DDDDDD;
    box-sizing: border-box;
    box-shadow: 0px 2px 0px #dddddd;
    border-radius: 10px;
    cursor: pointer;
    display: none;
}

#message-display-username{
    font-weight: bold;
    margin-top: 11px;
    display: none;
}

body.listen #message-user-listen  {
    display: block;
 }

 body.listen #listen-user {
    display: none !important;
 }

 #desktop-only {
     width: 80% !important;
     margin: auto !important;
 }

/* body.ringing    #btns button[data-click="cancelCall"],
body.call       #btns button[data-click="cancelCall"]{
    display: block;
} */

/* body.call  #btns button[data-click="cancelCall"]{
    display: block;
}  */
body #call-user {
    visibility: hidden;
}

body.call .user-call-url-off{
    display: block;
}

body.call #call-user{
    display: none !important;
}

/* body.ringing #call-user-end{
 display: block;
} */

body.ringing #call-user{
    display: none !important;
}

/* body.listen #message-user-hangup {
    display: none;
} */
body.call  #message-user-hangup {
    display: none;
}
body.ringing  #message-user-hangup {
    display: block;
}

/* body.listen #message-user-call {
    display: none;
}*/

body.ringing  #message-user-call{
    display: none;
}


body.listen  #content[data-whisper="0"][data-talk="0"] #btns button[data-click="talk"],
body.listen  #content[data-whisper="0"][data-talk="0"] #btns button[data-click="whisper"] {
    display: block;
}
body.listen  #content[data-whisper="1"] #btns button[data-click="mute"],
body.listen  #content[data-talk="1"]    #btns button[data-click="mute"] {
    display: block;
}

canvas { 
    width: 100%;
    height: 20px;
    position: absolute;
    left: 7px;
    bottom: 0px;
    display: none;
}
body.call   canvas,
body.listen canvas {
    display: block;
}

@media  (max-height: 700px)  {
    body.call #content {
        height: 100%;
    }
    #content {
        top: 50%;
        position: fixed;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1000;
        max-height: 100%;
    }
}

@media (max-width: 400px), (max-height: 400px) {
    body {
        background: white;
    }
    #content {
        width: 100%;
        height: 100%;
        position: fixed;
        z-index: 1000;
        transform: none;
        left: 0;
        border-radius: 0;
        top: 0;
    }
    body.call #content {
        height: 100%;
    }
}


#btn-autoplay {
    border-radius: 10px;
    cursor: pointer;
    width: calc(100% - 14%);
    height: 35px;
    margin: 20px auto;
    border: 1px solid #DDD;
    box-sizing: border-box;
    background: #fff;
    transition: all ease-in 0.2s;
    color: #aaa;
}
#btn-autoplay:hover { background-color: #f6f6f6; transition: all ease-in 0.2s; }
#btn-autoplay p { margin: 0 auto; font-size: 14px; font-weight: 600; line-height: 22px; width: 100%; height: 22px; text-align: center;}

#btn-autoplay.on { background: linear-gradient(134.01deg, #40E0CF 9.19%, #36CDCF 100%); color: white; }
#btn-autoplay.on:hover { opacity: 0.8; }
#btn-autoplay .enabled { display: none; }
#btn-autoplay.on .enabled { display: block; }
#btn-autoplay.on .disabled { display: none; }

body[data-dashboard="true"].listen #btn-autoplay2 {display: flex !important; }
#btn-autoplay2 { width: calc(100% - 14%); height: 35px; margin: 20px auto; display: none; justify-content: space-between; align-items: center; }
#btn-autoplay2 span { color: #394759; font-weight: 600; }
#btn-autoplay2 .slider { width: 60px; height: 30px; position: relative; border-radius: 34px; transition: all ease-in 0.2s; border: 1px solid #ddd; cursor: pointer; }
#btn-autoplay2 .slider:hover { background-color: #f6f6f6; }
#btn-autoplay2 .slider::before { position: absolute; border-radius: 50%; content: ""; height: 22px; width: 22px; left: 3px; bottom: 3px; top: 3px; background-color: #394759; background-image: url('img/pause.svg'); background-position: center center; background-repeat: no-repeat; background-size: 50%; transition: all ease-in 0.3s; } 
#btn-autoplay2.on .slider::before { left: calc(100% - 24px); background-color: #20c05f; background-image: url('img/play.svg'); } 

#round-buttons { display: none; margin: 10px auto; justify-content: center;  }
body[data-dashboard="true"].listen #round-buttons { display: flex; }
body[data-dashboard="true"].listen #round-buttons > div {  width: 45px; height: 45px; display: inline-block; position: relative; background-color: #2081E2; border-radius:  50%; margin: 10px; cursor: pointer; transition: all ease-in 0.2s; }
body[data-dashboard="true"].listen #round-buttons > div > img { position: absolute; width: 45%; height: 45%; top: 50%; left: 50%; transform: translate(-50%, -50%);}
body[data-dashboard="true"].listen #round-buttons > div:hover { opacity: 0.8;}
#round-buttons #self-mute .unmute { opacity: 0; }
#round-buttons #self-mute.off .unmute { opacity: 1; }
#round-buttons #self-mute.off .mute { opacity: 0; }
#round-buttons #self-mute.off { background-color: #d84646;}
body .dashboard { display: none; } 
#round-buttons #next-listening > img { height: 35%; width: 35%; }

body[data-dashboard="true"] .dashboard { display: block; }
body[data-dashboard="true"] .dashboard-off, body[data-dashboard="true"] #call-canvas { display: none !important; }
body[data-dashboard="true"] #message-display-username { font-size: 22px; color: #2081E2; }
body[data-dashboard="true"] #dual-listen { margin-top: 12px; font-weight: 600; font-size: 15px; color: #999; }
body[data-dashboard="true"] .text-btn-listen { margin: 0 auto; font-size: 14px; color: #394759; }
body[data-dashboard="true"] #btn-end-listen, body[data-dashboard="true"] #listen-user { visibility: hidden; height: 0;padding: 0; transition: none; }
body[data-dashboard="true"] #btns { bottom: 15%; }
body[data-dashboard="true"] #flex-btns { justify-content: space-between; padding: 0 7%; }
body[data-dashboard="true"] #flex-btns > button { transition: all ease-in 0.2s; width: calc(50% - 7px) !important; height: 35px !important; box-shadow: none; background: #fff;  border: 1px solid #ddd; border-radius: 10px; cursor: pointer; }
body[data-dashboard="true"] #flex-btns > button:hover { background-color: #f6f6f6; transition: all ease-in 0.2s; }

#call-leave { display: none; }
body[data-dashboard="true"].listen #content[data-whisper="1"] #call-leave, body[data-dashboard="true"].listen #content[data-talk="1"] #call-leave { display: block; }
#close-round { position: absolute; right: 20px; top: 20px; border-radius: 50%; border: 1px solid #ddd; width: 28px; height: 28px;  background: #fff; cursor: pointer; transition: all ease-in 0.2s;}
#close-round:hover { background-color: #f6f6f6; transition: all ease-in 0.2s; }

#close-round:hover {
    opacity: 1;
}
#close-round:before, #close-round:after {
    position: absolute;
    left: 50%;
    top: 50%;
    content: ' ';
    height: 18px;
    width: 2px;
    background-color: #888;
}
#close-round:before {
    transform: translate(-50%, -50%) rotate(45deg);
}
#close-round:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
  
