/* =========================
   Global variables
========================= */
:root {
  --primary: #212631;
  --accent: #2b3646;
  --hover-accent: rgb(100, 129, 166, 0.8);
  --text-main: #e6e6eb;
  --glass-bg: rgba(255, 255, 255, 0.12);
  --text-shadow-outline:
    -1px -1px 0 var(--accent),
     1px -1px 0 var(--accent),
    -1px  1px 0 var(--accent),
     1px  1px 0 var(--accent);
}

/* =========================
   Base
========================= */
body {
  margin: 0;
  padding: 16px;
  color: var(--text-main);
  font-family: "Fredoka One", system-ui, sans-serif;

  background:
    url("/static/res/pet-background.webp") repeat;

  background-color: var(--primary);
  background-blend-mode: overlay;
}

/* =========================
   Headings
========================= */
h1 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 16px;
  color: white;
  letter-spacing: 0.4px;

  text-shadow: var(--text-shadow-outline);
  -webkit-text-stroke: 1px var(--accent);
}

/* =========================
   Feed container
========================= */
#hatch-feed {
  max-width: 720px;
  margin: auto;
}

/* =========================
   Hatch cards
========================= */
.hatch-card {
  position: relative;
  isolation: isolate;
  display: flex;
  gap: 12px;

  padding: 14px;
  margin-bottom: 12px;
  border-radius: 10px;
  overflow: hidden;

  color: white;
  border: 3px solid var(--accent);

  background: var(--glass-bg);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);

  text-shadow: var(--text-shadow-outline);
  -webkit-text-stroke: 1px var(--accent);

  transition: transform 120ms ease, box-shadow 120ms ease;
  will-change: transform;

}

.card-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-text {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}


