#safeGrid {
  display: grid;
  gap: 16px;
  justify-content: center;
  margin-top: 20px;
}


.safe-card {
  background-color: #f17171;
  cursor: pointer;
  color: black;
  padding: 6px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  width: 100%;
  max-width: 160px;
  box-sizing: border-box;
}

.safe-card h3 {
  margin: 4px 0 2px 0;
  font-size: 16px;
}

.safe-card img {
  max-width: 80px;
  margin: 4px 0;
}

/* Style for all text inside safe cards */
.safe-card p {
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.4;
}

/* Italic for the description (assumed to be the first paragraph) */
.safe-card p:first-of-type {
  font-style: italic;
  color: #290404;
}

/* Bold for difficulty and cracked status (based on order or custom class if needed) */
.safe-card p:nth-of-type(2),
.safe-card p:last-of-type {
  font-weight: bold;
}

.safe-card button {
  margin-top: 6px;
  padding: 5px 8px;
  border-radius: 6px;
  background-color: #333;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 13px;
}

.safe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  background-color: #1c6fb8;
  color: white;
}

.safe-card.locked {
  opacity: 0.3;
}

.safe-card.locked:hover {
  transform: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  background-color: #f0e5e5;
  color: black;
}

.safe-card.cracked {
  background-color: #144d14 !important;
  border: 2px solid #5fff5f;
  color: #d0ffd0;
  box-shadow: 0 0 12px rgba(50, 255, 100, 0.5);
}


@media (min-width: 1024px) {
  .safe-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .safe-card {
    max-width: 180px;
  }
}


/* Medium screens: 2 safes per row */
@media (min-width: 480px) {
  #safeGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large screens: 3 safes per row */
@media (min-width: 768px) {
  #safeGrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra-large screens: 4 safes per row */
@media (min-width: 1024px) {
  #safeGrid {
    grid-template-columns: repeat(4, 1fr);
  }
}



