@import url(https://fonts.googleapis.com/earlyaccess/alefhebrew.css);
html, body {
  height: 100%;
  margin: 0px;
  background-color: #333333;
  font-family: "Alef Hebrew", “Helvetica Neue”, Helvetica, Arial, sans-serif;
}

.mainView {
  padding: 0px;
  width: 100%;
  height: 100%;
  position: absolute;
  /*margin-top: 15px;*/
  color: rbga(225, 225, 225, 0.8);
}

.mainView div {
  text-align: center;
}

.mainView p {
  position: fixed;
  right: 19px;
  color: rgba(225, 225, 225, 0.8);
  top: 68%;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 5px;
}

.waitingView {
  max-width: 100%;
  margin-top: 10%;
  margin-left: auto;
  margin-right: auto;
  color: rgba(225, 225, 225, 0.8);
}


/*
.waitingView p {
    color: rbga(225, 225, 225, 0.8);
}*/

.mainView img {
  display: block;
  margin: auto;
}

.mainVideo {
  height: 100%;
  width: auto;
  /* position: fixed; */
  right: 0;
  bottom: 0;
  /*min-width: 100%;*/
  min-height: 100%;
  position: fixed;
  top: 50%;
  left: 50%;
  /*z-index: 1; */
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  /* z-index: -100; */
}


/*.remote-vid{
    width: 500px;
    height: 500px;
}*/

.all-streams-up {
  /*margin-top: 15px;*/
  -webkit-transition: 0.5s;
  transition: 0.5s;
  bottom: 0px;
  position: fixed;
  margin: 15px;
  padding: 15px;
  z-index: 2;
  /*height: 150px;*/
  width: 96%;
  background-color: rgba(0, 0, 0, 0.3);
  -webkit-animation-name: slideup;
  animation-name: slideup;
  -webkit-animation-duration: 0.5s;
  animation-duration: 0.5s;
}

.all-streams-down {
  -webkit-transition: 0.5s;
  transition: 0.5s;
  bottom: -21vh;
  -webkit-animation-name: slidedown;
  animation-name: slidedown;
  -webkit-animation-duration: 0.5s;
  animation-duration: 0.5s;
  position: fixed;
  margin: 15px;
  padding: 0px 15px 15px 15px;
  z-index: 2;
  /*height: 150px;*/
  width: 96%;
  background-color: rgba(0, 0, 0, 0.3);
  -webkit-animation-name: slideup;
  animation-name: slideup;
  animation-duration: 0.5s;
}

@-webkit-keyframes slidedown {
  from {
    bottom: 0;
  }
  to {
    bottom: -21vh;
  }
}

@keyframes slidedown {
  from {
    bottom: 0;
  }
  to {
    bottom: -21vh;
  }
}

@-webkit-keyframes slideup {
  from {
    bottom: -21vh;
  }
  to {
    bottom: 0;
  }
}

@keyframes slideup {
  from {
    bottom: -21vh;
  }
  to {
    bottom: 0;
  }
}

.streams-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  max-height: 100px;
  height: 13vh;
  padding-right: 10px;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: flex-end;
}

.slider-toggle-up {
  position: relative;
  bottom: 4.7vh;
  background-color: rgba(0, 0, 0, 0.3);
  display: inline;
  color: rgba(225, 225, 225, 0.8);
  padding: 5px;
  left: 94vw;
  font-size: 1.4em;
  cursor: pointer;
}

.slider-toggle-down {
  display: inline;
  -webkit-animation: toggle-down 0.5s;
  animation: toggle-down 0.5s;
  bottom: 15px;
  position: fixed;
  background-color: rgba(0, 0, 0, 0.3);
  color: rgba(225, 225, 225, 0.8);
  padding: 5px;
  right: 45px;
  font-size: 1.4em;
  cursor: pointer;
}

@-webkit-keyframes toggle-down {
  from {
    position: relative;
    bottom: 4.7vh;
    left: 94vw;
    display: inline;
  }
  to {
    position: fixed;
    bottom: 15px;
    right: 45px;
    display: inline;
  }
}

@keyframes toggle-down {
  from {
    position: relative;
    bottom: 4.7vh;
    left: 94vw;
    display: inline;
  }
  to {
    position: fixed;
    bottom: 15px;
    right: 45px;
    display: inline;
  }
}

.slider-toggle:hover {
  color: white;
}

.videoSelected {
  border: solid 2px green;
}

.devices {
  border: 1px solid #111;
  background-color: #666;
  padding: 15px;
  margin: 5px;
  color: #ddd;
  -webkit-animation: popup 0.5s;
  animation: popup 0.5s;
  z-index: 50;
  /*display: none;*/
}

