:root {
  --c1: #e9e7d8;
  --c2: #c9c2b0;
  --c3: #a9a38e;
  --c4: #8c7a5f;
  --c5: #5c523d;
  --shadow-soft: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-hover: 0 10px 22px rgba(0,0,0,0.18);
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: var(--c1);
  color: var(--c5);
  line-height: 1.6;
}

h1, h2 {
  font-weight: 600;
  color: var(--c5);
}

p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Header */
header {
  background-color: var(--c2);
  padding: 2.5rem 1rem;
  text-align: center;
  border-bottom: 4px solid var(--c4);
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--c4);
  background-color: var(--c1);
  padding: 0.5rem;
}

header h1 {
  margin-top: 1rem;
  font-size: 2.8rem;
  letter-spacing: 2px;
}

/* Flashcards / Gallery */
.flashcards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  padding: 3rem;
  justify-items: center;
}

.card {
  background-color: var(--c1);
  border: 3px solid var(--c2);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  text-align: left;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
  max-width: 360px;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card h2 {
  font-size: 1.6rem;
  color: var(--c4);
  margin: 1rem 1rem 0.5rem 1rem;
}

.card p {
  font-size: 1rem;
  color: var(--c5);
  padding: 0 1rem 0.8rem 1rem;
}

/* Cat Photo */
.cat-photo {
  width: 100%;
  height: auto;
  border-bottom: 4px solid var(--c2);
}

/* Back to Homepage Button */
.back-home {
  text-align: center;
  margin: 2rem 0;
}

.back-home-button {
  background-color: var(--c4);
  color: var(--c1);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.back-home-button:hover {
  transform: scale(1.05);
}

/* Footer */
.footer {
  background-color: var(--c5);
  color: var(--c1);
  text-align: center;
  padding: 1.5rem 0;
  font-size: 1.1rem;
}
