@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%);
    --msger-top: 50%;
    --msger-left: 50%;
    --msger-height: 99vh;
    /* --msger-width: 420px; */
    --msger-width: 350px;
    --header-bg: #3880ff;
    --header-color: black;
    --header-button-bg: transparent;
    --header-button-color: black;
    --msger-bg: radial-gradient(lightgray, #ffffff);
    --button-hover-color: orangered;
    --main-content-bg: lightsteelblue;
    --chat-msger-inputarea-bg: #3880ff;
    --chat-msger-button-color: black;
    --chat-msger-button-bg: white;
    --wb-width: 800px;
    --wb-height: 600px;
    /* --wb-width: 900px;
    --wb-height: 525px; */
    --wb-bg: white;
    --wb-color: black;
    --left-msg-bg: #00bda3;
    --left-msg-color: #000000;
    --right-msg-bg: #00bda3;
    --right-msg-color: #000000;
    --private-msg-bg: #ffa500;
    --private-msg-color: #000000;
    --box-shadow: 0px 8px 16px 0px rgb(0 0 0);
    --btns-hover-scale: scale(1.025);
    /* 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;
    */
    /* 
        https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit
    */
    --videoObjFit: cover;
    --camera-width: 0.75vw;
    --camera-margin: 0.5px;
    --camera-height: auto;
    --animate-duration: 0.75s !important;
    /* for all animations - original 1s in .animate__animated in animate.min.css */

    --align-content: 'space-evenly';
}

* {
    outline: none;
    font-family: 'Comfortaa';
    font-family: inherit;
    font-family: 'Source Sans Pro', sans-serif;
    font-family: 'Caveat', cursive;
    font-family: 'Catamaran', sans-serif;
    font-family: 'Roboto Mono', monospace;
    font-family: 'Roboto', sans-serif;
}

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

table {
    /* table-layout: fixed; */
    width: 98%;
}

th,
td {
    /* border-style: solid;
    border-width: 1px;
    border-color: #bcbcbc; */
    word-wrap: break-word;
}

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

.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: var(--button-hover-color);
    transform: var(--btns-hover-scale);
}

/*--------------------------------------------------------------
# Login ...
--------------------------------------------------------------*/

#loginDiv {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 50;
    background: white;
    overflow: auto;
    display: block;
    transition: all 0.3s ease-in-out;
}
#sectionJoinRoom,
#sectionCreateRoom {
    transition: all 0.3s ease-in-out;
}

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

#loadingDiv {
    color: #fff;
    padding: 30px;
    border-radius: 10px;
    background: var(--body-bg);
}
#loadingDiv h1 {
    font-size: 60px;
    font-family: 'Comfortaa';
}
#loadingDiv pre {
    padding: 5px;
    font-family: 'Comfortaa';
}

/*--------------------------------------------------------------
# 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;
    justify-content: flex-start;
    grid-gap: 0.4rem;

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

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

    /* background: var(--body-bg); */
    overflow: auto hidden;
    min-height: var(--btns-min-height);
    height: var(--btns-height);
    min-height: auto;
    height: fit-content;
    width: fit-content;
    max-width: 95vw;

    transition: all 0.3s ease-in-out;
}

#control button {
    border: none;
    font-size: 1.8rem;
    padding: 4px;
    transition: all 0.3s ease-in-out;
    background: var(--header-bg);
    /* opacity: 0.75; */
    /* opacity: 0.95; */
    opacity: 1;
    border-radius: 10px;
    width: 4rem;
    height: 4rem;
    min-width: 4rem;
    min-height: 4rem;
}

#control button span {
    font-size: 0.75rem;
    transform: translateX(-0.5rem) translateY(0.75rem) rotate(-90deg);
    /* for 90% rotated text */
    /* position: absolute; */
    position: relative;
    transform: translateX(-75%) translateY(200%) rotate(0deg);
    bottom: 20px;
    /* for text below the icon */
}

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

#exitButton {
    color: red;
}

/*--------------------------------------------------------------
# Context Menu
--------------------------------------------------------------*/

