/* 
 * Copyright 2011-2025, The Trustees of Indiana University and Northwestern
 *   University.  Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed
 *   under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 *   CONDITIONS OF ANY KIND, either express or implied. See the License for the
 *   specific language governing permissions and limitations under the License.
 * ---  END LICENSE_HEADER BLOCK  ---
*/

[class*="ramp--"] {
  font-family: Arial, Helvetica, sans-serif;
}

// Scope CSS to only embedded player
.embedded-ramp .ramp--media_player {
  .video-js .vjs-big-play-button {
    left: 55% !important;
  }

  .video-js.vjs-audio-only-mode {
    // Player height to the height of iframe container in embeds
    max-height: 40px !important;

    // Disable tooltips for volume and progress in embedded
    // audio. Viewport is too small to display them.
    .vjs-volume-panel:hover .vjs-mouse-display,
    .vjs-custom-progress-bar .vjs-time-tooltip {
      display: none !important;
    }

    // Display progress-bar inline with player controls
    .vjs-custom-progress-bar {
      position: relative;
      top: 0.475em;
      margin: 0 0.15em;
    }

    .vjs-volume-horizontal .vjs-volume-level span.vjs-icon-placeholder {
      margin-top: 0.15em;
    }

    // Set control-bar to player's width and remove spacers & offset
    .vjs-control-bar {
      &::after, &::before {
        content: none;
      }
      width: 100% !important;
      left: 0;
    }
  }

  @media (max-width: 585px) {
    .video-js .vjs-big-play-button {
      scale: 1.5;
    }

    .video-js .vjs-control-bar {
      font-size: 90% !important;
    }

    // reduce player height to match with adjusted font-size
    // for smaller screens
    .video-js.vjs-audio {
      min-height: 2.9em;
    }
  }
  .video-js .vjs-title-bar .vjs-title-link {
    font-size: 125%;
  }
}
