@import 'https://fonts.googleapis.com/css?family=Open+Sans';
@import 'https://fonts.googleapis.com/css?family=Roboto';



/* Some common values stored as variables */
:root {
    --normal-video-width: 480px;
    --normal-video-height: 300px;
    --normal-button-height: 31px;
}

/* Align bootstrap 4 tooltips */
.tooltip-inner {
    text-align: justify;
    hyphens: auto;
}

.color-interpreter { color: Gold; }
.color-speaker     { color: PaleGreen; }
.color-supervisor  { color: White; }

.background-speaker {
  background: #2e8b57; 
}

.background-supervisor {
  background: radial-gradient(circle at 15% 80%, rgb(0, 83, 159), rgb(130, 223, 255));
}

.background-interpreter {
  background: #666688;
}

.background-index {
  background: radial-gradient(circle at 15% 80%, #b3ac69, #beba81, #cac799, #d6d5b1, #e3e3c9);
  
}


#vumeter {
    height:var(--normal-button-height);
}


.mini-video, .normal-video {
    background: Aquamarine;
    z-index: 0;
}



.video-container {
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: 0;
}


@media screen and (width < 412px) {

    .display-5 {
        font-size: 1.5rem !important;
    }
    
    .app-width {
        max-width: calc(302px);
    }

    .first {
        order: 2;
    }
    .second {
        order: 1;
    }
    .third {
        order: 3;
    }

    .normal-video {
      width: 280px;
      height: 175px;
    }

    .normal-video-width {
      width: 280px;
    }

    .mini-video {
      width: 137px;
      height: 86px;
    }
    .mini-video-width {
      width: 137px;
    }

    #vumeter {
      width: calc( 137px - 48px );
    }  
    #chatpanel {
        max-width: calc(300px);
        height: 230px;
        flex-shrink: 0 ;
        flex-grow: 100;
        margin: 2px !important;
        padding: 0;
    } 
    
    #video1, #video2 {
        display: inline-flex;
    }

    #main-panel {
        padding: 0 !important;
    }   

    .hide-on-narrow-devices {
        display: none;
    }
    .clock {
        font-size: 0.75rem !important;
    }
  
}

@media screen and (412px <= width <= 530px) {

    .display-5 {
        font-size: 1.5rem !important;
    }
    
    .app-width {
        max-width: calc(390px);
    }

    .first {
        order: 2;
    }
    .second {
        order: 1;
    }
    .third {
        order: 3;
    }

    .normal-video {
      width: 368px;
      height: 230px;
    }

    .normal-video-width {
      width: 368px;
    }

    .mini-video {
      width: 182px;
      height: 114px;
    }
    .mini-video-width {
      width: 182px;
    }

    #vumeter {
      width: calc( 182px - 48px );
    }

    #chatpanel {
        max-width: calc(390px);
        height: 230px;
        flex-shrink: 0 ;
        flex-grow: 100;
        margin: 2px !important;
        padding: 0;
    } 
    
    #video1, #video2 {
        display: inline-flex;
    }

    #main-panel {
        padding: 0 !important;
    }  

    .hide-on-narrow-devices {
        display: none;
    }
    .clock {
        font-size: 0.75rem !important;
    }
    
  
}

@media screen and (530px < width < 730px) {


    .app-width {
      max-width: calc(510px);
    }


    .mr-minivideo {
        margin-right: 4px;
    }


    .first {
        order: 1;
    }
    .second {
        order: 2;
    }
    .third {
        order: 3;
    }

    .normal-video {
      width: 320px;
      height: 200px;
    }

    .normal-video-width {
      width: 320px;
    }

    .mini-video {
      width: 140px;
      height: 88px;
    }

    .mini-video-width {
      width: 140px;
    }

    #vumeter {
      width: calc( 140px - 48px );
    }  
    #chatpanel {
        background: yellow !important;
        height: 230px;
        flex-shrink:2 ;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }     
    #left-column {
        width: 100%;
        justify-content: center;
        padding-bottom: 2px !important;
    }
    
    .hide-on-narrow-devices {
        display: none;
    }
   
}

