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

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

/* Portrait mode */
.portrait{
  transform: rotate(90deg);
  transform-origin:bottom left;

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

  height:100vw;
  width:100vh;
}

.portrait .options-column-wrapper {
  flex-direction: column;
  margin-top: 30px;
}

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

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

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

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

  height:100vw;
  width:100vh;
}

.portrait-ccw .options-column-wrapper {
  flex-direction: column;
  margin-top: 30px;
  }

.portrait-ccw .options__right {
  margin-left: 0;
  margin-top: 20px;
  width: 100vh;
}

.portrait-ccw .options__left {
  padding-right: 0;
  width: 100vh;
}


.portrait-dimensions {
  height: 100vw;
  width: 100vh;
  flex-direction:column;
  width: 100vw;
  min-height: 100vh;
  justify-content:space-between;
  overflow-x: hidden;
}

.portrait-ccw-dimensions {
  height: 100vw;
  width: 100vh;
  flex-direction:column;
  width: 100vw;
  min-height: 100vh;
  justify-content:space-between;
  overflow-x: hidden;
}

.portrait-ccw .settings-card,
.portrait-ccw .actions-card,
.portrait-ccw .info-card,
.portrait .settings-card,
.portrait .actions-card,
.portrait .info-card {
  width: 97%;
  align-self: center;
}

.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;
}

.options__left-paragraph {
  font-weight: 400;
  font-size: 1.0em;
}

.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;
}

/* Update existing progress bar to be more modern */
.progress {
  width: 100%;
  height: 20px;
  background-color: rgba(101, 107, 116, 0.3);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(55, 65, 81, 0.2);
  text-align: center;
}


.progress-bar {
  height: 100%;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.progress-bar-success {
  background: linear-gradient(90deg, #10b981, #059669);
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.progress-bar-warning {
  background: linear-gradient(90deg, #f59e0b, #d97706);
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.progress-bar-danger {
  background: linear-gradient(90deg, #ef4444, #dc2626);
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.progress-bar span {
  color: white;
  font-weight: 600;
  font-size: 12px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.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;
  letter-spacing: 0.08em;
}

/* 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;
}

/* Menubar Buttons */
.menubar-button {
  background-color: rgba(0, 174, 239, 0.8);
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  color: white;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  margin: 0 10px;
  -webkit-app-region: no-drag; /*Excludes area from dragging in electron frameless mode*/
}

.menubar-button:hover {
  background-color: rgba(0, 174, 239, 1);
}

.menubar-button .fa {
  font-size: 14px;
}


/* Portrait Menubar */
#portrait-menubar {
  position: absolute;
  top: 0;
  height: 100vh;
  width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 10px;
}

.portrait-menubar .logo {
  margin: 10px 0;
}

.portrait-menubar .logo img {
  max-width: 80px;
  height: auto;
}

.portrait-left .menubar-button {
  transform: rotate(-90deg);
}

.portrait-right .menubar-button {
  transform: rotate(270deg);
}

.portrait-left .menubar-center {
  transform: rotate(-90deg);
}

.portrait-right .menubar-center {
  transform: rotate(270deg);
}

.menubar-top,
.menubar-center,
.menubar-bottom {
  display: flex;
  align-items: center;
  gap: 15px;
}

.status-container {
  margin: 10px 0;
}

/*CCW - menubar on left */
#portrait-menubar.portrait-left {
  left: 0;
}

/* Portrait mode - menubar on right */
#portrait-menubar.portrait-right {
  right: 0;
  left: auto;
  transform: rotate(180deg);
}


/* .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{
  margin-top: 2.5rem;
  color: whitesmoke;
}

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

.options__right {
  display: flex;
  flex-direction: column;
  margin-top:0px;
  min-width: 21vw;
  width: auto;
  flex-shrink:0;
  flex-grow:0;
  background-color: #141414;
  gap: 1rem;
}

/* Card styling for modern look (options) */
.settings-card,
.actions-card,
.info-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: rgba(31, 37, 55, 0.8);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(55, 65, 81, 0.5);
}

.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;
}

.options__row__checkbox{
  display:flex;
  align-items:center;
  margin-top: 20px;
}

.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: #5f7c89;
}

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

.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;
}

.card-heading {
  text-transform: uppercase;
  font-size: 0.9em;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 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: 8px;
  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;
  height: auto;
}

.chrome-container.tizen-env *{
  overflow: hidden;
  overflow-y: hidden;
  overflow-x: hidden;
}


