body {
  display: grid;

  background-color: #282a33;

  color: #ffffff;
  font-family: ui-sans-serif,
               system-ui,
               sans-serif,
               apple color emoji,
               segoe ui emoji,
               segoe ui symbol,
               noto color emoji;
  letter-spacing: 0.3pt;
  line-height: 1.8;
}

.content {
  max-width: 150ch;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  box-sizing: border-box;
}

@media (min-width: 60ch) {
  .content { padding: 5rem 5rem; }
}

h1, h2 {
  font-weight: 800;
}

.cat_name {
  position: absolute;
  bottom: -28px;
  transform: translateY(-2.5rem);
  z-index: 1;
  color: #fff;
  padding: 6px 10px;
  font-weight: 800;
  font-size: 2rem;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s;
  pointer-events: none;
}

.role {
  position: absolute;
  bottom: -28px;
  transform: translateY(-2.5rem);
  z-index: 1;
  color: #fff;
  padding: 6px 10px;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s;
  pointer-events: none;
}

.cat_grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 4rem;
}

.cat_grid2 {
  display: grid;
  width: 80%;
  grid-template-columns: repeat(4, 1fr);
  grid-column-gap: 30px;
  grid-row-gap: 10rem;
  margin-bottom: 6rem;
}

.cat_grid a, .cat_grid2 a {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  will-change: transform;
  overflow: visible;
}

.cat_grid a img, .cat_grid2 a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 100%;
  z-index: 2;
}

.cat_grid a:hover .cat_name, .cat_grid2 a:hover .cat_name {
  transform: translateY(1rem);
  opacity: 1;
}

.cat_grid a:hover .role, .cat_grid2 a:hover .role {
  transform: translateY(2rem);
  opacity: 1;
}

.cat_grid a:hover img, .cat_grid2 a:hover img {
  background-color: #00000000;
  animation: jump 0.6s ease;
}

@keyframes jump {
  0%   { transform: translateY(0); }
  15%  { transform: translateY(-25px) translateX(-3px) rotate(-2deg); }
  30%  { transform: translateY(0); }
  45%  { transform: translateY(0); }
  60%  { transform: translateY(-28px) translateX(3px) rotate(2deg); }
  75%  { transform: translateY(0); }
  100%  { transform: translateY(0); }
}

@media (max-width: 900px) {
  .cat_grid, .cat_grid2 {
    grid-template-columns: 1fr;
    margin-left: 0;
    margin-right: 0;
    grid-gap: 6rem;
  }
}

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


#glitch-blocks-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: -10;
  pointer-events: none;
}

#cat_snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cat {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform, opacity;
  user-select: none;
  pointer-events: none;
  transform-origin: center;
}