@media screen and (730px <= width <= 978px) {

    .app-width {
      min-width: calc(100vw - 1rem);
      width: calc(100vw - 1rem);
    }


    .mr-minivideo {
        margin-right: 4px;
    }
    
    .first {
        order: 1;
    }
    .second {
        order: 2;
    }
    .third {
        order: 3;
    }

    .normal-video {
      width: 320px;
      height: 200px;
    }

    .normal-video-width {
      width: 320px;
    }

    .mini-video {
      width: 144px;
      height: 90px;
    }
    .mini-video-width {
      width: 144px;
    }
    
    #vumeter {
      width: calc( 144px - 48px );
    }
    
    #chatpanel {
        flex-shrink:2 ;
    }    
}    

@media screen and (978px < width < 1200px ) {

    .app-width {
      min-width: calc(100vw - 1rem);
      width: calc(100vw - 1rem);
    }


    .mr-minivideo {
        margin-right: 4px;
    }

    .first {
        order: 1;
    }
    .second {
        order: 2;
    }
    .third {
        order: 3;
    }
    
    .normal-video {
      width: var(--normal-video-width);
      height: var(--normal-video-height);
    }
    
    .normal-video-width {
      width: var(--normal-video-width);
    }

    .mini-video {
      width: 234px;
      height: 146px;
    }
    .mini-video-width {
      width: 234px;
    }

    #vumeter {
      width: calc( 234px - 48px );
    }


    #chatpanel {
        flex-shrink: 2 ;
    }

}    

@media (width >= 1200px) {

    .mr-minivideo {
        margin-right: 4px;
    }

    .first {
        order: 1;
    }
    .second {
        order: 2;
    }
    .third {
        order: 3;
    }
    
    .normal-video {
      width: var(--normal-video-width);
      height: var(--normal-video-height);
    }
    
    .normal-video-width {
      width: var(--normal-video-width);
    }

    .mini-video {
      width: 234px;
      height: 146px;
    }
    .mini-video-width {
      width: 234px;
    }

    #vumeter {
      width: calc( 234px - 48px );
    }


    #chatpanel {
        flex-shrink: 2 ;
    }

}    


.video-container {
  position: relative;
}

.player-container {
  position: absolute;
/*  
  width: var(--normal-video-width);
  height: var(--normal-video-height); 
*/  
}

#myplayer {
    /* per qualche motivo l'altezza dev'essere forzata nel tag <video> */
}

.stack-bottom { z-index: -10 !important; }
.stack-top { z-index: 10 !important; }

.unselectable {
    user-select: none;
}

.selectable-text {
    user-select: text;
}

.pointer {
    cursor: pointer;    
}

.mirrored {
  transform: rotateY(180deg);    
}

.fullscreen-button {
  position: absolute;
  bottom: 8px;
  right: 8px;
  text-shadow: 0px 0px 2px black;
  color: Snow;  
  font-size: 0.75em;
  cursor: pointer;
  user-select: none;
 
  z-index: 1;
}

.video-button {
  position: absolute;
  top: 8px;
  right: 8px;
  text-shadow: 0px 0px 2px black;
  color: Snow;  
  font-size: 0.75em;
  cursor: pointer;
  user-select: none;
 
  z-index: 1;
}

.video-button-position-tl { top: 8px;     bottom: initial; left: 8px;     right: initial; }
.video-button-position-tr { top: 8px;     bottom: initial; left: initial; right: 8px;     }
.video-button-position-br { top: initial; bottom: 8px;     left: initial; right: 8px;     }
.video-button-position-bl { top: initial; bottom: 8px;     left: 8px;     right: initial; }


.video-caption {
  font-size: 0.75em;
  font-family: Roboto;
  position: absolute;
  bottom: 5px;
  width: 100%;
  
  text-align: center;
  text-shadow: 0px 0px 2px black;
  color: Snow;  
  background: rgba(0, 0, 0, 0);
  
  cursor: default;
  user-select: none;
  
  z-index: 1;
}


