/* ———————————————— BASE ———————————————— */

:root {
  font-family: "Martian Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.5rem;
  text-rendering: optimizeLegibility;

  --custom--gray-0: #f0f0f0;
  --custom--gray-1: #d8d8d8;
  --custom--gray-2: #969696;
  --custom--gray-3: #646464;
  --custom--gray-4: #323232;
  --custom--gray-5: #161616;

  --element--radius: 0.5rem;
  --ani-duration: 100ms;
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 1920px;
  margin: 0;
  padding: 0;
  font-size: 1rem;
  font-family: "Martian Mono", monospace;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  overflow: hidden;
  height: 100%;
  margin: 0;
  color: black;
}

*::selection {
  background-color: var(--custom--gray-1);
}

p,
a {
  margin: 0;
  padding: 0;
  color: white;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
}

a::after {
  content: ".";
  display: inline;
  margin: 0;
  padding: 0;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask: url('/assets/icons/icon_arrow-top-right.svg') no-repeat center;
  mask: url('/assets/icons/icon_arrow-top-right.svg') no-repeat center;
}



/* ———————————————— CANVAS ———————————————— */

#canvas--container {
  z-index: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100dvw;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

canvas {
  display: block;
  margin: 0;
  padding: 0;
}



/* ———————————————— NAV ———————————————— */

.nav--container {
  z-index: 1;
  position: fixed;
  top: 0;
  left: 0;
  width: 100dvw;
  height: 100dvh;
  color: white;
  overflow: hidden;
  pointer-events: none;
  display: grid;
  grid-template-columns: var(--nav--size) 1fr var(--nav--size);
  grid-template-rows: var(--nav--size) 1fr var(--nav--size);
  --nav--size: 6rem;
}

.nav--container> :nth-child(1),
.nav--container> :nth-child(3),
.nav--container> :nth-child(7),
.nav--container> :nth-child(9) {
  opacity: 0.25;
  margin: calc((100% - 3px) / 2);
  background-color: white;
}

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

.label--wrapper {
  display: flex;
  flex-direction: row;
  pointer-events: visible;
}

.nav--icon-container {
  gap: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0;
}

.nav--icon {
  all: unset;
  width: 1.75rem;
  height: 1.75rem;
  opacity: 0.25;
  pointer-events: all;
  cursor: pointer;
  transition: opacity var(--ani-duration) ease-out;
  position: relative;
}

.label--wrapper .nav--icon {
  transform: translateY(-0.1rem);
  opacity: 0.05;
  margin: 0 0.5rem;
}

.label--wrapper:hover .nav--icon {
  opacity: 0.25;
}

.nav--icon p {
  position: absolute;
  top: 0.1rem;
  color: white;
  font-size: 1rem;
  pointer-events: none;
  width: max-content;
  opacity: 0;
  transition: opacity var(--ani-duration) ease-in-out;
}

.nav--icon p.left {
  left: 2.5rem;
}

.nav--icon p.right {
  right: 2.5rem;
}

.nav--icon:hover,
.nav--icon:hover p {
  opacity: 1 !important;
}



/* ———————————————— OVERLAY ———————————————— */

.overlay--wrapper {
  z-index: 2;
  position: fixed;
  top: 0;
  left: 0;
  width: 100dvw;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
  display: none;
}

.overlay--wrapper.open {
  display: flex;
}

.overlay {
  width: 30rem;
  height: 36rem;
  max-height: calc(100dvh - 2rem);
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.925);
  border: solid 1px #222222;
  border-radius: var(--element--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  overflow: hidden;
  backdrop-filter: blur(0.25rem);
}

.overlay--header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.overlay--close {
  all: unset;
  width: 1.75rem;
  height: 1.75rem;
  pointer-events: all;
  transform: translateY(-0.125rem);
  pointer-events: all;
  cursor: pointer;
}

.overlay--text {
  font-weight: 200;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.overlay--text a {
  font-weight: 300;
  pointer-events: all;
}



/* ———————————————— MODIFIERS ———————————————— */

.ui-disabled {
  pointer-events: none;
  opacity: 0.25;
}

.ui-inactive {
  opacity: 0.25;
}

.ui-hidden {
  display: none;
}