/* The web client: one 80x25 screen in the VGA font, as large as the window allows. */

@font-face {
  font-family: "UVGA";
  src: url("UVGA16.woff") format("woff");
}

:root {
  --black: #000000;
  --blue: #0000aa;
  --cyan: #00aaaa;
  --gray: #aaaaaa;
  --dark: #555555;
  --bright-cyan: #55ffff;
  --white: #ffffff;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--black);
  color: var(--gray);
  font-family: "UVGA", "Courier New", monospace;
  font-size: 16px;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
}

#screen { line-height: 0; }

.status {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 2ch;
  color: var(--dark);
}

.status b { color: var(--bright-cyan); font-weight: normal; }

/* The transfer panel: a box in the colours of the BBS over the screen. */
.transfer {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
}

.transfer[hidden] { display: none; }

.transfer .box {
  width: min(52ch, 100% - 32px);
  padding: 1em 2ch;
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--cyan);
  box-shadow: 1ch 1em 0 var(--black);
}

.transfer .title { color: var(--bright-cyan); margin-bottom: 0.75em; }

#transfer-text { white-space: pre-wrap; overflow-wrap: anywhere; }

.meter {
  height: 1em;
  margin-top: 0.75em;
  background: var(--black);
}

.meter span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--bright-cyan);
}

.buttons {
  display: flex;
  gap: 2ch;
  justify-content: flex-end;
  margin-top: 1em;
}

.button {
  font: inherit;
  padding: 0 1ch;
  background: var(--cyan);
  color: var(--black);
  border: 0;
  cursor: pointer;
}

.button:hover, .button:focus-visible { background: var(--bright-cyan); outline: none; }
.button[hidden] { display: none; }
