@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

/* Palette */
body {
  --c-nero: #1a1a1a;
  --c-bianco: #e1e1e1;
  --c-grigio: #898989;
  --c-viola: #b462ff;
  --c-fucsia: #fd3db5;
  --c-blu: #18b6ff;
  --c-verde: #1beb9e;
  --c-arancione: #ff9528;
  --c-giallo: #ffde21;
  --line: 2.5ch;
  --font: 'IBM', monospace;
}

body.invert {
  --c-nero: #d5d5d5;
  --c-bianco: #2a2830;
  --c-grigio: #7e7e7e;
  --c-viola: #6b1fa3;
  --c-fucsia: #f50777;
  --c-blu: #0b8cff;
  --c-verde: #00a76c;
  --c-arancione: #dd7200;
  --c-giallo: #949700;
}

.nero {
  color: var(--c-nero);
  --c-current: var(--c-nero);
}

.bianco {
  color: var(--c-bianco);
  --c-current: var(--c-bianco);
}

.grigio {
  color: var(--c-grigio);
  --c-current: var(--c-grigio);
}

.viola {
  color: var(--c-viola);
  --c-current: var(--c-viola);
}

.fucsia {
  color: var(--c-fucsia);
  --c-current: var(--c-fucsia);
}

.blu {
  color: var(--c-blu);
  --c-current: var(--c-blu);
}

.verde {
  color: var(--c-verde);
  --c-current: var(--c-verde);
}

.arancione {
  color: var(--c-arancione);
  --c-current: var(--c-arancione);
}

.giallo {
  color: var(--c-giallo);
  --c-current: var(--c-giallo);
}

/* Type */
a {
  color: var(--c-current);
  text-shadow: 0px 0px 11px var(--c-current);
  text-decoration: none;
}

a:hover, .selected, .hover:hover {
  color: var(--c-nero);
  background: var(--c-current);
  text-shadow: 0px 0px 11px var(--c-current);
  box-shadow: 0 0 21px 0 var(--c-current);
  opacity: 0.8;
}

@media (min-width: 1024px) {
  .large {
    font-size: 2em;
    line-height: 1.11111111em;
    font-weight: 200;
  }
}

.italic {
  font-style: italic;
}

.columns {
  width: 100%;
  column-count: 2;
  column-gap: 1ch;
}

.noselect {
  user-select: none;
}

.break-anywhere {
  line-break: anywhere;
}

/* Reset */
html, body {
  margin: 0;
  background: var(--c-nero);
  color: var(--c-bianco);
  min-height: 100vh;
  font-family: var(--font);
  font-weight: 400;
  line-height: var(--line);
  letter-spacing: 0.01em;
}

body {
  font-size: 1em;
}

@media (min-width: 768px) {
  body {
    font-size: 2em;
  }
}

@media (min-width: 1024px) {
  body {
    font-size: 1em;
    overflow: hidden;
  }
}

::selection {
  color: #000000;
  background: var(--c-grigio);
}

button {
  display: inline;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  outline: none;
}

/* Layout */
.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.indent {
  margin-left: 2ch;
}

.pad {
  padding: var(--line);
}

.px {
  padding-left: var(--line);
  padding-right: var(--line);
}

.py {
  padding-top: var(--line);
  padding-bottom: var(--line);
}

.pt {
  padding-top: var(--line);
}

.pr {
  padding-right: var(--line);
}

.pb {
  padding-bottom: var(--line);
}

.pl {
  padding-left: var(--line);
}

.pt-0 {
  padding-top: 0;
}

.pr-0 {
  padding-right: 0;
}

.pb-0 {
  padding-bottom: 0;
}

.pl-0 {
  padding-left: 0;
}

.flex {
  display: flex;
  align-items: start;
  justify-content: start;
  align-content: flex-start;
}

.wrap {
  flex-wrap: wrap;
}

.row {
  flex-direction: row;
}

.col {
  flex-direction: column;
}

.h-min-screen {
  min-height: 100vh;
}

.hidden {
  display: none;
}

