:root {
  --bg-color: #020f0f;
  --accent-bg-color: #021e19;
  --accent-color: #2aaa93;
  --accent-color-b: #c9e836;
  --color: #9ddfab;
}

html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--color);
  font-family: monospace;
  font-size: 1.6em;
}

main {
  display: grid;
  grid-gap: 1em;
  max-width: 100vw;
}

button {
  background-color: var(--accent-bg-color);
  color: var(--color);
  min-height: 3em;
  border: 2px solid var(--accent-color);
  box-shadow: 3px 3px 5px black;
  border-radius: 0.25em;
  padding: 0 0.75em;
  cursor: pointer;
  font-family: monospace;
  font-size: 1rem;
  /* max-width: 10em; */
  /* text-shadow: 1px 1px black; */
  transition: all ease-in-out 96ms;
}

button:hover,
button:focus {
  outline: 6px solid #bf0;
  color: white;
  font-weight: bold;
  /* text-shadow: 1px 1px 5px white; */
}

button:active {
  transform: translate3d(1px, 1px, 0);
}

h1 {
  text-shadow: 2px 2px black;
  animation: fade-in 1s ease-in-out;
}

.note {
  font-size: 0.8em;
}

.box {
  display: grid;
  justify-items: center;
  align-items: center;
  background-image: url("/logo6.png");
  background-repeat: no-repeat;
  background-blend-mode: soft-light;
  background-position: center;
	/* background-size: 90vh 90vw; */
  background-size: 100vw;
  transition: outline 240ms ease-in;
}

.box__open {
  width: 95vw;
  height: 95vh;
}
.box__closed {
  width: 95vw;
  height: 5vh;
  min-height: 3em;
}
.box__intro {
  margin-bottom: 1em;
}

@media (min-height: 480px) {
  .box__intro {
    margin-bottom: 25vh;
  }
}

.box__closed .box__intro {
  display: none;
}

#jumbo {
  display: grid;
  align-items: center;
  justify-items: center;
  width: 100%;
  min-height: 5em;
}

.jumbo__intro {
  height: 100%;
}

.hidden {
  display: none;
}

.box__dragndrop,
.box__uploading,
.box__success,
.box__error {
  display: none;
}

.box.has-advanced-upload {
  background-color: var(--accent-bg-color);
  outline: 2px dashed var(--accent-color);
  outline-offset: -10px;
}

.box.has-advanced-upload:hover,
.box.has-advanced-upload:focus {
  /* outline-width: 4px; */
  outline-color: var(--fg-color);
  /* outline-offset: -5px; */
}
.box.has-advanced-upload .box__dragndrop {
  display: inline;
}
.box.has-advanced-upload .box__file {
  display: none;
}
.box.is-dragover {
  background-color: #3f6648;
}

.box__input label {
  cursor: pointer;
  padding: 5em;
  user-select: none;
}
.box__input label strong {
  text-decoration: underline;
}

.box .disabled {
  opacity: 0.5;
}

.hidden {
  display: none;
}

.visible {
  animation: fade-in 1s ease-in-out;
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 1em;
}

/* @media (min-width: 10em) { */
/*   .row { */
/* 		grid-template-columns: intial; */
/*   } */
/* } */

#results {
  margin: 1em;
}

.row div {
  overflow-wrap: anywhere;
}

.space-apart {
  justify-content: space-between;
}

.span-3 {
  grid-column: 3/1;
}

.rank,
.alpha {
  font-size: 2em;
  font-weight: bold;
  text-shadow: 2px 2px black;
  animation:
    0.5s ease-in-out slide-in,
    1s ease-in-out fade-in;
}

.hash {
  max-width: 10em;
  overflow: hidden;
}

.lr {
  font-size: 1.5em;
  font-weight: bold;
  text-shadow: 2px 2px black;
}

.number {
  font-size: 1.5em;
  text-shadow: 2px 2px black;
  animation:
    0.5s ease-in-out slide-in,
    1s ease-in-out fade-in;
}

