/* main menu */

body.channel-splash {
  background-color: black;
}

.main-menu {
  margin: 0;
  transition: transform 900ms, opacity 400ms, background-color 900ms, visibility 900ms;
  opacity: 1;
  visibility: visible;
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/bg-pattern.png);
  background-color: lightgrey;
  width: 100%;
  height: 100vh;
}

.main-menu.channel-splash {
  transform: scale(4);
  opacity: 0;
  background-color: black;
  background-image: none !important;
  visibility: hidden;
}

.top-section {
  height: calc(100% - 219px);
  padding: 80px;
  padding-top: 3vh;
  padding-bottom: 0;
  box-sizing: border-box;
}

.bottom-section {
  height: 219px;
  background: #d2d6db;
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/bottom-bg.png);
}

.col {
  width: 24%;
  height: 100%;
  display: inline-block;
  box-sizing: border-box;
}

.col.first {
  margin-left: 20px;
}

.channel-icon {
  display: block;
  width: 20.2vw;
  height: 11.1vw;
  margin-top: 2vh;
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

.channel-icon.blank {
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/channel-spritesheet.jpg);
  background-size: calc(100% * 3) 100%;
}

.channel-icon.blank:before {
  position: absolute;
  top: 0;
  left: 0;
  width: 20.2vw;
  height: 11.1vw;
  content: '';
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/channel-wiilogo.png);
  background-size: 100% 100%;
}

.channel-icon:after {
  position: absolute;
  top: 0;
  left: 0;
  width: 20.2vw;
  height: 11.1vw;
  content: '';
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/channel-border.png);
  background-size: 100% 100%;
}

.channel-icon.occupied .hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 20.2vw;
  height: 11.1vw;
  content: '';
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/channel-hover.png);
  background-size: 100% 100%;
  z-index: 99;
  opacity: 0;
  transition: 400ms ease;
  transform: scale(0.94);
}

.channel-icon.occupied .hover:hover {
  display: block;
  opacity: 1;
  transform: scale(1.02);
}

.channel-splash .channel-icon.blank {
  background-position: 0 0 !important;
}

.channel-splash .channel-icon.occupied .hover {
  display: none !important;
}

.channel-icon img {
  display: inherit;
  width: inherit;
  height: inherit;
  /* TODO: does not work in Edge/IE11 and has shoddy browser support */
  -webkit-clip-path: polygon(2% 7%, 6% 2%, 52% 1%, 95% 3%, 98% 8%, 100% 49%, 98% 92%, 95% 97%, 50% 99%, 5% 97%, 2% 93%, 0 50%);
  clip-path: polygon(2% 7%, 6% 2%, 52% 1%, 95% 3%, 98% 8%, 100% 49%, 98% 92%, 95% 97%, 50% 99%, 5% 97%, 2% 93%, 0 50%);
}

.bottom-title {
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/bottom-title.png);
  width: 1200px;
  height: 220px;
  margin-left: auto;
  margin-right: auto;
}

.left-button {
  position: absolute;
  bottom: 42px;
  left: 0;
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/left-button.png);
  width: 185px;
  height: 135px;
  background-size: 100% 100%;
}

.wii-button {
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/wii-button.png);
  width: 100px;
  height: 105px;
  position: absolute;
  bottom: 60px;
  left: 60px;
  background-size: 100% 100%;
}

.right-button {
  position: absolute;
  bottom: 42px;
  right: 0;
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/right-button.png);
  width: 185px;
  height: 135px;
  background-size: 100% 100%;
}

.mail-button {
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/mail-button.png);
  width: 100px;
  height: 105px;
  position: absolute;
  bottom: 60px;
  right: 60px;
  background-size: 100% 100%;
  z-index: 999;
}

.corner-button {
  transition: 300ms;
}

.corner-button:hover {
  transform: scale(1.1);
}

.date {
  position: absolute;
  color: #84868a;
  font-family: 'Asap', sans-serif;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, 0);
  font-size: 40px;
  letter-spacing: -1px;
}

/* channel splash screen */

.splash-screen {
  position: absolute;
  box-sizing: border-box;
  height: 80vh;
  width: 100%;
  position: absolute;
  top: -80vh;
  left: 0;
  background-size: cover;
  transition: opacity 500ms ease, transform 500ms ease;
  opacity: 0;
  transform: scale(0.3);
}

