html {
  height: 100%;
}

body {
  margin: 0px;
  padding: 0px;
  height: 100%;
}

#root {
  width: 100%;
  height: 100%;
}

canvas {
  width: 100% !important;
  height: 100% !important;
}

#app {
  top: 50%;
  left: 50%;
  position: absolute;
  transform: translate(-50%,-50%);
  max-width: 1360px;
  max-height: 765px;
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  src: url(./assets/OpenSans-SemiBold.ttf) format('truetype');
}

.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 30%;
  height: 30%;
}

.footer {
  margin-top: 5px;
  height: 38px;
  line-height: 38px;
  font-family: Helvetica, Verdana, Arial, sans-serif;
  font-size: 18px;
  display: none;
}

.loadingBackground {
  background: url(img/bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0px;
  top: 0px;
  background-position: 50%;
}

.animaLogo {
  background: url(img/logo.svg) no-repeat;
  background-size: contain;
  position: absolute;
  width: 170px;
  height: 47px;
  bottom: 18px;
  right: 18px;
}

.helper {
  top: 50%;
  left: 50%;
  border: 10px #000000;
  width: 100%;
  height: 100%;
  transform: translate(-50%,-50%);
}

.unity-container{
  border: 10px #000000;
  width: 100%;
  height: 100%;
  overflow-y: hidden;
}

.video-view-0 {
  top: 0;
  left: 0;
  margin: 5px;
  width: 150px;
  height: 15vh;
  position: absolute;
  z-index: 100;
  border: #000000 1px;
  display: none;
  pointer-events: none;
  overflow: visible;
  box-sizing: border-box;
  justify-content: flex-start;
}

/*!
  * Other stream
   */
.video-view-1 {
  top: 0;
  left: 155px;
  margin: 5px;
  height: 15vh;
  width: calc(100% - 165px);
  position: absolute;
  z-index: 100;
  border: #000000 1px;
  display: none;
  pointer-events: none;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: row wrap;
  box-sizing: border-box;
  /*overflow:auto;*/
}

#video-0 video,
#video-1 video {
  position: relative !important;
}

.audio-video-buttons{
  top: 150px;
  width: 100%;
  height: 20px;
  position: absolute;
  display: block;
  background-color: rgba(23,23,23,0.6);
  border-radius: var(--video-border-radius);
  list-style-type: none;
  padding-left: 0px;
}

.avbutton{
  width: 50%;
  height: 100%;
  float: left;
  border-radius: var(--video-border-radius);
  object-fit: contain;
}

.avbutton:hover{
  background-color: #5a5a5a;
}

.audio-local,
.audio-remote {
  position: absolute;
  display: block;
}

.audio-local video,
.audio-remote video {
  position: relative !important;
}

.input-container,
.input-container-2 {
  position: absolute;
  display: none;
}

.input-container input,
.input-container-2 input {
  height:30px;
  line-height:30px;/*results in nice text vertical alignment*/
  border:none;
  background:transparent;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff;
  font-size: 20px;
  text-align: center;
  opacity: 0;
}

.input-container-2 input {
  height:60px;
  line-height:60px;/*results in nice text vertical alignment*/
  text-align: left;
}

.remoteVideoContainer {
  transform: rotateY(180deg);
  width: 15%;
  height: 95%;
  margin-left: 5px;
}

.remoteVideoContainer.active {
  z-index: 1;
  position: fixed;
  transform: translate(-50%, -50%) rotateY(180deg);
}

.playerStreamDiv {
  width: 100% !important;
  height: 100% !important;
  background-color: black !important;
  overflow: hidden !important;
}

.minimizeBtn {
  position: absolute;
  top: 0%;
  right: 100%; /* use right because the div parent is rotateY(180deg)*/
  margin: 10px;
  display: none;
  width: 35px;
  height: auto;
}

.video-fullscreen-bg {
  background-color: rgba(0, 0, 0, 0.52);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  display: none;
}

.fullscreenBtn {
  z-index: 2000;
  background-size: cover;
  background-color: rgba(0, 0, 0, 0.411);
  border-radius: var(--video-border-radius);

  position: absolute !important;
  transform: translate(-50%, 50%) !important;
  opacity: 1;
}

.fullscreenBtn:hover {
  background-color: rgba(162, 198, 20, 0.8);
}

