@import url('https://fonts.googleapis.com/css?family=Comfortaa:wght@500&display=swap');

/*--------------------------------------------------------------
# Keyframes
--------------------------------------------------------------*/

@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

:root {
    --body-bg: #ececec;
    --msger-top: 50%;
    --msger-left: 50%;
    --msger-height: 90%;
    --msger-width: 420px;
    --msger-bubble-width: 55%;
    --msger-bg: #fff;
    --msger-bg-btn: #484d75;
    --settings-bg: #484d75;
    --lobby-bg: #484d75;
    --waiting-bg: #484d75;
    --wb-width: 800px;
    --wb-height: 600px;
    --wb-bg: #484d75;
    --left-msg-bg: #d9d9d9;
    --right-msg-bg: #48b0f7;
    --private-msg-bg: #484d75;
    --box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    --btns-hover-scale: scale(1);
    --btns-bottom: 0;
    --btns-right: 0;
    --btns-left: 50%;
    --btns-margin-left: -160px;
    --btns-flex-direction: row;
    --videoObjFit: cover;
    --height-hundred: 100%;
}

* {
    outline: none;
}

html,
body {
    font-family: Comfortaa;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--body-bg);
}

button {
    cursor: pointer;
}

/*--------------------------------------------------------------
# Loading...
--------------------------------------------------------------*/

#loadingDiv {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--waiting-bg);
    z-index: 6000;
}

#loadingDiv p {
    max-width: 400px; 
    width: 100%;
    height: 100px;
    text-align: center;
    font-size: 26px;
    color: #fff;
    font-weight: 300;
    margin: auto !important;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

@keyframes blink {50% { color: transparent }}
.loader__dot { animation: 1s blink infinite }
.loader__dot:nth-child(2) { animation-delay: 250ms }
.loader__dot:nth-child(3) { animation-delay: 500ms }

/*--------------------------------------------------------------
# Buttons bar
--------------------------------------------------------------*/

#control {
    z-index: 3;
    position: absolute;
    display: flex;
    padding: 5px;
    bottom: var(--btns-bottom);
    left: var(--btns-left);
    transform: translate(-50%, -10%);
    flex-direction: var(--btns-flex-direction);

}

#control button {
    background: #fff;
    border-color: #fff;
    color: #333;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    width: 36px;
    height: 35px;
    padding: 4px;
    margin-left: 8px;
    font-size: 15px;
    border-radius: 100%;
    -webkit-box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.activeControl {

    background: #484d75 !important;
    border-color: #484d75  !important;
    color: #fff !important;
}

#control p {
    font-size: small;
    cursor: default;
}

#exitButton {
    color: red;
}

/*--------------------------------------------------------------
# Room QR
--------------------------------------------------------------*/

#qrRoomContainer {
    display: flex;
    justify-content: center;
    align-items: center;
}

/*--------------------------------------------------------------
# My settings
--------------------------------------------------------------*/

#mySettings {
    z-index: 6;
    position: absolute;
    margin: auto;
    padding: 10px;
    min-width: 320px;
    min-height: 480px;
    background: var(--settings-bg);
    box-shadow: var(--box-shadow);
    border-radius: 5px;
    overflow: hidden;
}

#mySettingsHeader {
    cursor: move;
}

#mySettings i,
#mySettings p {
    display: inline-block;
    color: #fff;
    padding: 5px;
    background: transparent;
}

#meetingUrl {
    display: block !important;
}

#qrRoom {
    width: 120px !important;
}

#shareMeetingUrl {
    display: block !important;
    background:transparent; 
    color:rgb(8, 189, 89) !important;
    word-wrap: break-word;
    width: 270px; 
    overflow: hidden;
    text-overflow: ellipsis; 
}

#mySettings select {
    width: auto;
    max-width: 270px;
    height: 40px;
    color: #000;
    background-color: #fff;
    border-radius: 5px;
}

#mySettings button:hover {
    background-color: rgb(42 42 42 / 70%);
    border-radius: 5px;
}

#sessionTimeButton {
    cursor: default;
}

/*--------------------------------------------------------------
# Style the tab
--------------------------------------------------------------*/
.tab {
    overflow: hidden;
    background-color: #484d75;
}

/* Style the buttons inside the tab */
.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    color: white;
}

/* Change background color of buttons on hover */
.tab button:hover {
    background-color: transparent;
    color: grey;
}

/* Create an active/current tablink class */
.tab button.active {
    background-color: rgb(42 42 42 / 70%);
}

/* Style the tab content */
.tabcontent {
    display: none;
    padding: 6px 12px;
    border-top: none;
}

/* on open display devices tab */
#tabDevices {
    display: block;
}

/*--------------------------------------------------------------
# Chat Room
--------------------------------------------------------------*/

