@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=VT323&display=swap");
@font-face {
  font-family: "Tiny5";
  src: url("https://raw.githubusercontent.com/Gissio/font_Tiny5/refs/heads/main/fonts/ttf/Tiny5-SolidRegular.ttf") format("truetype");
}
@font-face {
  font-family: "Tiny5 CRT Bold";
  src: url("https://raw.githubusercontent.com/Gissio/font_Tiny5/refs/heads/main/fonts/ttf/Tiny5-CRTBold.ttf") format("truetype");
}
/* # --- */
/* # --- */
/* # --- */
/* # --- */
html {
  min-height: 100%;
}

:root {
  --debug-border-style: dotted;
  --debug-border-width: 2px;
  --debug-border-opacity: 0.0;
  --debug-border-red: var(--debug-border-style) var(--debug-border-width) rgba(255, 000, 000, var(--debug-border-opacity));
  --debug-border-green: var(--debug-border-style) var(--debug-border-width) rgba(000, 255, 000, var(--debug-border-opacity));
  --debug-border-blue: var(--debug-border-style) var(--debug-border-width) rgba(000, 128, 255, var(--debug-border-opacity));
  --debug-border-yellow: var(--debug-border-style) var(--debug-border-width) rgba(255, 255, 000, var(--debug-border-opacity));
  --debug-border-purple: solid var(--debug-border-width) rgba(255, 000, 255, var(--debug-border-opacity));
  --debug-border-white: solid var(--debug-border-width) rgba(255, 255, 255, var(--debug-border-opacity));
  --margin-mult: 1.0;
  --categories-padding: calc(2rem * var(--margin-mult));
  --category-gap: calc(1rem * var(--margin-mult));
  --category-hor-margin: calc(2rem * var(--margin-mult));
  --category-ver-margin: 0px;
  --title-padding-top: calc(1rem * var(--margin-mult));
  --title-padding-bottom: calc(1rem * var(--margin-mult));
  --title-margin-bottom: 0px;
  --seperator-margin-bottom: calc(0.5em * var(--margin-mult));
  --font-normal: 'VT323', 'Tiny5', monospace;
  --font-bold: var(--font-normal);
  --font-size: 3vh;
  --font-height: calc(1em);
  --font-header-normal: 'Tiny5', var(--font-normal);
  --font-header-bold: 'Tiny5 CRT Bold', var(--font-bold);
  --color-bg: #1e1104;
  --color-text: #946501;
  --color-box-header: #623505;
  --color-box-header-text: var(--color-text);
  --color-box-bg: #371d02;
  --color-box-text: var(--color-text);
  --color-box-accent: #5e3407;
  --color-box-border: var(--color-box-header);
  --color-selection: #7A401180;
  --color-selection-text: #b35c16;
  --color-computer-shadow: #27190b;
  --color-preview-bg: var(--color-box-header);
  --color-preview-text: var(--color-box-header-text);
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-normal);
  font-size: var(--font-size);
  text-align: center;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  height: 100vh;
  width: 100%;
}

#background {
  z-index: -10;
}

strong, b, s {
  font-family: var(--font-bold);
}

* {
  box-sizing: border-box;
}

a {
  color: var(--color-text);
  text-decoration: underline;
  cursor: pointer;
}

h1, h2, p, div {
  text-align: center;
}

ul {
  display: inline-block;
  text-align: left;
}

li::marker {
  content: "⊹ ";
}

.columns {
  display: flex;
  flex-direction: row;
  height: 100%;
}

.rows {
  display: flex;
  flex-direction: column;
  width: 100%;
}

::-moz-selection {
  background-color: var(--color-selection);
  color: var(--color-selection-text) !important;
}

::selection, ::-moz-selection {
  background-color: var(--color-selection);
  color: var(--color-selection-text) !important;
}

.emoji {
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  color: transparent !important;
}

.emoji::-moz-selection {
  color: transparent !important;
}

.emoji::selection, .emoji::-moz-selection {
  color: transparent !important;
}

/* # --- */
#loading {
  position: fixed;
  display: flex;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  z-index: 100;
}

#loading.loaded {
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.6, -0.28, 0.74, 0.05);
}

#loading #background {
  z-index: 99;
}

#loading.loaded #background {
  opacity: 0;
  transition: opacity 0.7s ease-out;
}

#loading #centered {
  text-align: left;
  vertical-align: middle;
  font-size: 4em;
  width: 5em;
}

#loading #label {
  text-align: center;
  vertical-align: middle;
  font-size: 1em;
}

