@font-face {
  font-family: Digital_tech;
  src: url("/assets/fonts/Digital_tech.otf") format("opentype");
}
@font-face {
  font-family: Nowadays_Regular;
  src: url("/assets/fonts/Nowadays-Regular.ttf.woff") format('woff');
}
@font-face {
  font-family: "AxionRX14W01-Regular";
  src:  url("/assets/fonts/AxionRX14W01-Regular.eot");
  src:  url("/assets/fonts/AxionRX14W01-Regular.eot#iefix") format("embedded-opentype"),
        url("/assets/fonts/AxionRX14W01-Regular.woff2") format("woff2"),
        url("/assets/fonts/AxionRX14W01-Regular.woff") format("woff"),
        url("/assets/fonts/AxionRX14W01-Regular.ttf") format("truetype"),
        url("/assets/fonts/AxionRX14W01-Regular.svg") format("svg");
}
@font-face {
  font-family: "AxionScOsfW01-Italic";
  src:  url("/assets/fonts/AxionScOsfW01-Italic.eot");
  src:  url("/assets/fonts/AxionScOsfW01-Italic.eot#iefix") format("embedded-opentype"),
        url("/assets/fonts/AxionScOsfW01-Italic.woff2") format("woff2"),
        url("/assets/fonts/AxionScOsfW01-Italic.woff") format("woff"),
        url("/assets/fonts/AxionScOsfW01-Italic.ttf") format("truetype"),
        url("/assets/fonts/AxionScOsfW01-Italic.svg") format("svg");
}

html {
  font-size: 150%;
  font-size: 1.9vh;
  height: 100%;
}
@media all and (orientation : portrait) { html {
  height: auto;
  font-size: 2.4vw;
}}

body {
  height: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  /* the background picture: scene.css */
  background: #05070c;
}
@media all and (orientation : portrait) { body {
  overflow-y: scroll;
}}

/*----------- ALL checkbox-img buttons -----------*/

input.ckbxbtn {
  display: none; /* hide native checkbox for 'chkbxbtn' */
}

img {
  width:50px;
  height:auto;
  -webkit-filter: drop-shadow(0px 0px 2px rgb(39, 124, 173));
  filter: drop-shadow(0px 2px 2px 2px rgb(39, 124, 173));
}

:not(.disabled) > img.clickable {
  cursor: pointer;
}

:not(.disabled) > img.clickable:hover {
  /*-webkit-filter: drop-shadow(0px 0px 2px yellow);*/
  /*filter: drop-shadow(0px 2px 2px 2px yellow);*/

  -webkit-filter: drop-shadow(0px 0px 20px #59f442);
  filter: drop-shadow(0px 2px 2px 10px #59f442);
}

:not(.disabled) > img.clickable:active {
  position:relative;
  top:1px;
}

/*--------------- HALVES CONTAINERS ---------------*/

.container {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: ltr;
  flex-direction: ltr;

  position: relative;
  z-index: 1;

  width: 100%;
  height: 100%;
}
@media all and (orientation : portrait) { .container {
  -webkit-flex-direction: column;
  flex-direction: column;
}}

#left-half {
  /* as flex item */
  width: 70%;
  justify-content: center;

  /* as flex container */
  display: flex;
  align-items: center; /* or #leaderboard { align-self: center; }

  /* html container */
  text-align: center;

  margin-top: -90px;
}
@media all and (orientation : portrait) { #left-half {
  width: 100%;
  margin-top: 0px;
}}

.flexbox-right-half {
  flex: 1;
  margin-left:2%;
  text-align:left;
}
@media all and (orientation : portrait) { .flexbox-right-half {
  align-self: center;
}}

/*--------------- AUDIO + INSTRUCTIONS CONTAINER ---------------*/

.common-row {
  display: flex;
  max-height: 80px;
  width: 100%;
  align-items: center;
}

.common-row .c2 {
  width: 100%;
}

.common-row .c1,
.common-row .c3 {
  max-height: 100%;
  width: 30px;
  max-width: 30px;
}

.common-row .c1,
.common-row .c2,
.common-row .c3 {
  padding: 1em;
}

/*--------------- AUDIO MUTE ---------------*/


input#un-mute:checked ~ .mute img, .unmute img {
  display: none;
}

input#un-mute:checked ~ .unmute img {
  display: initial;
}

/*--------------- INSTRUCTIONS ---------------*/

#instructions {
  flex: 1;
  line-height: 100%;
}

.select_battlers, .select_winner, .submit_report {
  text-shadow: 4px 4px 8px black;
}

.select_battlers {
  font: 150% "AxionScOsfW01-Italic";/*, Verdana, monospace;*/
  color: yellow;
}
.select_winner {
  font: 200% "AxionScOsfW01-Italic", Verdana, monospace;
  color: orange;
}
.submit_report {
  font: 270% "AxionScOsfW01-Italic", Verdana, monospace;
  color: red;
}
.submit_report.unidentified {
  font-size: 200%;
  color: #5aa8f0;
}

