#defaultAvatarMulti {
    display: none;
}

#multiplayerName {
    display: block;
    padding: 5px;
    width: 100%;
}

#videosContainer {
    position: absolute;
    top: 90px;
    left: 0;
    width: 170px;
    z-index: 1;
    max-height: calc(100vh - 120px);
    overflow: auto;
    direction: rtl;
}

#videosContainer .peerVideo {
    width: 150px;
    height: 100px;
    display: inline-block;
    direction: ltr;
    position: relative;
}

#videosContainer .peerVideo video {
    width: 100%;
    height: 100%;
}
#videosContainer .peerVideo .username {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 12px;
    text-align: center;
    background: rgba(255,255,255,0.6);
    line-height: 12px;
}

#videosContainer .peerVideo .peerMicrophone, #videosContainer .peerVideo .peerWebcam {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    color: #333;
    text-shadow: 0px 0px 5px white;
    line-height: 20px;
    text-align: center;
    margin: 2px;
}

#videosContainer .peerVideo .peerMicrophone {
    right: 0;
}

#videosContainer .peerVideo .peerWebcam {
    right: 30px;
}

/*
#videosContainer .peerVideo.mineVideo .peerMicrophone, #videosContainer .peerVideo.mineVideo .peerWebcam {
    background: #333;
    color: white;
    text-shadow: none;
    font-size: 14px;

    border-radius: 4px;
    cursor: pointer;
}

#videosContainer .peerVideo.mineVideo .peerMicrophone:hover, #videosContainer .peerVideo.mineVideo .peerWebcam:hover {
    background: #444;
    color: #ddd;
}
*/


#multiplayerButtons {
    opacity: 0;
    position: fixed;
    bottom: 22px;
    height: 40px;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.4s;

    display: none;
}
.multiSeparator {
    display: inline-flex;
    vertical-align: middle;
    height: 20px;
    margin: 5px 20px;
    width: 1px;
    background: white;
}

#multiplayerButtons .btn, #multiplayerButtons .btnIcon {
    border-radius: 20px;
    background: none;
    border: 1px solid var(--tertiary-color);
    text-transform: uppercase;
    font-size: 12px;
}
#connectingVideoAudioCall {
    display: none;
    cursor: progress;
}

#multiplayerConnectedPanel, #endVideoAudioCall, #multiplayerCallPanel, #eymotesPanel {
    display: none;
    vertical-align: middle;
}
#multiplayerConnectedPanel .btnIcon {
    width: 40px;
    height: 40px;
    padding: 10px;

    display: inline-flex;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
}

#showEymotes {
    transition: padding 0.5s;
}
#showEymotes.disabled {
    padding: 5px;
}
#multiplayerConnectedPanel .btnIcon i {
    font-size: 15px;
}


#multiplayerCallPanel[style*='display: block'] {
    display: inline-flex !important;
}

#multiplayerCallPanel > div {
    margin: 0 5px;
}

#eymotesPanel {
    position: absolute;
    bottom: 50px;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 10px;
    left: -45px;
    background: var(--tertiary-color);
    padding: 10px;
    border-radius: 20px;
}

#eymotesPanel[style*='display: block'] {
    display: grid !important;
}

#eymotesPanel .multiplayerEmote {
    width: 20px;
    height: 20px;
    display: flex;
    cursor: pointer;
}

@media only screen and (max-width: 850px) {
    #multiplayerButtons[style*='display: block'] {
        display: flex !important;
    }

    #multiplayerButtons {
        bottom: 60px;
        left: 0;
        right: 0;
        justify-content: center;
        transform: none;
    }
    .multiSeparator {
        margin: 5px 5px;
    }
}


#usersListBtn {
    display: none;
    position: fixed;
    top: 0;
    right: 50px;
    padding: 5px;
    cursor: pointer;
    transition: 1s all;
}
#usersListBtn img {
    width: 40px;
}