.bg-chat {
    background-color: #17a2b8;
}

input.bg-chat {
    color: LightYellow;
}
.bg-chat::placeholder {
    color: DarkKhaki;
}


#chatpanel {
    inline-size: min-content;     
}


#chatboard {
  overflow-y: scroll;
}

#chatboard a {
  color: white;
  font-weight: bold;
}

#chatboard, #chattext {
    font-family: Roboto, Candara, Calibri, Arial, sans-serif;
}

#log-text {
    display:inline-block;
    margin-left: auto;
    margin-right: auto;
    /*width: calc(100% - 32px);*/
}

.pids-wrapper {
}

.hpid {
  width: calc(100% / 14 - 3px);
  height: 20px;
  margin-right: 3px;
  display: inline-block;
}


.toolbar {

}
.toolbar-group {

}

.transparent {
    display:none;
    opacity:0.0;
    filter:alpha(opacity=0);
}

.btn-w-1 { width:  2.75em; }
.btn-w-2 { width:  3.5em;  }
.w-2em    { width:  2em;    }
.w-3em    { width:  3em;    }
.w-4em    { width:  4em;    }
.w-5em    { width:  5em;    }
.w-6em    { width:  6em;    }
.w-7em    { width:  7em;    }
.w-8em    { width:  8em;    }
.w-9em    { width:  9em;    }
.w-10em  { width: 10em;    }
.w-11em  { width: 11em;    }
.w-12em  { width: 12em;    }
.w-13em  { width: 13em;    }
.w-14em  { width: 14em;    }
.w-15em  { width: 15em;    }
.w-16em  { width: 16em;    }
.w-17em  { width: 17em;    }
.w-18em  { width: 18em;    }
.w-19em  { width: 19em;    }
.w-20em  { width: 20em;    }

.fs-large {  font-size: 1.5rem; }


.opacity-100 { opacity: 1.00; }
.opacity-90  { opacity: 0.90; }
.opacity-75  { opacity: 0.75; }
.opacity-50  { opacity: 0.50; }
.opacity-25  { opacity: 0.25; }
.opacity-10  { opacity: 0.10; }

.opacity-hover-100:hover { opacity: 1; }


#logo {
  position: absolute;
  left:0;
  top: 0;
  z-index: -9;
}

#logo > img {
  opacity: 0.4;
  filter: alpha(opacity=40); /* For IE8 and earlier */
}


.border-gray {
    border-color: silver;
}
.dashed {
    border-style: dashed !important;
    border-width: 3px !important;
}

.input-file {
    width: 0px;
    height: 0px;
    padding: 0;
    border: 0;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}


.input-file + label {
    cursor: pointer;
}

#send-file-to-all + label {
    _height: 36px;
    padding-top: 5px;
}

#player-panel {
    max-width: 330px;
    width: 0px;
}

.undroppable {
    
}

.droppable-area {
    position: absolute; 
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 0;
    width: 100%;
    height: 100%;
    font-size: 2em;
    display: flex;
    align-items: center;  
    justify-content: center;    
}


.droppable-area.dropping {
    text-shadow: 0px 0px 2px black;
    color: LemonChiffon;
    opacity: 0.5;

}

.clock {
  font-family: "Open Sans", sans-serif;
  font-size: 1.25rem;
  line-height: 2.5rem;
  vertical-align: middle;
  text-align: center;
}


.round-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 5px;
  margin-top: 7px;
  margin-bottom: 6px;
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  -webkit-transition: .2s;
  transition: opacity .2s;
}

.round-slider:hover {
  opacity: 1;
}

.round-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #4CAF50;
  cursor: pointer;
}

.round-slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #4CAF50;
  cursor: pointer;
}






.square-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 10px;
  margin-top: 7px;
  margin-bottom: 6px;
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  -webkit-transition: .2s;
  transition: opacity .2s;
}

