/* 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,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
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;
}

/* Generic webpage styles*/
body {
  font-family: sans-serif;
  font-size: 15px;
}

/* Let's get this party started */
::-webkit-scrollbar {
  width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  -webkit-border-radius: 10px;
  border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  -webkit-border-radius: 10px;
  border-radius: 10px;
  background: rgb(128 16 16);
  -webkit-box-shadow: inset 0 0 6px rgb(128 16 16);
}
::-webkit-scrollbar-thumb:window-inactive {
  background: rgb(128 16 16);
}

/* Header-css */
#header {
  background-color: rgb(128 16 16);
  text-align: center;
  padding: 10px;
  border-bottom: 1px solid rgb(8 8 8);
  color: #fff;
}
#header h1 {
  font-size: 30px;
  font-family: cursive;
}
#header > .features {
  padding: 5px;
  font-size: 8px;
  margin-top: 5px;
  text-decoration: underline;
}
#header > .features > span:first-child {
  border-right: 1px solid #000;
  margin-right: 5px;
  padding-right: 10px;
}

/* content css */
#content {
  background-image: url(dirt-texture.png);
  background-size: contain;
  background-color: rgb(29 29 29);
  height: 100vh;
}
#video-box {
  display: flex;
  justify-content: space-evenly;
  padding: 15px;
}

/** Footer Styles*/
#footer {
  background-color: #000;
  text-align: center;
  text-align: center;
  color: rgb(255, 255, 255);
  padding: 10px;
  font-size: 13px;
  border-top: 1px solid rgb(128 16 16);
}

/*==== Fix for mobile devices  ====*/

@media only screen and (max-width: 600px) {
  #video-box {
    display: block;
    justify-content: initial;
    padding: 0px 10px;
  }
  #header h1 {
    font-size: 18px;
    font-family: cursive;
  }
  #header {
    padding: 5px;
  }
  #header > .features {
    margin-top: 5px;
  }
  #content {
    background-image: none;
    height: 100%;
    padding-bottom: 10px;
  }
}

/** Video Filters */

.blur {
  -webkit-filter: blur(3px);
  -moz-filter: blur(3px);
  -o-filter: blur(3px);
  -ms-filter: blur(3px);
  filter: blur(3px);
}

.brightness {
  -webkit-filter: brightness(5);
  -moz-filter: brightness(5);
  -o-filter: brightness(5);
  -ms-filter: brightness(5);
  filter: brightness(5);
}

.contrast {
  -webkit-filter: contrast(8);
  -moz-filter: contrast(8);
  -o-filter: contrast(8);
  -ms-filter: contrast(8);
  filter: contrast(8);
}

.hue-rotate {
  -webkit-filter: hue-rotate(90deg);
  -moz-filter: hue-rotate(90deg);
  -o-filter: hue-rotate(90deg);
  -ms-filter: hue-rotate(90deg);
  filter: hue-rotate(90deg);
}

.hue-rotate2 {
  -webkit-filter: hue-rotate(180deg);
  -moz-filter: hue-rotate(180deg);
  -o-filter: hue-rotate(180deg);
  -ms-filter: hue-rotate(180deg);
  filter: hue-rotate(180deg);
}

.hue-rotate3 {
  -webkit-filter: hue-rotate(270deg);
  -moz-filter: hue-rotate(270deg);
  -o-filter: hue-rotate(270deg);
  -ms-filter: hue-rotate(270deg);
  filter: hue-rotate(270deg);
}

.saturate {
  -webkit-filter: saturate(10);
  -moz-filter: saturate(10);
  -o-filter: saturate(10);
  -ms-filter: saturate(10);
  filter: saturate(10);
}

.grayscale {
  -webkit-filter: grayscale(1);
  -moz-filter: grayscale(1);
  -o-filter: grayscale(1);
  -ms-filter: grayscale(1);
  filter: grayscale(1);
}

.sepia {
  -webkit-filter: sepia(1);
  -moz-filter: sepia(1);
  -o-filter: sepia(1);
  -ms-filter: sepia(1);
  filter: sepia(1);
}

.invert {
  -webkit-filter: invert(1);
  -moz-filter: invert(1);
  -o-filter: invert(1);
  -ms-filter: invert(1);
  filter: invert(1);
}

