/* =======================
        GLOBAL STYLE
======================= */
body {
  margin: 0;
  font-family: 'Baloo 2', sans-serif;
  background: linear-gradient(to bottom, #f7c6d9, #a7c7e7);
}

/* =======================
          GRID
======================= */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  padding: 30px;
  justify-content: center;
}

/* =======================
          CARD
======================= */
.card {
  aspect-ratio: 4 / 5;
width: 100%;

  border: 3px solid black;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;

  background: linear-gradient(to right, #a7c7e7, #f7c6d9);
  box-shadow: 4px 4px 0 black;

  transition: transform 0.25s ease;
  position: relative;
}

/* Card Image */
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card Name Label */
.card span {
  position: absolute;
  bottom: 8px;
  left: 8px;

  background: white;
  border: 2px solid black;
  border-radius: 10px;
  padding: 4px 8px;
  font-size: 0.85rem;
}

/* Hover Effect */
.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 black;
}

/* =======================
       FOCUS VIEW
======================= */
.focus-container {
  position: fixed;
  inset: 0;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;

  z-index: 20;
}

/* Selected Mascot Card */
.focus-card {
  width: 260px;
  height: 380px;

  border: 3px solid black;
  border-radius: 16px;
  overflow: hidden;

  box-shadow: 6px 6px 0 black;
}

.focus-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info Panel */
.info-panel {
  width: 340px;
  max-height: 380px;
  overflow-y: auto;

  border: 3px solid black;
  border-radius: 16px;

  background: linear-gradient(to bottom, #f7c6d9, #a7c7e7);
  box-shadow: 6px 6px 0 black;

  padding: 18px;
}

/* Close Button */
.info-panel button {
  margin-top: 15px;
  padding: 10px 20px;

  border-radius: 25px;
  border: 2px solid black;

  background: white;
  cursor: pointer;

  transition: 0.25s ease;
}

.info-panel button:hover {
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 black;
}

/* =======================
        OVERLAY
======================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(5px);
}

/* =======================
      DISCLAIMER
======================= */
.disclaimer-main {
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.6;

  padding: 20px;
  margin-top: 30px;

  color: black;
}

/* =======================
        UTILITIES
======================= */
.hidden {
  display: none;
}

@media (max-width: 768px) {

  /* GRID */

  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .card {
    aspect-ratio: 3 / 4;
  }

  .card span {
    font-size: 0.95rem;
    padding: 6px 10px;
  }

  /* POPUP */

  .focus-container {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    padding: 15px;

    overflow-y: auto;
  }

  .focus-card {
    width: 90vw;
    max-width: 320px;

    height: auto;
    aspect-ratio: 4 / 5;
  }

  .focus-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .info-panel {
    width: 90vw;
    max-width: 500px;

    max-height: none;

    font-size: 1rem;
    line-height: 1.6;

    padding: 18px;
  }

  .info-panel h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .info-panel button {
    width: 100%;
    font-size: 1rem;
  }

}