*,
*::after,
*::before {
  box-sizing: border-box;
}

html {
  cursor: none;
}

body {
  margin: 0;
  color: white;
  background-color: black;
  font-family: "azo-sans-web", sans-serif;
  font-size: 15px;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

#canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  filter: blur(1px);
}

.frame {
  z-index: 100;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "title links sponsor" "credits credits credits";
  grid-column-gap: 3vw;
  grid-row-gap: 1rem;
  justify-content: space-between;
  align-content: space-between;
  text-align: left;
}

.frame a {
  text-decoration: none;
}

.frame__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  grid-area: title;

  color: white;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5vh;
}

.grid__item {
  height: 47.5vh;
  background-size: cover;
  background-position: 50% 40%;
}

.grid__item:nth-child(3n-2) {
  border-radius: 0 2rem 2rem 0;
}

.grid__item:nth-child(3n) {
  border-radius: 2rem 0 0 2rem;
}

.grid__item:nth-child(3n-1) {
  border-radius: 2rem;
}

.full-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.8);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.firefly-cursor {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: white;
  opacity: 80%;
  border-radius: 50%;
  pointer-events: none;
  animation: flicker 2s infinite alternate;
  z-index: 9999;
}

@keyframes flicker {
  0% {
    box-shadow: 0 0 8px 3px #fddba3;
  }
  100% {
    box-shadow: 0 0 12px 7px #fddba3;
  }
}

@media screen and (max-width: 550px) {
  .grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .grid__item:nth-child(3n-2),
  .grid__item:nth-child(3n),
  .grid__item:nth-child(3n-1) {
    border-radius: 0;
  }
}

@media screen and (max-width: 850px) and (min-width: 550px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid__item:nth-child(even) {
    border-radius: 2rem 0 0 2rem; /* Left item */
  }

  .grid__item:nth-child(odd) {
    border-radius: 0 2rem 2rem 0; /* Right item */
  }
}