#awesome-video-canvas:picture-in-picture {
  border-radius: 50%;
}
/* Player-css */
#select-controls {
  padding: 5px;
  justify-content: center;
  background: rgb(59, 59, 59);
  color: rgb(255, 255, 255);
}
#select-controls > span {
  padding-top: 2px;
}
#select-controls > span,
#select-controls > select {
  margin-right: 10px;
  font-size: 12px;
}

#video-player {
  text-align: center;
}
#status-bar {
  padding: 2px;
  color: rgb(255, 255, 255);
  font-size: 12px;
}
#status-bar > i {
  float: right;
  position: relative;
  right: 15px;
  cursor: pointer;
  font-size: 12px;
}
#status-bar.power_off {
  background-color: red;
}
#status-bar.power_on {
  background-color: green;
}
.video-canvas {
  text-align: center;
  height: 425px;
  width: 600px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(78 72 72);
  padding: 0px;
  background-color: rgb(0 0 0);
}
video {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.video-controls {
  width: 600px;
  text-align: center;
  margin: 0 auto;
  background-color: rgba(59, 59, 59, 0.5);
  padding: 10px;
  position: absolute;
  bottom: 0;
  border-top: 1px solid rgb(78 72 72);
}
.video-controls > button,
.video-controls > button:hover,
.video-controls > button:focus,
.video-controls > button:active {
  background-color: rgb(0 0 0);
  border-radius: 50%;
  height: 40px;
  width: 40px;
  margin-right: 10px;
  cursor: pointer;
  border: 0;
  box-shadow: none;
  outline: none;
  color: #fff;
}
#capture,
#capture:hover,
#capture:active,
#capture:focus,
#download > i {
  cursor: pointer;
  background: rgba(0, 0, 0, 0);
  border: 0;
  box-shadow: none;
  outline: none;
  color: #fff;
  font-size: 15px;
}

.video-controls > button:disabled {
  cursor: not-allowed;
  box-shadow: none !important;
}
.video-controls > button:disabled > i {
  color: gray !important;
  box-shadow: none !important;
}
#capture-images,
#capture-videos {
  max-height: 400px;
  min-height: 400px;
  max-width: 200px;
  min-width: 200px;
  border: 1px solid rgb(78 72 72);
  position: relative;
  padding-top: 20px;
  background-color: rgb(43 43 43);
  overflow: hidden;
}

#capture-images > #all-images,
#capture-videos > #all-videos {
  overflow-y: scroll;
  max-height: 400px;
  min-height: 400px;
  padding: 5px;
}

#capture-images > h2,
#capture-videos > h2 {
  padding: 5px;
  background-color: rgb(128 16 16);
  position: absolute;
  width: 190px;
  z-index: 1000;
  left: 0;
  top: 0;
  box-shadow: 0px 0px 10px #333333;
  color: rgb(255 255 255);
  font-size: 12px;
}
.video-wrapper > .video-time {
  padding: 3px;
  display: block;
  background-color: rgb(59, 59, 59);
  color: rgb(253, 208, 7);
  margin-top: 5px;
  font-size: 12px;
}
.captured-image,
.video-wrapper {
  position: relative;
  overflow: hidden;
  margin: 5px 0px;
  border: 1px solid;
  padding: 5px;
  background-color: rgb(240, 240, 240);
  border-radius: 3px;
}
.captured-image > i,
.video-wrapper > i {
  position: absolute;
  cursor: pointer;
  z-index: 100;
  top: 5px;
  left: 5px;
  font-size: 14px;
  border: 1px solid rgb(0, 0, 0);
  padding: 3px;
  background-color: rgb(0 0 0);
  border-radius: 5px;
  color: rgb(206 27 27);
}
.captured-image > a,
.video-wrapper > a {
  color: rgb(0, 0, 0);
  font-size: 12px;
  cursor: pointer;
  position: relative;
  width: 100%;
  display: block;
}
.captured-image > a > i,
.video-wrapper > a > i {
  font-size: 15px;
  position: absolute;
  left: 15px;
  top: 0px;
  cursor: pointer;
}
#capture {
  position: absolute;
  right: 5px;
  top: 5px;
  z-index: 100;
  cursor: pointer;
}
#capture > i {
  font-size: 20px;
  color: rgb(128 16 16);
  padding: 5px;
  border-radius: 5px;
  background-color: rgb(0 0 0);
}

#videoOnOff.on {
  box-shadow: 0px 0px 10px rgb(128 16 16);
  color: rgb(128 16 16);
}