.context-menu {
    position: absolute;
    display: none;
    width: max-content;
    z-index: 2;
    border-radius: 10px;
    background-color: rgb(0 0 0 / 75%);
    background-color: var(--bottom-toolbar-bg);
    opacity: 0.95;
    background: var(--header-bg);
    color: #fff;
}
.context-menu .reduceTransparency {
    width: max-content;
    height: max-content;
    background: white;
    background: var(--bottom-toolbar-bg);
    color: var(--btn-color);
    opacity: var(--btn-opc);
    border-radius: 10px;
    opacity: 0.95;
}

.context-menu ul,
.context-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
    background: white;
    background: inherit;
    border-radius: 5px;
}

.context-menu {
    border: solid 1px #ccc;
}
.context-menu li {
    border-bottom: solid 1px rgb(204 204 204 / 50%);
    font-size: 1.25rem;
    width: 100%;
    text-align: left;
    /* height: 2.75rem; */
    height: 3rem;
}
.context-menu li:last-child {
    border: none;
}

.context-menu li button,
.context-menu li a {
    display: block;
    padding: 8px 10px;
    text-decoration: none;
    color: blue;
    color: inherit;
    /* border-radius: 5px; */
    border-radius: 10px;
    height: 100%;
    position: inherit;
    line-height: 2rem;
}

.context-menu li button:hover,
.context-menu li a:hover {
    background-color: var(--wb-color);
    color: var(--body-bg);
}

/*--------------------------------------------------------------
# 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(--msger-bg);
    box-shadow: var(--box-shadow);
    border: var(--border);
    border-radius: 10px;
    overflow: hidden;
    width: 450px;
    height: 450px;
    min-height: 90vh;
    /* min-width: 450px; */
    max-width: 95vw;
    max-height: 90vh;
}

#mySettingsHeader {
    cursor: move;
    background: var(--header-bg);
    color: var(--header-color);
}
#mySettings main {
    background: var(--main-content-bg);
    color: var(--header-color);
    min-height: 100%;
    border-radius: inherit;
}

#mySettings i,
#mySettings p {
    display: inline-block;
    color: #fff;
    padding: 0.25rem;
    background: transparent;
    margin: 0.5rem;
    /* width: 40%; */
}

#mySettings select {
    width: auto;
    max-width: 270px;
    height: 40px;
    color: #fff;
    background-color: transparent;
    border-radius: 5px;
    /* width: 50%; */
    font-size: 1.1rem;
}

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

#mySettings main .tabcontent * {
    color: inherit;
}

#sessionTimeButton {
    cursor: default;
}

/*--------------------------------------------------------------
# Style the tab
--------------------------------------------------------------*/
.tab {
    overflow: hidden;
    background-color: var(--header-bg);
    color: var(--header-color);
    position: relative;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    cursor: move;
}

/* Style the buttons inside the tab */
.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 5px;
    transition: 0.3s;
    color: var(--header-color);
    font-size: 1.25rem;
    min-width: 4rem;
}

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

.tab button span {
    font-size: 0.75rem;
    color: white;
    font-weight: 500;
}

/* 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);
    background: var(--msger-bg);
    border: var(--border);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    /* max-height: 97vh; */
    max-height: 100vh;
    max-width: 99vw;
    border-radius: 0; /* for the right aligned inside sidebar */
    width: 100%; /* right sidebar fix for width */
}

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

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

.chat-header {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: var(--header-bg);
    color: var(--header-color);
    cursor: move;
    width: calc(var(--msger-width) - 0.5rem);
    width: 100%;
    height: 50px;
    margin: auto 0.25rem auto 0;
}

.chat-header-title {
    margin: auto;
    color: white;
}
.chat-header-options {
    margin: auto 10px auto 0;
    font-size: 1.3rem;
}

.chat-header-options button {
    border: none;
    font-size: 1.2rem;
    transition: all 0.3s ease-in-out;
    background: var(--header-button-bg);
    color: var(--header-button-color);
    border-radius: 5px;
    transition: background 0.23s;
    /* color: white; */
}

#chatSaveButton {
    color: red;
}
#chatCloseButton {
    color: white;
    display: none;
    /* for right aligned chat inside box, make it as display none */
}

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

.chat-msger {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: var(--main-content-bg);
    width: calc(var(--msger-width) - 0.5rem);
    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-top-left-radius: 0;
    color: var(--left-msg-color);
}

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