.boolean {
  font-size: 1.5em;
  text-shadow: 2px 2px black;
  animation:
    0.5s ease-in-out slide-in,
    1s ease-in-out fade-in;
}

.attribute {
  font-size: 1.5em;
  text-shadow: 2px 2px black;
  animation:
    0.5s ease-in-out slide-in,
    1s ease-in-out fade-in;
}

.args {
  overflow: auto;
  max-height: 10em;
  word-break: break-all;
  max-width: 100%;
  /* max-width: 50vw; */
}

.part3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.caption {
  font-style: italic;
  opacity: 0.8;
  font-size: 0.8em;
}

.subsets {
  display: grid;
  grid-gap: 1em;

  grid-template-columns: repeat(auto-fit, minmax(15em, 1fr));
}

.subset {
  background-color: var(--accent-bg-color);
  padding: 1em;
}

.subset > div {
  min-height: 3em;
}

.option {
  font-size: 1.25em;
}

/* .option.true { */
/* } */

.option.changed {
  font-weight: bold;
  color: var(--accent-color);
}

.model-spec {
  margin-bottom: 1em;
}

.tag-frequencies {
  grid-auto-flow: initial;
  grid-gap: 1em;
  grid-template-columns: repeat(auto-fit, minmax(25em, 1fr));
}

.tag-frequency {
  display: grid;
  grid-template-columns: 2em 12fr;
  padding: 0.3em;
}

.work-break-all {
  word-break: break-word;
}

.alt-row {
  background-color: var(--accent-bg-color);
}

.headline {
  display: grid;
  grid-template-columns: 8fr auto;
}

/** 
* BLOCK WEIGHTS
**/

.block-weights-container {
  min-height: 5em;
}

.block-weights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8em, 1fr));
  grid-gap: 1em;
}

.block-weights > div {
  max-width: 100%;
  text-overflow: ellipsis;
  overflow: clip;
}
.block-weights .number {
  font-size: 1.25em;
}

.block-weights.text-encoder {
  grid-template-columns: repeat(auto-fit, minmax(6em, 1fr));
}

/** 
* BUTTONS
**/
button.primary {
  background-color: var(--accent-bg-color);
  color: var(--color);
  min-height: 3em;
  border: 3px solid var(--accent-color);
  box-shadow: 3px 3px 5px black;
  border-radius: 0.5em;
  font-size: 1rem;
  padding: 0 1em;
  min-width: 12em;
  cursor: pointer;
  font-family: monospace;
}

button.primary:hover,
button.primary:focus {
  background-color: var(--accent-color);
  color: var(--bg-color);
  border: 3px solid var(--accent-bg-color);
}
button.primary:active {
  background-color: var(--accent-bg-color);
  border: 3px solid var(--accent-color);
  color: var(--color);
}

/** 
* CHARTS 
**/
.ct-series-a .ct-line,
.ct-series-a .ct-point {
  stroke: var(--accent-color);
}

.ct-series-b .ct-line,
.ct-series-b .ct-point {
  stroke: var(--accent-color-b);
}

.ct-label {
  color: var(--color);
  font-size: 0.8em;
  text-shadow: 1px 1px black;
}

text.ct-label {
  z-index: 2;
  position: relative;
  fill: var(--color);
}

.ct-grid {
  stroke: rgba(64, 155, 170, 0.2);
}

.ct-label.ct-vertical.ct-start {
  text-align: center;
  justify-content: center;
}

.loading-overlay {
  display: grid;
  place-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: hsla(170, 80%, 0%, 0.8);
}

.loading-file {
  animation:
    fade-in 1s ease-in,
    rotate 1s infinite ease-in-out;
  user-select: none;
}

.error-overlay {
  display: grid;
  place-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: hsla(170, 80%, 0%, 0.9);
  animation: 240ms fade-in ease-in-out;
}

.error-block {
  display: grid;
  grid-gap: 1em;
  grid-template-areas: "error", "close";
  grid-auto-flow: column;
  align-items: center;
  background-color: hsla(170, 80%, 0%, 0.9);
  padding: 1em;
  border-radius: 0.5em;
}