.showchart {
  visibility: hidden;
}

/*--------------- CONNECTION LOGO ---------------*/

input#connected:checked ~ .disconnected img, .connected img {
  display: none;
}

input#connected:checked ~ .connected img {
  display: initial;
}

/* Clicked, the plug reconnects (pahg.js): a moment's glow */
.disconnected img.reconnecting {
  -webkit-filter: drop-shadow(0px 0px 20px #59f442);
  filter: drop-shadow(0px 0px 20px #59f442);
}

/*--------------- PLAYERS TABLE ---------------*/

/*#tableDiv, #chartDiv*/
#commonDiv {
  /*min-height: 50vh;*/
  height: 100%;

  border-style: ridge;
  /*border-width: 2.5rem;*/
  border-width: 40px;
  border-color: rgba(39, 124, 173, 0.50);

  /* space between table and buttons */
  margin-bottom: 60px;
}
@media all and (orientation : portrait) { #commonDiv { /*#tableDiv, #chartDiv {*/
  min-height: auto;
  margin-bottom: auto;
}}

.rankings, #chartAreaWrapper {
}

.players /*, #chart*/ {
  /* wtf? remove gaps between table and ridge */
  margin-top: -20px;
  margin-bottom: -20px;
}
#chartAreaWrapper2 {
}

tr { cursor: default; }
tr:nth-child(odd):not(.battler):not(.winner) { background: rgba(180,200,255,0.11); }
tr:nth-child(even):not(.battler):not(.winner) { background: rgba(180,200,255,0.08); }
.battler { background: rgba(255,255,0,0.50); }
.winner { background: rgb(255, 71, 15);}
.not_battling { display: none; }

th {
  font: bold 0px Digital_tech, "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
  font-size:1.0rem;
  color: black;
  border: 0;
  border-bottom: 1px solid #0bc;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: left;
/*   padding: 0.0vw 0.5rem 0.0vw 0.5rem; */
}
@media all and (orientation : portrait) { th { /*#tableDiv {*/
  padding: 0.0vw 0.0vh 0.0vw 0.0vh;
}}

td {
  color: black;
  border: 0;
  cursor: pointer;
  padding: 0.0vw 1vw 0.0vw 1vw;
/*   padding: 0.0vw 0.5rem 0.0vw 0.5rem; */
}
@media all and (orientation : portrait) { td {/*#tableDiv {*/
  padding: 0.0vw 0.0vh 0.0vw 0.0vh;
}}

td.disabled {
  cursor: default;
}
td.name {
  font: /*bold*/ 0px "AxionScOsfW01-Italic", courier, monospace;
  font-size:1.5rem;
/*   text-shadow: 2px 2px 4px rgba(124, 124, 124, 0.90); */
  min-width: 330px;
  letter-spacing: 1px;
}
td.elo {
  font: 0px "AxionScOsfW01-Italic", courier, monospace;
  font-size:1.8rem;
  min-width: 145px;
  color: rgba(39, 124, 173,0.40);
}
td.econrate {
  font: 0px Nowadays_Regular, 'Share Tech Mono', courier, monospace;
  font-size:2.0rem;
}
td.idx {
  display: none;
}


/*--------------- CHARTS     ---------------*/

#chartDiv {
  position: relative;
}

#chartDiv > canvas {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events:none;
  /*width: 100%; flex-grow: 1; display: flex;*/
}

#chartAreaWrapper {
  /* x-scrollable chart */
  position: relative;
  /*overflow-x: scroll;*/
  /*width: 100%;*/
  /*display: flex; flex-grow: 1;*/
}

#chartAreaWrapper2 {
  position: relative;
  /*height: 300px;*/

/*  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 100%;
  width: 100%;*/

}

#chart {
}

/*--------------- FOOT BUTTONS ---------------*/

#footroom {
  /*min-height: 12vh;*/
  height: 100%;
  max-height: 100px;
  /*margin-bottom: 12vh;*/
  cursor: default;
}
@media all and (orientation : portrait) { #footroom {
  min-height: auto;
}}


.report > img {
  margin-left: 8%; /* space between cancel/ok buttons */
}

.reset:not(.disabled) > img {
  background: rgba(255,255,0,0.4); /*yellow*/
}

.reset:not(.disabled) > img:hover {
  background: rgba(255,255,0,1.0); /*yellow*/
}

.report:not(.disabled) > img {
  background: rgba(89,244,66,0.4); /*green*/
}

.report:not(.disabled) > img:hover {
  background: rgba(89,244,66,1.0); /*green*/
}

/* The reporter (pahg.js). Unknown: the engine's blue, a click identifies, and at a report's last step it calls.
   Known: green, a click logs out. */
