@font-face {
  font-family: "HBL";
  src: url("assets/fonts/font.ttf") format("truetype");
  font-display: swap;
}

html, body {
  margin: 0; padding: 0; width: 100%; height: 100%;
  overflow: hidden;
  background: #4f99ef;
  color: #fff;
  font-family: "HBLTheme", "HBL", "Trebuchet MS", sans-serif;
  -webkit-user-select: none; -moz-user-select: none; user-select: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

#bg {
  position: fixed; left: 0; right: 0; top: 0; height: 100%; height: 100vh; height: 100lvh;
  background: #4f99ef;
  background: -webkit-linear-gradient(top, #3b9fdf, #4f99ef);
  background: linear-gradient(to bottom, #3b9fdf, #4f99ef);
  pointer-events: none;
}
body { background: transparent; }

#particles { position: fixed; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }

#stage {
  position: absolute; left: 0; top: 0; width: 1280px; height: 720px;
  -webkit-transform-origin: 0 0; transform-origin: 0 0;
}

#pages { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; }
#track {
  position: absolute; left: 0; top: 0; height: 100%; width: 100%;
  -webkit-transition: -webkit-transform .55s cubic-bezier(.3,.7,.3,1);
  transition: transform .55s cubic-bezier(.3,.7,.3,1);
}

.hb {
  position: absolute; width: 782px; height: 152px; cursor: pointer;
  -webkit-transition: -webkit-transform .042s linear, opacity .3s; transition: transform .042s linear, opacity .3s;
}
.hb .bg, .hb .sel {
  position: absolute; left: 39px; top: 7px; width: 704px; height: 137px;
  background: url("assets/images/homebrewButton.png") no-repeat 0 0;
  -webkit-background-size: 100% 100%; background-size: 100% 100%;
}
.hb .sel { background-image: url("assets/images/homebrewButtonSelected.png"); opacity: 0; }
.hb.selected { -webkit-transform: scale(1.1); transform: scale(1.1); z-index: 2; }
.hb.selected .sel { opacity: 1; }
.hb .ic { position: absolute; left: 60px; top: 28px; width: 256px; height: 96px; }
.hb .lbl {
  position: absolute; left: 336px; width: 350px; height: 40px; line-height: 40px;
  font-size: 32px; white-space: nowrap; overflow: hidden;
}
.hb .nm { top: 36px; }
.hb .ds { top: 76px; }
.hb.disabled { pointer-events: none; }

.arrow {
  position: absolute; width: 100px; height: 178px; cursor: pointer; display: none;
  background: no-repeat 0 0; -webkit-background-size: 100% 100%; background-size: 100% 100%;
  -webkit-transition: -webkit-transform .042s linear; transition: transform .042s linear;
}
.arrow.left  { background-image: url("assets/images/leftArrow.png"); }
.arrow.right { background-image: url("assets/images/rightArrow.png"); }
.arrow.show { display: block; }
.arrow:hover, .arrow.pressed { -webkit-transform: scale(1.1); transform: scale(1.1); }

#empty {
  position: absolute; left: 0; width: 100%; top: 330px; text-align: center;
  font-size: 36px; opacity: .9; display: none;
}

#pageDots { position: absolute; left: 0; width: 100%; text-align: center; font-size: 0; display: none; }
#pageDots i {
  display: inline-block; width: 12px; height: 12px; margin: 0 6px; border-radius: 6px;
  background: rgba(255,255,255,.35);
}
#pageDots i.on { background: #fff; }

#screen { position: fixed; left: 0; top: 0; width: 1280px; height: 720px; pointer-events: none;
  -webkit-transform-origin: 0 0; transform-origin: 0 0; }
#ver { position: absolute; right: 30px; bottom: 8px; font-size: 32px; line-height: normal; white-space: nowrap; }
#verBase { display: inline-block; width: 0; height: 0; vertical-align: baseline; }

#pages, .arrow, #pageDots, #ver { -webkit-transition: opacity .28s linear; transition: opacity .28s linear; }
#stage.launching #pages, #stage.launching .arrow, #stage.launching #pageDots { opacity: .12; }
#screen.launching #ver { opacity: 0; }
#stage.launching .arrow { pointer-events: none; }

#screen.portrait #ver { left: 0; right: 0; text-align: center; bottom: 30px !important; font-size: 28px; }
#stage.portrait .arrow { width: 70px; height: 125px; }

#launch {
  position: absolute; width: 900px; height: 610px; visibility: hidden; opacity: 0;
  background: url("assets/images/launchMenuBox.png") no-repeat 0 0;
  -webkit-transform-origin: 0 0; transform-origin: 0 0;
  -webkit-transition: opacity .28s linear, visibility 0s linear .28s;
  transition: opacity .28s linear, visibility 0s linear .28s;
  z-index: 10;
}
#launch.open {
  visibility: visible; opacity: 1;
  -webkit-transition: opacity .28s linear; transition: opacity .28s linear;
}
#launch .lt {
  position: absolute; left: 50px; width: 800px; top: 50px; height: 50px; line-height: 50px;
  font-size: 42px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#launch .li { position: absolute; left: 100px; top: 105px; width: 256px; height: 96px; }