.left-msg .msg-img {
    margin: 0 0 0 10px;
    margin: 0px 10px auto 0px;
}
.left-msg .msg-bubble:before,
.left-msg .msg-bubble-private:before {
    content: '';
    position: absolute;
    top: 0;
    left: -29px;
    /* double size of the border-right thickness */
    /* margin-left: 0;
    width: 1px;
    height: 1px; */
    border-bottom: solid 15px transparent;
    border-left: solid 15px transparent;
    border-right: solid 15px var(--left-msg-bg);
    /* transform: rotate(-45deg);*/
}

.left-msg .msg-bubble-private:before {
    border-right: solid 15px var(--private-msg-bg);
}

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

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

.right-msg .msg-bubble {
    background: var(--right-msg-bg);
    border-top-right-radius: 0;
    color: var(--right-msg-color);
}

.right-msg .msg-bubble-private {
    background: var(--private-msg-bg);
    border-top-right-radius: 0;
    color: var(--private-msg-color);
}

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

.right-msg .msg-bubble:before,
.right-msg .msg-bubble-private:before {
    content: '';
    position: absolute;
    top: 0px;
    right: -29px;
    /* margin-left: -20px; */
    /* width: 1px; */
    /* height: 1px; */
    border-bottom: solid 15px transparent;
    border-left: solid 15px var(--left-msg-bg);
    border-right: solid 15px transparent;
    /* transform: rotate(-45deg); */
}
.right-msg .msg-bubble-private:before {
    border-left: solid 15px var(--private-msg-bg);
}

/*--------------------------------------------------------------
# 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;
    position: relative;
}

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

#chat-msg-a {
    color: #fff;
}

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

.chat-msger-inputarea {
    display: flex;
    padding: 10px;
    background: var(--chat-msger-inputarea-bg);
}

.chat-msger-input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: var(--chat-msger-button-bg);
    color: var(--chat-msger-button-color);
}

.chat-msger-inputarea button {
    width: 32px;
    color: var(--chat-msger-button-color);
}

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

emoji-picker {
    z-index: 0;
    position: absolute;
    bottom: 70px;
    width: 100%;
    height: 50%;
    --background: #16171b;
    --num-columns: 8;
    --emoji-size: 1.5rem;
    width: calc(var(--msger-width) - 0.5rem);
}

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

.swal2-container.swal2-bottom,
.swal2-container.swal2-center,
.swal2-container.swal2-top {
    background: rgba(var(--body-bg), 0.4);
}

.swal2-container > .swal2-title,
.swal2-container > .swal2-popup.swal2-modal {
    box-shadow: 0px 0px 5px 2px aliceblue;
}

.swal2-validation-message,
.swal2-title,
.swal2-content,
.swal2-input {
    text-align: center;
    color: #fff !important;
    background-color: transparent !important;
    background-color: rgba(var(--body-bg), 0.4) Im !important;
}
.swal2-html-container {
    text-align: center;
    color: #858585 !important;
    background-color: transparent !important;
    /* font-size: 1em; */
}
.swal2-file,
.swal2-input,
.swal2-textarea {
    /* background: 
		color: */
}

/* backdrop blurred */
/* can add any filters like drop-shadow or grayscale(1) etc */
body.swal2-shown > [aria-hidden='true'] {
    transition: 0.1s filter;
    /* filter: blur(10px); */
    /* filter: blur(1px); */
}

@media screen and (max-width: 576px) {
    .swal2-container {
        width: 100vw !important;
        padding-left: 0;
        padding-right: 0;
    }
    .swal2-popup {
        width: 95vw !important;
    }
}

/* Portrait */
/* for mobile the width is less than 576 in portait mode */
@media screen and (orientation: portrait) and (max-width: 480px) {
    /* Portrait styles here */
}
/* Landscape */
/* for mobile the height is less than 576 in landscape mode */
@media screen and (orientation: landscape) and (max-height: 480px) {
    /* Landscape styles here */
    #control {
        max-height: 100%;
        overflow: auto;
    }
}

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

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

.participants-container {
    z-index: 5;
    display: none;
    position: fixed;
    height: var(--msger-height);
    width: var(--msger-width);
    background: var(--msger-bg);
    border: var(--border);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    /* display: inline-block; */
    position: absolute;
    width: 100%;
}

