@font-face {
  font-family: 'Diogenes';
  src: url('files/fonts/Diogenes.ttf') format('ttf');
  src: url('files/fonts/Diogenes.woff2') format('woff2');
}

:root { /* https://fileto.neocities.org/root/about */
  --bg-main: #050508;
  --text-main: #F9FAFB;
  --accent: #6aafff;
  --space-md: .9375rem;
  --space-lg: 1.5625rem;
  --container-w: min(95%, 1200px);
  --glow: rgba(255, 255, 255, 0.8);
  --smol-button-size: 10vw;
  --big-button-width: 21vw;
  --button-gap: 1vw;
}

* {
  image-rendering: smooth;
  font-family: monospace;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-align: justify;
  cursor: url('../../img/icons/cursor.png') 8 8, auto;
}

a {
  color: var(--accent);
  text-decoration: underline dashed 1px;
  text-underline-offset: 2px;
  cursor: pointer !important;
}

html {
  font-size: clamp(13px, 2.5vw, 16px);
  background: black;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  background: var(--bg-main);
  position: relative;
  background: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1.4;
  padding: var(--space-md);
  box-shadow: inset 0 0 15px 15px var(--bg-main);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(144, 100, 255, 0.5));
  background-size: 100% 0.5vh;
  mix-blend-mode: overlay;
  animation: scanline 60s linear infinite;
  pointer-events: none;
  z-index: 10000;
  overflow: hidden;
}

.main-container {
  width: var(--container-w);
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.text-container {
  width: 100%;
  max-width: 100vh;
  padding-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  text-align: justify;
}

.func-button {
  text-decoration: none;
  position: fixed;
  top: 10px;
  left: 10px;
  background-color: var(--bg-main);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 5px 10px;
  font-family: inherit;
  font-size: 0.8em;
  cursor: pointer;
  z-index: 9999;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.2s ease, filter 0.4s ease;
  cursor: pointer;
  text-decoration: none;
  object-fit: fill;
}

.button:hover {
  transform: scale(1.03);
  filter: brightness(120%) grayscale(1);
  animation: flicker 1s infinite ease-in-out;
}

.button--big {
  width: var(--big-button-width);
  height: var(--smol-button-size);
  border: 1px dashed var(--accent);
}

.button--smol {
  width: var(--smol-button-size);
  height: var(--smol-button-size);
}

.button--smol img,
.button--big img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  font-weight: bold;
  transition: transform 3s ease-in-out;
}


.button--smol:hover {
  transform:  rotate(-1deg);
}

.nav-label {
  color: var(--accent);
  font-family: inherit;
  letter-spacing: .2rem;
  font-size: clamp(4px, 1.5vw, 14px);
  margin: 0;
  transition: color 0.3s ease;
  text-align: center;
}

.button:hover ~ .nav-label {
  color: var(--text-main);
}

h3 {
  color: var(--accent);
  transform: translateX(-1vw);
  animation: flicker 3s infinite linear;
}

h3:before {
  content: "⌜";
}

h3:after {
  content: "⌟";
}

.lightbox img,
.gallery-item,
.gallery-item * {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
}


.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  height: 90%;
}

#lightboxImage {
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--accent);
  font-size: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
}

.lightbox-counter {
  position: absolute;
  bottom: 5px;
  text-align: center;
  color: var(--accent);
  padding: 0.5vh;
  font-size: 0.9em;
}

.lightbox-active .main-container {
  pointer-events: none;
  filter: blur(1px);
  opacity: 0.3;
}

.lightbox,
.lightbox * {
  pointer-events: auto !important;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes sigilFloat {
  0%, 100% { transform: rotate(var(--rotation)) translateY(0); }
  50% { transform: rotate(var(--rotation)) translateY(-5px); }
}

@keyframes reveal {
  to { opacity: 1; }
}

@keyframes goodbye {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: .75; }
}

@keyframes scanline {
  from { background-position: 0 0; }
  to { background-position: 0 100vh; }
}

@keyframes sheldon {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.1); }
}

@keyframes weird {
  50% { filter: blur(6px) hue-rotate(45deg); }
  0%, 100% { filter: blur(0px) hue-rotate(-15deg); }
}

.top-banner {
  position: absolute;
  top: 3vh;
  text-decoration: none;
  background-image: url('../../img/backgrounds/texture.png');
  background-size: 100% 200%;
  background-clip: text;
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: rgba(255, 255, 255, 0.2);
  font-family: 'Diogenes';
  letter-spacing: 5px;
  text-shadow: 0px 0px 10px var(--accent);
  animation: scrollBackground 10s linear infinite;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.top-banner:hover {
  transform: scale(1.03);
  filter: brightness(125%) grayscale(1);
  animation: flicker 1s infinite ease-in-out;
}

@keyframes scrollBackground {
  to { background-position-y: -100%; }
}

.side-banner {
  position: fixed;
  top: 10px;
  right: 10px;
  background-color: var(--bg-main);
  border: 1px solid var(--accent);
  padding: 5px 10px;
  font-family: inherit;
  font-size: 0.8em;
  z-index: 10000;
}

.side-banner h3 {
  color: var(--accent);
}

.side-banner p {
  color: var(--text-main);
}

@media (max-width: 768px) {

  .lightbox-close {
    top: 10px;
    right: 15px;
    font-size: 30px;
  }

  .nav-label {
      font-size: clamp(12px, 1.5vw, 14px);
  }

}

@media (max-width: 480px) {
  .info-panel p {
    margin: 0 10px;
    font-size: 12px;
  }
}