/* Shared styles for the on-page content / FAQ blocks added below each game. */

.seo-content {
  max-width: 640px;
  margin: 0 auto 60px;
  padding: 0 20px;
  color: #776e65;
  font-size: 16px;
  line-height: 1.6;
}

.seo-content h2 {
  color: #776e65;
  font-size: 26px;
  margin: 32px 0 12px;
}

.seo-content h3 {
  color: #776e65;
  font-size: 19px;
  margin: 24px 0 8px;
}

.seo-content p,
.seo-content li {
  margin: 0 0 12px;
}

.seo-content ul,
.seo-content ol {
  padding-left: 22px;
}

.seo-content a {
  color: #8f7a66;
  font-weight: bold;
}

.seo-faq details {
  background: #eee4da;
  border-radius: 6px;
  margin-bottom: 10px;
  padding: 12px 16px;
}

.seo-faq summary {
  cursor: pointer;
  font-weight: bold;
  color: #776e65;
}

.seo-faq details p {
  margin: 10px 0 0;
}

@media screen and (max-width: 520px) {
  .seo-content {
    font-size: 15px;
    padding: 0 16px;
  }

  .seo-content h2 {
    font-size: 22px;
  }
}

/* Static index of every meme, rendered by meme-index-generator.js. */

.meme-index {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
  color: #4b4b4b;
}

.meme-index h2 {
  font-size: 28px;
  margin-bottom: 8px;
  color: #b45309;
}

.meme-index > p {
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.6;
}

.meme-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.meme-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.meme-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.meme-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #fde68a;
}

.meme-card-title {
  display: block;
  padding: 12px 14px 0;
  font-weight: bold;
  font-size: 16px;
  line-height: 1.35;
  color: #b45309;
}

.meme-card-desc {
  padding: 6px 14px 14px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #6b6b6b;
}