.devices:disabled {
  background-color: #363535;
  color: rgba(254, 254, 254, 0.53);
}

.devices.local-stream-devices {
  -webkit-transform: scale(-1, 1);
  transform: scale(-1, 1);
  position: fixed;
  bottom: 12vh;
  right: -5vw;
}

.left {
  float: left;
}

.right {
  float: right;
}

.stream-item {
  max-height: 100px;
  height: 13vh;
  /*width: 100%;*/
  margin-left: 15px;
  background-image: url("/favicon.png");
  background-color: #666;
  background-repeat: no-repeat;
  background-position: center;
  /*border-radius: 15px;*/
}

.stream-item video {
  height: 100%;
  /*max-height: 100%;*/
}

.stream-volume-0 {}

.stream-volume-1 {
  /*border*/
}

.stream-volume-2 {}

.stream-volume-3 {}

.stream-item video:hover {
  cursor: pointer;
  box-shadow: 6px 7px 30px 0px rgba(0, 0, 0, 0.75);
}

.stream-item:hover {
  cursor: pointer;
  box-shadow: 6px 7px 30px 0px rgba(0, 0, 0, 0.75);
}

.selected-video {
  -webkit-animation: borderPulse 1s infinite;
  animation: borderPulse 1s infinite;
}

@-webkit-keyframes borderPulse {
  0% {
    box-shadow: 0px 0px 18px 0px rgba(0, 200, 0, 0.75);
  }
  50% {
    box-shadow: 0px 0px 25px 0px rgba(0, 200, 0, 0.75);
  }
  100% {
    box-shadow: 0px 0px 18px 0px rgba(0, 200, 0, 0.75);
  }
}

@keyframes borderPulse {
  0% {
    box-shadow: 0px 0px 18px 0px rgba(0, 200, 0, 0.75);
  }
  50% {
    box-shadow: 0px 0px 25px 0px rgba(0, 200, 0, 0.75);
  }
  100% {
    box-shadow: 0px 0px 18px 0px rgba(0, 200, 0, 0.75);
  }
}

.local {
  /*border-radius: 15px;*/
  border: solid 2px rgba(225, 225, 225, 0.8);
}

.mirror {
  -webkit-transform: scale(-1, 1);
  transform: scale(-1, 1);
}

.localControls {
  position: fixed;
  top: 0;
  left: 0;
  text-align: left;
  color: #ffffff;
  z-Index: 50;
  margin: auto;
  padding: 15px;
  /*visibility: hidden;*/
  font-family: Arial;
}

.btn_red_off {
  cursor: pointer;
  font-size: 2.2em;
  padding: 10px;
  color: #AAAAAA;
  fill: #AAAAAA;
  border: 1px solid transparent;
  border-radius: 10px;
  margin-bottom: 5px;
}

.btn_red_on {
  cursor: pointer;
  font-size: 2.2em;
  padding: 10px;
  width: 1.3em;
  color: #DD1233;
  fill: #DD1233;
  border: 1px solid #DD1233;
  border-radius: 10px;
  margin-bottom: 5px;
}

.btn_red_off:hover, .btn_red_on:hover {
  cursor: hand;
  cursor: pointer;
  font-size: 2.2em;
  padding: 10px;
  width: 1.3em;
  color: #EE3344;
  fill: #EE3344;
  border: 1px solid #EE3344;
  border-radius: 10px;
  margin-bottom: 5px;
}

.btn_green_off {
  cursor: pointer;
  font-size: 2.2em;
  padding: 10px;
  width: 1.3em;
  color: #AAAAAA;
  /*display: inline-block;*/
  fill: #AAAAAA;
  border: 1px solid transparent;
  border-radius: 10px;
  margin-bottom: 5px;
}

.btn_green_on {
  cursor: pointer;
  font-size: 2.2em;
  padding: 10px;
  width: 1.3em;
  color: #5bb75b;
  /*display: inline-block;*/
  fill: #5bb75b;
  border: 1px solid #5bb75b;
  border-radius: 10px;
  margin-bottom: 5px;
}

.btn_green_off:hover, .btn_green_on:hover {
  cursor: hand;
  border: 1px solid #4fc34f;
  color: #4fc34f;
  fill: #4fc34f;
}

#logo {
  position: fixed;
  top: 0;
  right: 0;
  text-align: center;
  color: #ffffff;
  /*opacity: 0.3;*/
  z-Index: 2;
  margin: auto;
  padding: 15px;
  /*visibility: hidden;*/
  font-family: Arial;
  font-size: 200%;
}

