* {
  color: #333;
  font-family: Arial, Helvetica, sans-serif;
}

/* I can't take credit entirely for the CSS below, my friend chatGPT helped me so that my page could look a little pretty */

/* Container for all episode cards */
.cardContainer {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Individual episode card */
.episode-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.episode-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Title */
.episode-title {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  margin: 15px;
  color: #222;
  line-height: 1.4;
}

/* Image */
.episode-img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid #eee;
  object-fit: cover;
}

/* Summary text */
.episode-summary {
  padding: 0 15px 20px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
  flex-grow: 1; /* makes all cards the same height if possible */
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  background: #fafafa;
  color: #666;
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
  margin-top: 40px;
}
