@font-face {
  font-family: PTMono;
  src: url("/assets/fonts/TNR.otf");
  font-display: block;
  transform-origin: left;
  size-adjust: 79%;
}
@font-face {
  font-family: LL;
  src: url("/assets/fonts/LoveLetter.TTF");
  font-display: block;
  transform-origin: left;
  size-adjust: 79%;
}

@font-face {
  font-family: EPMIN;
  src: url("/assets/fonts/epminbld.ttf");
  font-display: block;
  transform-origin: left;
  size-adjust: 79%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: PTMono;
  height: 100%;
  font-size: 1.2rem;
  line-height: 1.5;
  min-width: 330px;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#background {
  background: url("/assets/images/pw-optimized-sm.jpg");
  background-color: black;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: fixed;
  overflow: hidden;
  top: -20px;
  left: -20px;
  width: calc(100vw + 40px);
  height: calc(100lvh + 40px);
  z-index: 0;
  pointer-events: none;
  transition: transform 0.1s ease-out;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

@media (min-width: 769px) {
  #background {
    background-image: url("/assets/images/pw-optimized.jpg");
  }
}

#background-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: none;
}

#content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  height: 100%;
  z-index: 2;
}

.uptime {
  position: fixed;
  z-index: 2;
  bottom: 2rem;
  right: 0;
  font-family: monospace;
  font-size: 0.66rem;
  color: white;
  pointer-events: none;
  opacity: 0.8;
  -webkit-text-stroke: 2px rgb(40, 40, 40);
  paint-order: stroke fill;
}

.col-container {
  display: flex;
  flex-direction: row;
  height: 100%;
  flex-grow: 1;
  padding: 1.4rem;
}

.ncol-1 {
  flex: 80%;
  align-items: end;
  align-content: end;
}

.ncol-2 {
  align-items: start;
  align-content: start;
  justify-content: center;
}

#title {
  position: relative;
  font-size: 5rem;
  margin-top: auto;
  margin-bottom: 2rem;
  z-index: 1;
  line-height: 4.5rem;
  color: white;
  -webkit-text-stroke: 1.8px #707070;
  paint-order: stroke fill;
}

.title-block {
  position: relative;
}

.svg {
  position: absolute;
  left: 0;
  bottom: 0;
  background: url("/assets/images/lain.svg");
  height: 800px;
  width: 800px;
  opacity: 0.6;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left;
  z-index: 1;
  pointer-events: none;
}

.bottom-sub {
  display: flex;
  flex-direction: row;
  z-index: 3;
  position: relative;
}

.bottom-sub {
  perspective: 1000px;
}

.links_window__wrapper {
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
}

.links_window__wrapper,
.status_window__wrapper {
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.block-archive,
.block-gitea {
  position: relative;
  z-index: 3;
  width: fit-content;
  border-radius: 4px;
  width: 140px;
  height: 100px;
}

.archive:hover,
.gitea:hover {
  transform: scale(1.35);
  transition: transform 0.2s ease-in-out;
  cursor: pointer;
}

.archive {
  background: url("/assets/images/sandisk-optimized.webp");
}

.gitea {
  background: url("/assets/images/gitea-optimized.webp");
}

.archive,
.gitea {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-position: center;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
}

/* Window styling */
.status_window {
  position: relative;
  width: fit-content;
  flex-direction: column;
  background-color: #d5d5d5;
  display: flex;
  align-self: flex-end;
  box-shadow:
    #aeaec04d 8px 8px 16px,
    #46465033 -8px -8px 16px,
    #ffffff1a 1px 1px 3px inset,
    #0000000d -1px -1px 3px inset,
    #0003 2px 35px 20px,
    #0000004d 0 6px 6px;
  border-radius: 8px;
  overflow: hidden;
}

.status_window__wrapper {
  justify-items: end;
}

.links_window {
  position: relative;
  width: fit-content;
  flex-direction: column;
  background-color: #666666;
  display: flex;
  align-self: flex-end;
  box-shadow:
    #aeaec04d 8px 8px 16px,
    #46465033 -8px -8px 16px,
    #ffffff1a 1px 1px 3px inset,
    #0000000d -1px -1px 3px inset,
    #0003 2px 35px 20px,
    #0000004d 0 6px 6px;
  border-radius: 8px;
  overflow: hidden;
  z-index: 4;
}

.status_window__bg {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.8;
  z-index: 1;
  pointer-events: none;
  background-image:
    url("/assets/images/win2k-optimized.webp"),
    url("data:image/svg+xml,%3Csvg width='51' height='51' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.7'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(135deg, rgba(249, 249, 249, 0.89), #ffffffda);
  background-position: top;
  background-size: cover;
  background-repeat: no-repeat;
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0) 100%
  );
}

.links_window__bg {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.8;
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(135deg, rgb(0 0 0 / 89%), #000000da);
  background-position: top;
  background-size: cover;
  background-repeat: no-repeat;
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0) 100%
  );
}