.welcome-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  border: none !important; /* Keep this to override .default-container */
  background-color: #141414; /* Fallback color */
  overflow: hidden;
}
.reset-screen{
  border: none !important; /* Keep this to override .default-container */

}

.welcome-screen__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0; /* All slides start hidden */
  animation-duration: 60s; /* Total duration for 3 slides */
  animation-iteration-count: infinite;
}

.welcome-screen__slide:nth-child(1) {
  animation-name: crossfade-1;
  opacity: 1; /* First slide is visible at the start */
}
.welcome-screen__slide:nth-child(2) {
  animation-name: crossfade-2;
}
.welcome-screen__slide:nth-child(3) {
  animation-name: crossfade-3;
}

.welcome-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.5s;
}

.welcome-overlay {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* width: 50vw; */
  max-width: 50vw;
  max-height: 33vw;
  min-width: 30vw;
  min-height: 7vw;
  padding: 1.2em 2.5em;
  background: rgba(0, 0, 0, 0.50);
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(75, 75, 75, 0.706);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.welcome-overlay.tizen-env{
  backdrop-filter: none;
  background: rgba(0, 0, 0, 0.80);
}

.tizen-env .code {
  font-size: 3rem;
}

.no-internet-title {
  color: #fff !important;
  font-size: 4rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-align: center;
  margin: 0.5em 0 0.7em 0 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  line-height: 1.2;
}

.welcome-overlay img[alt="QR Code"] {
  max-width: 12vw;
  max-height: 12vw;
  height: auto;
  display: block;
  margin: 0 auto 30px auto;
}

.welcome-screen.portrait {
  transform: rotate(90deg);
  transform-origin: bottom left;
  position: absolute;
  top: -100vw;
  left: 0;
  height: 100vw;
  width: 100vh;
}

.welcome-screen.portrait-ccw {
  transform: rotate(270deg);
  transform-origin: top right;
  position: absolute;
  top: 0;
  left: -100vh;
  height: 100vw;
  width: 100vh;
}
.portrait .welcome-bg,
.portrait-ccw .welcome-bg {
  position: fixed;
  top: 0; left: 0; height: 100vw;
}

/* Ultrawide screens (>= 21:9 aspect ratio) */
@media (min-aspect-ratio: 21/9) {
  .welcome-overlay {
    max-width: 1100px !important;
    max-height: 700px !important;
    min-width: 1100px !important;
    min-height: 600px !important;
    padding: 1.2em 2.5em;
  }

  .welcome-overlay img[alt="QR Code"] {
    max-width: 180px !important;
    max-height: 180px !important;
    width: 100px !important;
    height: 100px !important;
  }

  .no-internet-title {
    font-size: 3rem !important;
  }

  .code__number {
    font-size: 3rem !important;
    letter-spacing: 0.3em !important;
  }

  .dev-link-button {
    position: absolute !important;
    bottom: -90px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-top: 0 !important;
    z-index: 10 !important;
  }
}

.reset-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #141414;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  z-index: 1000;
}

.reset-dialog {
  background: rgba(35, 40, 45, 0.93);
  border: 1px solid rgba(80, 90, 100, 0.4);
  -webkit-box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
  padding: 40px;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  max-width: 500px;
  text-align: center;
  color: white;
}

.reset-header h2 {
  color: #ff4444;
  margin: 0 0 30px 0;
  font-size: 2em;
}

.reset-warning {
  font-size: 1.2rem;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
  padding: 15px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.reset-explanation{
    font-size: 1.2rem;
}

.screen-info {
  background: rgba(255,255,255,0.1);
  padding: 15px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  margin: 20px 0;
}

.screen-info p {
  font-size: 1.8rem;
  margin: 5px 0;
}

.reset-confirmation {
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 30px;
}

.reset-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 15px;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
}

/* Fallback for gap property */
.reset-actions > * + * {
  margin-left: 15px;
}

.reset-btn-yes,
.reset-btn-no {
  padding: 12px 40px;
  font-size: 1.4em;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  cursor: pointer;
  min-width: 120px;
}

.reset-btn-yes {
  border: none;
  background: #dc3545;
  color: white;
}

.reset-btn-no {
  border: 1px solid #6c757d;
  background: #6c757d;
  color: white;
}

.reset-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  -webkit-border-radius: 50%;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  -webkit-animation: spin 1s linear infinite;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.reset-subtext {
  color: #aaa;
  font-size: 0.9em;
}

