/* =========================
   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: 3.2rem;
  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);

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

.card-content {
    flex-direction: column;
    gap: 12px;
    flex: 1;
    font-size: 1em;
}

.card-content a {
  display: inline;
  color: var(--text-main);
  text-decoration: underline;
  transition: color 0.15s ease;
}

.card-content a:hover {
  color: white;
}

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

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

/* =========================
   Navigation
========================= */
.nav-fixed {
  position: fixed;
  z-index: 1000;
  font-family: "Fredoka One", sans-serif;
  user-select: none;
  text-decoration: none;
}

.nav-left {
  left: 18px;
  font-size: 22px;
  color: white;
  transition: transform 0.15s ease, text-shadow 0.15s ease;
}

.nav-bottom {
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  white-space: nowrap;
}

/* =========================
   Strong
========================= */
strong {
  text-shadow: var(--text-shadow-outline);
  -webkit-text-stroke: 1px var(--accent);
  font-size: 1.4em;
}
