@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600");
/*font-family: 'Source Sans Pro', sans-serif;*/
/*	Mixins	*/
/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, sub, sup, tt, var,
b, u, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline; }

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block; }

body {
  line-height: 1; }

ol, ul {
  list-style: none; }

blockquote, q {
  quotes: none; }

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none; }

table {
  border-collapse: collapse;
  border-spacing: 0; }

/* ---- Theme ---------------------------------------------------------- */
:root {
  --bg: #070d1f;
  --panel: #0d1630;
  --panel-2: #131e3d;
  --glass: rgba(10, 17, 38, 0.78);
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8ecf8;
  --muted: #7d89ad;
  --accent: #2f7bff;
  --danger: #ff3b4e;
  --ok: #3ddc84; }

html {
  overflow: hidden;
  height: 100vh; }

body {
  background-color: var(--bg);
  color: var(--text);
  height: 100vh;
  height: 100dvh;
  position: relative;
  font-family: 'Source Sans Pro', sans-serif;
  overflow: hidden; }

/* the login page scrolls on small screens */
body:has(#loginBox) {
  overflow: auto; }

#video-wrapper {
  background-color: #04070f;
  box-sizing: border-box;
  width: 100vw;
  height: 56.25vw;
  max-height: 100vh;
  max-width: 177.78vh;
  margin: 0 auto;
  position: relative;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  text-align: center; }
  #video-wrapper #user-video {
    border: 2px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    width: 20rem;
    height: 11.25rem;
    min-width: 10rem;
    min-height: 5.625rem !important;
    top: 1.875rem;
    left: 1.875rem;
    cursor: grab;
    cursor: -moz-grab;
    cursor: -webkit-grab; }
    #video-wrapper #user-video:active {
      cursor: grabbing;
      cursor: -moz-grabbing;
      cursor: -webkit-grabbing; }
  #video-wrapper #video-drag {
    position: absolute;
    bottom: 1.5625rem;
    right: 0;
    left: 0;
    pointer-events: none; }
  #video-wrapper #video-controls {
    margin: 0 auto;
    width: 92%;
    max-width: 27rem;
    background-color: var(--glass);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    padding: 0.5rem 0.625rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    display: inline-block;
    box-sizing: border-box;
    pointer-events: all;
    cursor: grab;
    cursor: -moz-grab;
    cursor: -webkit-grab; }
    #video-wrapper #video-controls:active {
      cursor: grabbing;
      cursor: -moz-grabbing;
      cursor: -webkit-grabbing; }
    #video-wrapper #video-controls::after {
      content: '';
      display: block;
      clear: both; }
    #video-wrapper #video-controls .controls-item {
      display: inline-block;
      height: 2.75rem;
      overflow: hidden;
      width: 12%;
      margin: 0 0.25%;
      border-radius: 50%;
      text-align: center;
      float: left;
      cursor: pointer;
      position: relative;
      transition: background-color ease-in-out 0.2s; }
      #video-wrapper #video-controls .controls-item:hover {
        background-color: rgba(255, 255, 255, 0.1); }
      #video-wrapper #video-controls .controls-item svg {
        height: 46%;
        max-width: 1.5625rem;
        position: relative;
        top: 50%;
        -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);
        fill: #c4cce6;
        transition: all ease-in-out 0.2s; }
        #video-wrapper #video-controls .controls-item svg.svg-strike {
          position: absolute;
          top: 50%;
          left: 0.7rem;
          height: 56%;
          display: none; }
      #video-wrapper #video-controls .controls-item.active svg, #video-wrapper #video-controls .controls-item:hover svg {
        fill: #fff; }

      #video-wrapper #video-controls .controls-item.activemanual svg.svg-strike {
          display: block; }

      /* end call */
      #video-wrapper #video-controls .controls-item#control-phone {
        background-color: var(--danger);
        box-shadow: 0 6px 18px rgba(255, 59, 78, 0.4); }
        #video-wrapper #video-controls .controls-item#control-phone:hover {
          background-color: #ff5566; }
      #video-wrapper #video-controls .controls-item#control-phone svg {
        fill: #fff; }

      /* mic / camera: on = neutral, muted = red */
      #video-wrapper #video-controls .controls-item#control-microphone svg,
      #video-wrapper #video-controls .controls-item#control-camera svg {
        fill: #c4cce6; }
      #video-wrapper #video-controls .controls-item.activemanual#control-microphone,
      #video-wrapper #video-controls .controls-item.activemanual#control-camera {
        background-color: rgba(255, 59, 78, 0.18); }
      #video-wrapper #video-controls .controls-item.activemanual#control-microphone svg,
      #video-wrapper #video-controls .controls-item.activemanual#control-camera svg {
        fill: var(--danger); }

      /* camera preview: stroke icon, highlighted while hidden */
      #video-wrapper #video-controls .controls-item#control-camerapreview svg {
        stroke: #c4cce6;
        fill: #c4cce6; }
      #video-wrapper #video-controls .controls-item.active#control-camerapreview svg {
        fill: var(--danger);
        stroke: var(--danger); }

      /* screen share: highlighted while sharing */
      #video-wrapper #video-controls .controls-item#control-screen svg {
        stroke: #c4cce6;
        fill: #c4cce6; }
      #video-wrapper #video-controls .controls-item.activemanual#control-screen {
        background-color: rgba(47, 123, 255, 0.22); }
      #video-wrapper #video-controls .controls-item.activemanual#control-screen svg {
        stroke: var(--accent);
        fill: var(--accent); }