#muteUnmute.on {
  color: green;
  box-shadow: 0px 0px 10px green;
}
#playPause.off,
#muteUnmute.off,
#onPipMode.off,
#recordStop.off {
  color: rgb(128 16 16);
  box-shadow: 0px 0px 10px rgb(128 16 16);
}
#onPipMode.on,
#playPause.on,
#recordStop.on {
  box-shadow: 0px 0px 10px rgb(128 16 16);
  color: rgb(128 16 16);
}

#audioSource,
#videoSource {
  width: 200px;
}
#cssfilters-video,
#screenshot-img {
  width: 400px;
  height: 300px;
}

#cssfilters-stream {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid #ccc;
}

/* ==== recording status ==== */
.recording-status {
  color: #fff;
  font-size: 13px;
  display: flex;
  padding: 10px;
  position: fixed;
  top: 0;
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  z-index: 1000;
}
.recording-status > i {
  float: right;
  position: relative;
  right: 20px;
  cursor: pointer;
  font-size: 15px;
}
#recording-time {
  flex: auto;
  text-align: end;
  padding-right: 40px;
}
.recordingOn {
  background-color: #004a7f;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  border: none;
  color: #ffffff;
  display: inline-block;
  font-family: Arial;
  font-size: 20px;
  padding: 10px;
  text-align: center;
  text-decoration: none;
  -webkit-animation: glowing 1500ms infinite;
  -moz-animation: glowing 1500ms infinite;
  -o-animation: glowing 1500ms infinite;
  animation: glowing 1500ms infinite;
  margin: -4px 10px;
}
@-webkit-keyframes glowing {
  0% {
    background-color: #b20000;
    -webkit-box-shadow: 0 0 3px #b20000;
  }
  50% {
    background-color: #ff0000;
    -webkit-box-shadow: 0 0 40px #ff0000;
  }
  100% {
    background-color: #b20000;
    -webkit-box-shadow: 0 0 3px #b20000;
  }
}

@-moz-keyframes glowing {
  0% {
    background-color: #b20000;
    -moz-box-shadow: 0 0 3px #b20000;
  }
  50% {
    background-color: #ff0000;
    -moz-box-shadow: 0 0 40px #ff0000;
  }
  100% {
    background-color: #b20000;
    -moz-box-shadow: 0 0 3px #b20000;
  }
}

@-o-keyframes glowing {
  0% {
    background-color: #b20000;
    box-shadow: 0 0 3px #b20000;
  }
  50% {
    background-color: #ff0000;
    box-shadow: 0 0 40px #ff0000;
  }
  100% {
    background-color: #b20000;
    box-shadow: 0 0 3px #b20000;
  }
}

@keyframes glowing {
  0% {
    background-color: #b20000;
    box-shadow: 0 0 3px #b20000;
  }
  50% {
    background-color: #ff0000;
    box-shadow: 0 0 40px #ff0000;
  }
  100% {
    background-color: #b20000;
    box-shadow: 0 0 3px #b20000;
  }
}

/* error ui */

#error-unwanted {
  position: fixed;
  top: 0;
  background-color: rgb(255, 0, 0);
  width: 100%;
  color: rgb(255, 255, 255);
  font-size: 12px;
  padding: 5px;
  z-index: 10000;
}
#error-unwanted > span {
  margin: 3px;
  padding: 3px;
  background-color: rgb(253, 208, 7);
  color: rgb(0, 0, 0);
}
#error-unwanted > i {
  float: right;
  position: relative;
  right: 15px;
  cursor: pointer;
  font-size: 15px;
}

@media only screen and (max-width: 600px) {
  #video-box > div {
    margin-top: 10px;
  }
  .video-canvas {
    height: 300px;
    width: 100%;
  }
  .video-controls,
  #capture-images > h2,
  #capture-videos > h2 {
    width: 100%;
    padding: 5px;
  }
  #capture-images,
  #capture-videos {
    max-width: 100%;
    min-width: 100%;
    max-height: 220px;
    min-height: 220px;
  }
  #capture-images > #all-images,
  #capture-videos > #all-videos {
    display: flex;
    overflow-x: auto;
    overflow-y: auto;
    flex-direction: row;
  }
  .captured-image,
  .video-wrapper {
    width: 250px;
    flex: none;
    margin: 5px 0px;
    margin-left: 10px;
    height: 190px;
  }
  #select-controls > span,
  #select-controls > select {
    display: none;
  }
}