.portrait.reset-container{
  transform: rotate(90deg);
  transform-origin: bottom left;
  position: absolute;
  top: -100vw;
  left: 0;
  height: 100vw;
  width: 100vh;
}

.portrait-ccw.reset-container {
  transform: rotate(270deg);
  transform-origin: top right;
  position: absolute;
  top: 0;
  left: -100vh;
  height: 100vw;
  width: 100vh;
}

.reset-in-progress{
  font-size: 2.5rem;
}


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

@media only screen and (max-width: 1000px){
  /* Portrait mode for android, width (actually height in portrait) is 960px */
  .portrait-ccw .options-column-wrapper .options__row__spaced-btns button,
  .portrait-ccw .options-column-wrapper .options__right button,
  .portrait .options-column-wrapper .options__right button,
  .portrait .options-column-wrapper .options__row__spaced-btns button{
    font-size: 0.8rem;
    flex: 1
  }

  .portrait-ccw .options-column-wrapper .options__row__spaced-btns,
  .portrait .options-column-wrapper .options__row__spaced-btns {
    flex-wrap: wrap;
    width: 100%;
    gap: 10px;
  }

  .portrait-left .menubar-button,
  .portrait-right .menubar-button {
    margin-bottom: 10px;
  }

  /* mobile */
  .options__row__spaced-btns {
    flex-wrap: wrap;
    flex: 1;
  }

}