#logo img {
  width: 200px;
}

#localInfo {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background-color: #000000;
  opacity: 0.3;
  text-align: left;
  color: #ffffff;
  z-Index: 5;
  margin: auto;
  padding: 5px;
  font-family: Arial;
}

.localInfoAlert {
  display: inline;
  color: red;
}

.alert {
  border: 1px solid #111;
  background-color: #666;
  padding: 15px;
  /*margin: 5px;*/
  color: #ddd;
  z-index: 100;
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  /*display: none;*/
  font-family: Arial;
  font-size: 120%;
  max-width: 500px;
  /*height: 400px;*/
  display: inline-table;
  /*margin-left: -250px;*/
  -webkit-animation: popup 0.3s;
  animation: popup 0.3s;
}

.close_button {
  margin-left: 15px;
  color: #ddd;
  font-weight: bold;
  float: right;
  font-size: 130%;
  line-height: 20px;
  cursor: pointer;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  text-decoration: none;
}

.close_button:hover {
  color: black;
}

@-webkit-keyframes popup {
  from {
    -webkit-transform: scale(0, 0);
    transform: scale(0, 0);
  }
  to {
    -webkit-transform: scale(1, 1);
    transform: scale(1, 1);
  }
}

@keyframes popup {
  from {
    -webkit-transform: scale(0, 0);
    transform: scale(0, 0);
  }
  to {
    -webkit-transform: scale(1, 1);
    transform: scale(1, 1);
  }
}

.welcome_login {
  width: 50%;
  padding: 15px;
  margin: auto;
  margin-top: 15vh;
  border: 2px solid rgba(225, 225, 225, 0.3);
  border-radius: 15px;
  color: rgba(225, 225, 225, 0.8);
  text-align: center;
}

.welcome_config {
  text-align: left;
  margin: 20px;
  /* margin-left: auto; */
  display: inline-block;
}

.welcome_input {
  width: 100%;
  padding: 10px;
  border: solid 1px #dcdcdc;
  border-radius: 5px;
  -webkit-transition: box-shadow 0.3s, border 0.3s;
  transition: box-shadow 0.3s, border 0.3s;
  background-color: rgba(115, 112, 113, 0.68);
  color: white;
}

.welcome_button {
  font-size: 18px;
  padding: 8px 16px;
}

.welcome_button:hover {}

.button {
  display: inline-block;
  margin-bottom: 0;
  vertical-align: middle;
  line-height: 20px;
  cursor: pointer;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  background-color: #5bb75b;
  border: none;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .05);
}

.button:hover {
  background-color: #4fc34f;
}

.button:disabled {
  background-color: #658365;
  cursor: not-allowed;
}

.danger {
  background-color: #c74141;
}

.danger:hover {
  background-color: #f52626;
}

.danger:disabled {
  background-color: #cd6969;
}

.audioVideoOptions {
  padding: 30px;
  overflow: hidden;
}

.audioVideoOptions input {
  position: absolute !important;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  width: 1px;
  border: 0;
  overflow: hidden;
}