#closeFullscreenBtn {
  display: none;
  background-image: url("img/minimize.png");
}

#closeFullscreenBtn:hover {
  background-image: url("img/minimize_hover.png");
}

#unity-fullscreen-button {
  background-image: url("img/maximize.png");
}

#unity-fullscreen-button:hover {
  background-image: url('img/maximize_hover.png');
  background-size: cover;
}

.videoUserName {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  text-align: center;
  width: 100%;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  color: white;
  transform: scaleX(-1);
}

.loading {
  color: white;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transform: scale(0.6);
}

.loading-text {
  text-align: center;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  margin: 5px 5px 17px 5px;
  opacity: 0;
  font-size: 18px;
  letter-spacing: 2px;
}

#loading1 {
  font-size: 36px;
}

.html-unity-element {
  position: absolute !important;
  transform: translate(-50%, 50%) !important;
  opacity: 1;
  background:transparent;
  font-size: 20px;
  color: white;
  border:none;
}

.html-unity-element input
{
  border:none;
  background:transparent;
}

.loginInput {
  opacity: 1 !important;
  background-color: rgba(0, 0, 0, 0.101);
  border-radius: 10px;
  text-align: center;
  border: none;
  box-shadow: none;
  outline: none !important;
  color: white;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: calc(0.5vw + 0.5vh);
  box-sizing: border-box;
}

.loginInput:focus {
  background-color: rgba(0, 0, 0, 0.5);
}

.loginInput:hover {
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: none !important;
  outline: none !important;
}

.loginInput::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-size: calc(0.4vw + 0.4vh);
}

#viewer {
  position: absolute;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 6.5%;
  background-color: rgba(0, 0, 0, 0.65);
}

#viewer-frame-wrapper {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
}

#viewer-frame-wrapper > iframe {
  width: 100%;
  height: 100%;
  z-index: 2;
  border: none;
  box-shadow: 0 0 7em black;
}

#viewer-close-button {
  background-image: url("img/close_hover.png");
}

#viewer .button {
  z-index: 1;
  width: 60px;
  height: 60px;
  border: 1px solid white;
  border-left: none;
  background-color: black;
  color: white;
  background-color: rgba(0, 0, 0, 0.411);
  background-size: cover;
  border-radius: 0 var(--video-border-radius) var(--video-border-radius) 0;
  transform: translateX(-3%);

}

#viewer .button:hover {
  background-color: rgba(0, 96, 179, 0.8);
}

.hide {
  display: none;
}

.html-unity-button {
  cursor: pointer;
  transition: color 1s, border 1s;
}

.chatInput:focus {
  outline: none;
}

.chatInput {
  outline: none;
  font-family: 'Open Sans Light', Arial, sans-serif;
  color: #ffffffe0;
  font-size: 14px;
}

.chatInput::placeholder {
  color: #ffffffe0;
  font-style: italic;
}

/* 
inputs, in WebKit, have this property applied to them by default:
-webkit-appearance: textfield;
lets set this to none, so we can override the style!
 */
input[type=text]:enabled {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

input[type=text]:disabled,
input[type=text][disabled] {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

.glow {
  border: 1px solid white;
  box-shadow:0 0 5px #9aca3c;
  -webkit-animation: glowEffect 1s ease-in-out infinite alternate;
  -moz-animation: glowEffect 1s ease-in-out infinite alternate;
  animation: glowEffect 1s ease-in-out infinite alternate;
}

@keyframes glowEffect {
  from {
    box-shadow: 0 0 5px #9aca3c;
  }
  to {
    box-shadow: 0 0 10px #aaff00;
  }
}

.html-unity-button:disabled,
.html-unity-button[disabled]{
  background-color: rgba(0, 0, 0, 0.101) !important;
  border: 1px solid gray;
  box-shadow: none !important;
  color: grey !important;
  -webkit-animation: 0;
  -moz-animation: 0;
  animation: 0;
}

:root {
  /* Canvas width is set to window width if canvas is not found */
  --unity-canvas-width: 100vw; 
  --video-size-small: 0.07;
  --video-size-big: 0.11;
  --video-current-size: var(--video-size-big);
  --video-size: max(100px, calc(var(--unity-canvas-width) * var(--video-current-size)));
  --video-border-radius: 7px;
}


/* width */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #a2c614cc; 
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background:#788d27; 
}