.chat-room {
    z-index: 5;
    display: none;
    position: fixed;
    height: var(--msger-height);
    width: var(--msger-width);
    min-height: var(--msger-height);
    min-width: var(--msger-width);
    background: var(--msger-bg);
    border-radius: 5px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.msger {
    display: flex;
    flex-flow: column wrap;
    justify-content: space-between;
    top: var(--msger-top);
    left: var(--msger-left);
    height: var(--height-hundred);
    width: var(--msger-width);
    background: var(--msger-bg);
}

/*--------------------------------------------------------------
# Chat room header
--------------------------------------------------------------*/

.chat-header {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #f1f2f5;
    color: #4d5259;
    cursor: move;
}

.chat-header-options button {
    border: none;
    font-size: 1.2rem;
    transition: all 0.3s ease-in-out;
    background: #f1f2f5;
    color: #4d5259;
    border-radius: 5px;
}

/*--------------------------------------------------------------
# Chat room output area
--------------------------------------------------------------*/

.chat-msger {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: var(--msger-bg);
}

.chat-msger::-webkit-scrollbar {
    width: 5px;
}

.chat-msger::-webkit-scrollbar-track {
    background: transparent;
}

.chat-msger::-webkit-scrollbar-thumb {
    background: #f1f2f5;
    /*aqua;*/
}

.msg {
    display: flex;
    align-items: flex-end;
    margin-bottom: 10px;
}

.msg:last-of-type {
    margin: 0;
}

/*--------------------------------------------------------------
# Chat room left side
--------------------------------------------------------------*/

.left-msg .msg-bubble {
    background: var(--left-msg-bg);
    border-bottom-left-radius: 0;
    color: #4d5259;
}

.left-msg .msg-bubble-private {
    background: var(--private-msg-bg);
    border-bottom-left-radius: 0;
    color: #f5f6f7;
}

.left-msg .msg-img {
    margin: 0px 5px 5px 0px;
}

/*--------------------------------------------------------------
# Chat room right side
--------------------------------------------------------------*/

.right-msg {
    flex-direction: row-reverse;
}

.right-msg .msg-bubble {
    background: var(--right-msg-bg);
    border-bottom-right-radius: 0;
    color: #4d5259;
    width: var(--msger-bubble-width);
}

.right-msg .msg-bubble-private {
    background: var(--private-msg-bg);
    border-bottom-right-radius: 0;
    color: #f5f6f7;
    width: var(--msger-bubble-width);
}

.right-msg .msg-img {
    margin: 0 0 0 10px;
}

/*--------------------------------------------------------------
# Chat room common
--------------------------------------------------------------*/

.msg-img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.msg-bubble-private,
.msg-bubble {
    max-width: 200px;
    padding: 15px;
    border-radius: 15px;
}

.msg-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.msg-info-name {
    margin-right: 10px;
    font-weight: bold;
}

.msg-info-time {
    font-size: 0.85em;
}

.msg-text {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    font-size: 0.9em;
}

#chat-msg-a {
    color: #4d5259;
}

/*--------------------------------------------------------------
# Chat private button reply
--------------------------------------------------------------*/

.msger-reply-btn {
    font-size: 0.9rem;
    padding: 5px;
    background: var(--msger-bg-btn);
    border-radius: 5px;
    border: none;
}

/*--------------------------------------------------------------
# Chat room input area
--------------------------------------------------------------*/

.chat-msger-inputarea {
    display: flex;
    padding: 3px;
    background: #f1f2f5;
}

.chat-msger-input {
    flex: 1;
    padding: 10px;
    border: none;
    border-top-left-radius: 10px;
    background: #f1f2f5;
    color: #4d5259;
}

.chat-msger-inputarea button {
    color: #4d5259 !important;
    width: 32px;
}

/*--------------------------------------------------------------
# Chat room emoji picker
--------------------------------------------------------------*/

emoji-picker {
    z-index: 0;
    position: absolute;
    bottom: 70px;
    width: 100%;
    height: 50%;
    --background: #f1f2f5;
    --num-columns: 8;
    --emoji-size: 1.5rem;
}


/*--------------------------------------------------------------
# swal2
--------------------------------------------------------------*/
.swal2-container {
    overflow-y: hidden !important;
}

.swal2-validation-message,
.swal2-html-container,
.swal2-title,
.swal2-content,
.swal2-input {
    text-align: center;
    color: white !important;
    background-color: transparent !important;
}

.swal2-select {
    width: 18rem !important;
    padding-left: 30px !important;
    margin-left: 0 !important;
    font-size: 1em !important;
    margin-right: 0 !important;
}

.swal2-title {
    font-size: 1rem !important;
}

.swal-wide {
    min-width: 42rem !important;
}

.swal2-input-wide {
    width: 15rem !important;
    /* margin-left: 1em !important; */
    font-size: 0.9em !important;
    border-color: rgb(133, 133, 133) !important;
}