#loading #bar {
  background: #1e1104;
  width: 100%;
  height: 0.3em;
  overflow: hidden;
  border-radius: 4px;
  border: solid 2px #623505;
}

#loading #bar #progress {
  background: #623505;
  border: solid 2px #1e1104;
  width: 0%;
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0, 2, 0.5, 1);
}

#loading #label::after {
  content: "loading...";
  white-space-collapse: preserve-spaces;
  animation: loading-cycle 2s linear forwards infinite;
}

@keyframes loading-cycle {
  0% {
    content: "loading   ";
  }
  25% {
    content: "loading.  ";
  }
  50% {
    content: "loading.. ";
  }
  75% {
    content: "loading...";
  }
  100% {
    content: "loading   ";
  }
}
#loading #label::after {
  content: "loading...";
  animation: loading-cycle 2s linear forwards infinite;
}

/* # --- */
#container {
  display: flex;
  flex-direction: column;
  height: -moz-max-content;
  height: max-content;
  align-items: end;
  width: 100%;
  padding: var(--categories-padding);
  z-index: 2;
}

#container > div {
  flex: 1;
  width: 100%;
  justify-content: end;
}

.category {
  min-width: -moz-min-content;
  min-width: min-content;
  max-width: 100%;
  height: -moz-max-content;
  height: max-content;
  overflow: hidden;
  margin: var(--category-ver-margin) 0;
  padding-bottom: 3rem;
  background: var(--color-box-bg);
  border: solid 1px var(--color-box-border);
}

.category > #title {
  padding: var(--title-padding-top) 0 var(--title-padding-bottom) 0;
  margin: 0 0 var(--title-margin-bottom) 0;
  font-size: 2em;
  font-family: var(--font-header-bold);
  height: calc(1em + var(--title-padding-top) + var(--title-padding-bottom));
  background: var(--color-box-header);
  color: var(--color-box-header-text);
}
.category > #title div {
  line-height: 1em;
  vertical-align: text-top;
  transform: translateY(-0.1em);
}

.category > :not(.seperator) {
  padding: 0 var(--category-hor-margin);
}

.seperator {
  letter-spacing: 2px;
  text-overflow: ellipsis;
  text-wrap: nowrap;
  margin-bottom: var(--seperator-margin-bottom);
}

/* # --- */
#links.category {
  --category-hor-margin: calc(20% * var(--margin-mult));
  width: 30%;
  margin-left: 5%;
  margin-right: 5%;
  display: none;
}

#links.category #content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  min-width: -moz-max-content;
  min-width: max-content;
  text-align: center;
  text-wrap: nowrap;
  -moz-column-gap: 1rem;
       column-gap: 1rem;
  row-gap: 1rem;
}

/* # --- */
#computer {
  font-size: var(--font-size);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  aspect-ratio: 16/9;
  padding: 0;
  pointer-events: none;
  z-index: 20;
}
#computer img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
}
#computer #screen {
  position: absolute;
  left: -10%;
  top: -1%;
  width: 86%;
  aspect-ratio: 4/3;
  z-index: 20;
}
#computer #screen #cursor {
  animation: blinking-cursor 1s linear 0s infinite alternate forwards;
}
@keyframes blinking-cursor {
  0%, 40% {
    opacity: 1;
  }
  60%, 100% {
    opacity: 0;
  }
}
#computer #screen > div {
  left: 0%;
  width: 100%;
}
#computer #twitch-video {
  position: absolute;
  pointer-events: initial;
  height: calc(var(--image-height) * 0.32);
  left: 21%;
  margin-top: 15.5%;
  aspect-ratio: 1.77777;
  transform: translate(-50%, -50%) scale(1.02) perspective(100vh) rotateX(5deg);
  overflow: hidden;
  z-index: 21;
}
#computer iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0 !important;
}
#computer #overlay {
  display: block;
  left: 0%;
  width: 100%;
  z-index: 22;
}
#computer #overlay-shadow {
  display: none;
  filter: drop-shadow(0 0 10px var(--color-computer-shadow));
  -webkit-mask: url("/resources/assets/computer_screen.png") no-repeat center;
          mask: url("/resources/assets/computer_screen.png") no-repeat center;
  -webkit-mask-size: contain;
          mask-size: contain;
  z-index: 22;
}

/* # --- */
#info.category {
  --width: 60%;
  --picture-width: 40%;
  width: var(--width);
  min-width: var(--width);
  text-transform: none;
}

