:root {
  --play-color: #00AEEF;
}

/* Outstanding props */
* {
  box-sizing:border-box;
}

.portrait{
  transform: rotate(90deg);
  transform-origin:bottom left;

  position:absolute;
  top: -100vw;
  left: 0vh;

  height:100vw;
  width:100vh;
}

.portrait-ccw{
  transform: rotate(270deg);
  transform-origin:top right;

  position:absolute;
  top: 0vw;
  left: -100vh;

  height:100vw;
  width:100vh;
}


.portrait-dimensions {
  height: 100vw;
  width: 100vh;
}

.portrait-ccw-dimensions {
  height: 100vw;
  width: 100vh;
}

.landscape-dimensions {
  height: 100vh;
  width: 100vw;
}

.side-overlay  {
  position: absolute;
  visibility: hidden;
  z-index: 999;
  background-color: black;
}

.player-fullscreen {
  top: 0;
  left: 0;
  position: absolute;
  overflow: hidden;
}

.ticker {
  will-change: transform;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

.nocursor {
  cursor: none !important;
}

.noevents {
  pointer-events: none !important;
}

webview {
  margin: 0;
  padding: 0;
  border: 0;
  display: block;
  width: 10%;
  height: 100%;
  overflow: hidden;
}

/* Layout */
body, html, .container-fluid{
  width: 100vw;
  height: 100vh;
  font-family: 'Helvetica Neue', 'Arial', 'serif';
  font-weight: 400;
}

html{
  overflow:hidden;
}

body {
  background-color: #141414;
  font-weight: 400;
  font-size: 10px;
  color: #191919;
  margin: 0px;
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
  overflow-y:hidden;
  overflow-x:hidden;
}

main {
  display:flex;
  flex-direction:column;
  width: 100vw;
  min-height: 100vh;
  padding: 2em;
  justify-content:space-between;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
  font-family: 'Helvetica Neue', 'Arial', 'serif';
  margin-top: 0;
  letter-spacing: 0.2px;
  color: rgb(80, 80, 80);
}

h2{
  font-size: 2em;
  margin-bottom: 0.25em;
}

p {
  font-weight: 400;
  font-size: 1em;
}

.canvas-container{
  margin: 0px;
  padding: 0px;
  /*This fixes the issue in the Kotlin app where in chrome 77 the subplaylist canvas in a CSS portrait orientation was not always the topmost*/
  backface-visibility: hidden;
}

.default-container{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-direction:column;
  /*background-color: whitesmoke;*/
  background-color: #282828;
  color: whitesmoke;
  margin: 20vh -8%;
  border-bottom:1px solid #242424;
  border-top:1px solid #242424;
}

.default-container.borders-screen.app{
  margin-top: 10vh;
}

.default-container__inner{
  max-width: 590px;
  position:relative;
  padding: 45px;
  min-height: 270px; /* keeps steps aligned when the container is too small. Ideally, the navigation won't change position. */
}

.default-container__inner--center{
  max-width:none;
  display:flex;
  justify-content:center;
  align-items:center;
  flex-direction:column;
}

.default-container__inner--no-padding-top{
  padding-top:0;
}

/* Bootstrap overrides */
.alert{
  display:inline-block;
}

.progress{
  background-color: rgb(80, 80, 80);
  display:inline-block;
  height:30px;
}

.progress-bar{
  padding: 5px 0;
  font-size: 0.8em;
}

.btn{
  min-width:100px;
  border-radius: 3px;
  font-size: 1.2em;
  padding: 0.6em 1.2em;
}

.btn .fa{
  margin-left: 0.4em;
}

.btn-default {
  background-color: whitesmoke;
  border: 1px solid #c5c5c5;
}

.btn-primary{
  background-color: var(--play-color);
}


/* Buttons */
.button-group{
  margin-top:30px;
  display:flex;
  justify-content:center;
  width:100%;
  flex-shrink:0;
}

.button-group .btn{
  margin:5px;
}

.button-group--slim{
  margin-top:0;
}

.input-group-btn {
  font-size: inherit;
}

.input-group-btn .btn{
  border-top-left-radius:0;
  border-bottom-left-radius:0;
}

.input-group-btn .btn-square{
  border:0;
}

/* Lang buttons */
.lang-btns{
  background-color: whitesmoke;
  display:flex;
  justify-content:center;
  margin:7.5px -8% 15px -8%;
}

.lang-btns .btn{
  background-color: whitesmoke;
  border:0;
  color: #AAA;
  border-right: 1px solid rgb(230, 230, 230);
  border-radius:0;
}

.lang-btns .btn:last-child{
  border-right: 0;
}

.lang-btns .btn:focus{
  outline:0;
  color: var(--play-color);
}

.lang-btns .btn--active{
  color:black;
}

/* Front page */
.code{
  width:100%;
  position:relative;
  z-index:10;
  display:flex;
  justify-content:center;
  align-items:center;
  font-size: 1em;
}

.code alert{
  text-align:center;
}

.code h1{
  font-size:3.125em;
  position:relative;
  margin-top: 2em;
  left:-2px; /* kerning */
}

.code__inner{
  padding: 0 60px;
}

.code__row{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.code__number{
  font-size:4.5em;
  font-weight:500;
  color:whitesmoke;
  text-align:center;
}

/* Dropdown / top bar controls UI */
.window-controls{
  background-color: rgba(0, 0, 0, 0.8);
  position:fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 999;
  transition: opacity 0.9s ease-in-out, top 0.3s ease-in-out;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(70, 70, 70, 0.6);
  font-family: 'Helvetica Neue', 'Arial', 'serif';
}

.window-controls.app{
  height: 50px;
}

.window-controls--draggable{
  /* Makes the bar draggable in electron frameless mode */
  /* NB! When this region is on, mouse won't auto-hide! */
  -webkit-app-region: drag;
}

.window-controls--visible{
  top: 0px;
  opacity: 1;
  transition: opacity 0.9s ease-in-out, top 0.3s ease-in-out;
}

.window-controls--hidden{
  opacity: 0;
  top: -10%;
  transition: opacity 0.9s ease-in-out, top 2s ease-in-out;
  pointer-events: none;
}

.window-controls__button{
  background-color: rgb(40, 40, 40);
  color: rgb(200, 200, 200);
  border: 0;
  font-size: 1.500em;
  height:60px;
  line-height:60px;
  padding:0 15px;
  margin: 0;
  transition: all 0.3s ease;
  cursor:pointer;
  -webkit-app-region: no-drag; /*Excludes area from dragging in electron frameless mode*/
}

.window-controls__button.app{
  height: 50px;
  line-height: 0;
}

.window-controls__button i{
  margin-left:5px;
  font-size: 0.9em;
}

.window-controls__button:focus{
  outline:0;
  background-color: rgb(80, 80, 80);
  transition: all 0.3s ease;
}

.window-controls__button:hover{
  background-color: rgb(80, 80, 80);
  transition: all 0.3s ease;
}

/* DevTools screen */
.options.devtools-screen{
  margin-top:10vh;
  margin-left: 2vw;
}

/* Options UI */
.options{
  color: white;
  overflow-y:auto;
  overflow-x: hidden;
  flex-wrap:wrap;
  display:flex;
  flex-direction:column;
  font-size: 1em;
  margin-top: 1em;
}

.options__main{
  display:flex;
  /*background-color:white;*/
  background-color: #282828;
  color: whitesmoke;
  padding:30px;
  /*align-items:center;*/
}

.options__left{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow:1;
  flex-shrink:1;
  width: 72vw;
  padding-right: 15px;
}

.options__right{
  margin-top:0px;
  width: 20vw;
  flex-shrink:0;
  flex-grow:0;
  padding:30px 30px 15px 30px;
  border: 1px solid black;
  background-color: #141414;
}

.options__left-buttons-wrapper {
  display: flex;
  flex-direction: column;
}

.options__left-rows-wrapper {
  display: flex;
  flex-direction: column;
}

.options__row{
  display:flex;
  flex-direction:column;
  margin-top:20px;
}

.options__row__checkbox{
  display:flex;
  align-items:center;
}

.options__row__checkbox label{
  margin: 0;
}

.options__row__checkbox p {
  margin-bottom: 0;
}

.options__row--version-and-uuid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.options__row__head{
  margin-top:15px;
}

.options__row__large-p{
  font-size: 1.1em;
}

.options__row h2{
  margin:0 0 5px 0;
  text-transform: uppercase;
  font-size:0.9em;
  color: rgb(110, 110, 110);
}

.options__row__spaced-btns{
  padding-top:5px;
  display: flex;
  width: 100%;
}

.options__row__spaced-btns button{
  flex-grow: 1;
  margin-right: 3px;
}

.options__row__spaced-btns button:last-child{
  margin-right: 0;
}

.options__row__spaced-btns--main{
  padding-left:30px;
  padding-right:30px;
}

.options__row__position{
  display:flex;
  margin-bottom:15px;
  flex-wrap: wrap;
}

.options__row__position input{
  width:160px;
}

.options__row__position__inner{
  width:100%;
  flex-grow:0;
  flex-shrink:0;
}

.options__row__alert{
  margin-top:15px;
}

/* Borders page UI */
.display-adjust-container{
  margin-top:30px;
  display:flex;
  flex-wrap:wrap;
  justify-content: center;
}

.display-adjust-container__figures {
  width: 100%;
  max-width: 630px;
  display: flex;
  justify-content: space-around;
  margin-top: 2em;
}

.display-adjust-container h4{
  text-align:center;
}

.display-adjust{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.display-adjust p {
  font-size: 20px; /* +/- font size needs to be consistent */
  line-height: 20px;
}

.display-adjust__row{
  display:flex;
  justify-content:center;
  align-items: center;
}

.display-adjust__tip{
  width:100%;
  flex-shrink:0;
  text-align:center;
  margin-top:15px;
}

.display-adjust__tip__block{
  display:inline-block;
  text-align:left;
}

.display-adjust__icon{
  display:inline-block;
  width:190px;
  height:120px;
  position:relative;
  border: 3px solid black;
}

.display-adjust__icon span{
  font-size: 1.8em;
}

.fireos-span-size span{
  font-size: 2.8em; /* +/- we use bigger font size for fireos */
}

.display-adjust__icon input{
  display:inline-block;
  width:72px;
  background-color:transparent;
  border:0;
  border-bottom: 1px solid #CCC;
}

#screen_width_input,
#screen_height_input {
  width: 85px;
}

.display-adjust__icon input:focus{
  outline:0;
  border-color:black;
}

.display-adjust__icon input[disabled]{
  outline: 0;
  border: 0;
}

.display-adjust__icon__offset-bottom{
  position:absolute;
  top:5px;
  left:calc(50% - 5px);
}

.display-adjust__icon__offset-right{
  position:absolute;
  top:calc(50% - 5px);
  left:5px;
}

.display-adjust__icon__offset-right--width{
  left:0;
  border-top:2px solid gray;
  width:100%;
  padding:5px;
}

.display-adjust__icon__offset-right--width:before{
  content: "";
  position:absolute;
  left:0;
  top:-6px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 5px solid gray;
}

.display-adjust__icon__offset-right--width:after{
  content: "";
  position:absolute;
  right:0;
  top:-6px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid gray;
}

.display-adjust__icon__offset-bottom--height{
  top:0;
  border-left:2px solid gray;
  height:100%;
  padding:5px;
}

.display-adjust__icon__offset-bottom--height:after{
  content: "";
  position:absolute;
  top:0;
  left:-6px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid gray;
}

.display-adjust__icon__offset-bottom--height:before{
  content: "";
  position:absolute;
  bottom:0;
  left:-6px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid gray;
}

.display-adjust__btn{
  background: 0;
  border: 0;
  position:relative;
  color:white;
  z-index:1;
  font-weight:700;
}

.display-adjust__btn:focus{
  border:0;
  outline:0;
  opacity:0.4;
}

.display-adjust__btn:disabled{
  --play-color: gray;
}

.display-adjust__btn p{
  margin:0;
}

.display-adjust__btn:after{
  transition: 0.3s box-shadow;
  content: '';
  position: absolute;
  z-index:-1;
  width: 0;
  height: 0;
}

.display-adjust__btn--top{
  width: 80px;
  height: 30px;
}

.display-adjust__btn--top p{
  display:flex;
  justify-content:center;
  align-items:center;
}

.display-adjust__btn--top:after{
  top:0;
  left:0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 30px solid var(--play-color);
}

.display-adjust__btn--left{
  width: 30px;
  height: 80px;
}

.display-adjust__btn--left p{
  display:inline-block;
  width:20px;
  height:20px;
}

.display-adjust__btn--left:after{
  top:0;
  right:0;
  border-top: 40px solid transparent;
  border-bottom: 40px solid transparent;
  border-right: 30px solid var(--play-color);
}

.display-adjust__btn--right{
  width: 30px;
  height: 80px;
}

.display-adjust__btn--right p{
  display:inline-block;
  width:15px;
  height:20px;
}

.display-adjust__btn--right:after{
  top:0;
  left:0;
  border-top: 40px solid transparent;
  border-bottom: 40px solid transparent;
  border-left: 30px solid var(--play-color);
}

.display-adjust__btn--bottom{
  width: 80px;
  height: 30px;
}

.display-adjust__btn--bottom p{
  display:flex;
  justify-content:center;
  align-items:center;
}

.display-adjust__btn--bottom:after{
  bottom:0;
  left:0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-top: 30px solid var(--play-color);
}

/* Wifi UI */
.wifi{
  width:100%;
}

.wifi h2 {
  text-align: center;
}

.wifi__networks{
  width:100%;
  list-style-type:none;
  padding:10px 0 0 0;
  display:flex;
  flex-direction:column;
  flex-wrap:wrap;
}

.wifi__networks .btn {
  border: 0;
  padding: 0;
  height: 34px; /* needs to match input, can't do ems */
  font-size: 15px; /* needs to be consistent on all viewport sizes to match input */
}

.wifi__networks__form {
  display: flex;
  justify-content: center;
  align-items: center;
}

.wifi__networks__form__inner {
  margin-top: 0.5em;
  max-width: 400px;
}

.wifi__networks__more a{
  color: #bbb;
}

.wifi__networks li{
  width:100%;
  border-top:1px solid #eee;
  text-align:center;
}

.wifi__networks li a {
  color: black;
  padding: 1.5em 0;
  width: 100%;
  text-align: center;
}

.wifi__networks li a,
.wifi__networks li p{
  display:inline-block;
  margin:0;
}

.wifi__networks:last-child{
  border-bottom:1px solid #eee;
}

.wifi__dot i{
  font-size:0.5em;
  position: relative;
  top: -2px;
}

.wifi__main{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  flex-direction:column;
}

.wifi__success{
  color:green;
}

.wifi__error{
  color:red;
  width:100%;
  padding:0;
  margin: 1em 0 0.3em 0;
  text-align:center;
}

/* Status UI */
.status-inline-container{
  display: flex;
  align-items: center;
}

.status-inline-container .status__toggle{
  margin-right:10px;
}

.status{
  height:60px;
  display:flex;
  justify-content:center;
  align-items:center;
}

.status__toggle{
  height:20px;
  width:20px;
  flex-grow: 0;
  flex-shrink: 0;
  background-color:gray;
  border-radius:50%;
}

.status__toggle--on{
  background-color:green;
}

.status__toggle--off{
  background-color:red;
}

.status__toggle--inline{
  display:inline-block;
}

/* Steps */
.steps{
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 10em;
  font-weight: 400;
  margin-top: 3em;
  padding-top: 1em;
  margin-bottom: -30px;
}

.steps a{
  font-weight: 300;
  width: 8em;
  height: 8em;
  border-radius: 50%;
  padding: 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid #CCC;
  color: #BBB;
  transition: all 0.3s ease;
  transform: scale(0.7);
}

.steps a.active{
  color: #191919;
  border-color: #191919;
  transform: scale(1);
  margin: 1em;
}

.steps a:focus {
  outline: 0;
  border: 2px solid var(--play-color);
  background-color: var(--play-color);
  color: white;
}

.steps__nr{
  font-size:3em;
  margin-top:-15px;
}

.steps__text{
  text-transform: uppercase;
  margin-top: -10px;
}

/* Logo */
.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  transform: scale(0.65);
}

.logo-status-wrapper {
  display: flex;
  flex-direction: row;
  margin-top: 0.5em;
}

.loader-item-container {
  height: 100%;
  padding: 0;
  margin: 0;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-item {
  transform: scale(3);
  text-align: center;
}

/* Red edge */
.edge-border{
  pointer-events: none;
  position: fixed;
  z-index: 9999;
  box-shadow:0px 0px 0px 4px red inset;
  transition: all 1s ease;
}

/* Fade in / fade out */
.toBlack {
  animation: toBlack;
  -webkit-animation: toBlack;
  -moz-animation: toBlack;
  -o-animation: toBlack;
  animation-fill-mode: forwards;
}

.fromBlack {
  animation: fromBlack;
  -webkit-animation: fromBlack;
  -moz-animation: fromBlack;
  -o-animation: fromBlack;
  animation-fill-mode: forwards;
}

.segmented {
  border-radius: 14px;
  overflow: hidden;
  padding: 1px;
  height: 30px;
  display: flex;
  background-color: whitesmoke;
  border: 0;
  transition: 0.3s background-color;
  flex-shrink: 0;
  flex-grow: 0;
  margin-right: 1em;
  transform: scale(0.7);
}

.segmented figure {
  border: 0;
  margin: 0;
  height: calc(30px - 2px);
  width: calc(30px - 2px);
  background-color: white;
  border-radius: 50%;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.28);
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(0, 0, 0, 0.2);
  font-size: 13px;
  line-height: 15px; /* centers uppercase I / O */
}

.segmented--on {
  background-color: var(--play-color);
}

.segmented .on {
  opacity: 0;
  transition: opacity 0.3s;
}

.segmented--on .off {
  opacity: 0;
  transform: translateX(calc(2.5em - 2px));
}

.segmented--on .on {
  opacity: 1;
}

.options-column-wrapper {
  display: flex;
}

/*
 * <<========================================================================>>
 * <<========================================================================>>
 * NO NEW CLASSES BEYOND THIS POINT,
 * JUST MEDIA QUERIES AND KEYFRAMES.
 * <<========================================================================>>
 * <<========================================================================>>
 *
 */

@media only screen and (max-aspect-ratio: 1/1){
  body {
    font-size: 12px;
  }

  .options-column-wrapper {
  flex-direction: column;
  }

  .options__right {
    margin-left: 0;
    margin-top: 20px;
    width: 100%;
  }

  .options__left {
    padding-right: 0;
    width: 100%;
  }

  .options__row--version-and-uuid {
    flex-direction: row;
  }
}

@media only screen and (min-width: 999px){
  body {
    font-size: 13px;
  }

  /* .options{
    padding: 0 50px 30px 50px;
  } */

  .options__row__position__inner{
    width:auto;
  }

  .options__row__double__inner{
    flex-shrink:0;
    flex-grow:0;
  }
}

@media only screen and (min-width: 1199px){
  body {
    font-size: 16px;
  }

  .segmented {
    transform: scale(1);
  }

  .default-container__inner {
    max-width: 870px;
    min-height: 480px;
  }
}

@media only screen and (min-width: 1500px){
  body {
    font-size: 17px;
  }

  .display-adjust__icon span{
    font-size: 1.6em;
  }
}

@media only screen and (min-width: 1600px){
  body {
    font-size: 18px;
  }

  h2 {
    font-size: 3em;
  }

  .default-container__inner {
    max-width: 960px;
  }

  .code__number{
    margin-top: 0.2em;
  }

  .options__main {
    padding: 50px;
    margin-top: 110px;
    min-height: 580px;
  }

  .window-controls__button {
    height: 60px;
    line-height: 60px;
  }

  /*.options__row__spaced-btns button{*/
    /*margin-top: 1em;*/
    /*flex-grow: 0;*/
  /*}*/
}

@media only screen and (min-width: 1700px){
  body {
    font-size:24px;
  }

  .btn {
    padding: 0.5em 1em;
    font-size: 1.1em;
  }

  .default-container__inner {
    max-width: 1200px;
    min-height: 480px;
  }

  .code__number{
    margin-top: 0;
  }

  .display-adjust__icon span{
    font-size: 1.2em;
  }

  /* .logo {
    transform: scale(1.5);
    flex-wrap: wrap;
    margin-top: 2.0em;
    margin-bottom: -2em;
    } */
}

@media only screen and (min-width: 1800px){
  body {
    font-size:26px;
  }
  .logo {
    transform: scale(1.0);
    margin-right: 20px;
  }

  .display-adjust__icon span{
    font-size: 1.0em;
  }
}

@media only screen and (min-width: 1900px){
  body {
    font-size:28px;
  }

  .options__left .segmented{
    transform: scale(1.3);
  }

  /* .logo {
    transform: scale(1);
    } */
}



@media only screen and (min-width: 2100px){
  body {
    font-size:32px;
  }

  .display-adjust__icon span{
    font-size: 0.8em;
  }

  .window-controls{
    height: 80px;
  }

  .window-controls__button {
    height: 80px;
    line-height: 80px;
  }
}

/*commentin this out on 6.12.24 to improve UI - Arjom */
/* @media only screen and (min-width: 2400px){
  .options__main {
    font-size:38px;
      padding: 70px;
  }
  .options__left-rows-wrapper {
    row-gap: 30px;
  }

  .options__left {
    padding-right: 30px;
  }

  .options__right {
    padding: 60px;
  }

  .options__left .segmented {
    transform: scale(1.5);
  }

  .default-container {
    scale: 1.7;
    margin-top: 26%;
  }
} */

/* @media only screen and (min-width: 2600px){
  .options__main {
    font-size:38px;
  }
} */

@media only screen and (min-width: 2800px){
  .options__main {
    font-size:46px;
  }

}

@media only screen and (min-width: 3500px){
  .options__main {
    font-size:50px;
  }

  .options__left {
    margin-right:30px;
  }

  .options__left .segmented{
    transform: scale(1.6);
  }

  .default-container {
    scale: 1.7;
    margin-top: 18%;
  }
}

/* Keyframe animations */
@keyframes toBlack {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@-webkit-keyframes toBlack {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@-moz-keyframes toBlack {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@-o-keyframes toBlack {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* fromBlack keyframe */
@keyframes fromBlack {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

@-webkit-keyframes fromBlack {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

@-moz-keyframes fromBlack {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

@-o-keyframes fromBlack {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.trial-bar{
  position: absolute;
  left: 0;
  width: 100%;
  height: 14vh;
  z-index: 9999;
  display: flex;
  justify-content: space-around;
  justify-content: space-evenly !important; /* this is slightly better spacing, but supported since chrome 57+, so it will only override if supported */
  align-items: center;
  transform-origin: left top;
  backface-visibility: hidden;  /* This is very important so that trial bar would show up in 'software' portrait mode */
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  animation-duration: 2s !important;
}

.upper-canvas{
  outline: none; /* on chromecast upon app start pressing up arrow would select upper canvas with orange outline */
}

@keyframes ken-burns-bottom-right {
  0% {
    opacity: 0
  }
  20% {
    opacity: 1
  }
  100% {
      transform: scale3d(1.5, 1.5, 1.5) translate3d(-10%, -7%, 0);
  }
}

@keyframes ken-burns-bottom-right-reverse {
  0% {
    opacity: 0;
    transform: scale3d(1.5, 1.5, 1.5) translate3d(-10%, -7%, 0);
  }
  20% {
    opacity: 1;
  }
}

@keyframes ken-burns-top-right {
  0% {
    opacity: 0
  }
  20% {
    opacity: 1
  }
  100% {
      transform: scale3d(1.5, 1.5, 1.5) translate3d(-10%, 7%, 0);
  }
}

@keyframes ken-burns-top-right-reverse {
  0% {
    transform: scale3d(1.5, 1.5, 1.5) translate3d(-10%, 7%, 0);
    opacity: 0
  }
  20% {
    opacity: 1
  }
}

@keyframes ken-burns-top-left {
  0% {
    opacity: 0
  }
  20% {
    opacity: 1
  }
  100% {
      transform: scale3d(1.5, 1.5, 1.5) translate3d(10%, 7%, 0);
  }
}
@keyframes ken-burns-top-left-reverse {
  0% {
    transform: scale3d(1.5, 1.5, 1.5) translate3d(10%, 7%, 0);
    opacity: 0
  }
  20% {
    opacity: 1
  }
}

@keyframes ken-burns-bottom-left {
  0% {
    opacity: 0
  }
  20% {
    opacity: 1
  }
  100% {
      transform: scale3d(1.5, 1.5, 1.5) translate3d(10%, -7%, 0);
  }
}

@keyframes ken-burns-bottom-left-reverse {
  0% {
    transform: scale3d(1.5, 1.5, 1.5) translate3d(10%, -7%, 0);
    opacity: 0
  }
  20% {
    opacity: 1
  }
}
@keyframes ken-burns-middle-left {
  0% {
    opacity: 0
  }
  20% {
    opacity: 1
  }
  100% {
      transform: scale3d(1.5, 1.5, 1.5) translate3d(10%, 0, 0);
  }
}
@keyframes ken-burns-middle-left-reverse {
  0% {
    transform: scale3d(1.5, 1.5, 1.5) translate3d(10%, 0, 0);
    opacity: 0
  }
  20% {
    opacity: 1
  }
}
@keyframes ken-burns-middle-right {
  0% {
    opacity: 0
  }
  20% {
    opacity: 1
  }
  100% {
      transform: scale3d(1.5, 1.5, 1.5) translate3d(-10%, 0, 0);
  }
}
@keyframes ken-burns-middle-right-reverse {
  0% {
    transform: scale3d(1.5, 1.5, 1.5) translate3d(-10%, 0, 0);
    opacity: 0
  }
  20% {
    opacity: 1
  }
}
@keyframes ken-burns-top-middle {
  0% {
    opacity: 0
  }
  20% {
    opacity: 1
  }
  100% {
      transform: scale3d(1.5, 1.5, 1.5) translate3d(0, 10%, 0);
  }
}
@keyframes ken-burns-top-middle-reverse {
  0% {
    transform: scale3d(1.5, 1.5, 1.5) translate3d(0, 10%, 0);
    opacity: 0
  }
  20% {
    opacity: 1
  }
}
@keyframes ken-burns-bottom-middle {
  0% {
    opacity: 0
  }
  20% {
    opacity: 1
  }
  100% {
      transform: scale3d(1.5, 1.5, 1.5) translate3d(0, -10%, 0);
  }
}
@keyframes ken-burns-bottom-middle-reverse {
  0% {
    transform: scale3d(1.5, 1.5, 1.5) translate3d(0, -10%, 0);
    opacity: 0
  }
  20% {
    opacity: 1
  }
}
@keyframes ken-burns-center {
  0% {
    opacity: 0
  }
  20% {
    opacity: 1
  }
  100% {
      transform: scale3d(1.5, 1.5, 1.5);
  }
}
@keyframes ken-burns-center-reverse {
  0% {
    transform: scale3d(1.5, 1.5, 1.5);
    opacity: 0
  }
  20% {
    opacity: 1
  }
}

.ken-burns-bottom-right {
  animation: ken-burns-bottom-right;
  animation-fill-mode: forwards;
}

.ken-burns-top-right {
  animation: ken-burns-top-right;
  animation-fill-mode: forwards;
}

.ken-burns-top-left {
  animation: ken-burns-top-left;
  animation-fill-mode: forwards;
}

.ken-burns-bottom-left {
  animation: ken-burns-bottom-left;
  animation-fill-mode: forwards;
}

.ken-burns-middle-left {
  animation: ken-burns-middle-left;
  animation-fill-mode: forwards;
}

.ken-burns-middle-right {
  animation: ken-burns-middle-right;
  animation-fill-mode: forwards;
}

.ken-burns-top-middle {
  animation: ken-burns-top-middle;
  animation-fill-mode: forwards;
}

.ken-burns-bottom-middle {
  animation: ken-burns-bottom-middle;
  animation-fill-mode: forwards;
}

.ken-burns-center {
  animation: ken-burns-center;
  animation-fill-mode: forwards;
}

.ken-burns-bottom-right-reverse {
  animation: ken-burns-bottom-right-reverse;
  animation-fill-mode: forwards;
}

.ken-burns-top-right-reverse {
  animation: ken-burns-top-right-reverse;
  animation-fill-mode: forwards;
}

.ken-burns-top-left-reverse {
  animation: ken-burns-top-left-reverse;
  animation-fill-mode: forwards;
}

.ken-burns-bottom-left-reverse {
  animation: ken-burns-bottom-left-reverse;
  animation-fill-mode: forwards;
}

.ken-burns-middle-left-reverse {
  animation: ken-burns-middle-left-reverse;
  animation-fill-mode: forwards;
}

.ken-burns-middle-right-reverse {
  animation: ken-burns-middle-right-reverse;
  animation-fill-mode: forwards;
}

.ken-burns-top-middle-reverse {
  animation: ken-burns-top-middle-reverse;
  animation-fill-mode: forwards;
}

.ken-burns-bottom-middle-reverse {
  animation: ken-burns-bottom-middle-reverse;
  animation-fill-mode: forwards;
}

.ken-burns-center-reverse {
  animation: ken-burns-center-reverse;
  animation-fill-mode: forwards;
}