.channel-splash .splash-screen {
  top: 0;
  opacity: 1;
  transform: scale(1);
}

/* TODO: splash bar animation comes from top for some reason in IE11 */

.splash-bar {
  height: 20vh;
  box-sizing: border-box;
  background-color: lightgrey;
  transition: bottom 500ms ease, opacity 500ms ease;
  border-top: solid 2px black;
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/splash-bar.png);
  position: absolute;
  z-index: 99;
  width: 100%;
  bottom: -20vh;
  left: 0;
  opacity: 0;
}

.channel-splash .splash-bar {
  bottom: 0;
  opacity: 1;
}

.border-topleft {
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/border-topleft.png);
  width: 306px;
  height: 230px;
  top: 0;
  left: 0;
  position: absolute;
  z-index: 9991;
}

.border-topright {
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/border-topright.png);
  width: 306px;
  height: 230px;
  top: 0;
  right: 0;
  position: absolute;
  z-index: 9992;
}

.border-bottomleft {
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/border-bottomleft.png);
  width: 306px;
  height: 230px;
  bottom: 0;
  left: 0;
  position: absolute;
  z-index: 9993;
}

.border-bottomright {
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/border-bottomright.png);
  width: 306px;
  height: 230px;
  bottom: 0;
  right: 0;
  position: absolute;
  z-index: 9994;
}

.border {
  display: none;
}

.channel-splash .border {
  display: block;
}

.splash-buttons {
  width: 50%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding-top: 4.1vh;
  height: 20vh;
  box-sizing: border-box;
}

/* changes for channel -> menu transition */

.splash-switch .main-menu {
  transition: transform 400ms;
}

.splash-switch .splash-screen {
  top: 0;
}

/* buttons */

.btn {
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/btn-texture.png);
  background-size: auto 100%;
  height: 5vw;
  width: 15vw;
  display: inline-block;
  position: relative;
  margin-left: 4.5vw;
  margin-right: 4.5vw;
  text-decoration: none;
  line-height: 100%;
  font-family: 'Asap', sans-serif;
  color: #474747 !important;
  font-size: 2.2vw;
  line-height: calc(4.5vw + 5px);
  cursor: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/cursor.png), auto !important; /* TODO: does not work in IE11, buggy in Chrome OS */
  transform: scale(1);
  transition: 150ms ease;
}

.btn:hover {
  transform: scale(1.1);
}

.btn:before {
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/btn-left.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  height: 5vw;
  width: 2.2vw;
  display: inline-block;
  content: '';
  position: absolute;
  left: -2.2vw;
}

.btn:after {
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/btn-right.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  height: 5vw;
  width: 2.2vw;
  display: inline-block;
  content: '';
  position: absolute;
  right: -2.2vw;
}


/* Unsupported display */

.screen-message {
  display: none;
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-family: sans-serif;
  top: 20px;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  text-align: center;
}

.screen-message.hidden {
  visibility: none;
  top: 100vh;
}

.screen-message p {
  margin-top: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

@media only screen and (max-height: 469px) , screen and (max-width: 1220px) , screen and (width: 1280px) and (height: 1024px) {
    .screen-message {
        display: block !important;
    }
}

/* SFX */

.sfx {
  display: none;
}

/* Animation */

.channel-icon.blank {
  -webkit-animation: play 0.3s steps(3) infinite;
  -moz-animation: play 0.3s steps(3) infinite;
  -ms-animation: play 0.3s steps(3) infinite;
  -o-animation: play 0.3s steps(3) infinite;
  animation: play 0.3s steps(3) infinite;
}

@-webkit-keyframes play {
  from { background-position-x: 0px; }
  to { background-position-x: calc(100% * 3 - 1px); }
}

@-moz-keyframes play {
  from { background-position-x: 0px; }
  to { background-position-x: calc(100% * 3 - 1px); }
}

@-ms-keyframes play {
  from { background-position-x: 0px; }
  to { background-position-x: calc(100% * 3 - 1px); }
}

@-o-keyframes play {
  from { background-position-x: 0px; }
  to { background-position-x: calc(100% * 3 - 1px); }
}

@keyframes play {
  from { background-position-x: 0px; }
  to { background-position-x: calc(100% * 3 - 1px); }
}

/* mini mode */

@media only screen and (max-height: 718px) {
  .top-section {
    height: calc(100% - 130px);
  }

  .bottom-section {
    height: 130px;
    background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/mini-bottom-bg.png);
  }

  .left-button-container {
    transform: scale(0.6);
    transform-origin: left;
  }

  .right-button-container {
    transform: scale(0.6);
    transform-origin: right;
  }

  .left-button, .right-button {
    bottom: 180px;
  }

  .corner-button {
    bottom: 197px;
	}

  .bottom-title {
    transform-origin: top;
    transform: scale(0.65);
  }

  .date {
    font-size: 22px;
    bottom: 17px;
  }
}