.full {
  width: 100%;
}

.half {
  width: 50%;
}

.third {
  width: 33.33%;
}

.left-third {
  left: 33.33%;
}

.two-thirds {
  width: 66.66%;
}

.quarter {
  width: 25%;
}

.three-quarters {
  width: 75%;
}

.order-1 {
  order: 1;
}

@media (min-width: 768px) {
  .md\:full {
    width: 100%;
  }

  .md\:half {
    width: 50%;
  }

  .md\:third {
    width: 33.33%;
  }

  .md\:left-third {
    left: 33.33%;
  }

  .md\:two-thirds {
    width: 66.66%;
  }

  .md\:quarter {
    width: 25%;
  }

  .md\:three-quarters {
    width: 75%;
  }

  .md\:order-1 {
    order: 1;
  }

  .md\:hidden {
    display: none;
  }

  .md\:inline {
    display: inline;
  }

  .md\:block {
    display: block;
  }

  .md\:flex {
    display: flex;
  }

  .md\:py {
    padding-top: var(--line);
    padding-bottom: var(--line);
  }
}

@media (min-width: 1024px) {
  .lg\:full {
    width: 100%;
  }

  .lg\:half {
    width: 50%;
  }

  .lg\:third {
    width: 33.33%;
  }

  .lg\:left-third {
    left: 33.33%;
  }

  .lg\:two-thirds {
    width: 66.66%;
  }

  .lg\:quarter {
    width: 25%;
  }

  .lg\:three-quarters {
    width: 75%;
  }

  .lg\:order-1 {
    order: 1;
  }

  .lg\:screen-v-scroll {
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .lg\:screen-v-scroll::-webkit-scrollbar {
    display: none;
  }

  .lg\:inline {
    display: inline;
  }

  .lg\:hidden {
    display: none;
  }

  .lg\:flex {
    display: flex;
  }
}

.mb {
  margin-bottom: var(--line);
}

.y-space {
  width: 100%;
  height: 5ch;
}

/* Stuff */
.fx {
  text-shadow: 0 0 1ch currentColor;
  filter: saturate(0.9) brightness(1) contrast(1.1);
  background: var(--c-nero);
}

.border-right {
  border-right: 0.2ch dashed var(--c-grigio);
}

.border-top {
  border-top: 0.2ch dashed var(--c-grigio);
}

.bloom {
  filter: blur(0.03vw) saturate(0.8) brightness(1.1) contrast(1.4);
  background: var(--c-nero);
  text-shadow: 0 0 2ch currentColor;
}

.hover:hover {
  cursor: pointer;
}

.pointer-events-none {
  pointer-events: none;
}

body.invert canvas {
  opacity: 0.05;
  filter: none;
  mix-blend-mode: normal;
}
.dino{
  white-space: pre;
}
.cursor {
  display: inline-block;
  width: 10px;
  height: 20px;
  background-color: var(--c-bianco);
  animation: blink 1s infinite;
}
@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}
.grid {
    margin: 20px auto;
    width: 100%;
    max-width: 1200px;
}

.grid-item {
    width: 30%;
    margin: 5px;
    transition: all 0.3s ease;
}
.grid-item.is-expanded {
  width: 60%;
  z-index: 10;
}

.grid-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    filter: grayscale(100%) sepia(0.5) hue-rotate(100deg) brightness(0.5);
    transition: filter 0.5s ease;
}
.grid-item img:hover {
  filter: none;}

  .grid-item-content {
  width: 100%;
  height: 100%;
  background-color: var(--c-nero);
  transition: all 0.3s ease;
  border: 2px solid hsla(0, 0%, 0%, 0.5);
  -webkit-transition: width 0.4s, height 0.4s;
          transition: width 0.4s, height 0.4s;
}

.grid-item:hover .grid-item-content {
  cursor: pointer;
}
 #lightbox {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.9);
      display: none; /* Nascosto di default */
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }

    #lightbox img {
      max-width: 90%;
      max-height: 90%;
      animation: fadeIn 0.3s ease-in-out;
    }
