
body {
  font-family: Arial, sans-serif;
  margin: 0;
  color: #333;
}

header {
  background: #222;
  color: #fff;
  padding: 20px;
  position: relative; /* Needed for absolutely positioning the count */
  text-align: center; /* Centers the main title */
}

header h1 {
  margin: 0;
}

#record-count {
  position: absolute;
  right: 20px;
  bottom: 10px;
  font-size: 14px;
  color: #ddd;
  margin: 0;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  padding: 20px;
}

.record-card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px;
  display: flex;
  flex-direction: column;
  text-align: center;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.record-card:hover {
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

.record-card img {
  width: 100%;
  height: auto;
}

.record-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.record-info h2 {
  font-size: 16px;
  margin: 0 0 5px;
  color: #333;
}

.record-info p {
  margin: 0 0 5px;
  font-size: 14px;
  color: #555;
}

.record-info .details {
  font-size: 12px;
  color: #777;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f5f5f5;
  color: #333;
}

header {
  background: #222;
  color: #fff;
  padding: 20px;
  position: relative; /* Needed for absolutely positioning the count */
  text-align: center; /* Centers the main title */
}

header h1 {
  margin: 0;
}

#record-count {
  position: absolute;
  right: 20px;
  bottom: 10px;
  font-size: 14px;
  color: #ddd;
  margin: 0;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  padding: 20px;
}

.record-card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px;
  display: flex;
  flex-direction: column;
  text-align: center;
  color: inherit;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Ensure links inside the record card have no underline and inherit color */
.record-card a {
  text-decoration: none;
  color: inherit;
}

.record-card a:hover,
.record-card a:visited,
.record-card a:active {
  text-decoration: none;
  color: inherit;
}

.record-card:hover {
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

.record-card img {
  width: 100%;
  height: auto;
}

.record-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.record-info h2 {
  font-size: 16px;
  margin: 0 0 5px;
  color: #333;
}

.record-info p {
  margin: 0 0 5px;
  font-size: 14px;
  color: #555;
}

.record-info .details {
  font-size: 12px;
  color: #777;
}
