/**
Copyright 2022 Google LLC. All Rights Reserved.

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.
*/

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  --playback-logo-image: url('res/AppLogo.png');
  /*--playback-logo-image: url('res/logo_googleg_color_2x_web_48dp.png');*/
}

/* Default styles for cast-media-player */
cast-media-player {
  --theme-hue: 180;
  --progress-color: rgb(0, 255, 255);
  --splash-size: cover;
  --slideshow-animation: 3;
  --splash-image: none;
  --slideshow-image-1: none;
  --slideshow-image-2: none;
  --slideshow-image-3: none;
  --slideshow-image-4: none;
  --slideshow-image-5: none;
  --slideshow-interval: 0;
}

/* Splash Screen */
cast-media-player.show-splash {
  --splash-image: url('res/TV_Splash.png');
}

/* TV Cast Banner */
cast-media-player.show-banner {
  --splash-image: url('res/TV_Cast_Banner.png');
}

/* Combined State - Show both splash and banner */
cast-media-player.show-splash.show-banner {
  --splash-image: url('res/TV_Splash.png');
  --slideshow-image-1: url('res/TV_Cast_Banner.png');
  --slideshow-interval: 0;
}

/* ========================================== */
/* SCREEN MIRRORING ORIENTATION STYLES        */
/* ========================================== */

/* Landscape Mode - Fill entire screen */
#screenMirrorStream.screen-mirror-landscape {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  z-index: 9999 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background-color: #000000 !important;
}

/* Portrait Mode - Letterbox with black bars */
#screenMirrorStream.screen-mirror-portrait {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  z-index: 9999 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background-color: #000000 !important;
}

/* Generic screen mirror element fallback */
#screenMirrorStream {
  display: block !important;
  background-color: #000000 !important;
}

/* ================================================ */
/* Sample Overlay Text                               */
/* ================================================ */
/* cast-media-player:after {
  content: "SAMPLE";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  bottom: 0;
  text-align: center;
  font-size: 200px;
  font-weight: bold;
  margin-top: -150px;
  opacity: 0.5;
  color: red;
} */