.audioVideoOptions label {
  float: left;
  display: inline-block;
  width: 105px;
  background-color: rgba(115, 112, 113, 0.68);
  color: #ffffff;
  font-size: 14px;
  font-weight: normal;
  text-align: center;
  padding: 6px 14px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.audioVideoOptions label:hover {
  cursor: pointer;
}

.audioVideoOptions input:checked+label {
  background-color: #5bb75b;
}

.audioVideoOptions label:first-of-type {
  border-radius: 4px 0 0 4px;
}

.audioVideoOptions label:last-of-type {
  border-radius: 0 4px 4px 0;
}

.recording-status {
  position: absolute;
  color: rgb(138, 1, 1);
  top: 80px;
  right: 15px;
}

.recording-paused {
  position: absolute;
  top: 80px;
  right: 15px;
}

.red {
  color: rgb(138, 1, 1);
}

.gray {
  color: rgb(223, 223, 223);
}

.recorder-pending {
  position: absolute;
  color: rgb(61, 154, 154);
  top: 80px;
  right: 15px;
}

.chat {
  position: fixed;
  top: 120px;
  right: 15px;
  width: 17vw;
  height: 60vh;
  background-color: rgba(115, 112, 113, 0.68);
  border-radius: 15px 0px;
  display: inline-table;
  z-index: 5;
}

.chatMessages {
  overflow-y: auto;
  height: 54vh;
  /*padding-top: 15px;*/
  display: block;
}

.chatMessage {
  background-color: rgb(212, 212, 212);
  width: 80%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  box-shadow: 3px 3px 5px 0px rgba(0, 0, 0, 0.75);
  margin-left: auto;
  margin-right: auto;
  padding: 15px;
  margin-top: 15px;
}

.chatMessage .avatar {
  /*float: left;*/
  max-width: 20%;
  overflow-x: hidden;
}

.chatMessage .avatar .avatarImage {
  border-radius: 10px;
  border: solid 2px rgb(36, 36, 36);
  display: block;
  margin: 0px auto;
}

.chatMessage .nickname {
  padding: 0px;
  overflow-x: hidden;
  width: 100%;
  font-weight: bold;
  font-size: 0.8em;
  display: inline-block;
  margin: 0px auto;
  text-align: center;
}

.chatMessage img {
  width: 80%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

.chatMessage .chatText {
  padding: 5px;
  padding-top: 0px;
  padding-right: 10px;
  overflow-x: hidden;
  overflow-wrap: break-word;
  width: 78%;
  font-size: 0.9em;
  word-break: break-all;
  word-wrap: break-word;
}

.chatMessage .chatText a {
  text-decoration: none;
  color: #0e6500;
}

.chatMessage .chatText .chatTimestamp {
  font-size: .6em;
}

.chatInput {
  height: auto;
  padding: 15px;
  margin-right: auto;
  display: table-row;
  text-align: center;
}

.chatInput .chatButton {
  height: 33px;
  width: 20%;
  overflow-x: hidden;
}

.chatInput input {
  width: 75%;
  height: 25px;
}

.pinned-stream {
  position: absolute;
  display: inline-block;
  border-radius: 50px;
  background-color: rgb(210, 210, 210);
  margin: 5px;
  box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, 0.75);
}

.stream-options-toggle {
  position: absolute;
  display: inline-block;
  border-radius: 50px;
  background-color: rgb(210, 210, 210);
  margin: 5px;
  right: 0px;
  z-index: 50;
  box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, 0.75);
}

.audio-off {
  position: absolute;
  display: inline-block;
  border-radius: 50px;
  background-color: rgb(230, 30, 30);
  color: white;
  margin: 5px;
  right: 0px;
  bottom: 0px;
  z-index: 50;
  box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, 0.75);
}

.audio-on {
  position: absolute;
  display: inline-block;
  border-radius: 50px;
  background-color: rgb(210, 210, 210);
  margin: 5px;
  right: 0px;
  bottom: 0px;
  z-index: 50;
  box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, 0.75);
}

.video-off {
  position: absolute;
  display: inline-block;
  border-radius: 50px;
  background-color: rgb(230, 30, 30);
  color: white;
  margin: 5px;
  right: 2em;
  bottom: 0px;
  z-index: 50;
  box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, 0.75);
}

.video-on {
  position: absolute;
  display: inline-block;
  border-radius: 50px;
  background-color: rgb(210, 210, 210);
  margin: 5px;
  right: 2em;
  bottom: 0px;
  z-index: 50;
  box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, 0.75);
}

.stream-options-toggle:hover {
  background-color: rgb(230, 30, 30);
  color: white;
}

.preview-stream {
  margin: auto;
  display: -webkit-box;
  max-height: 100px;
  height: 13vh;
  background-image: url("/favicon.png");
  background-color: #666;
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid #000;
}

.preview-fail {
  width: 50%;
  text-align: center;
}

.close-devices-button {
  float: right;
  font-size: 1.3em;
  color: rgba(255, 255, 255, 0.8);
  position: initial;
  text-align: right;
  width: 100%;
}

.close-devices-button:hover {
  cursor: pointer;
  color: rgb(255, 255, 255);
}

.close-devices-button:active {
  color: rgba(255, 255, 255, 0.6);
}

.nickname-close-button{
  display: inline-block;;
  position: absolute;
  top: 0;
  right: 0;
  font-size: 1.3em;
  color: rgba(255, 255, 255, 0.8);
}

.nickname-close-button:hover {
  cursor: pointer;
  color: rgb(255, 255, 255);
}

.nickname-close-button:active {
  color: rgba(255, 255, 255, 0.6);
}

.nickname-input{
  position: fixed;
  display: inline-block;
  padding: 15px 25px;
  left: 130px;
  top: 15px;
  z-index: 300;
  background: rgba(0, 0, 0, 0.46);
  border-radius: 5px;
  color: white;
}
.peer-nickname-video-strip {
  position: absolute;
  background: rgba(0, 0, 0, 0.54);
  max-width: 50%;
  color: #AAAAAA;
  display: inline-block;
  font-size: .9em;
  padding: 5px;
  bottom: 0;
  margin: 0px 0px 15px 0px;
}