#usersListCounter {
    position: absolute;
    bottom: -1px;
    right: -7px;
    border-radius: 50%;
    background-color: var(--tertiary-color);
    color: black;
    line-height: 24px;
    width: 24px;
    text-align: center;
    font-weight: bold;
}


#userListsPanel {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -250px;
    margin: 0;
    transition: right 1s;
    text-align: right;
    overflow: hidden auto;
    background-color: rgba(10,10,10,0.8);
    width: 330px;
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color-light);
    right: -330px;
    padding: 10px 20px;
    line-height: 40px;
    z-index: 100;
}

#userListsPanel.menuOpen {
    right: 0;
}


#userListsPanel .title p {
    text-transform: uppercase;
    border-bottom: 1px solid var(--tertiary-color);
    color: var(--tertiary-color);
}

#userListsPanel ul {
    list-style: none;
    text-align: left;
    padding: 0 10px;
    font-weight: normal;
}
#userListsPanel li {
    position: relative;
}
#userListsPanel li.isGuide p {
    font-weight: bold;
}
li.menuItem.isGuide p:before {
    content: "* ";
}

#userListsPanel ul li:not(:last-child) {
    border-bottom: 1px dotted white;
}
#userListsPanel li p {
    margin: 0;
}

#userListsPanel li .micContainer {
    position: absolute;
    right: 0;
    top: 0;
    line-height: 30px;
    width: 30px;
    height: 30px;
    text-align: center;
    border-radius: 50%;
    padding: 0;
    margin: 5px;
}

#multiplayerNotification {
    position: fixed;
    top: 20px;
    left: 50%;
    margin-left: -150px;
    width: 300px;
    z-index: 1000;
    font-size: 13px;
}

.notification {
    background-color: rgba(243, 72, 98, 0.68);
    color: white;
    padding: 10px 30px 10px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    position: relative;
    animation: fadeInNotification 0.3s ease-out;
}

.notification .close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    color: white;
}

@keyframes fadeInNotification {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*
#multiplayerNotification {
    position: fixed;
    bottom: 20px;
    left: -100%;
    padding: 10px;
    background-color: rgba(243, 72, 98, 0.68);
    color: white;
    font-size: 13px;
}
#multiplayerNotification.notificationVisible {
    left: 0;
}

#closeMultiplayerNotification {
    display: inline-block;
    margin-left: 5px;
    cursor: pointer;
}
*/


#multiplayerChatWindow {
    position: fixed;
    bottom: 0;
    left: -25vw;
    top: 50%;
    width: 25vw;
    background-color: rgba(10, 10, 10, 0.8);
    border-radius: 0 20px 0 0;
    padding: 0px;
    transition: left 0.4s;
}
#multiplayerChatWindow.chatOpened {
    left: 0;
}

#multiplayerChatMessages {
    height: calc(100% - 74px);
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
#multiplayerChatClose {
    position: absolute;
    top: -30px;
    right: 20px;
    height: 30px;
    color: white;
    cursor: pointer;
    text-align: center;
}

.chat-message {
    max-width: 80%;
    padding: 5px 10px;
    border-radius: 8px;
    word-wrap: break-word;
}

.from-me {
    align-self: flex-start;
    background-color: #d1e7dd;
    color: #0f5132;
}

.from-other {
    align-self: flex-end;
    background-color: #cfe2ff;
    color: #084298;
}

#multiplayerChatInput {
    margin: 5px;
    display: flex;
    gap: 10px;
    height: 64px;
    align-items: center;
}

#chatMessageInput {
    flex: 1;
    resize: none;
    padding: 10px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
}

#chatWindow {
    position: relative;
}

#chatWindow.newMessage:after {
    content: "";
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: red;
    border-radius: 50%;
}


@media only screen and (orientation: portrait) {
    #videosContainer {
        top: 55px;
    }
    #multiplayerChatWindow {
        bottom: 110px;
        top: 165px;
        width: 100%;
        left: -100%;
    }
}