@media only screen and (min-width: 1200px) and (max-width: 1599px){

  .options{
    margin-top: 1%;
  }

  .options__left-lable{
    font-size: 1.8rem;
  }

  .options__left-paragraph{
    font-size: 1.8rem;
  }

  .options__row__checkbox{
    gap: 1.5em;
  }

  .segmented{
    transform: scale(1.0);
  }

  .card-heading{
    font-size: 1.8rem;
  }

  .options__row__spaced-btns{
    gap: 8px;
  }

  .options__row__spaced-btns button,
  .options__right button{
    font-size: 2.0rem;
  }

  .options__left{
    gap: 2rem;
  }

  .options__right{
    width: 23vw;
    gap: 2rem;
  }

  .settings-card,
  .actions-card{
    padding: 1rem 2rem;
  }

  .info-card{
    padding: 1rem 2rem;

    h2{
      font-size: 2.0rem;
      margin-bottom: 0.5rem;
      margin-top: 1.5rem;
    }
    p{
      font-size: 2.0rem;
      margin-bottom: 0.5rem;
    }
  }

  .progress {
    height: 28px;
  }

  .progress-bar span {
    font-size: 16px;
  }

  .menubar-button {
    font-size: 2.0rem;
    margin: 0 20px;
  }
  .portrait-left .menubar-button,
  .portrait-right .menubar-button {
    margin: 10px 0;
  }
}
/* HD TV */
@media only screen and (min-width: 1600px) and (max-width: 1920px){


  .options{
    margin-top: 2%;
  }

  .options__left-lable{
    font-size: 2.8rem;
  }

  .options__left-paragraph{
    font-size: 2.8rem;
  }

  .options__row__checkbox{
    gap: 2em;
  }

  .menubar-button {
    font-size: 2.0rem;
  }

  .menubar-button .fa {
    font-size: 1.8rem;
    margin:0 3px
  }

  .segmented{
    transform: scale(1.2);
    margin-right: 30px;
    margin-left: 10px;
  }

  .options__row__spaced-btns button,
  .options__right button{
    font-size: 2.8rem;
  }

  .settings-card,
  .actions-card{
    padding: 1rem 2rem;
    margin-bottom: 2rem;
  }

  .actions-card h2{
    font-size: 2.4rem;
  }

  .device-info .options__row h2{
    font-size: 1.8rem;
  }

  .device-info .options__row p{
    font-size: 1.8rem;
  }

  .progress {
    height: 32px;
  }

  .progress-bar span {
    font-size: 20px;
  }
}
/* Reset screen dialog*/
@media screen and (min-width: 1920px) {
  .reset-dialog {
    max-width: 800px;
    padding: 60px;
  }

  .reset-header h2 {
    font-size: 4em;
    margin: 0 0 40px 0;
  }

  .reset-warning {
    font-size: 2rem;
    padding: 20px;
    margin-bottom: 30px;
  }

  .reset-explanation {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .screen-info {
    padding: 20px;
    margin: 30px 0;
  }

  .screen-info p {
    font-size: 2.8rem;
    margin: 8px 0;
  }

  .reset-confirmation {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .reset-actions {
    gap: 25px;
  }

  .reset-actions > * + * {
    margin-left: 25px;
  }

  .reset-btn-yes,
  .reset-btn-no {
    padding: 18px 60px;
    font-size: 2.2em;
    min-width: 180px;
  }

  .reset-spinner {
    width: 80px;
    height: 80px;
    border-width: 6px;
    margin: 0 auto 30px;
  }

  .reset-subtext {
    font-size: 1.6em;
  }
}

@media only screen and (min-width: 1921px){

  .options{
    margin-top: 3%;
  }

  .options__left-lable{
    font-size: 1.8rem;
  }

  .options__left-paragraph{
    font-size: 1.8rem;
  }

  .options__row__checkbox{
    gap: 1.5em;
  }

  .segmented{
    transform: scale(1.2);
  }

  .card-heading{
    font-size: 1.8rem;
  }

  .options__row__spaced-btns{
    gap: 8px;
  }

  .options__row__spaced-btns button,
  .options__right button{
    font-size: 2.0rem;
  }

  .options__left{
    gap: 2rem;
  }

  .options__right{
    width: 23vw;
    gap: 2rem;
  }

  .settings-card,
  .actions-card{
    padding: 2rem 5rem;
  }

  .info-card{
    padding: 2rem 3rem;

    h2{
      font-size: 2.0rem;
      margin-bottom: 0.5rem;
      margin-top: 1.5rem;
    }
    p{
      font-size: 2.0rem;
      margin-bottom: 0.5rem;
    }
  }

  .progress {
    height: 28px;
  }

  .progress-bar span {
    font-size: 16px;
  }
}

@media only screen and (min-width: 3000px){

  .options{
    margin-top: 3%;
  }

  .options__left-lable{
    font-size: 3.5rem;
  }

  .options__left-paragraph{
    font-size: 3.5rem;
  }

  .options__row__checkbox{
    gap: 3.5em;
    margin-top: 4rem;
  }

  .segmented{
    transform: scale(1.4);
  }

  .card-heading{
    font-size: 3.5rem;
  }

  .options__row__spaced-btns{
    gap: 12px;
  }

  .options__row__spaced-btns button,
  .options__right button{
    font-size: 3.0rem;
  }

  .info-card{
    h2{
      font-size: 3.5rem;
      margin-bottom: 0.5rem;
      margin-top: 1.5rem;
    }
    p{
      font-size: 3.5rem;
      margin-bottom: 0.5rem;
    }
  }

  .progress {
    height: 32px;
  }

  .progress-bar span {
    font-size: 24px;
  }

  #menubar {
    height: 100px;
  }

  #portrait-menubar {
    width: 100px;
  }

  .logo-status-wrapper {
    scale: 1.4;
  }

  .menubar-button {
    font-size: 3.0rem;
  }

  .menubar-button .fa {
    font-size: 3rem;
  }

  .portrait-left .menubar-button,
  .portrait-right .menubar-button {
    margin: 40px 0;
  }

  .welcome-overlay {
    width: 40vw;
    min-height: 40vh;
    justify-content: center;
  }

  .code__row {
   scale: 2.4;
  }

}
/* Screens with aspect ratio less than 1/1 */
@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;
  }

  .menubar-button{
    font-size: 20px;
  }

  .menubar-button .fa {
    font-size: 20px;
  }

  .chrome-container.tizen-env{
    font-size: 2.2rem;
  }

  .chrome-container.tizen-env .segmented{
    transform: scale(1.0);
    margin-left: 10px;
  }

  .chrome-container.tizen-env .progress{
    height: 40px;
  }

  .chrome-container.tizen-env .progress-bar span{
    font-size: 30px;
  }
}

@media (max-aspect-ratio: 3/4) {
  .code__number {
    font-size: 8rem;
    font-weight: 500;
    color: whitesmoke;
    text-align: center;
    letter-spacing: 0.08em;
  }
  .welcome-overlay {
    width: 65vw;
    max-width: 65vw;
    min-height: 50vw;
  }
}

 /* Targeting mobile and tablet */
 @media (max-width: 539px) and (max-height: 959px),
        (max-width: 959px) and (max-height: 539px) {
  .qr__code {
    display: none!important;
  }

  .code__number {
    font-size: 4rem;
  }

  .default-container__inner{
    min-height: auto;
    padding: 10px;
  }

  .menubar-button {
    font-size: 14px;
  }

    .loader-item {
      transform: scale(1.2)!important;
    }
 }

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

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

@keyframes spin {
  0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

.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;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fade-in {
  animation: fadeIn 1.5s;
}