#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; */
    display: flex;
    flex-flow: column wrap;
    justify-content: space-between;
    top: var(--msger-top);
    left: var(--msger-left);
    height: var(--msger-height);
    width: var(--msger-width);
    background: var(--msger-bg);
    z-index: 7;
    width: 100%;
}

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

    display: flex;
    justify-content: space-between;
    padding: 1px;
    background: var(--header-bg);
    color: var(--header-color);
    cursor: move;
    position: relative;
    height: 50px;
    width: var(--msger-width);
}
.participants-main {
    flex: 1;
    overflow-y: auto;
    padding: 1px;
    background: var(--main-content-bg);
    position: relative;
    width: calc(var(--msger-width) - 0.25rem);
}

.participants-header-title {
    margin: auto;
    color: white;
}
.participants-header-options {
    margin: auto 10px auto 0;
    font-size: 1.3rem;
}

.participants-main button {
    width: 32px;
    color: var(--chat-msger-button-color);
}
.participants-main button:hover {
    color: var(--button-hover-color);
    transform: var(--btns-hover-scale);
}

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

#roomParticipants table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.95rem;
}

#roomParticipants table thead {
    font-size: 0.75em;
}

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

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

#searchParticipants {
    margin-top: 15px;
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    background-color: transparent;
    color: #ffffff;
    border: grey 1px solid;
    border-radius: 10px;
    color: var(--chat-msger-button-color);
}

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

#sendFileDiv,
#receiveFileDiv {
    z-index: 8;
    display: none;
    padding: 10px;
    margin: auto;
    min-width: 320px;
    background: var(--body-bg);
    border-radius: 5px;
    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 main {
    position: relative;
    top: -0.25rem;
}
#whiteboard .canvas-container {
    overflow: auto;
}
#whiteboard .lower-canvas,
#whiteboard .upper-canvas {
    /* width: 1280px !important;
    height: 720px !important; */
}

#whiteboardZoomOut,
#whiteboardZoomLbl,
#whiteboardZoomIn {
    padding: 0.5rem;
    color: var(--wb-bg);
    background: transparent;
}

#whateboardZoomLbl {
    font-family: ui-monospace;
}

.whiteboard-header {
    display: flex;
    justify-content: space-between;
    background: var(--header-bg);
    border-radius: 10px;
    padding: 10px;
    color: var(--header-color);
    cursor: move;
    position: relative;
    top: -0.25rem;
    max-width: 98%;
}

.whiteboard-header-options button,
.whiteboard-header-title button {
    background: var(--header-bg);
    color: var(--header-color);
    min-width: 2rem;
}

.whiteboard-header-title button {
    position: relative;
    top: 0.5rem;
    color: black;
    background: aliceblue;
    padding: 5px;
    border-radius: 5px;
}

.whiteboard-header-options input ~ span,
.whiteboard-header-options button span,
.whiteboard-header-title button span {
    font-size: 0.75rem;
}

#whiteboard.vertical {
    /* position: relative; */
    /* display: block; */
    /* width: 90%; */
    /* height: 90%; */
}

#whiteboard.vertical .whiteboard-header {
    position: absolute;
    top: 0;
    left: 10px;
    height: 100%;
    width: 3rem;
    display: inline-grid;
    /* align-content: space-between;*/
}
#whiteboard.vertical main {
    display: block;
    position: relative;
    top: 0;
    left: 3.25rem;
    width: 90%;
    height: 90%;
    /* transform: none; */
    border-radius: 15px;
}

#whatboard.vertical .whiteboard-header .whiteboard-title {
    /* position: relative; */
    display: inline-grid;
    height: 3rem;
    /* width: 2rem; */
    /* justify-content: center;*/
}

#whatboard.vertical .whiteboard-header .whiteboard-header-options {
    /*position: relative; */
    display: inline-grid;
    /* justify-content: center; */
    height: 75vh;
    align-content: initial;
}

.whiteboard-header.vertical .whiteboard-header-title {
    display: flex;
    position: relative;
}

