$button-width: 30px;

@mixin player-button($width) {
  cursor: pointer;
  flex-shrink: 0;
  text-align: center;
  padding-top: 0%;
  width: $width;
}

.videoPaperContainer {
  width: 100%;
}

.playerContainer {
  height: 0;
  padding-bottom: 56.25%;
  position: relative;
  width: 100%;
}

.controlsContainer {
  padding-bottom: 5px;
}

.controlsRow {
  align-content: center;
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  height: 3em;
}

.progressBar {
  margin-bottom: -0.5em;
  padding: 0 1em;
  position: relative;
  width: 100%;
}

.playButton {
  @include player-button($button-width);
  order: 1;
}

.volumeButton {
  @include player-button($button-width);
  order: 2;
}

.volumeSlider {
  @include player-button(2 * $button-width);
  margin: 0.25em 0.25em 0;
  order: 3;
}

.timestamp {
  flex-grow: 10;
  font-size: 0.9em;
  margin: 0.5em 0.5em 0.75em;
  order: 4;
}

.captionsButton {
  order: 6;
}

.nextVideo {
  margin-left: 1em;
  order: 7;
}

.playbackRate {
  order: 6;
  text-align: right;
  width: 100px;
}