.error-block button {
  grid-area: "close";
}

.error {
  color: red;
  grid-area: "error";
}

.marquee {
  width: 100%;
  margin: 0 auto;
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
}

.marquee span {
  display: inline-block;
  padding-left: 100%;
  will-change: transform;
  animation:
    marquee 10s linear infinite,
    fade-in-out 10s ease-in-out infinite;
}

.full-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  z-index: 2;
  display: grid;
  place-items: center;
  max-width: 100vw;
  max-height: 100vh;
  overflow: scroll;
  scroll-padding-bottom: 1em;
}

.full-overlay pre {
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 1em;
}

.action-overlay {
  position: fixed;
  top: 0;
  right: 0;
  padding: 1em;
  display: grid;
  grid-gap: 1em;
  grid-auto-flow: column;
}

.bucket-infos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15em, 1fr));
}

#te-architecture {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17.5em, 1fr));
  grid-gap: 0.5em;
}

#unet-architecture {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17.5em, 1fr));
  grid-gap: 0.5em;
}

.attention-layer {
}

text {
  white-space: pre;
  direction: ltr;
  fill: var(--color);
  font-size: 1em;
}

.attention-block,
.resnet-block,
.sampler-block,
.text-encoder-layer-block {
  background-color: var(--accent-bg-color);
  /* border: 1px solid var(--accent-color); */
  padding: 1em;
  box-shadow: 0.1em 0.1em 0.1em black;
}

.attention-block,
.resnet-block,
.text-encoder-layer-block,
.sampler-block {
  display: grid;
  justify-items: center;
}

.attention-block h3,
.resnet-block h3,
.sampler-block h3,
.text-encoder-layer-block h3 {
  margin: 0;
  margin-bottom: 0.5em;
  text-align: center;
}

.meta-attribute-value {
  display: flex;
  gap: 1em;
  align-items: center;
}

.secondary {
  display: flex;
  gap: 0.5em;
  align-items: center;
}

.secondary-name {
  opacity: 0.6;
}

.embedding {
  width: 90%;
  border: 1em solid var(--bg-color);
  outline: 3px solid var(--accent-bg-color);
  font-size: 1em;
  background-color: var(--bg-color);
  color: var(--color);
}

.embedding-image {
  max-height: 75vh;
  max-width: 50vw;
}

.embedding-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
	justify-items: center;
}

@keyframes fade-in {
  from {
    opacity: 0;
    filter: blur(24px) saturate(0%);
  }

  50% {
    filter: blur(1px) saturate(100%);
  }

  100% {
    opacity: 1;
    filter: blur(0px) saturate(100%);
  }
}

@keyframes scale-in {
  from {
    transform: scale(0.8);
  }

  25% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes slide-in {
  from {
    transform: translate3d(-2em, 0, 0);
  }

  25% {
    transform: translate3d(-0.4em, 0, 0);
  }

  100% {
    transform: translate3d(0em, 0, 0);
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0);
  }

  25% {
    transform: rotate(0);
  }

  75% {
    transform: rotate(360deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

@keyframes fade-in-out {
  from {
    opacity: 0;
    filter: blur(24px) saturate(0%);
  }

  10% {
    filter: blur(1px) saturate(100%);
  }

  50% {
    opacity: 1;
    filter: blur(0px) saturate(100%);
  }
  10% {
    filter: blur(1px) saturate(100%);
  }

  to {
    opacity: 0;
    filter: blur(24px) saturate(0%);
  }
}

@keyframes glitch {
  30% {
    transform: translate3d(0, 0, 0), rotate3d(0);
  }
  35% {
    transform: translate3d(0, 5px, 0), rotate3d(2deg);
  }
  50% {
    transform: translate3d(0, -5px, 0), rotate3d(-2deg);
  }
  55% {
    transform: translate3d(0, 0, 0), rotate3d(0);
  }
}