.whiteboardColorPicker {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 0;
    border: none;
    width: 20px;
    height: 15px;
    margin-left: 5px;
    border-radius: 20px;
    border: solid 0.5px #afadad38;
}
.whiteboardSelectColorPicker {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 0;
    border: none;
    width: 20px;
    height: 15px;
    margin-left: 5px;
    border-radius: 20px;
    border: solid 0.5px #afadad38;
    background: var(--header-color);
    color: var(--header-color);
    top: 0px;
    position: relative;
}

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

/*--------------------------------------------------------------
# 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: 0.25s;
}

/*--------------------------------------------------------------
# Input type color remove box around it
--------------------------------------------------------------*/

input[type='color'] {
    -webkit-appearance: none;
    border: none;
    /* width: 32px; */
    /* height: 32px; */
}
input[type='color']::-webkit-color-swatch-wrapper {
    border-radius: inherit;
    padding: 0;
}
input[type='color']::-webkit-color-swatch {
    border: none;
    border-radius: inherit;
}

/*--------------------------------------------------------------
# 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
    - 8 send receive progress
*/
@media (max-width: 568px) {
    #mySettings {
        width: 95vw;
        height: 95vh;
    }

    #control button {
        font-size: 1.5rem;
    }
    .tab button {
        font-size: 1rem;
        padding: 5px 5px;
        min-width: 3rem;
    }
}

.btn:focus {
    outline: none;
    box-shadow: none;
}

input:disabled {
    background-color: lightsteelblue;
}

/*--------------------------------------------------------------
# Switch Input type checkbox
--------------------------------------------------------------*/

/* https://www.w3schools.com/howto/howto_css_switch.asp */
/* Add Toggle Switch to any component */
.switch {
    position: relative;
    display: inline-block;
    /* width: 60px;
    height: 34px; */
    width: 3.5rem;
    height: 2rem;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/*--------------------------------------------------------------
# Input Ranger Slider
--------------------------------------------------------------*/

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: '';
    /* height: 26px;
    width: 26px; */
    height: 1.5rem;
    width: 1.5rem;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: #2196f3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(1.5rem);
    -ms-transform: translateX(1.5rem);
    transform: translateX(1.5rem);
    /* -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px); */
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type='number'] {
    -moz-appearance: textfield;
}

/*--------------------------------------------------------------
# Scrollbar handles for body STYLE-1
--------------------------------------------------------------*/
body::-webkit-scrollbar {
    width: 16px;
}

/* Track */
body::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
}

/* Handle */
body::-webkit-scrollbar-thumb {
    background: red;
    border-radius: 10px;
}

/* Handle on hover */
body::-webkit-scrollbar-thumb:hover {
    background: #b30000;
}

/*--------------------------------------------------------------
# Scrollbar handles for all - STYLE-2
--------------------------------------------------------------*/
::-webkit-scrollbar {
    width: 16px;
}

/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
    box-shadow: inset 0 0 5px 1px steelblue;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: red;
    border-radius: 10px;
    background: lightsteelblue;
    box-shadow: inset 0 0 5px 1px steelblue;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #b30000;
    box-shadow: none;
    background-color: #3f51b5;
}

/*--------------------------------------------------------------
# Input Range with Wrapper
--------------------------------------------------------------*/

/* Left and right Main container */
.leftContainer {
    position: absolute;
    left: 0;
    top: 0;
    height: 100vw;
    width: 60vw;
}

.rightContainer {
    position: absolute;
    right: 0;
    top: 0;
    height: 100vw;
    width: 40vw;
}

#control button:disabled {
    background-color: lightsteelblue;
    color: black;
}

input[type='range'] {
    -webkit-appearance: none;
    margin-right: 15px;
    /* width: 200px; */
    height: 7px;
    height: 1rem;
    background: rgba(255, 255, 255, 0.6);
    /* background: lightsteelblue; */
    /* border-radius: 5px; */
    border-radius: 0.5rem;
    background-image: linear-gradient(#ff4500, #ff4500);
    background-image: linear-gradient(#13bba4, #11cbb2);
    background-size: 100%;
    background-repeat: no-repeat;
}

input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    height: 1rem;
    width: 1rem;
    /* margin-top: 0.1rem; */
    border-radius: 50%;
    background: #ff4500;
    cursor: ew-resize;
    box-shadow: 0 0 2px 0 #555;
    transition: background 0.3s ease-in-out;
}

input[type='range']::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    box-shadow: none;
    border: none;
    background: transparent;
}