@media only screen and (max-height: 826px) {
  .top-section {
    padding-top: 1em !important;
  }
}

@media only screen and (max-height: 640px) {
  .channels {
    transform: scale(0.9);
  }
}

/*
@media only screen and (max-height: 600px) {
  .channels {
    transform: scale(0.8);
		transform-origin: top;
  }
}

@media only screen and (max-height: 524px) {
  .channels {
    transform: scale(0.7);
		transform-origin: top;
  }
} */

/* widescreen fixes */

@media only screen and (min-width: 1720px) {
  .top-section {
    transform: scale(0.9);
    padding-top: 0em !important;
  }
}

/******************/
/*    testing     */
/* needs 2b moved */
/******************/

.channels {
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
}

@media only screen and (min-width: 1920px) {
  .channel-icon, .channel-icon *, .channel-icon:after, .channel-icon:before {
    width: 387px !important;
    height: 213px !important;
  }
}

@media only screen and (max-height: 47vw) {
  .channel-icon, .channel-icon *, .channel-icon:after, .channel-icon:before {
    width: 40vh !important;
    height: 22.5vh !important;
    max-width: 439px !important;
    max-height: 247px !important;
  }

  .channels-container {

  }
}




















/* settings */

.settings {
  background-color: black;
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/settings-main-bg.png);
  width: 100vw;
  height: 100vh;
}

.settings-header {
  background-color: black;
  background: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/settings-topbar.pngv);
  height: 16vh;
  width: 100vw;
  background-size: 15px 100%;
  padding: 0;
  margin: 0;
  position: relative;
  top: -16vh;
  transition: 300ms ease;
}

.settings-header.animate {
  top: 0;
}

.settings-main .settings-header:after {
  position: absolute;
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/5fbbf155b15b5e51b0e1aa97d9e28fc2b8563631/assets/images/logo-white.svg);
  width: 10vh;
  height: 4.5vh;
  content: '';
  background-size: 100% 100%;
  bottom: 2vh;
  right: 12vw;
  display: block;
}

.settings-footer {
  background-color: black;
  background: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/settings-bottombar.png);
  height: 21vh;
  width: 100vw;
  background-size: 8px 100%;
  padding: 0;
  margin: 0;
  position: relative;
  bottom: -21vh;
  transition: 300ms ease;
}

.settings-footer.animate {
  bottom: 0;
}

.settings-navcontainer {
  position: absolute;
  /*top: 20%;*/
  top: -100vh;
  opacity: 0;
  margin-left: auto;
  margin-right: auto;
  left: calc(50% - 60vh);
  transition: top 300ms;
}

.settings-navcontainer.animate {
  top: 20%;
  opacity: 1;
}

.settings-content {
  height: calc(100vh - 37vh);
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

.settings-navbtn {
  width: 50vh;
  height: 38vh;
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/settings-main-nav.png);
  background-color: initial;
  background-size: 100% 100%;
  display: inline-block;
  position: relative;
  transition: 300ms;
}

.settings-navbtn:hover {
  transform: scale(1.1);
}

.settings-navbtn.left { margin-right: 10vh; } .settings-navbtn.right { margin-left: 10vh; }

.settings-navbtn span.label {
  position: absolute;
  display: block;
  bottom: 1vh;
  height: 10vh;
  line-height: 10vh;
  color: #909090;
  font-size: 3.8vh;
  font-family: 'Asap', sans-serif;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  letter-spacing: -1px;
}

.settings-navbtn.settings .icon {
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/settings-icon.png);
  width: 20vh;
  height: 20vh;
  background-size: 100% 100%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 5vh;
}