.genjo,
.nabi {
  color: rgb(118, 79, 118);
  font-weight: 500;
  font-size: 0.8rem;
  font-family: "TNR";
}

.status_window__header,
.links_window__header {
  display: flex;
  height: 32px;
  align-items: center;
  color: black;
  letter-spacing: 0.1em;
  background: linear-gradient(0deg, #b1afaf, #f0f0f0);
  border-bottom: 2px solid #979797;
  padding: 0 0.5rem;
  justify-content: space-between;
  z-index: 2;
  font-family: "LL", sans-serif;
  -webkit-text-stroke: 0.8px #696969;
  paint-order: stroke fill;
}

.status_window__content {
  position: relative;
  z-index: 10;
  overflow-y: hidden;
  color: black;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  min-height: 120px;
}

.links_window__content {
  overflow: hidden;
  position: relative;
  z-index: 10;
  color: black;
  background-color: transparent;
  justify-content: center;
  display: flex;
  padding: 1rem;
  flex-direction: row;
}

.status_window__footer {
  display: flex;
  height: 18px;
  background: linear-gradient(0deg, #b1afaf, #f0f0f0);
  padding: 0 0.5rem;
  z-index: 2;
  font-size: 0.77rem;
  font-family: "LL", sans-serif;
  -webkit-text-stroke: 0.4px #696969;
  color: black;
}

.player {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.slider_container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem;
}

.track-name,
.track-artist {
  font-size: 0.7rem;
}

button {
  background:
    linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.13)),
    radial-gradient(
      90% 7% at 50% 8%,
      rgba(255, 255, 255, 0.47) 25%,
      rgba(255, 255, 255, 0) 50%
    ),
    #0053d0;
  border: 0;
  border-radius: 0.375em;
  box-shadow:
    0.2em 0.2em 0.5em rgba(0, 0, 0, 0.47),
    0 -0.1em 0 0.1em rgba(0, 0, 0, 0.27),
    0 0.1em 0 0.1em rgba(255, 255, 255, 0.27),
    -0.2em 0 0.2em #003f9d inset,
    0 0.2em 0.2em rgba(255, 255, 255, 0.27) inset,
    0.2em 0 0.2em rgba(255, 255, 255, 0.27) inset,
    0 -0.2em 0.2em #003f9d inset;
  color: #fff;
  cursor: pointer;
  font: 24px/1.5 sans-serif;
  margin: 1.5em auto;
  padding: 0.5em 1em;
  text-shadow: 0 0 0.2em rgba(255, 255, 255, 0.47);
  transition-property: box-shadow;
  -webkit-tap-highlight-color: transparent;
}

button,
button span {
  display: block;
  transition-duration: 0.1s;
  transition-timing-function: linear;
}

button:focus,
button span:focus {
  outline: none;
}

button span {
  transition-property: transform;
  will-change: transform;
}

button:active {
  box-shadow:
    0 0 0 rgba(0, 0, 0, 0.47),
    0 -0.1em 0 0.1em rgba(0, 0, 0, 0.27),
    0 0.1em 0 0.1em rgba(255, 255, 255, 0.27),
    -0.2em 0 0.2em #002a6a inset,
    0 0.2em 0.2em rgba(0, 0, 0, 0.27) inset,
    0.2em 0 0.2em rgba(0, 0, 0, 0.27) inset,
    0 -0.2em 0.2em #002a6a inset;
}

button:hover {
  box-shadow:
    0.2em 0.2em 0.5em rgba(52, 81, 117, 0.47),
    0 -0.1em 0px 0.4em rgba(52, 81, 117, 0.27),
    0 0.1em 0 0.1em rgba(255, 255, 255, 0.27),
    -0.2em 0 0.2em #003f9c inset,
    0 0.4em 0.2em rgb(163 182 203) inset,
    0.2em 0 0.4em rgb(76 99 134 / 33%) inset,
    0 -0.4em 0.4em #003f9d inset;
}

button:active span {
  transform: scale(0.95);
}

button:focus {
  color: #9dc4ff;
  text-shadow: 0 0 0.2em rgba(157, 196, 255, 0.47);
}

.btn-skeu {
  touch-action: manipulation;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  background-color: #000;
  color: #fff;
  font-size: 13px;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 8px;
  height: 44px;
  width: 48px;
  padding: 12px;
  border-radius: 15px 15px 12px 12px;
  cursor: pointer;
  margin: auto;
  position: relative;
  will-change: transform;
  transition: all 0.1s ease-in-out 0s;
  user-select: none;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0)),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  background-position:
    bottom right,
    bottom right;
  background-size:
    100% 100%,
    100% 100%;
  background-repeat: no-repeat;
  box-shadow:
    inset -4px -10px 0px rgba(255, 255, 255, 0.4),
    inset -4px -8px 0px rgba(0, 0, 0, 0.3),
    0px 2px 1px rgba(0, 0, 0, 0.3),
    0px 2px 1px rgba(255, 255, 255, 0.1);
  transform: perspective(70px) rotateX(5deg) rotateY(0deg);
}