.swal2-checkbox {
    background-color: transparent !important;
    margin: 10px 0px !important;
    display: flex;
}

.swal2-label a {
    color: white !important;
}

.swal2-confirm {
    border: 1px solid !important;
    border-radius: 5px !important;
    color: white !important;
    border-color: white !important;
}

.swal2-action {
    margin: 0.2em auto 0 !important;
}

.swal2-popup {
    background: linear-gradient(to left, #484d75, #484d75) !important;
}

#termsCon {
    font-size: .8em;
}

#videoContainer {
    width: 100%;
    padding-top: 36.25%;
    height: 0px;
    position: relative;
}

#videoContainer canvas {
    position: absolute;
    top: 0;
    left: 0;
}

#videoPreview {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

#initVideoButton {
    border: 1px solid !important;
    border-radius: 5px;
    height: 25px;
    width: 30px;
}

#initAudioButton {
    border: 1px solid !important;
    border-radius: 5px;
    height: 25px;
    width: 30px;
}

#initBackground {
    border: 1px solid !important;
    border-radius: 5px;
    height: 25px;
    width: 30px;
}

.swal2-actions {
    margin: 0 auto 0 !important;
}

.swal2-popup {
    font-size: 0.9rem !important;
}

/* 
.grid-container {
    display: grid;
    gap: 1px;
    grid-template-columns: 360px 360px;
}
  
.grid-item {
    position: relative;
    width: 380px;
    padding: 1px;
} */

.grid-item {
    position: relative;
}
  
.grid-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* grid-gap: 1rem; */
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-x: scroll; 
}

.grid-container::-webkit-scrollbar {
    display: none;
}

@media (min-width: 600px) {
    #videoContainer {
        padding-top: 56.25%;
    }
}

/* Screen larger than 600px? 2 column */
@media (min-width: 600px) {
    .grid-container { grid-template-columns: repeat(2, 1fr); }
    .grid-item {
        max-width: 100%;
        position: relative;
    }
}

/* Screen larger than 900px? 3 columns */
@media (min-width: 900px) {
    .grid-container { grid-template-columns: repeat(2, 1fr); }
    .grid-item {
        max-width: 350px;
        position: relative;
    }
}

.credentials {
    display: flex !important;
    width: 80% !important;
    font-size: inherit !important;
}

.inlineicons {
    width: 15px;
    height: 15px;
    position: absolute;
    left: 1rem;
    top: 50%;
    color: rgb(118, 118, 118);
}

@media (max-width: 600px) {
    .inlineicons {
        left: 10rem;
    }
}

/*--------------------------------------------------------------
# Common
--------------------------------------------------------------*/

.hidden {
    display: none;
}

.show {
    display: block;
}

.center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.center-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

p,
button {
    background: transparent;
    color: white;
    border: none;
}

button:hover {
    color: grey;
    transform: var(--btns-hover-scale);
}

/*--------------------------------------------------------------
# Room Participants
--------------------------------------------------------------*/

#participants {
    z-index: 7;
    position: absolute;
    margin: auto;
    padding: 10px;
    min-width: 320px;
    background: var(--settings-bg);
    border-radius: 10px;
    overflow: hidden;
}

.participants-header {
    display: flex;
    justify-content: space-between;
    background: rgb(0, 0, 0);
    border-radius: 10px;
    padding: 10px;
    color: white;
    cursor: move;
}

#roomParticipants {
    max-height: 480px;
    overflow: auto;
}

#roomParticipants table {
    border-collapse: collapse;
    width: 100%;
}

#roomParticipants td,
#roomParticipants th {
    /* border: 1px solid #444444; */
    color: white;
    text-align: left;
    padding: 8px;
}

#roomParticipants tr {
    border-bottom: 1px solid #444444;
}
/* #roomParticipants tr:nth-child(even) {
    background-color: #0c0b0b;
} */

#searchParticipants {
    margin-top: 15px;
    padding: 15px;
    font-size: 1rem;
    background-color: transparent;
    color: #ffffff;
    border: grey 1px solid;
    border-radius: 10px;
}

/*--------------------------------------------------------------
# Lobby users list
--------------------------------------------------------------*/

#lobby {
    z-index: 7;
    position: absolute;
    margin: auto;
    padding: 10px;
    min-width: 320px;
    background: var(--lobby-bg);
    border: var(--border);
    box-shadow: var(--box-shadow);
    border-radius: 10px;
    overflow: hidden;
}

.lobby-header {
    display: flex;
    justify-content: space-between;
    background: rgb(0, 0, 0);
    border-radius: 10px;
    padding: 10px;
    color: #fff;
    cursor: move;
}

#lobbyUsers {
    max-height: 680px;
    overflow: auto;
}

#lobbyUsers table {
    border-collapse: collapse;
    width: 100%;
}