.settings-navbtn.info .icon {
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/info-icon.png);
  width: 20vh;
  height: 20vh;
  background-size: 100% 100%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 5vh;
}

.settings-footer .back {
  position: absolute;
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/settings-back.png);
  width: 30vh;
  height: 8vh;
  content: '';
  background-size: 100% 100%;
  top: 6vh;
  left: 12vw;
  display: block;
  transition: 150ms;
}

.settings-footer .back:hover {
  transform: scale(1.1);
}

























/* main menu */

.app {
  width: 100vw;
  height: 100vh;
  background-color: black;
}

body, html {
  margin: 0;
  overflow: hidden;
  background-color: lightgrey;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body {
  transition: 900ms;
  cursor: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/cursor.png), auto;
}

body.channel-splash {
  background-color: black;
}

.main-menu {
  margin: 0;
  transition: transform 900ms, opacity 400ms, background-color 900ms, visibility 900ms;
  opacity: 1;
  visibility: visible;
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/bg-pattern.png);
  background-color: lightgrey;
  width: 100%;
  height: 100vh;
}

.main-menu.channel-splash {
  transform: scale(4);
  opacity: 0;
  background-color: black;
  background-image: none !important;
  visibility: hidden;
}

.top-section {
  height: calc(100% - 219px);
  padding: 80px;
  padding-top: 3vh;
  padding-bottom: 0;
  box-sizing: border-box;
}

.pages {
  width: auto;
  height: 100%;
  overflow-x: auto;
}

.page {
  display: inline-block;
}

.bottom-section {
  height: 219px;
  background: #d2d6db;
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/bottom-bg.png);
}

.col {
  width: 24%;
  height: 100%;
  display: inline-block;
  box-sizing: border-box;
}

.col.first {
  margin-left: 19px;
}

.channel-icon {
  display: block;
  width: 20.2vw;
  height: 11.1vw;
  margin-top: 2vh;
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

.channel-icon.blank {
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/channel-spritesheet.png);
  background-size: calc(100% * 3) 100%;
}

.channel-icon.blank:before {
  position: absolute;
  top: 0;
  left: 0;
  width: 20.2vw;
  height: 11.1vw;
  content: '';
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/channel-wiilogo.png);
  background-size: 100% 100%;
}

.channel-icon:after {
  position: absolute;
  top: 0;
  left: 0;
  width: 20.2vw;
  height: 11.1vw;
  content: '';
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/channel-border.png);
  background-size: 100% 100%;
}

.channel-icon.occupied .hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 20.2vw;
  height: 11.1vw;
  content: '';
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/channel-hover.png);
  background-size: 100% 100%;
  z-index: 99;
  opacity: 0;
  transition: 400ms ease;
  transform: scale(0.94);
}

.channel-icon.occupied .hover:hover {
  display: block;
  opacity: 1;
  transform: scale(1.02);
}

.channel-splash .channel-icon.blank {
  background-position: 0 0 !important;
}

.channel-splash .channel-icon.occupied .hover {
  display: none !important;
}

.channel-icon img {
  display: inherit;
  width: inherit;
  height: inherit;
  -webkit-clip-path: polygon(2% 7%, 6% 2%, 52% 1%, 95% 3%, 98% 8%, 100% 49%, 98% 92%, 95% 97%, 50% 99%, 5% 97%, 2% 93%, 0 50%);
  clip-path: polygon(2% 7%, 6% 2%, 52% 1%, 95% 3%, 98% 8%, 100% 49%, 98% 92%, 95% 97%, 50% 99%, 5% 97%, 2% 93%, 0 50%);
}

.bottom-title {
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/bottom-title.png);
  width: 1200px;
  height: 220px;
  margin-left: auto;
  margin-right: auto;
}

.left-button {
  position: absolute;
  bottom: 42px;
  left: 0;
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/left-button.png);
  width: 185px;
  height: 135px;
  background-size: 100% 100%;
}

.wii-button {
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/wii-button.png);
  width: 100px;
  height: 105px;
  position: absolute;
  bottom: 60px;
  left: 60px;
  background-size: 100% 100%;
}

.right-button {
  position: absolute;
  bottom: 42px;
  right: 0;
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/right-button.png);
  width: 185px;
  height: 135px;
  background-size: 100% 100%;
}

