/* Figtree, the Ya Screen site font (SIL Open Font License, see fonts/OFL.txt). */
@font-face { font-family: 'Figtree'; src: url('../fonts/Figtree-Regular.ttf') format('truetype'); font-weight: 400; }
@font-face { font-family: 'Figtree'; src: url('../fonts/Figtree-Bold.ttf') format('truetype'); font-weight: 700; }
@font-face { font-family: 'Figtree'; src: url('../fonts/Figtree-ExtraBold.ttf') format('truetype'); font-weight: 800; }

html, body {
  margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden;
  background: #000; color: #fff;
  font-family: 'Figtree', 'SamsungOne', Arial, sans-serif;
  /* 1rem = ten Android "dp" (20px on a 1080p TV); set from JS to fit the screen */
  font-size: 20px;
  cursor: default;
  -webkit-user-select: none; user-select: none;
}
.hidden { display: none !important; }

#stage { position: absolute; left: 0; top: 0; overflow: hidden; background: #000;
  -webkit-transform-origin: 50% 50%; transform-origin: 50% 50%; }
#black { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: #000; }
#content { position: absolute; left: 0; top: 0; z-index: 0; }  /* own layer, so pictures never cover the overlays */
.panel { z-index: 1; }
#badge { z-index: 2; }
#identify { z-index: 3; }
.pic { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background-color: #000;
  background-repeat: no-repeat; background-position: center center; opacity: 0; visibility: hidden;
  -webkit-transition: opacity 0.6s ease-in-out; transition: opacity 0.6s ease-in-out; }
.pic.cut { -webkit-transition: none; transition: none; }
.pic.on { visibility: visible; }
.vid, .web { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #000; border: 0; visibility: hidden; }
.vid.on, .web.on { visibility: visible; }

.panel { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; text-align: center; }
#pairing { background: #FFD60A; color: #111; }
#wordmark { width: 26rem; height: 6rem; display: block; margin: 0 auto 2.8rem; }
#pairTitle { font-size: 1.8rem; font-weight: 700; opacity: 0.75; line-height: 2.6rem; }
#pairCode { font-size: 9.6rem; font-weight: 800; line-height: 12.4rem; letter-spacing: 0.4rem; }
#pairHint { font-size: 1.6rem; opacity: 0.75; line-height: 2.2rem; }
#pairKeys { font-size: 1.4rem; opacity: 0.55; line-height: 2rem; margin-top: 2.8rem; }
#pairStatus { font-size: 1.4rem; opacity: 0.55; line-height: 2rem; margin: 0.8rem auto 0; max-width: 90%; min-height: 4rem; }

#idle { background: #000; }
#idleTitle { font-size: 3rem; font-weight: 700; line-height: 4.2rem; }
#idleText { font-size: 1.6rem; color: #D6D3C8; line-height: 2.3rem; margin-top: 1rem; max-width: 80%; margin-left: auto; margin-right: auto; }
#idleBrand { font-size: 1.4rem; font-weight: 700; color: #8C8A82; margin-top: 3rem; }

#badge { position: absolute; right: 2rem; bottom: 2rem; height: 3.6rem; padding: 0 1.4rem 0 0.6rem; border-radius: 1.8rem;
  background: rgba(17, 17, 17, 0.78); display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center; }
#badge .mark { width: 2.4rem; height: 2.4rem; border-radius: 1.2rem; background: #FFD60A; color: #111; font-size: 1rem; font-weight: 800;
  line-height: 2.4rem; text-align: center; margin-right: 0.8rem; }
#badge .txt { font-size: 1.3rem; font-weight: 700; color: #fff; }

#identify { position: absolute; left: 50%; top: 50%; width: 90rem; max-width: 90%; height: 9rem; line-height: 9rem;
  -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);
  background: rgba(255, 214, 10, 0.95); color: #111; font-size: 4rem; font-weight: 800; text-align: center; border-radius: 1.2rem;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* settings */
#menu { position: fixed; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.72); z-index: 10;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; }
.menu-box { width: 56rem; max-width: 90%; background: #1c1c1e; border-radius: 1.6rem; padding: 2.6rem 2.8rem; box-shadow: 0 1rem 4rem rgba(0,0,0,.6); }
#menuTitle { font-size: 2.2rem; font-weight: 800; color: #FFD60A; margin-bottom: 1rem; }
#menuText { font-size: 1.2rem; line-height: 1.8rem; color: #D6D3C8; margin-bottom: 1.4rem; }
#menuText p { margin: 0 0 0.6rem; }
#menuInput { display: block; width: 100%; box-sizing: border-box; font: inherit; font-size: 1.6rem; padding: 1rem 1.2rem; margin-bottom: 1.4rem;
  border-radius: 0.8rem; border: 0.2rem solid #555; background: #000; color: #fff; outline: none; }
.btn { display: block; width: 100%; box-sizing: border-box; min-height: 3.8rem; margin-top: 0.8rem; padding: 0.9rem 1.4rem;
  font: inherit; font-size: 1.5rem; font-weight: 700; text-align: left; color: #fff; background: #2c2c2e;
  border: 0.2rem solid transparent; border-radius: 0.8rem; cursor: pointer; outline: none; }
.btn.focus, .btn:hover { background: #FFD60A; color: #111; }
#menuInput.focus, #menuInput:focus { border-color: #FFD60A; }

/* ---- Web player (browser / Chromebook) ---- */
html.hide-cursor, html.hide-cursor * { cursor: none !important; }
#soundHint { position: fixed; left: 50%; bottom: 2rem; -webkit-transform: translateX(-50%); transform: translateX(-50%);
  z-index: 20; background: rgba(0,0,0,0.75); color: #fff; font-size: 1.4rem; font-weight: 700;
  padding: 0.8rem 1.6rem; border-radius: 99rem; pointer-events: none; }
#menu .btn { cursor: pointer; }