.square-slider.small {
  height: 4px;
  margin-top: 4px;
  margin-bottom: 3px;
    
}

.vertical {
  transform: rotate(270deg);
}

.square-slider:hover {
  opacity: 1;
}

.square-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  background: #4C50AF;
  cursor: pointer;
}

.square-slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  background: #4C50AF;
  cursor: pointer;
}

.small.square-slider::-webkit-slider-thumb {
  width: 7px;
  height: 7px;
}
.small.square-slider::-moz-range-thumb {
  width: 7px;
  height: 7px;
}



#copyright {
    font-family: Roboto;
    font-size: 0.8em;
    text-align: right;
    width: 100%;
}


video::-webkit-media-controls {
  display:none !important;
}


/* extend FontAwesome effetcs */

@keyframes fa-blink-3x {
    0%   { opacity: 0;   transform: scale(1.0); }
    10%  { opacity: 0.2; transform: scale(1.2); }
    15%  { opacity: 0.3; transform: scale(1.5); }    
    20%  { opacity: 0.4; transform: scale(1.8); }
    25%  { opacity: 0.7; transform: scale(2.0); }    
    30%  { opacity: 0.8; transform: scale(2.3); }
    35%  { opacity: 0.9; transform: scale(2.7); }    
    40%  { opacity: 1.0; transform: scale(3.5); }
    45%  { opacity: 1.0; transform: scale(3.5); }
    50%  { opacity: 1.0; transform: scale(2.7); }
    55%  { opacity: 1.0; transform: scale(2.3); }
    60%  { opacity: 0.8; transform: scale(2.0); }
    70%  { opacity: 0.6; transform: scale(1.8); }
    80%  { opacity: 0.4; transform: scale(1.5); }
    90%  { opacity: 0.2; transform: scale(1.2); }
    100% { opacity: 0;   transform: scale(1.0); }
}

.fa-blink-3x {
   animation: fa-blink-3x 2s linear infinite;
   color: yellow;
}

@keyframes fa-blink-2x {
    0%   { opacity: 0;   transform: scale(1.0); }
    10%  { opacity: 0.2; transform: scale(1.1); }
    15%  { opacity: 0.3; transform: scale(1.25); }    
    20%  { opacity: 0.4; transform: scale(1.4); }
    25%  { opacity: 0.7; transform: scale(1.5); }    
    30%  { opacity: 0.8; transform: scale(1.65); }
    35%  { opacity: 0.9; transform: scale(1.85); }    
    40%  { opacity: 1.0; transform: scale(2.0); }
    45%  { opacity: 1.0; transform: scale(2.0); }
    50%  { opacity: 1.0; transform: scale(1.85); }
    55%  { opacity: 1.0; transform: scale(1.65);  }
    60%  { opacity: 0.8; transform: scale(1.5); }
    70%  { opacity: 0.6; transform: scale(1.4); }
    80%  { opacity: 0.4; transform: scale(1.15); }
    90%  { opacity: 0.2; transform: scale(1.1); }
    100% { opacity: 0;   transform: scale(1.0); }
}

.fa-blink-2x {
   animation: fa-blink-2x 2s linear infinite;
}



.fa-blink, .fa-blink-1x {
  animation: fa-blink 1s linear infinite;
}

@keyframes fa-blink {
  50% {
    opacity: 0;
  }
}


.display-5 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 2.5rem;
    vertical-align: middle;    
}
.h-100 {
    height: 100%;
}

.flex-grow-100 {
   flex-grow: 100;
}

.hidden {
    display: none;
}

.fixed-flex {
    flex-wrap: nowrap !important;
    min-width: fit-content !important;
}

.mt-1px { margin-top: 1px; }
.mt-2px { margin-top: 2px; }
.mt-3px { margin-top: 3px; }
.mt-4px { margin-top: 4px; }


.mini-label {
    margin: 0;
    padding: 0;
    font-size: 0.55em;
}
