/* * {
    box-sizing: border-box;
} */

@import url("https://fonts.googleapis.com/css2?family=VT323&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Anton&display=swap");
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&display=swap");

body,
html {
  background-color: #1d1d1d;
  position: relative;
  margin: 0;
  padding: 0;
  height: 100%;
  /* overflow: hidden; */
  font-family: "IBM Plex Mono", monospace;
}

.grain {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  pointer-events: none;
  z-index: 10;
  transform: translateZ(0);
  background-image: url(./noise.svg);
  opacity: 0.05;

  /* &:before {
      content: "";
      top: -10rem;
      left: -10rem;
      width: calc(100% + 40rem);
      height: calc(100% + 40rem);
      z-index: 10;
      position: fixed;
      background-image: url(./noise.svg);
      opacity: 0.15;
      pointer-events: none;
      -webkit-animation: noise 1s steps(2) infinite;
      animation: noise 1s steps(2) infinite;
    } */

  /* 
    @-webkit-keyframes noise {
      to { transform: translate3d(-7rem,0,0) }
    }

    @keyframes noise {
      0% { transform: translate3d(0,9rem,0) }
      10% { transform: translate3d(-1rem,-4rem,0) }
      20% { transform: translate3d(-8rem,2rem,0) }
      30% { transform: translate3d(9rem,-9rem,0) }
      40% { transform: translate3d(-2rem,7rem,0) }
      50% { transform: translate3d(-9rem,-4rem,0) }
      60% { transform: translate3d(2rem,6rem,0) }
      70% { transform: translate3d(7rem,-8rem,0) }
      80% { transform: translate3d(-9rem,1rem,0) }
      90% { transform: translate3d(6rem,-5rem,0) }
      to { transform: translate3d(-7rem,0,0) }
    } */
}

#grid-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#grid-container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, 64px);
  justify-content: center;
  max-height: 100vh;
  /* overflow-y: auto; */
  padding: 4px;
  z-index: 0;
}

.grid-item {
  width: 64px;
  height: 64px;
  /* position: relative; */
  /* overflow: hidden; */
  /* background: #222; */
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#hover-image {
  opacity: 0.9;
  position: absolute;
  width: 320px;
  height: 320px;
  display: none;
  z-index: 3;
  pointer-events: none;
}

#hover-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.text-box {
  max-width: 540px;
  height: auto;
  background-color: rgb(40, 40, 40, 0.8);
  border: 0px solid #999;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 16px;
  /* overflow-y: auto; */
  z-index: 1;
  display: none;
}

.text-box p {
  margin: 0;
  color: #999;
  font-family: "IBM Plex Mono", monospace;
}

/* .drag-container {
    position: relative;
    overflow: auto;
    z-index: 11;
} */

.ig {
  height: fit-content;
  position: absolute;
  cursor: move;
  z-index: 12;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 20em;
  color: coral;
  text-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
.draggable1 {
  position: absolute;
  width: 80%;
  max-width: 240px;
  /* height: auto; */
  /* top: 0; */
  padding: 20px;
  background-color: #432020;
  cursor: move;
  z-index: 11;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
}

.draggable1 p {
  text-align: justify;
  text-justify: inter-word;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  margin: 0;
  color: #dddddd;
}

.draggable1 a {
  font-size: large;
    font-weight: 100;

  float: right;
  text-decoration: none;
  color: #999;
}

/* Re-enable link clicks except during drag */
.draggable1 a,
.draggable2 a {
  pointer-events: auto; /* Allow pointer events */
}

/* Add JavaScript logic to disable pointer events only during drag */
.draggable2 {
  position: absolute;
  width: auto; /* Change width to fit content */
  max-width: none; /* Remove max-width constraint */
  padding: 0px;
  /* background-color: #432020; */
  cursor: move;
  z-index: 11;
  /* box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6); */
}

.draggable2 p {
  font-size: 120px;
  text-align: justify;
  text-justify: inter-word;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700; /* Set font weight to 700 */
  font-style: normal;
  text-transform: uppercase;
  margin: 0;
  color: #ffea00;
}

.draggable2 a {
  text-transform: uppercase;
  font-size: 120px;
  float: right;
  text-decoration: none;
  color: #ffea00;
  font-weight: 700; /* Set font weight to 700 */
}
