.container {
  font-family: Arial, sans-serif;
  color: #f0f0f0;
  text-align: center;
  padding: 20px;
}

h1 {
  color: #00ffcc;
  margin-bottom: 20px;
}

/* Main cube container */
.cube-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 20px;
  max-width: 1200px;   /* keeps it centered and not too wide */
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;     /* small side padding for mobile */
}

.cube-card {
  background: #1e1e1e;
  border: 1px solid #333;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.5);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.cube-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 12px rgba(0,255,204,0.4);
}

.cube-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
}

.cube-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #ffffff;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .cube-container {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    padding: 0 10px;
  }

  .cube-img {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .cube-container {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .cube-img {
    width: 70px;
    height: 70px;
  }

  .cube-name {
    font-size: 1rem;
  }
}