.mail-button {
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/mail-button.png);
  width: 100px;
  height: 105px;
  position: absolute;
  bottom: 60px;
  right: 60px;
  background-size: 100% 100%;
}

.corner-button {
  transition: 300ms;
}

.corner-button:hover {
  transform: scale(1.1);
}

.date {
  position: absolute;
  color: #84868a;
  font-family: 'Asap', sans-serif;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, 0);
  font-size: 40px;
  letter-spacing: -1px;
}

/* channel splash screen */

.splash-screen {
  position: absolute;
  box-sizing: border-box;
  height: 80vh;
  width: 100%;
  position: absolute;
  top: -80vh;
  left: 0;
  background-size: cover;
  transition: opacity 500ms ease, transform 500ms ease;
  opacity: 0;
  transform: scale(0.3);
}

.channel-splash .splash-screen {
  top: 0;
  opacity: 1;
  transform: scale(1);
}

.splash-bar {
  height: 20vh;
  box-sizing: border-box;
  background-color: lightgrey;
  transition: bottom 500ms ease, opacity 500ms ease;
  border-top: solid 2px black;
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/splash-bar.png);
  position: absolute;
  z-index: 99;
  width: 100%;
  bottom: -20vh;
  left: 0;
  opacity: 0;
}

.channel-splash .splash-bar {
  bottom: 0;
  opacity: 1;
}

.border-topleft {
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/border-topleft.png);
  width: 306px;
  height: 230px;
  top: 0;
  left: 0;
  position: absolute;
  z-index: 9991;
}

.border-topright {
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/border-topright.png);
  width: 306px;
  height: 230px;
  top: 0;
  right: 0;
  position: absolute;
  z-index: 9992;
}

.border-bottomleft {
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/border-bottomleft.png);
  width: 306px;
  height: 230px;
  bottom: 0;
  left: 0;
  position: absolute;
  z-index: 9993;
}

.border-bottomright {
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/border-bottomright.png);
  width: 306px;
  height: 230px;
  bottom: 0;
  right: 0;
  position: absolute;
  z-index: 9994;
}

.border {
  display: none;
}

.channel-splash .border {
  display: block;
}

.splash-buttons {
  width: 50%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding-top: 4.1vh;
  height: 20vh;
  box-sizing: border-box;
}

/* changes for channel -> menu transition */

.splash-switch .main-menu {
  transition: transform 400ms;
}

.splash-switch .splash-screen {
  top: 0;
}

/* buttons */

.btn {
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/btn-texture.png);
  background-size: auto 100%;
  height: 5vw;
  width: 15vw;
  display: inline-block;
  position: relative;
  margin-left: 4.5vw;
  margin-right: 4.5vw;
  text-decoration: none;
  line-height: 100%;
  font-family: 'Asap', sans-serif;
  color: #474747 !important;
  font-size: 2.2vw;
  line-height: calc(4.5vw + 5px);
  cursor: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/cursor.png), auto !important;
  transform: scale(1);
  transition: 150ms ease;
}

.btn:hover {
  transform: scale(1.1);
}

.btn:before {
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/btn-left.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  height: 5vw;
  width: 2.2vw;
  display: inline-block;
  content: '';
  position: absolute;
  left: -2.2vw;
}

.btn:after {
  background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/btn-right.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  height: 5vw;
  width: 2.2vw;
  display: inline-block;
  content: '';
  position: absolute;
  right: -2.2vw;
}


/* Unsupported display */

.screen-message {
  display: none;
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-family: sans-serif;
  top: 20px;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  text-align: center;
}

.screen-message.hidden {
  visibility: none;
  top: 100vh;
}

