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

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

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

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

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

:root {
    --body-bg: radial-gradient(#393939, #000000);
    --border: 1px solid rgb(255 255 255 / 32%);
    --border-radius: 1rem;
    --msger-top: 50%;
    --msger-left: 50%;
    --msger-height: 680px;
    --msger-width: 420px;
    --msger-bubble-width: 55%;
    --msger-bg: radial-gradient(#393939, #000000);
    --wb-width: 800px;
    --wb-height: 600px;
    --wb-bg: radial-gradient(#393939, #000000);
    --left-msg-bg: #252d31;
    --right-msg-bg: #056162;
    --private-msg-bg: #6b1226;
    --box-shadow: 0px 8px 16px 0px rgb(0 0 0);
    --btns-hover-scale: scale(1.1);
    --settings-bg: radial-gradient(#393939, #000000);
    /* buttons bar horizontal */
    --btns-top: 50%;
    --btns-right: 0%;
    --btns-left: 10px;
    --btns-margin-left: 0px;
    --btns-width: 60px;
    --btns-flex-direction: column;
    /* buttons bar horizontal
    --btns-top: 95%;
    --btns-right: 25%;
    --btns-left: 50%;
    --btns-margin-left: -160px;
    --btns-width: 320px;
    --btns-flex-direction: row;
    */
    --vmi-wh: 15vw;
    /* https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit */
    --videoObjFit: cover;
}

* {
    outline: none;
    font-family: 'Comfortaa';
}

html,
body {
    top: 0 !important;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* background: var(--body-bg); */
    background: url('../images/background.jpg');
}

/*--------------------------------------------------------------
# Google Translate
--------------------------------------------------------------*/

.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

#google_translate_element select {
    background: #2c2c2c !important;
}

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

#loadingDiv {
    color: #fff;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.7);
}
#loadingDiv h1 {
    padding: 10px;
    font-size: 60px;
    font-family: 'Comfortaa';
    border-radius: 10px;
}
#loadingDiv img {
    margin-top: 5px;
    margin-bottom: 10px;
    border-radius: 10px;
}
#loadingDiv pre {
    padding: 10px;
    font-family: 'Comfortaa';
    border-radius: 10px;
}

/*--------------------------------------------------------------
# Init User
--------------------------------------------------------------*/

.init-user {
    display: block;
    padding: 5px;
}

.init-user select {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    background: #2c2c2c;
    color: white;
    border: var(--border);
    border-radius: 5px;
    cursor: pointer;
}

.init-user button {
    margin-top: 20px;
    margin-bottom: 10px;
    width: 50px;
    background-color: transparent;
}

.init-user button:hover {
    color: white;
    background-color: rgb(35, 35, 35);
    transform: scale(1);
}

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

#control {
    z-index: 3;
    position: absolute;
    display: flex;
    padding: 5px;

    top: var(--btns-top);
    right: var(--btns-right);
    left: var(--btns-left);
    margin-left: var(--btns-margin-left);
    width: var(--btns-width);
    flex-direction: var(--btns-flex-direction);

    justify-content: space-around;
    grid-gap: 0.4rem;

    -webkit-transform: translate(0%, -50%);
    -ms-transform: translate(0%, -50%);
    transform: translate(0%, -50%);

    /* border: var(--border); */
    border-radius: 10px;
}

#control button {
    font-size: 1.2rem;
    padding: 10px;
    transition: all 0.3s ease-in-out;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    border: var(--border);
    /* box-shadow: var(--box-shadow); */
}

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

#exitButton {
    color: red;
}

/*--------------------------------------------------------------
# Init Audio/Video buttons
--------------------------------------------------------------*/

#initAudioButton,
#initVideoButton,
#initAudioVideoButton {
    font-size: 1.2rem;
    padding: 10px;
    border: var(--border);
    border-radius: 5px;
}

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

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

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

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

#mySettingsHeader {
    cursor: move;
}

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

#mySettings select {
    width: auto;
    max-width: 310px;
    height: 40px;
    color: #fff;
    background-color: transparent;
    border: var(--border);
    border-radius: 5px;
    cursor: pointer;
}

#mySettingsCloseBtn {
    padding: 10px;
}

#mySettings button {
    border-radius: 5px;
}

#sessionTimeButton {
    cursor: default;
    position: absolute;
    right: 15px;
    bottom: 15px;
}

.form-check-input {
    cursor: pointer;
}

#soundsButton,
#lobbyButton {
    padding: 10px;
}

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

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

