body {
  background-color: rgb(141, 2, 2);
  margin: 0;
  padding: 0;
}

#cards {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

#menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.menuButtons {
  margin: 1vh;
  width: 20vw;
  height: 10vh;
  border-radius: 150px;
  background-color: greenyellow;
  cursor: pointer;
}

.placeHolder {
  display: none;
}

h1 {
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  text-align: center;
  transform-origin: center;
  transform: translateY(-50px);
  font-size: 50px;
  color: yellow;
}

.screen {
  display: none;
}

#collectionGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  padding: 20px;
}

#collectionGrid img {
  width: 100%;
  height: auto;
  opacity: 0.5;
}

#returnToMenuFromCollection {
  width: 250px;
  height: 60px;
  margin-top: 20px;
  flex-shrink: 0;
  cursor: pointer;
}

#collection {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  overflow-y: auto;
}

#shop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}

#shop button {
  margin: 10px 0;
  width: 200px;
  height: 50px;
  border-radius: 25px;
  background-color: greenyellow;
  cursor: pointer;
}

/* ================= CARD & LAYOUT FIXES ================= */
#cardContainer {
  position: relative;
  width: 300px;
  height: 475px;
  border: 15px solid rgb(141, 2, 2);
  border-radius: 25px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  background-color: #2a2a2a; /* Fixed invalid empty value */
}
#cardContainer.wildCard {
  border-left-color: Red;
  border-top-color: Yellow;
  border-right-color: green;
  border-bottom-color: blue;
}
.object-window {
  width: 100%;
  aspect-ratio: 1 / 1; /* 🔑 FORCES PERFECT SQUARE TO MATCH YOUR 1200x1200 IMAGES */
  position: relative;
  margin-top: 10px;
  line-height: 0;
}
#cardContainer.cardBlueRed {
  background: linear-gradient(to right, blue 50%, red 50%);
}
#cardContainer.cardGreenYellow {
  background: linear-gradient(to right, Green 50%, Yellow 50%);
}

.image-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

/* BOTH LAYERS NOW SHARE IDENTICAL SIZING & POSITIONING */
#Foil,
#objectLayer {
  position: absolute;
  top: 15px;
  left: 15px;
  width: calc(100% - 30px);
  height: calc(100% - 30px);
  object-fit: fill; /* Stretches both identically now that container is square */
  display: block; /* Removes browser whitespace/invisible pixel gaps */
}

#Foil {
  z-index: 10;
  pointer-events: none;
  mix-blend-mode: color-dodge;
  opacity: 0.8;
  border-radius: 20px; /* Keeps foil corners parallel to the gap */
}

#objectLayer {
  z-index: 5;
}

#iconLayer {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  z-index: 20;
  pointer-events: none;
}

#iconLayer .card-icon {
  height: 80px !important;
  width: auto !important;
  object-fit: contain;
}

#iconLayer .plus-icon {
  height: 35px !important;
  width: auto !important;
  object-fit: contain;
}
#HypnoticFoil {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 475px;
  object-fit: fill;
  border-radius: 20px; /* Snaps the foil curve inside the card borders */
  z-index: 10; /* Sandwiches it ABOVE the vortex but BELOW the white box */
  mix-blend-mode: color-dodge;
  opacity: 0.8;
  display: block !important;
}
