@mixin transition($args...) {
  -webkit-transition: $args;
  -moz-transition: $args;
  -ms-transition: $args;
  -o-transition: $args;
  transition: $args;
}

// Sass for videojs-dotsub-captions
.video-js {
  // This class is added to the video.js element by the plugin by default.
  &.vjs-dotsub-captions {
    display: block;

    .vjs-caption-containter {
      opacity: 0.99;
      position: absolute;
      width: 100%;
      padding: 0 15px;
      @include transition(bottom 1.0s);

      .vjs-caption {
        color: #fff;
        font-size: 2em;
        padding: 5px 0;

        .vjs-text {
          display: inline-block;
          background-color: rgba(0, 0, 0, 0.7);
          padding: 8px;
          border-radius: 5px;

          b {
            font-weight: 800;
          }
        }
      }
    }
  }
}