input[type='range']::-webkit-slider-thumb:active {
    background: orangered;
}

input[type='range']:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgb(13 110 253 / 25%);
    box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem darkslategray;
}

/* Stlish range input */
.range-wrap {
    position: relative;
    margin: 0 auto 3rem;
}
.range {
    width: 100%;
}
.bubble {
    position: absolute;
    background-image: linear-gradient(top, #444444, #999999);
    background: orangered;
    background: rgb(127 255 212 / 50%);
    background: brown;
    width: 50px;
    height: 35px;
    text-align: center;
    color: white;
    /* color: black; */
    border-radius: 5px;
    display: inline-block;
    font: bold 15px/30px Georgia;
    /* bottom: 175%; */
    top: -40px;
    top: 1rem;
    left: 0;
    margin-left: -1%;
    font-weight: bold;
    padding-top: 3px;
    font-size: 0.85em;
    font-family: system-ui;
}
.bubble.bottom {
    top: auto;
    bottom: -35px;
}

.bubble::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-top: 10px solid orangered;
    border-top: 10px solid rgb(127 255 212 / 50%);
    border-top: 10px solid brown;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    margin-top: -1px;
    left: 0;
    right: 0;
    margin: auto;
}

.bubble.bottom::after {
    top: auto;
    bottom: 97%;
    transform: rotate(-180deg);
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/

#mySidebar {
    display: none;
    right: 0;
    left: auto;
    transition: all 0.5s ease-in-out;
}
#mainNav {
    display: inline-block;
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    right: 0;
    margin-right: 350px; /* this should be as per the media screen query for various sizes */
    transition: all 1.05s ease-in-out;
}
.openNav {
    right: 0;
    position: absolute;
    display: inline-block;
    z-index: 2;
    /* width: 30%; */
}
.closeNav {
    right: 0;
    right: -2px;
    display: inline-block;
    z-index: 2;
    position: absolute;
    /* width: 30%; */
    display: none;
    /*transform: rotate(90deg);*/
    background-color: var(--header-bg);
    color: var(--header-color);
    border: var(--border);
    height: 50px;
}

.chat-header .closeNav,
.participants-header .closeNav {
    display: inline-block;
    height: 50px;
    top: 0px;
    position: absolute;
    left: 0px;
    color: var(--header-color);
    width: 50px;
    border: none;
    color: white; /* override */
}
.chat-header .closeNav:after,
.participants-header .closeNav:after {
    /*font-family: 'Font Awesome 5 Free';
    content: '🠊'; /* &#129032; */
    /* content: '\f061';*/
}

.openNav:after {
    /* font-family: 'Font Awesome 5 Free';
    content: '🠈'; /* &#9776; */
    /* content: '\f060'; */
}

@media screen and (max-width: 576px) {
    .chat-header .closeNav:after,
    .participants-header .closeNav:after {
        /*content: '🠈'; /* &#9776; */
    }

    .openNav:after {
        /*content: '🠊'; /* &#129032; */
    }
    .chat-room {
        /* top: 10px; */
        /* left: 5px; */
    }
}

/* ensure that all these styles are for the desktop or tables and not mobile devices */
@media screen and (min-width: 576px) and (max-width: 768px) {
    #mainNav {
        margin-right: 350px; /* this should be as per the media screen query for various sizes */
    }
    #mySidebar {
        width: 350px;
        min-width: 350px;
    }
}
@media screen and (min-width: 992px) {
    #mainNav {
        margin-right: 35%; /* this should be as per the media screen query for various sizes */
    }
    #mySidebar {
        width: 35%;
        min-width: 350px;
    }
}
@media screen and (min-width: 992px) {
    #mainNav {
        margin-right: 3%; /* this should be as per the media screen query for various sizes */
    }
    #mySidebar {
        width: 30%;
        min-width: 350px;
    }
}

@media screen and (min-width: 993px) {
    #mainNav {
        margin-right: 25%; /* this should be as per the media screen query for various sizes */
    }
    #mySidebar {
        width: 25%;
        min-width: 350px;
    }
}