#info.category #content {
  flex: calc(100% - var(--picture-width));
}

#info.category #content #about {
  margin: 0 0;
  border: solid 2px var(--color-box-accent);
  border-radius: 2px;
  padding: 0.5em;
}
#info.category #content #about h1, #info.category #content #about h2, #info.category #content #about h3, #info.category #content #about h4 {
  margin: 0 0;
}
#info.category #content #about p {
  margin: 0.5em 0;
}

#info.category #content ul {
  margin: 0;
  line-height: 1.2em;
}

#info.category #content .key {
  font-family: var(--font-bold);
  font-weight: 600;
  border: solid 1px var(--color-box-accent);
  border-radius: 2px;
  padding: 0 6px 0 5px;
}

#info.category #content #catalogue {
  display: block;
  font-family: var(--font-bold);
  font-weight: 600;
  border: solid 1px var(--color-box-accent);
  border-radius: 2px;
  padding: 0.4em;
  line-height: 2em;
  width: 100%;
  margin-top: 0.4em;
  margin-bottom: 0.4em;
}

#info.category #picture {
  flex: var(--picture-width);
  background: url("/resources/assets/moyasi-charm.webp") no-repeat;
  background-size: contain;
  background-position: 50% 0%;
  margin-right: 1%;
}

#info.category #links {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  min-width: -moz-max-content;
  min-width: max-content;
  text-align: center;
  text-wrap: nowrap;
  margin-left: 60%;
}

#info.category #links a {
  padding: 0.2em;
}
#info.category #links a#gap {
  display: none;
}

/* # --- */
#portfolio {
  position: absolute;
  margin-top: 1em;
}

#portfolio #title {
  display: none;
}

#portfolio > .columns {
  margin: 0 5%;
  gap: 1em;
}

#portfolio > .columns > .rows {
  width: 33%;
  gap: 1em;
}

#portfolio .item {
  cursor: pointer;
  opacity: 0;
}

#portfolio .item.loaded {
  animation: fade-in-when-loaded 1.5s cubic-bezier(0.75, 0, 0.75, 1) 1 forwards;
}

@keyframes fade-in-when-loaded {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
#portfolio .item #image {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  pointer-events: none;
  border-radius: 0.15em;
  background-size: contain;
  background-repeat: no-repeat;
  transform: rotate(var(--img-rotation)) scale(1);
  transition: transform 0.1s cubic-bezier(0, 0.75, 0.65, 2);
}

#portfolio .item:hover #image {
  transform: rotate(calc(var(--img-rotation) * -1)) scale(1.02);
}

#portfolio .item:active #image {
  transform: rotate(calc(var(--img-rotation) * 2)) scale(0.9);
}

/* # LABELS */
#portfolio .item #label {
  display: none;
}

/* # --- */
/* # PORTFOLIO: PREVIEW */
#portfolio-preview:not(.visible) {
  transform: scale(0);
  opacity: 0;
}

#portfolio-preview {
  --margins: 5;
  --width-if-wider: calc(100vw - var(--margins) * 2vw);
  --height-if-taller: calc(100vh - var(--margins) * 2vh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1em;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  opacity: 1;
  pointer-events: none;
}
#portfolio-preview.open {
  pointer-events: all;
}
#portfolio-preview #bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(42, 30, 14, 0.6274509804);
  z-index: 101;
  opacity: 0;
  transition: opacity 2s cubic-bezier(0, 1.8, 0.74, 1);
}
#portfolio-preview.open #bg {
  opacity: 1;
}

#portfolio-preview #image-container {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  max-height: 80vh;
  max-width: 90vw;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  z-index: 102;
}
#portfolio-preview #image-container #h-scaler {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-height: 100%;
  max-width: 100%;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
#portfolio-preview #image-container #h-scaler #image {
  --scale: 0.8;
  --rot: calc(var(--img-rotation) * -1);
  flex: 0;
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  transform: rotate(var(--rot)) scale(var(--scale));
  opacity: 0;
  z-index: 102;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: opacity 0.2s cubic-bezier(0, 1.8, 0.74, 1), transform 0.2s cubic-bezier(0, 1.8, 0.74, 1);
}
#portfolio-preview.open #image-container #h-scaler #image {
  --scale: 1.0;
  --rot: calc(var(--img-rotation));
  opacity: 1;
}

