*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html{
    font-family: Arial, sans-serif;
    font-size: 16px;

}

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: #aaa;
}
::-webkit-scrollbar-track {
    background: #ccc;
}

input[type="checkbox"]{
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    border: 1px solid #666666;
    border-radius: 5px;
    outline: none;
    accent-color: #FF8CA1;
}

.align-middle{
    vertical-align: middle;
}




#status{
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 7.5px 15px;
    color: #ffffff;
    z-index: 999;
}
#status.active{
    display: block;
}
#status[status="info"]{
    background-color: #666666;
}
#status[status="success"]{
    background-color: #FF8CA1;
}

#status[status="error"]{
    background-color: #ff0000;
}

.screen{
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: #ffffff;
    z-index: 998;
}
.screen.active{
    display: block;
}
.screen[data-screen="start"].active,
.screen[data-screen="waiting"].active
{
    display: flex;
    justify-content: center;
    align-items: center;
}

#startBtn{
    padding: 7.5px 15px;
    border-radius: 5px;
    cursor: pointer;
}

#localVideo{
    display: none;
    max-width: 50%;
    max-height: 50%;
    width: 120px;
    height: auto;
    position: absolute;
    right: 5px;
    top: 5px;
    border-radius: 5px;
    z-index: 991;
}
#localVideo[data-mode="user"]{
    transform: scaleX(-1);
    -webkit-transform: scaleX(-1); /* Safari */
}

#remoteVideo{
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: 600px;
    height: auto;
    position: absolute;
    left: 0px;
    bottom: 45px;
    z-index: 1;
}
#localPreviewVideo{
    max-width: 50%;
    max-height: 50%;
    width: 120px;
    height: auto;
    position: absolute;
    right: 5px;
    top: 5px;
    border-radius: 5px;
    z-index: 991;
}

.screen[data-screen="calling"]{
    color: #333;
}
#calling-menu-btn{
    position: relative;
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-top: 5px;
    margin-left: 5px;
    vertical-align: middle;
    text-align: center;
    background-color: #ccc;
    border: 1px solid #999999;
    color: #333;
    border-radius: 10px;
    outline: none;
    -webkit-appearance: none;
    z-index: 995;
}
#calling-menu{
    position: absolute;
    display: block;
    bottom: 50px;
    top: 40px;
    left: 0;
    width: 300px;
    max-width: 80%;
    padding: 5px;
    z-index: 993;
    background-color: rgba(255, 255, 255, 0.80);
    border-right: 1px solid #999;
    transform: translateX(-105%);
    transition: transform 0.35s;
    border-top-right-radius: 5px;
}
#calling-menu.active{
    transform: translateX(0);
}
#calling-menu .calling-menu-item{
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
}
#calling-menu .calling-menu-item:first-of-type{
    padding-top: 5px;
}
#calling-menu .calling-menu-item:last-of-type{
    border-bottom: none;
}

#calling-chat{
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 990;
}
#calling-chat.active{
    display: block;
}
#calling-chat-content{
    padding: 0 3px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    margin-bottom: 7.5px;
}
#calling-chat-content .item{
    margin-top: 10px;
}
#calling-chat-content .item.remote{
    text-align: left;
}
#calling-chat-content .item.local{
    text-align: right;
}
#calling-chat-content .item-content{
    display: inline-block;
    border-radius: 10px;
    padding: 3px 5px;
    max-width: 70%;
    text-align: left;
}
#calling-chat-content .item.remote .item-content{
    background-color: rgba(0, 0, 0, 0.35);
    color: #fff;
}
#calling-chat-content .item.local .item-content{
    background-color: rgba(255, 255, 255, 0.35);
    color: #000;
}
#calling-chat-content .item-time{
    font-size: 60%;
}
#calling-chat-content .local .item-time{
    color: #333;
}
#calling-chat-content .remote .item-time{
    color: #666;
}

#calling-chat-new{
    width: 100%;
    position: relative;
    height: fit-content;
    padding-bottom: 1px;
}
#calling-chat-input{
    display: block;
    width: calc(100% - 50px);
    height: auto;
    resize: none;
    min-height: 40px;
    padding: 3px 7.5px;
    margin-left: 3px;
    border-radius: 2px;
    border: 1px solid #cccccc;
    outline: none;
    transition: min-height 0.3s;
}
#calling-chat-input:focus{
    min-height: 70px;
    border-color: #FF8CA1;
}
#calling-chat-btnSend{
    position: absolute;
    display: block;
    width: 40px;
    height: 40px;
    right: 3px;
    bottom: 1px;
    -webkit-appearance: none;
    border-radius: 2px;
    background-color: #FF8CA1;
    color: #333;
    vertical-align: middle;
    text-align: center;
    border: none;
    outline: none;
}