/* Tested on Chrome, Firefox, and Opera. */

/* BASE STYLES
------------------------------------------------------- */

button {
  border: none;
  background: none;
  outline: none;
}

/* LAYOUT
------------------------------------------------------- */

#video-wrapper {
  width: 50%;
  margin: 0 auto;
}

#videoContainer {        
  position: relative;
  height: 50%;
  height: 50%;
}

#video {
  width: 100%;
}

#transcript p {
  font-family: 'Varela Round', sans-serif;
  font-size: 18px;
  line-height: 36px;
  margin: 20px;
}

.highlight {
  color: #ff9900;
}

/* VIDEO CONTROLS
------------------------------------------------------- */

#videoControls {
}

#progress {
  width: 0%;
  -webkit-appearance: none;
  background-color: #ff9900;  
  height: 5px;
  z-index: 1;
  pointer-events: none;   
}

#progressBar {
  width: 98.5%;
  -webkit-appearance: none;
  background-color: #6d6e6d;  
  height: 5px;
  z-index: 0;
}
#progressBar:focus {
    outline: none; 
}
#progressBar::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    height: 0;
    width: 0;
}
#progressBar::-moz-range-thumb {
  visibility: hidden !important ;
}

#buttons {
  opacity: 0; 
  transition: opacity .3s ease-out;
}
#videoContainer:hover #buttons {
  opacity: 1.0;
} 

#duration, #fastFwd {
  color: white;
  font-family: 'Varela Round', sans-serif;
  font-size: 14px;
  position: relative;
  bottom: 5px;
  left: 5px;
}

#mute, #closedCaption, #fullScreen, #volumeBar {
  float: right;
}

#volumeSlider {
  width: 60px;
  float: right;
}
#volumeSlider::-webkit-slider-thumb {
    background-color: green;
    height: 10px;
    width: 10px;
}

/* =========================================
   MEDIA QUERIES */


@media screen and (max-width: 1024px) {

  #video-wrapper {
    width:  80%;
  }

  #transcript p {
    font-size: 14px;
    line-height: 24px;
  }

  #videoControls {
    top: 85%;
  }

}
.audio-wrapper{
  padding-bottom: 30px;
}
.audio-player {
    width: 100%;
}

    /*
      PLAYER
    */


    /* responsiveness */

    @media only screen and ( max-width: 32.5em ) /* 520 */
    {
      #wrapper
      {
        position: static;
        margin: 0;
      }
    }


/*VIDEO*/

input[type=range] {
  -webkit-appearance: none;
  margin: 10px 0;
  width: 100%;
}

input[type=range]:focus {
  outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 1px;
  cursor: pointer;
  animate: .2s;
  box-shadow: 0 0 0 #000, 0 0 0 #000;
  background: #aaa;
  border-radius: 25px;
  border: 0px solid #000101;
}

input[type=range]::-webkit-slider-thumb {
  box-shadow: 0 0 0 #000, 0 0 0 #000;
  border: 0px solid #000000;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: #bbb;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -6px;
}

input[type=range]:focus::-webkit-slider-runnable-track {
  background: #aaa;
}

input[type=range]::-moz-range-track {
  width: 100%;
  height: 1px;
  cursor: pointer;
  animate: 0.2s;
  box-shadow: 0 0 0 #000, 0 0 0 #000;
  background: #aaa;
  border-radius: 25px;
  border: 0px solid #000101;
}

input[type=range]::-moz-range-thumb {
  box-shadow: 0 0 0 #000, 0 0 0 #000;
  border: 0px solid #000000;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: #bbb;
  cursor: pointer;
}

input[type=range]::-ms-track {
  width: 100%;
  height: 1px;
  cursor: pointer;
  animate: 0.2s;
  background: transparent;
  border-color: transparent;
  border-width: 10px 0;
  color: transparent;
}

input[type=range]::-ms-fill-lower {
  background: #aaa;
  border: 0.5px #aaa solid;
  border-radius: 50px;
  box-shadow: 0 0 0 #000, 0 0 0 #000;
}

input[type=range]::-ms-fill-upper {
  background: #aaa;
  border: 0.5px #aaa solid;
  border-radius: 50px;
  box-shadow: 0 0 0 #000, 0 0 0 #000;
}

input[type=range]::-ms-thumb {
  box-shadow: 0 0 0 #000, 0 0 0 #000;
  border: 0px solid #000000;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: #bbb;
  cursor: pointer;
}

input[type=range]:focus::-ms-fill-lower {
  background: #aaa;
}

input[type=range]:focus::-ms-fill-upper {
  background: #aaa;
}

.wrapper {
  height: 240px;
  width: 360px;
  position: absolute;
  top: -200px;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}
.wrapper .video {
  height: 100%;
  max-height: 720px;
  width: 100%;
  max-width: 1280px;
  background-color: #111;
}
.wrapper .video video {
  height: 100%;
  width: 100%;
}
.wrapper .video video::-webkit-media-controls-enclosure, .wrapper .video video::-webkit-media-controls {
  display: none !important;
}
.wrapper .video .controls {
  height: 40px;
  width: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
  background: rgba(6, 6, 6, 0.8);
  z-index: 2147483648;
}
.wrapper .video .controls .playpause,
.wrapper .video .controls .volume,
.wrapper .video .controls .fullscreen {
  width: 48px;
  padding: 12px 0;
  color: #D6D6D6;
  font-size: 16px;
  text-align: center;
}
.wrapper .video .controls .progress {
  width: calc(100% - 208px);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 54px;
  margin: auto;
  background: transparent;
}
.wrapper .video .controls .volume {
  position: absolute;
  right: 96px;
}
.wrapper .video .controls .volume input {
  background: transparent;
  width: 48px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 44px;
  margin: auto;
}
.wrapper .video .controls .fullscreen {
  position: absolute;
  right: 0;
  top: 0;
}
.wrapper .text {
  width: 360px;
  position: absolute;
  top: 280px;
  left: 0;
  right: 0;
  bottom: auto;
  font-size: 48px;
  text-align: center;
  font-family: "Roboto Condensed";
}

.whitespace {
  height: 40px;
  position: absolute;
  bottom: -40px;
}