#portfolio-preview #label {
  --scale: 0.8;
  --rot: calc(var(--img-rotation) * -1);
  width: -moz-max-content;
  width: max-content;
  padding: 1em;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  border-radius: 3px;
  background: var(--color-preview-bg);
  color: var(--color-preview-text);
  transform: rotate(var(--rot)) scale(var(--scale));
  z-index: 103;
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0, 1.8, 0.74, 1), transform 0.2s cubic-bezier(0, 1.8, 0.74, 1);
}
#portfolio-preview.open #label {
  --scale: 1.0;
  --rot: calc(-1 * var(--img-rotation));
  opacity: 1;
}

#portfolio-preview #close {
  position: fixed;
  font-size: 4em;
  top: 1rem;
  left: 1rem;
  width: 1em;
  height: 1em;
  z-index: 110;
}
#portfolio-preview #close div {
  --rot: calc(calc(var(--img-rotation) * -1));
  --scale: 0.4;
  opacity: 0;
  width: 1em;
  height: 1em;
  background: url("/resources/assets/close_button.png");
  background-color: var(--color-box-header);
  background-position: center;
  background-size: 0.8em;
  /* filter: drop-shadow(#0004 0 0 0.2em); */
  box-shadow: rgba(0, 0, 0, 0.2666666667) 0 0 0.2em;
  border-radius: 0.05em;
  transform: rotate(var(--rot)) scale(var(--scale));
  transition: opacity 0.2s cubic-bezier(0, 1.8, 0.74, 1), transform 0.2s cubic-bezier(0, 1.8, 0.74, 1);
}
#portfolio-preview.open #close div {
  --scale: 1.0;
  --rot: calc(-1 * var(--img-rotation));
  opacity: 1;
}

#portfolio-preview #close:hover div, #portfolio-preview #close:focus div {
  --rot: 5deg;
  --scale: 1.1;
}
#portfolio-preview.open #close div {
  --scale: 1.0;
  --rot: -5deg;
  opacity: 1;
}

body#catalogue {
  padding-bottom: 1em;
}
body#catalogue img {
  width: calc(100% - 1em);
}
body#catalogue #container {
  padding-bottom: 0.5em;
}
body#catalogue #container .category {
  padding-bottom: 0;
}
body#catalogue #back {
  padding-top: 0.5em;
  padding-bottom: 2em;
}
body#catalogue #back a {
  padding: 0.5em;
}

.mobile {
  display: none;
}

@media (max-aspect-ratio: 2), (orientation: portrait) {
  :root {
    --category-ver-margin: 0;
    --title-padding-top: 0;
    --title-padding-bottom: 0;
    --margin-mult: 0.5;
    --category-hor-margin: 1em;
    --font-size: 5vw;
  }
  .pc {
    display: none;
  }
  .mobile {
    display: initial;
  }
  ul {
    padding: 0;
  }
  #computer {
    display: none;
  }
  .category #title {
    font-size: 3em;
    height: calc(1em + var(--title-padding-top) + var(--title-padding-bottom));
  }
  .category > div:not(.seperator) {
    padding: 0 var(--category-hor-margin);
  }
  #portfolio {
    position: relative;
    margin-top: -4em;
  }
  #portfolio > #title {
    position: relative;
    display: block;
    aspect-ratio: 2.153;
    background: url("/resources/assets/portfolio.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-left: calc(-1 * var(--categories-padding));
    width: 100vw;
    z-index: 1;
  }
  #portfolio > .columns {
    margin: 0;
    gap: 1em;
  }
  #portfolio > .columns > .rows {
    width: 50%;
    gap: 1em;
  }
  #info.category {
    --width: 100%;
    --left: 0%;
    --picture-width: 0%;
    width: auto;
    min-width: initial;
    padding-bottom: 4em;
  }
  #info.category #links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 100%;
    margin-left: 0;
  }
  #info.category #links a {
    padding: 0.25em 0.5em;
  }
  #info.category #links a#gap {
    display: block;
    padding: 0;
    width: 100%;
  }
  #info.category #picture {
    flex: 1;
    flex-shrink: 0;
    height: 50vh;
    background-size: contain;
    background-position: center;
  }
  #info.category #content .key {
    margin-top: 1em;
    width: -moz-fit-content;
    width: fit-content;
  }
  #info.category #content .key:last-child {
    margin-top: initial;
  }
  #info.category #content .value {
    text-align: left;
  }
}
@media (max-aspect-ratio: 2) and (orientation: landscape) {
  :root {
    --font-size: 3vh;
  }
  #container {
    align-items: stretch;
  }
}/*# sourceMappingURL=style.css.map */