#reporter {
  display: none;
}

.identify-reporter > img {
  background: rgba(90,168,240,0.3);
}

.identify-reporter > img:hover {
  background: rgb(90,168,240);
  filter: drop-shadow(0px 0px 20px #5aa8f0);
}

.identify-reporter.calling > img {
  background: rgba(90,168,240,0.55);
  animation: identify-call 2.4s ease-in-out infinite;
}

.identify-reporter.calling > img:hover {
  background: rgb(90,168,240);
  animation: none;
}

.identify-reporter.known > img {
  background: rgba(89,244,66,0.4);
}

.identify-reporter.known > img:hover {
  background: rgb(89,244,66);
  filter: drop-shadow(0px 0px 20px #59f442);
}

/* The known reporter's menu (pahg.js), over the button, as the battle log writes */
#footroom .c1 {
  position: relative;
}

#reporter-menu {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 100%;
  display: flex;
  flex-direction: column;
  border: 6px ridge rgba(39,124,173,0.5);
  background: rgba(5,10,22,0.85);
}

#reporter-menu[hidden] {
  display: none;
}

#reporter-menu button {
  padding: 0.35em 1em;
  border: 0;
  background: none;
  color: #fff;
  font: max(13px, min(1.2vw, 2.13vh)) "AxionScOsfW01-Italic", Verdana, sans-serif;
  letter-spacing: 1px;
  text-align: left;
  white-space: nowrap;
  text-shadow: 2px 2px 4px black;
  cursor: pointer;
}

#reporter-menu button:is(:hover, :focus-visible) {
  background: rgba(255,255,0,0.22);
  outline: none;
}

@keyframes identify-call {
  50% { filter: drop-shadow(0px 0px 14px #5aa8f0); }
}

@media (prefers-reduced-motion: reduce) {
  .identify-reporter.calling > img { animation: none; }
}

/* Who reports, under the buttons, as the battle log writes it */
#footroom .c2 {
  position: relative;
}

#reporter {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  font: min(1.2vw, 2.13vh) "AxionScOsfW01-Italic", Verdana, sans-serif;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px black;
  color: #fff;
}

@media all and (orientation : portrait) { #reporter {
  font-size: 3.2vw;
}}

#reporter b {
  color: yellow;
}

#reporter span.unidentified {
  color: #5aa8f0;
}

/***  table chart toggle **/

/*#leaderboard > .c1 .c3 {
  width: 30px;
  max-width: 30px;
}
*/

input#tablechart:checked ~ .table img, .chart img {
  display: none;
}

input#tablechart:checked ~ .chart img {
  display: initial;
}
.chart > img:hover, .table > img:hover {
  background: #59f442;
}

/*--------------- LOG CONSOLE ---------------*/

#console {
  font-family: "AxionScOsfW01-Italic";
  /* by the width, up to a 16:9 screen's: wider, the lines would outgrow the box */
  font-size: min(1.2vw, 2.13vh);
  color: #afafaf;
  opacity: 0.9;
  width: 750px;
  margin-left:auto;
  margin-right:-30px;
  margin-top:20px;
  max-height: 85%;
  overflow-y: scroll;
}
@media all and (orientation : portrait) { #console {
  font-size:2vw;
  max-height: auto;
  overflow-y: auto;
  margin-left: 20vw;
}}

#d, #t, #r, #w, #l, #s {
  font-family: "AxionRX14W01-Regular";
}
#d, #t {
  color: #fff;
  font-weight:bold;
}
#r {
  font-family: "AxionScOsfW01-Italic";
  color: #afafaf;
  /*text-decoration: underline;*/
  /*-webkit-text-decoration-color: ...*/
  /*text-decoration-color: ...*/
}
#wt {
  color: yellow;
  font-weight:bold;
}
#w {
  /*text-decoration: underline;*/
  /*-webkit-text-decoration-color: ...*/
  /*text-decoration-color: ...*/
}
#lt {
}
#s {
  color: grey;
}

/*--------------- TOKEN PROMPT ---------------*/

.pw_prompt {
  background-color:rgba(200,200,200,0.9);
  position:fixed;
  left: 50%;
  top:50%;
  margin-left:-100px;
  padding:15px;
  border:1px solid black;
}
.pw_prompt label {
  display:block;
  width:300px;
  margin-bottom:5px;
}
.pw_prompt input {
  margin-bottom:10px;
  width:250px;
}

/*--------------- REPORTER IDENTIFICATION ---------------*/

/* The login's pages, framed over the scene's close-up (pahg.js): the page steps back meanwhile. */
#left-half, .flexbox-right-half {
  transition: opacity 0.5s;
}
html.identify #left-half, html.identify .flexbox-right-half {
  opacity: 0;
  pointer-events: none;
}
#identify {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s, visibility 0s 0.6s;
}
#identify.shown {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s;
}