.screen-message p {
  margin-top: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

@media only screen and (max-height: 469px) , screen and (max-width: 1220px) , screen and (width: 1280px) and (height: 1024px) {
    .screen-message {
        display: block !important;
    }
}

/* SFX */

.sfx {
  display: none;
}

/* Animation */

.channel-icon.blank {
  -webkit-animation: play 0.3s steps(3) infinite;
  -moz-animation: play 0.3s steps(3) infinite;
  -ms-animation: play 0.3s steps(3) infinite;
  -o-animation: play 0.3s steps(3) infinite;
  animation: play 0.3s steps(3) infinite;
}

@-webkit-keyframes play {
  from { background-position-x: 0px; }
  to { background-position-x: calc(100% * 3 - 1px); }
}

@-moz-keyframes play {
  from { background-position-x: 0px; }
  to { background-position-x: calc(100% * 3 - 1px); }
}

@-ms-keyframes play {
  from { background-position-x: 0px; }
  to { background-position-x: calc(100% * 3 - 1px); }
}

@-o-keyframes play {
  from { background-position-x: 0px; }
  to { background-position-x: calc(100% * 3 - 1px); }
}

@keyframes play {
  from { background-position-x: 0px; }
  to { background-position-x: calc(100% * 3 - 1px); }
}

/* mini mode */

@media only screen and (max-height: 718px) {
  .top-section {
    height: calc(100% - 130px);
  }

  .bottom-section {
    height: 130px;
    background-image: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/mini-bottom-bg.png);
  }

  .left-button-container {
    transform: scale(0.6);
    transform-origin: left;
  }

  .right-button-container {
    transform: scale(0.6);
    transform-origin: right;
  }

  .left-button, .right-button {
    bottom: 180px;
  }

  .corner-button {
    bottom: 197px;
	}

  .bottom-title {
    transform-origin: top;
    transform: scale(0.65);
  }

  .date {
    font-size: 22px;
    bottom: 17px;
  }
}

@media only screen and (max-height: 826px) {
  .top-section {
    padding-top: 1em !important;
  }
}

@media only screen and (max-height: 640px) {
  .channels {
    transform: scale(0.9);
  }
}

/*
@media only screen and (max-height: 600px) {
  .channels {
    transform: scale(0.8);
		transform-origin: top;
  }
}

@media only screen and (max-height: 524px) {
  .channels {
    transform: scale(0.7);
		transform-origin: top;
  }
} */

/* widescreen fixes */

@media only screen and (min-width: 1720px) {
  .top-section {
    transform: scale(0.9);
    padding-top: 0em !important;
  }
}

/******************/
/*    testing     */
/* needs 2b moved */
/******************/

.channels {
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
}

@media only screen and (min-width: 1920px) {
  .channel-icon, .channel-icon *, .channel-icon:after, .channel-icon:before {
    width: 387px !important;
    height: 213px !important;
  }
}

@media only screen and (max-height: 47vw) {
  .channel-icon, .channel-icon *, .channel-icon:after, .channel-icon:before {
    width: 40vh !important;
    height: 22.5vh !important;
    max-width: 439px !important;
    max-height: 247px !important;
  }

  .channels-container {

  }
}































/* universal styling */

.app {
  width: 100vw;
  height: 100vh;
  background-color: black;
  display: block;
}

body, html {
  margin: 0;
  overflow: hidden;
  background-color: black;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body {
  transition: 900ms;
  cursor: url(https://raw.githubusercontent.com/andrewplus/Wii.JS/refs/heads/gh-pages/assets/images/cursor.png), auto;
}

.black {
  background-color: black;
  width: 100vw;
  height: 100vh;
  z-index: 999999999;
  top: 100vh;
  opacity: 0;
  transition: opacity 300ms;
  position: absolute;
}

.black.animate {
  opacity: 1;
}













.info-windows {
  display: none;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.info-windows.show {
  display: flex;
}

.info-window {
  background: white;
  border:2px outset white;
  box-shadow:3px 3px black;
  font-family:"Fira Code";
  border-radius: 14px;
  padding: 25px;
  position: relative;
  min-width: 300px;
  height: 250px;
  width: 600px;
  display: none;
}

.close-window {
  position: absolute;
  top: 10px; right: 14px;
  cursor: pointer;
  font-weight: bold;
}

.info-window.active {
  display: block;
}







.fila-botones {
  display: inline-flex;
  gap: 10px;
  margin-bottom: 15px;
  
}

.btn-info {



  padding: 10px 20px;
  font-size: 16px;
 
  text-align:left;

    background:#c0c0c0;

    border:2px outset white;

    cursor:pointer;

    font-family:"Fira Code";
}

.btn-info:hover {
  background-color: grey;
}

.info-oculta {
  display: none;
  margin-top: 10px;
  padding: 12px;
  border: 2px solid #4a85bd;
  background-color: #b5d6f5;
}

























