#launch .lk, #launch .lv {
  position: absolute; height: 32px; line-height: 32px; font-size: 32px; white-space: nowrap;
}
#launch .lk { left: 400px; }
#launch .lv { left: 512px; width: 350px; overflow: hidden; text-overflow: ellipsis; }
#launch .lsmall { font-size: 24px; opacity: .85; }
#launch .ld {
  position: absolute; left: 100px; top: 250px; width: 700px; height: 310px;
  font-size: 28px; line-height: 1.25; white-space: pre-wrap; word-wrap: break-word;
  overflow: auto; -webkit-overflow-scrolling: touch;
  -webkit-user-select: text; user-select: text;
}
#launch .ld::-webkit-scrollbar { width: 8px; }
#launch .ld::-webkit-scrollbar-thumb { background: rgba(255,255,255,.35); border-radius: 4px; }

.sbtn {
  position: absolute; top: 583px; width: 252px; height: 64px; cursor: pointer;
  background: url("assets/images/button.png") no-repeat 0 0;
  -webkit-transition: -webkit-transform .042s linear; transition: transform .042s linear;
}
.sbtn span {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; line-height: 64px;
  text-align: center; font-size: 32px;
}
.sbtn.selected { background-image: url("assets/images/buttonSelected.png"); -webkit-transform: scale(1.1); transform: scale(1.1); }
.sbtn.off { opacity: .45; cursor: default; }
#lHost { color: inherit; }

#progress {
  position: absolute; width: 1140px; height: 193px; visibility: hidden; opacity: 0; z-index: 20;
  -webkit-transform-origin: 0 0; transform-origin: 0 0;
  -webkit-transition: opacity .25s linear, visibility 0s linear .25s;
  transition: opacity .25s linear, visibility 0s linear .25s;
}
#progress.open { visibility: visible; opacity: 1; -webkit-transition: opacity .25s linear; transition: opacity .25s linear; }
#progress .pbar { position: absolute; left: 0; top: 48px; width: 1140px; height: 96px; background: #000; }
#progress .pfill {
  position: absolute; left: 0; top: 0; height: 100%; width: 0;
  background: #2a9fd9;
  background: -webkit-linear-gradient(top, #2a9fd9, #0d6885);
  background: linear-gradient(to bottom, #2a9fd9, #0d6885);
}
#progress .pframe { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: url("assets/images/progressWindow.png") no-repeat 0 0; }
#progress .ptitle {
  position: absolute; left: 50px; top: 76px; height: 40px; line-height: 40px; width: 1040px;
  font-size: 36px; white-space: nowrap; overflow: hidden;
  text-shadow: 0 0 5px #000, 0 0 5px #000, 0 0 3px #000;
}

#stage.nobg-launchMenuBox #launch:before {
  content: ""; position: absolute; left: 25px; top: 39px; width: 849px; height: 541px; z-index: -1;
  background: #1d2b6b; border-radius: 26px; box-shadow: inset 0 0 0 3px rgba(150,170,230,.45), 0 6px 18px rgba(0,0,0,.35);
}
#stage.nobg-homebrewButton .hb .bg { background-color: #1d2b6b; border-radius: 26px; box-shadow: inset 0 0 0 3px rgba(255,255,255,.75); }
#stage.nobg-homebrewButtonSelected .hb .sel { border-radius: 26px; box-shadow: inset 0 0 0 4px #3ef2ff; }
#stage.nobg-button .sbtn { background-color: #1d2b6b; border-radius: 32px; box-shadow: inset 0 0 0 3px rgba(150,170,230,.45); }
#stage.nobg-buttonSelected .sbtn.selected { background-color: #1d2b6b; border-radius: 32px; box-shadow: inset 0 0 0 4px #3ef2ff; }
#stage.nobg-leftArrow .arrow.left:before, #stage.nobg-rightArrow .arrow.right:before {
  content: ""; position: absolute; left: 0; top: 38px; width: 98px; height: 98px; border-radius: 50%;
  background: #1d2b6b; box-shadow: inset 0 0 0 3px rgba(150,170,230,.45);
}
#stage.nobg-leftArrow .arrow.left:after, #stage.nobg-rightArrow .arrow.right:after {
  content: ""; position: absolute; top: 62px; border: 25px solid transparent;
}
#stage.nobg-leftArrow .arrow.left:after { left: 12px; border-right: 34px solid #fff; border-left: 0; }
#stage.nobg-rightArrow .arrow.right:after { left: 52px; border-left: 34px solid #fff; border-right: 0; }
#stage.nobg-progressWindow #progress .pframe { border-radius: 30px; box-shadow: inset 0 0 0 48px #1d2b6b; }