#lobbyUsers td,
#lobbyUsers th {
    color: #fff;
    text-align: left;
    padding: 8px;
}

#lobbyUsers tr {
    border-bottom: 1px solid #444444;
}

#lobbyUsers::-webkit-scrollbar {
    width: 5px;
}

#lobbyUsers::-webkit-scrollbar-track {
    background: transparent;
}

#lobbyUsers::-webkit-scrollbar-thumb {
    background: #404040;
}

/*--------------------------------------------------------------
# Send File
--------------------------------------------------------------*/

#sendFileDiv,
#receiveFileDiv {
    z-index: 8;
    display: none;
    padding: 10px;
    margin: auto;
    min-width: 320px;
    background: var(--settings-bg);
    border-radius: 5px;
    color: white;
    overflow: hidden;
}

#sendAbortBtn,	
#receiveHideBtn {	
    padding: 5px;	
    border-radius: 5px;	
    color: white;	
    background: transparent;	
}	
#sendAbortBtn:hover,	
#receiveHideBtn:hover {	
    color: rgb(255, 0, 0);	
    transform: var(--btns-hover-scale);	
    transition: all 0.3s ease-in-out;	
}

progress {
    width: 0;
    min-width: 100%;
}

#imgShareSend:hover,
#imgShareReceive:hover {
    cursor: move;
}

/*--------------------------------------------------------------
# Whiteboard
--------------------------------------------------------------*/

#whiteboard {
    z-index: 3;
    position: absolute;
    margin: auto;
    padding: 10px;
    width: var(--wb-width);
    height: var(--wb-height);
    background: var(--wb-bg);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.whiteboard-header {
    display: flex;
    justify-content: space-between;
    background: rgb(0, 0, 0);
    border-radius: 10px;
    padding: 10px;
    color: white;
    cursor: move;
}

.whiteboardColorPicker {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 0;
    border: none;
    width: 20px;
    height: 15px;
    margin-left: 10px;
    margin-right: 15px;
    border-radius: 50px;
    border: solid 0.5px #afadad38;
}
.whiteboardColorPicker:hover {
    transform: var(--btns-hover-scale);
    cursor: pointer;
}
.whiteboardColorPicker::-webkit-color-swatch {
    border: none;
    border-radius: 20px;
    padding: 0;
}
.whiteboardColorPicker::-webkit-color-swatch-wrapper {
    border: none;
    border-radius: 20px;
    padding: 0;
}
.whiteboardColorPicker::-moz-color-swatch {
    border: none;
    border-radius: 20px;
    padding: 0;
}
.whiteboardColorPicker::-moz-color-swatch-wrapper {
    border: none;
    border-radius: 20px;
    padding: 0;
}
.whiteboardColorPicker::color-swatch {
    border: none;
    border-radius: 20px;
    padding: 0;
}
.whiteboardColorPicker::color-swatch-wrapper {
    border: none;
    border-radius: 20px;
    padding: 0;
}

/*--------------------------------------------------------------
# Speech bar
--------------------------------------------------------------*/

.speechbar {
    position: absolute !important;
    top: 0;
    bottom: 0;
    right: 10px;
    width: 10px;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.bar {
    width: 6px;
    border-radius: 6px;
    background: rgba(#19bb5c, 0.65);
    transition-property: height background-color;
    transition-duration: 0.25s;
}

.translateMessage {
    position: absolute;
    opacity: 0.6;
    color: #fff;
    background-color: #000000;
    margin: 0 auto;
    left: 0;
    right: 0;
    bottom: 5px;
    text-align: center;
    z-index: 99999;
}

.outerBackground {
    overflow: hidden;
    position: relative;
}

.innerBackground {
    position: absolute;
    height: 1000px;
    width: 1000px;
    right: 0px;
    top: 0px;
}

.modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
    z-index: 999999;
}

.modal-content {
    color:rgb(0, 0, 0);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--settings-bg);
    padding: 1rem 1.5rem;
    width: 40rem;
    border-radius: 0.5rem;
}

.close-button {
    float: right;
    width: 1.5rem;
    line-height: 1.5rem;
    text-align: center;
    cursor: pointer;
    border-radius: 0.25rem;
    background-color: lightgray;
}
.close-button:hover {
    background-color: darkgray;
}
.show-modal {
    opacity: 1;
    visibility: visible;
    transform: scale(1.0);
    transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
}

.control-virtual-images {
    width: 100%;
    height: 400px;
    overflow-y: scroll;
    overflow-x: hidden;
}

.control-virtual-images img {
    cursor: pointer;
}

.handleBackgroundButtons {
    padding: 10px;
}

/*
z-index:
    - 1 videoMediaContainer
    - 2 control buttons
    - 3 whiteboard
    - 5 chat
    - 6 settings
    - 7 participants/lobby
    - 8 send receive progress
*/
