@font-face {
    font-family: "Blur Light";
    src: url("../fonts/BlurLight.otf") format("opentype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "VT220";
    src: url("../fonts/Glass_TTY_VT220.ttf") format("truetype");
    font-style: normal;
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: "IBM3161";
    src: url("../fonts/IBM3161.ttf") format("truetype");
    font-style: normal;
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: "mnicmp";
    src: url("../fonts/mnicmp.otf") format("opentype");
    font-style: normal;
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: "NimbusMono-Regular";
    src: url("../fonts/NimbusMono-Regular.otf") format("opentype");
    font-style: normal;
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: "Terminus500";
    src: url("../fonts/Terminus500.ttf") format("opentype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

/* vars */

/*
terminal color-scheme:
- black
- red
- green
- yellow
- blue
- magenta
- cyan
- white

- regular and bright versions

total of 16 colors (originally)
*/

/* <https://en.wikipedia.org/wiki/Web_colors#Safest_web_colors> */
:root {
    --c-black: #3e3d3d;
    --c-red: #f03;
    --c-green: #0f6;
    --c-yellow: #ff3;
    --c-blue: #00f;
    --c-magenta: #f0f;
    --c-cyan: #6ff;
    --c-white: #fff;
}


/* basic reset */

html {
    box-sizing: border-box;
    height: 100%;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

html,
body,
h1, h2, h3, h4, h5, h6,
p,
ol, ul, li,
dl, dt, dd,
blockquote,
figure  {
    margin: 0;
    padding: 0;
}

/* */

html {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-size: 20px;
    /* line-height: 1.25; */
    /* font-family: var(--f-sans-r); */
    /* font-family: "Blur Light"; */
    /* font-family: "VT220"; */
    /* font-family: "IBM3161"; */
    /* font-family: "mnicmp"; */
    /* font-family: "NimbusMono-Regular"; */
    font-family: "Terminus500";
    color: var(--c-white);
 }

body {
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100%;
}

/* html { */
/*     background: /\* 1 *\/ */
/* 	var(--pattern,  */
/* 	    radial-gradient(closest-side, #777, #fff)  */
/* 			   0/ 0.3rem 0.3rem space),  */
/* 	var(--map,  */
/* 	    linear-gradient(90deg, #888, #fff)); */
/*     background-blend-mode: multiply /\* 2 *\/; */
/*     filter: contrast(21) /\* 3 *\/ */
/* } */

.halftone {
    --dotSize: 0.1rem;
    --bgSize: 0.45rem;
    --bgPosition: calc(var(--bgSize) / 2);

    background-image: radial-gradient(
	circle at center,
	black var(--dotSize),
	transparent 0
    ), radial-gradient(circle at center, black var(--dotSize), transparent 0);
    background-size: var(--bgSize) var(--bgSize);
    background-position: 0 0, var(--bgPosition) var(--bgPosition);
}

.checkerboard {
  background:
    linear-gradient(45deg, gray 25%, transparent 25%),
    linear-gradient(-45deg, gray 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, gray 75%),
    linear-gradient(-45deg, transparent 75%, gray 75%);
    background-size: 10px 10px;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
    background-color: green;
}

img {
    max-width: 100%;
    heigth: auto;
}

main {
    background: darkgray;
    padding: 0.5rem;
}

.fgc-green {
    color: var(--c-green);
}

.file-preview {
    display: flex;
    flex-direction: column;
}

.file-preview--container {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    overflow-x: auto;
}

.file-preview--item {
    width: 23%;
    height: auto;
    border: 3px inset rgba(185, 246, 249, 0.5);
    background: gray;
    padding: 0.25rem;
    box-shadow: 0px 4px 3px gray;
    display: flex;
    flex-direction: column;
    gap: 0.5rem
}

.file-preview--item button {
    background: red;
    color: white;
    font-size: 1rem;
    border: none;
    padding: 0.25rem 0.75rem;
    margin: 0;
    font-family: "Terminus500";
    border: 3px inset rgba(255,255,255,0.5);
    box-shadow: 0px 4px 3px #535353;
    transition: background .2s ease-in-out;
    cursor: pointer;
}

.file-preview--item button:hover {
    background: #c82525;
}

.file-preview--metadata {
    display: flex;
    flex-direction: column;
    border: 1px solid #737373;
    background: darkgray;
}

.file-preview--metadata div {
    color: var(--c-black);
    font-size: 0.75rem;
    padding: 0.15rem 0.25rem;    
    border-bottom: 1px solid #737373;
    display: inline-flex;
    gap: 0.25rem;
}

.intro {
    padding: 0.5rem;
    background: var(--c-black);
    height: 100vh;
    display: flex;
    flex-direction: column;
    transition: 250ms opacity;
}

.intro--answer {
    margin-top: auto;
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    justify-content: space-between;
    justify-content: center;
}

.intro--answer-field {
    width: 35%;
    padding: 0.25rem;
    background: transparent;
    color: white;
    border: 3px inset rgba(0,255,0,0.5);
}

.intro--answer-send {
    background: blue;
    color: white;
    font-size: 1rem;
    border: none;
    padding: 0.25rem 0.75rem;
    margin: 0;
    font-family: "Terminus500";
    border: 3px inset rgba(255,255,255,0.5);
    box-shadow: 0px 4px 3px #535353;
    cursor: pointer;
    transition: background .2s ease-in-out;
}

.intro--answer-send:active,
.intro--answer-send:hover {
  background: #0d45a5;
}

.intro--error {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: red;
    padding: 1.5rem 3rem;
    border: 3px inset rgba(255,255,255,0.5);
    box-shadow: 0px 4px 3px #535353;
}

.dn {
    display: none;
}

.visually-hidden {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: 0;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.terminal-screen-transition {
    opacity: 0;
}

.upload.dn {
    display: none;
}
.upload {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: gray;
    border: 1px solid #6d6a6a;    
}

.upload--message-box {
    position: fixed;
    top: 50%;
    left: 35%;
    transform: translate(-50%, -50%);
    background: blue;
    padding: 3rem 3rem 1.5rem 3rem;
    border: 3px inset rgba(255,255,255,0.5);
    box-shadow: 0px 4px 3px #535353;
}

.upload--message-box button {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: darkgray;
    color: white;
    font-size: 0.75rem;
    border: none;
    padding: 0.15rem 0.5rem;
    margin: 0;
    font-family: "Terminus500";
    border: 3px inset rgba(255,255,255,0.5);
    box-shadow: 0px 4px 3px #535353;
    cursor: pointer;
}

.upload--message-box button :hover {
  background: #535353;
}

.upload--navbar {
    padding: 1.25rem;
    position: fixed;
    bottom: 0.25rem;
    right: 0.25rem;
    left: 0.25rem;
    background: green;
    display: flex;
    flex-flow: row;
    gap: 1.5rem;
    justify-content: space-between;
    align-items: center;
    border: 3px inset rgba(255,255,255,0.5);
}

.upload--area {
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 0px 0px 2px #aaa8a8;
    height: fit-content;
}

.upload--area__upload-button--submit {
    background: red;
    color: white;
    font-size: 1rem;
    border: none;
    padding: 0.25rem 0.75rem;
    margin: 0;
    font-family: "Terminus500";
    border: 3px inset rgba(255,255,255,0.5);
    box-shadow: 0px 4px 3px #535353;
}

.upload--area__title {
    font-size: 1.5rem;
    width: 33%;
    text-align: center;
}

.upload--controls {
    width: 100%;
    height: 100%;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-preview {
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: darkgray;
    border: 3px inset red;
    box-shadow: 0px 0px 0px 2px #bd1919;
}

.file-preview__header {
    padding: 0.5rem;
    border-bottom: 3px inset rgba(255,255,255,0.5);
    box-shadow: 0px 1px 3px gray;
    background: red;
}

.file-preview--container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.5rem;
}

@media screen and (min-width: 600px) {
    .upload--controls {
	flex-direction: row;
	justify-content: space-between;
    }

    .upload--area {
	width: 35%;
    }

    .file-preview {
	width: 65%;
    }
}

input[type=file] {
  max-width: 100%;
  color: transparent;
  padding: 0.5rem 0 0.5rem 1rem;
  margin: 0;
  margin-left: auto;
  margin-right: auto;
  font-family: "Terminus500";
  font-size: 0;
}

input[type=file]::file-selector-button {
  cursor: pointer;
  margin-right: 1rem;
  background: blue;
  color: white;
  font-size: 1rem;
  border: none;
  padding: 0.25rem 0.75rem;
  font-family: "Terminus500";
  border: 3px inset rgba(255,255,255,0.5);
  box-shadow: 0px 4px 3px #535353;
  transition: background .2s ease-in-out;
}

input[type=file]::file-selector-button:hover {
  background: #0d45a5;
}

.drop-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  border: 3px inset rgba(255,255,255,0.5);
  padding: 0.25rem 0.75rem;
  color: var(--c-black);
  cursor: pointer;
  background: #dbdbdb;
}

.drop-title {
  color: var(--c-black);    
  font-size: 1rem;
}

.upload--button__wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  border: 3px inset rgba(255,255,255,0.5);
  padding: 3rem 0.75rem;
  color: var(--c-black);    
  background: #a6a3a3;
}

.upload--button {
  cursor: pointer;
  margin-right: 1rem;
  background: green;
  color: white;
  font-size: 1rem;
  border: none;
  padding: 0.25rem 0.75rem;
  font-family: "Terminus500";
  border: 3px inset rgba(255,255,255,0.5);
  box-shadow: 0px 4px 3px #535353;
  transition: background .2s ease-in-out;
  inset: 3px 3px 3px 3px;
}

.upload--button:hover {
  background: #166416;
}

.h100 {
    height: 100%;
}

.column--vertical-border {
    height: 100%;
    width: 0.5rem;
    border: 3px inset rgba(255,255,255,0.5);
    box-shadow: 0px 0px 0px 2px #aaa8a8;
}
