/* page-specific.css – only the styles unique to this page */

/* Page title */
h1 {
  text-align: center;
  margin-top: 20px;
  font-size: 2rem;
}

/* Body layout overrides */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Responsive grid for this page */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  max-width: 90%;
  margin: 20px 0;
  padding: 10px;
  justify-items: center;
  grid-auto-rows: auto;
  grid-auto-flow: row;
}

/* Individual grid items */
.grid-item {
  border-radius: 8px;
  padding: 50px 10px 10px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: background-color 0.3s ease, transform 0.3s ease, filter 0.3s ease;
  height: 140px;
  width: 180px;
  overflow: hidden;
  background-color: rgba(148, 148, 148, 0.19);
  box-shadow: 2px 2px 8px rgba(255, 255, 255, 0.10);
}
.grid-item span {
  position: absolute;
  top: 10px;
  left: 10px;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
}

/* Disabled state */
.gray-out {
  filter: grayscale(100%);
  cursor: not-allowed;
}

/* Capture pod overlay */
.capture-pod-image {
  position: absolute;
  top: 10;
  left: 10;
  right: 10;
  bottom: 10;
  z-index: 10;
}

/* Click-glow effect */
.grid-item.clicked img {
  animation: glow 1s forwards;
  filter: brightness(0.5)
          hue-rotate(180deg)
          drop-shadow(0 0 10px red)
          drop-shadow(0 0 20px red);
}

/* Alternative #grid layout */
#grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Miscellaneous containers */
.images-container {
  position: relative;
  width: 100%;
  height: 100%;
}
.container {
  position: absolute;
  background-color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
}
.container:hover {
  outline-offset: -3px;
}
.container img {
  cursor: pointer;
}

/* Specific sub-layouts */
.container-1 {
  display: flex;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: 55%;
  image-rendering: auto;
}
.container-1 img {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: clip-path 0.3s ease;
}
.container-1 img:hover {
  cursor: default;
}

/* Image opacity + filter toggles */
.set-image {
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.set-image.grayscale {
  filter: grayscale(100%);
}

/* Nested “bowl” pieces */
.sub-container-1,
.sub-container-2,
.sub-container-3,
.sub-container-4 {
  position: absolute;
  background-color: black;
}
.sub-container-1 { height: 45px; width: 90px; bottom: 0; }
.sub-container-2 { height: 45px; width: 90px; bottom: 45px; }
.sub-container-3 { height: 45px; width: 90px; top: 0; }
.sub-container-4 { height: 45px; width: 50px; left: 0; bottom: 45px; }

/* Corner containers */
.container-2,
.container-3,
.container-4,
.container-5 {
  position: absolute;
  width: 21%;
  height: 27%;
}
.container-2 { bottom: 5px; right: -5px; }
.container-3 { right: -5px; top: 50%; transform: translateY(-50%); }
.container-4 { top: 5px; right: -5px; }
.container-5 { top: 50%; left: -5px; transform: translateY(-50%); }

/* Pixel-art hover effect */
.container-2 img:hover,
.container-3 img:hover,
.container-4 img:hover,
.container-5 img:hover {
  cursor: pointer;
  image-rendering: pixelated;
  transform: scale(1.07);
}

/* Set name overlay */
.set-name {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  color: #5d5d5d90;
  font-size: 1.3rem;
  font-weight: bold;
  z-index: 1;
  text-align: center;
  width: 100%;
}

/* Floating overlays */
.transparent-image {
  position: absolute;
  z-index: 2;
  animation: 0.35s ease-in-out;
}
.mannequin {
  position: absolute;
  z-index: -1;
}

/* Shake animations */
@keyframes shake {
  0%   { transform: rotate(0deg);   }
  25%  { transform: rotate(-3deg);  }
  50%  { transform: rotate(3deg);   }
  75%  { transform: rotate(-3deg);  }
  100% { transform: rotate(0deg);   }
}
@keyframes bowlshake {
  0%   { transform: translateY(-15%) scale(0.7) rotate(0deg); }
  25%  { transform: translateY(-15%) scale(0.7) rotate(-3deg); }
  50%  { transform: translateY(-15%) scale(0.7) rotate(3deg);  }
  75%  { transform: translateY(-15%) scale(0.7) rotate(-3deg); }
  100% { transform: translateY(-15%) scale(0.7) rotate(0deg);  }
}
.shake {
  animation: shake 0.4s ease-in-out;
  transform-origin: bottom;
}
.bowlshake {
  animation: bowlshake 0.4s ease-in-out;
  transform-origin: bottom;
}

/* Section containers & subtitles */
.grid-container {
  width: 90%;
  max-width: 90%;
  margin-bottom: 7.5px;
}
.subTitle {
  text-align: left;
  font-size: 1.5rem;
  margin-left: 10px;
  margin-bottom: -10px;
  color: #5d5d5d90;
  font-weight: bold;
}