.btn-skeu::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-image: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.2),
    rgba(0, 0, 0, 0.5)
  );
  z-index: -1;
  border-radius: 15px;
  box-shadow:
    inset 4px 0px 0px rgba(255, 255, 255, 0.1),
    inset 4px -8px 0px rgba(0, 0, 0, 0.3);
  transition: all 0.1s ease-in-out 0s;
}

.btn-skeu::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0)),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  background-position:
    bottom right,
    bottom right;
  background-size:
    100% 100%,
    100% 100%;
  background-repeat: no-repeat;
  z-index: -1;
  border-radius: 15px;
  transition: all 0.1s ease-in-out 0s;
}

.btn-skeu:active {
  will-change: transform;
  transform: perspective(80px) rotateX(5deg) rotateY(1deg) translateY(3px)
    scale(0.96);
  height: 42px;
  border: 0.25px solid rgba(0, 0, 0, 0.2);
  box-shadow:
    inset -4px -8px 0px rgba(255, 255, 255, 0.2),
    inset -4px -6px 0px rgba(0, 0, 0, 0.8),
    0px 1px 0px rgba(0, 0, 0, 0.9),
    0px 1px 0px rgba(255, 255, 255, 0.2);
  transition: all 0.1s ease-in-out 0s;
}

.btn-skeu::after:active {
  background-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5),
    rgba(255, 255, 255, 0.2)
  );
}

.btn-skeu:active::before {
  content: "";
  display: block;
  position: absolute;
  top: 5%;
  left: 20%;
  width: 50%;
  height: 80%;
  background-color: rgba(255, 255, 255, 0.1);
  animation: overlay-12 0.1s ease-in-out 0s;
  pointer-events: none;
}

.btn-skeu:focus {
  outline: none;
}

@keyframes overlay-12 {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Responsive */
@media only screen and (min-width: 1201px) {
  .status_window,
  .links_window {
    min-width: 420px;
  }
}

@media only screen and (max-width: 1200px) {
  .svg {
    height: 700px;
    width: 700px;
  }
  .ncol-1 {
    order: 1;
  }
  .ncol-2 {
    order: 2;
  }
  .status_window,
  .links_window {
    min-width: 340px;
  }
}

@media only screen and (max-width: 920px) {
  .col-container {
    flex-direction: column;
  }
  .ncol-1 {
    order: 2;
  }
  .ncol-2 {
    order: 1;
  }
  .uptime {
    top: 0;
    left: 0;
    font-size: 0.45rem;
    z-index: 0 !important;
  }
  .status_window,
  .links_window {
    min-width: 300px;
  }
}

@media only screen and (max-width: 900px) {
  .svg {
    height: 600px;
    width: 600px;
  }
}

@media only screen and (max-width: 770px) {
  .svg {
    height: 500px;
    width: 500px;
  }
  .status_window__wrapper,
  .links_window__wrapper {
    align-self: center;
    justify-self: center;
  }
  .status_window,
  .links_window {
    min-width: 300px;
  }
  .bottom-sub {
    justify-content: center;
  }
  .ncol-1 {
    order: 2;
  }
  .ncol-2 {
    order: 1;
  }
  .uptime {
    top: 0;
    left: 0;
    font-size: 0.45rem;
    z-index: 0;
  }
}

@media only screen and (max-width: 600px) {
  #title {
    font-size: 3.5rem;
  }
  .svg {
    height: 400px;
    width: 400px;
  }
  .status_window__wrapper,
  .links_window__wrapper {
    align-self: center;
    justify-self: center;
  }
  .bottom-sub {
    justify-content: center;
  }
  .uptime {
    top: 0;
    left: 0;
    font-size: 0.45rem;
    z-index: 0;
  }
  .status_window,
  .links_window {
    min-width: 300px;
  }
}

@media only screen and (max-width: 500px) {
  .title-block {
    margin-top: 15rem;
  }
  .links_window {
    margin-bottom: 4rem;
  }
}

@media only screen and (max-width: 450px) {
  #title {
    font-size: 2.8rem;
  }
  .svg {
    height: 300px;
    width: 300px;
  }
  .bottom-sub {
    justify-content: center;
  }
  .status_window__wrapper,
  .links_window__wrapper {
    align-self: center;
    justify-self: center;
  }
  .uptime {
    top: 0;
    left: 0;
    font-size: 0.45rem;
    z-index: 0;
  }
  .status_window,
  .links_window {
    min-width: 300px;
  }
  .status_window {
    margin-top: 15rem;
  }
  .slider_container button {
    margin-top: 1rem !important;
  }
}

@media only screen and (max-width: 400px) {
  #title {
    font-size: 3rem;
    line-height: 1.8rem;
  }
  .svg {
    height: 250px;
    width: 250px;
  }
}

@media only screen and (max-width: 380px) {
  .status_window,
  .links_window {
    width: 300px !important;
  }
}