/* 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;
}

.tabcontent button i {
    padding: 10px;
    border: var(--border);
    border-radius: 5px;
}

.tabcontent button {
    margin-top: 5px;
    width: 100%;
    text-align: left;
}

.tabcontent button:hover {
    background-color: #121212;
    transform: scale(1);
}

#sessionTimeButton {
    width: auto;
    margin-top: 10px;
    text-align: right;
}

/* 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: var(--border);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    resize: both;
    overflow: hidden;
}

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

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

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

.chat-header-title button,
.chat-header-options button {
    border: none;
    transition: all 0.3s ease-in-out;
    background: rgb(0, 0, 0);
    color: #fff;
    border-radius: 5px;
    transition: background 0.23s;
}

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

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

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

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

.chat-msger::-webkit-scrollbar-thumb {
    background: black;
    /*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: #fff;
    width: var(--msger-bubble-width);
}

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

.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: #fff;
    width: var(--msger-bubble-width);
}

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

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

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

.msg-img {
    width: 50px;
    height: 50px;
    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 {
    display: inline;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.msg-text iframe {
    width: 100%;
}

.msg-a {
    color: #fff;
}
.msg-a:hover {
    color: grey;
    transition: all 0.3s ease-in-out;
}
#chat-msg-a {
    color: #fff;
}

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

.chat-msger-inputarea {
    display: flex;
    padding: 10px;
}

.chat-msger-input {
    flex: 1;
    padding: 10px;
    height: 43px;
    font-size: 14px;
    color: #fff;
    border: none;
    border: var(--border);
    border-top-left-radius: 10px;
    background: rgb(7 7 7);
    transition: height 1s;
    resize: none;
}

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

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

.chat-msger-input::-webkit-scrollbar-thumb {
    background: #404040;
}

/*--------------------------------------------------------------
# Chat room buttons area
--------------------------------------------------------------*/

.chat-msger-buttons {
    display: flex;
    padding: 10px;
}

#chatSendButton {
    position: absolute;
    right: 10px;
}

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

em-emoji-picker {
    z-index: 0;
    position: absolute;
    bottom: 110px;
    left: 10px;
}

/*--------------------------------------------------------------
# swal2
--------------------------------------------------------------*/

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

.swal2-input {
    border: var(--border) !important;
}

.swal2-popup {
    /* border: var(--border) !important; */
    border: 0.5px solid rgb(255 255 255 / 32%) !important;
}

.swal2-timer-progress-bar-container {
    background: #376df9;
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/

#about {
    cursor: default;
}

#about b {
    color: rgb(0, 180, 50);
}

#about img {
    cursor: pointer;
    border-radius: 10px;
}

#about a {
    color: #fff;
    text-decoration: none;
}

#about a:hover {
    color: grey;
    transition: all 0.3s ease-in-out;
}

#about button {
    border: none;
    width: 170px;
    height: 40px;
    font-size: 1.2rem;
    background: linear-gradient(100deg, #376df9 0, #4b4547 75%, #222222 100%);
    box-shadow: 0 0 6px 0 rgb(251 255 0 / 82%);
    color: #ffffff;
    transition: background 0.23s;
    cursor: pointer;
}

#about button:hover {
    font-weight: bold;
}

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

select {
    height: 40px;
    line-height: 40px;
}

.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%;
}

.fadein {
    -webkit-animation: fadeIn ease-in 1;
    -moz-animation: fadeIn ease-in 1;
    animation: fadeIn ease-in 1;
    -webkit-animation-fill-mode: forwards;
    -moz-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
    -webkit-animation-duration: 1s;
    -moz-animation-duration: 1s;
    animation-duration: 1s;
}

p,
button {
    background: transparent;
    color: #fff;
    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(--body-bg);
    border: var(--border);
    box-shadow: var(--box-shadow);
    border-radius: 10px;
    overflow: hidden;
}

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

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

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

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

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

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

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

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

#inviteParticipants {
    width: 100%;
    padding: 10px;
    margin: 10px auto 0px auto;
    background-color: #056162;
    border-radius: 10px;
}
#inviteParticipants:hover {
    background-color: #191919;
    color: #fff;
    transform: scale(1);
}

#searchParticipants {
    margin-top: 15px;
    width: 100%;
    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(--body-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: 20px;
    margin: auto;
    min-width: 320px;
    background: var(--body-bg);
    border: var(--border);
    border-radius: var(--border-radius);
    color: #fff;
    overflow: hidden;
}

#sendAbortBtn,
#receiveHideBtn {
    padding: 5px;
    border-radius: 5px;
    color: #fff;
    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: 4;
    position: absolute;
    margin: auto;
    padding: 10px;
    width: var(--wb-width);
    height: var(--wb-height);
    background: var(--wb-bg);
    border: var(--border);
    box-shadow: var(--box-shadow);
    border-radius: 10px;
    overflow: hidden;
}

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

.whiteboard-header button {
    padding: 10px;
    margin: 2px;
    border-radius: 5px;
    border: var(--border);
}

.whiteboardColorPicker {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 0;
    width: 20px;
    height: 15px;
    margin: 2px;
    border-radius: 20px;
    border: solid 0.5px #afadad38;
}
.whiteboardColorPicker:hover {
    transform: var(--btns-hover-scale);
    transition: all 0.3s ease-in-out;
    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;
}

/*--------------------------------------------------------------
# Video exit, pin/Unpin btn
--------------------------------------------------------------*/

#__pinUnpin,
#__videoExit {
    font-size: 1.5rem;
}

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

.speechbar {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 10px;
    width: 10px;
    display: flex;
    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: 1s;
}

/*--------------------------------------------------------------
# Pulse class effect
--------------------------------------------------------------*/

.pulsate {
    animation: pulsate 3s ease-out;
    animation-iteration-count: infinite;
    -webkit-animation: pulsate 3s ease-out;
    -webkit-animation-iteration-count: infinite;
    opacity: 0.5;
}

@-webkit-keyframes pulsate {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

@keyframes pulsate {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

@-webkit-keyframes pulsate {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

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