#video-chat {
  width: 20rem;
  max-width: 90vw;
  position: fixed;
  top: 0;
  right: -20rem;
  height: 100vh;
  height: 100dvh;
  background-color: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-left: 1px solid var(--line);
  color: var(--text);
  transition: all ease-in-out	0.3s; }
  #video-chat.active {
    right: 0; }
  #video-chat #chat-wrapper {
    top: 0;
    bottom: 0;
    padding: 0.875rem;
    box-sizing: border-box;
    width: 100%; }
    #video-chat #chat-wrapper #messages-wrapper {
      overflow: hidden;
      margin-bottom: 0.6rem;
      height: calc(100dvh - 5.5rem);
      overflow-y: auto;
      width: 100%;
      box-sizing: border-box;
      scrollbar-width: thin;
      scrollbar-color: rgba(255, 255, 255, 0.2) transparent; }
    #video-chat #chat-wrapper textarea {
      overflow: hidden;
      resize: none;
      width: 100%;
      box-sizing: border-box;
      padding: 0.8rem 0.9rem 0.8rem 2.5rem;
      height: 3rem;
      color: var(--text);
      background-color: rgba(255, 255, 255, 0.06);
      border: 1px solid var(--line);
      border-radius: 14px;
      background-image: url(../icons/pencil.svg);
      background-repeat: no-repeat;
      background-position: 0.8rem 0.85rem;
      background-size: 1.1rem;
      font-size: 0.875em;
      font-family: inherit; }
      #video-chat #chat-wrapper textarea:focus {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.22); }
      #video-chat #chat-wrapper textarea::placeholder {
        color: var(--muted); }

@media only screen and (max-width: 780px) {
  body, html {
    font-size: 14px; }
  #video-wrapper #video-controls .controls-item {
    width: 12%; } }

@media only screen and (max-width: 580px) {
  body, html {
    font-size: 10px; }
  #video-wrapper {
    font-size: 8px; }
    #video-wrapper #user-video {
      height: 45px;
      width: 80px;
      border-radius: 8px; }
    #video-wrapper #video-controls .controls-item {
      width: 12%; } }

#localVideo
{
    width: 100%;
    height: 100%;
    background-color: black;
    top: 0;
    left: 0;
    z-index: -1;
    border-radius: 0px;
}
#remoteVideo
{
    position: fixed; width: 100%; height: 100%; z-index: -1; top: 0; left: 0;
    border-radius: 0px;
}

/* chat bubbles */
.chatEntry
{
    margin: 0 0 0.6rem;
    padding: 0.6rem 0.8rem;
    font-size: 0.875em;
    font-weight: 300;
    line-height: 1.35;
    word-wrap: break-word;
    background-color: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 14px 14px 14px 4px;
}
.chatEntry strong
{
    font-weight: 600;
    color: var(--text);
}
.chatEntry.remote strong
{
    color: #8fb6ff;
}
.chatEntry.own
{
    margin-left: 1.5rem;
    background-color: var(--accent);
    border-color: transparent;
    border-radius: 14px 14px 4px 14px;
}
.chatEntry.own strong
{
    color: #fff;
}
.chatEntryTime
{
    float: right;
    margin-left: 0.5rem;
    font-size: 0.8em;
    color: var(--muted);
}
.chatEntry.own .chatEntryTime
{
    color: rgba(255, 255, 255, 0.7);
}

/* jQuery UI dialogs (settings, errors, remote consent) */
.ui-dialog
{
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    padding: 0;
    font-family: 'Source Sans Pro', sans-serif;
    overflow: hidden;
}
.ui-dialog .ui-dialog-titlebar
{
    background: transparent;
    color: var(--text);
    border: none;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 0.9em 1.1em;
    font-weight: 600;
}
.ui-dialog .ui-dialog-titlebar-close
{
    filter: invert(1);
}
.ui-dialog .ui-dialog-content
{
    color: var(--text);
    padding: 1em 1.1em;
}
.ui-dialog .ui-dialog-buttonpane
{
    background: transparent;
    border: none;
    border-top: 1px solid var(--line);
    margin: 0;
    padding: 0.7em 1em;
}
.ui-dialog .ui-button
{
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.45em 1.1em;
    font-family: inherit;
}
.ui-dialog .ui-button:hover,
.ui-dialog .ui-button:focus
{
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.ui-widget-overlay
{
    background: #02050d;
    opacity: 0.7;
}
.ui-dialog select
{
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.35em 0.5em;
    font-family: inherit;
}
.ui-dialog select option
{
    background: var(--panel);
    color: var(--text);
}
.ui-dialog td
{
    padding: 0.3em 0.4em 0.3em 0;
}
.ui-dialog input[type=checkbox]
{
    accent-color: var(--accent);
}
.ui-tooltip
{
    background: var(--panel-2);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.35em 0.7em;
    font-size: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* remote control hint */
#remote-toast {
    display: none;
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    max-width: 90%;
    padding: 10px 18px;
    border-radius: 6px;
    background: rgba(20, 20, 20, .88);
    color: #fff;
    font-size: 14px;
    text-align: center;
}
