/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
  background: #000;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

#container{
  position: relative;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  /*animation: crtAnimation 1.2s 0.2s both;*/
  /*animation-timing-function: cubic-bezier(0.2, -0.1, 0, 1);*/
  background: #fff;
}

 #container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    /*opacity: 0.2;*/
}

#ui {
  /*font-family: 'Press Start 2P', cursive;*/
  font-family: 'VT323', monospace;
  position: absolute;
  bottom: 0;
  z-index: 5;
  color: #fff;
  font-size: 28px;
  text-shadow: 2px 2px #000;
  padding:  20px;
  filter: blur(0.7px);
}

#channelselect {
  /*font-family: 'Press Start 2P', cursive;*/
  font-family: 'VT323', monospace;
  position: absolute;
  top: 0;
  z-index: 5;
  color: #fff;
  font-size: 28px;
  text-shadow: 2px 2px #000;
  padding:  20px;
}

#press-start {
  font-family: 'Press Start 2P', cursive;
  /* font-family: 'VT323', monospace; */
  position: absolute;
  top: 0;
  z-index: 5;
  color: #fff;
  background: #0000009e;
  font-size: 28px;
  text-shadow: 2px 2px #000;
  padding:  20px;
  text-transform: uppercase;
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
  height:100%;
  filter: blur(1px);
}

#controls {
  /*font-family: 'Press Start 2P', cursive;*/
  font-family: 'VT323', monospace;
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 6;
  color: #fff;
  font-size: 28px;
  text-shadow: 2px 2px #000;
  padding:  20px;
}

#controls img {
  width:  32px;
}

#channel-liste {
  position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, 0.7);
    z-index: 6;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

#channel-liste .station-wrapper .station-thumbnail {
    display: block;
    width: 100%;
    height: 0px;
    padding-bottom: 56%;
    background-color: rgba(0, 0, 0, 0.7);
    background-size: cover;
    margin-bottom: 4px;
}

#channel-liste .station-wrapper span {
    display: block;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 15.5px;
    font-family: 'VT323', monospace;
    color: white;
}

#channel-liste .station-wrapper {
    display: block;
    padding: 16px;
}

#title {
  display: inline-block;
      max-width: 90vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

#crt-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url(images/lines.jpg);
  z-index: 10;
  background-size: 7px auto;
  mix-blend-mode: overlay;
  pointer-events: none;
  opacity: 0.4;
  animation: moveDownAnimation 150s linear infinite;
}

#vignette {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url(images/vignette.png);
  z-index: 11;
  background-size: 100% 100%;
  mix-blend-mode: overlay;
  pointer-events: none;
  opacity: 0.6;
}

#darken {
  position: absolute;
  background: rgba(0, 0, 0, 0.3);
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

#progressBar {
    width: 100%;
    height: 5px;
    background: rgba(0,186,255,.4);
    position: absolute;
    z-index: 6;
    bottom: 0;
    display: none;
}

#logo {
  position: absolute;
  top:  0px;
  right: 0px;
  padding: 40px;
  z-index:  7;
}

#progress {
    background: #00baff;
    height: 5px;
}

#volumecontrol {
  display: inline-block;
    vertical-align: top;
    margin-right: 10px;
}


input[type="range"] { 
  margin: auto;
  -webkit-appearance: none;
  position: relative;
  overflow: hidden;
  height: 10px;
  width: 100px;
  cursor: pointer;
  border-radius: 0; /* iOS */
}

::-webkit-slider-runnable-track {
  background: #ddd;
}

/*
* 1. Set to 0 width and remove border for a slider without a thumb
* 2. Shadow is negative the full width of the input and has a spread 
*    of the width of the input.
*/
::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 00px; /* 1 */
  height: 40px;
  background: #fff;
  box-shadow: -200px 0 0 200px dodgerblue; /* 2 */
  border: 0px solid #999; /* 1 */
  
}

::-moz-range-track {
  height: 10px;
  background: #ddd;
}

::-moz-range-thumb {
  background: #fff;
  height: 40px;
  width: 20px;
  border: 3px solid #999;
  border-radius: 0 !important;
  box-shadow: -200px 0 0 200px dodgerblue;
  box-sizing: border-box;
  display: none;
}

::-ms-fill-lower { 
  background: dodgerblue;
}

::-ms-thumb { 
  background: #fff;
  border: 0px solid #999;
  height: 40px;
  width: 20px;
  box-sizing: border-box;
}

::-ms-ticks-after { 
  display: none; 
}

::-ms-ticks-before { 
  display: none; 
}

::-ms-track { 
  background: #ddd;
  color: transparent;
  height: 40px;
  border: none;
}

::-ms-tooltip { 
  display: none;
}






@keyframes moveDownAnimation {
  100% {
    background-position-y: 100%;
  }
}

@keyframes crtAnimation {
  0% {
    transform: scaleY(0) scaleX(0);
    filter: brightness(15) blur(0px);
  }
  20% {
    transform: scaleY(0.02) scaleX(0.8);
    filter: brightness(15) blur(0px);
  }
}

@media (min-aspect-ratio: 16/9) {
  #container iframe {
    /* height = 100 * (9 / 16) = 56.25 */
    height: 56.25vw;
  }
}
    
@media (max-aspect-ratio: 16/9) {
  #container iframe {
    /* width = 100 / (9 / 16) = 177.777777 */
    width: 177.78vh;
  }
}

@media (min-aspect-ratio: 4/3) {
  #container iframe {
    /* height = 100 * (3 / 4) = x */
    height: 75vw;
  }
}
    
@media (max-aspect-ratio: 4/3) {
  #container iframe {
    /* width = 100 / (3 / 4) = x */
    width: 133.34vh;
  }
}

.blinking {
  -webkit-animation: 1s blink ease infinite;
  -moz-animation: 1s blink ease infinite;
  -ms-animation: 1s blink ease infinite;
  -o-animation: 1s blink ease infinite;
  animation: 1s blink ease infinite;
  
}

@keyframes "blink" {
  from, to {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

@-webkit-keyframes "blink" {
  from, to {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

@-ms-keyframes "blink" {
  from, to {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

@-o-keyframes "blink" {
  from, to {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

#small-videos {
    display: flex;
    justify-content: space-between;
    position: absolute;
    bottom: 10px; /* Abstand vom unteren Rand */
    width: 100%;
    padding: 0 10px; /* Seitenabstand */
}

.small-video {
    flex: 1;
    margin: 0 5px; /* Abstand zwischen den kleinen Videos */
    height: 100px; /* Höhe der kleinen Videos */
}


/*MOBILE */
@media (max-width: 900px) {
  #title {
    max-width: 80vw;
  }
  #logo {
    padding: 20px;
  }
  #logo img {
    width:  150px;
  }
  #controls {
    margin-bottom: 100px;
    width: 100%;
    text-align: center;
    padding: 0px;
  }
  #volumecontrol {
    display: none;
  }
  #container {
    height: 100vh;
  }
}

