/* subtitle.css - Applies custom styling to all Video.js subtitle cues with uniform padding on all sides */

@font-face {
  font-family: 'volvo-font';
  src: url(../../../fonts/new-fonts/VolvoCentum_Lt.ttf);
}

.vjs-text-track-cue {
  background-color: rgba(0, 0, 0, 0.5) !important;
  width: fit-content !important;
  height: fit-content !important;
  margin: 0 auto;
  padding: 0.5rem !important; /* Uniform padding on all sides */
  border-radius: 4px;
  display: flex;           /* Enable flexbox */
  align-items: center;     /* Center content vertically */
  justify-content: center;
}

.vjs-text-track-cue div {
  background-color: transparent !important;
  font-family: 'volvo-font' !important;
  font-size: 0.8em !important; /* 20% smaller than the default font size */
}

/* Shift the subtitle display higher from the bottom of the player */
.vjs-text-track-display {
  bottom: 40px !important;
}

/* Mobile adjustment: move subtitles higher on small screens */
@media screen and (max-width: 600px) {
  .vjs-text-track-display {
    bottom: 40px !important;
  }
}