:root {
  --cat-rosewater: #f5e0dc;
  --cat-flamingo: #f2cdcd;
  --cat-pink: #f5c2e7;
  --cat-mauve: #cba6f7;
  --cat-red: #f38ba8;
  --cat-maroon: #eba0ac;
  --cat-peach: #fab387;
  --cat-yellow: #f9e2af;
  --cat-green: #a6e3a1;
  --cat-teal: #94e2d5;
  --cat-sky: #89dceb;
  --cat-sapphire: #74c7ec;
  --cat-blue: #89b4fa;
  --cat-lavender: #b4befe;
  --cat-text: #cdd6f4;
  --cat-subtext1: #bac2de;
  --cat-subtext0: #a6adc8;
  --cat-overlay2: #9399b8;
  --cat-overlay1: #7f849c;
  --cat-overlay0: #6c7086;
  --cat-surface2: #585b70;
  --cat-surface1: #45475a;
  --cat-surface0: #313244;
  --cat-base: #1e1e2e;
  --cat-mantle: #181825;
  --cat-crust: #11111b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: var(--cat-base);
  color: var(--cat-text);
  margin: 0;
  padding: 0;
}

body {
  font-family: sans-serif;
  min-width: 100vw;
  max-width: 100vw;
  min-height: 100vh;

  overflow-y: scroll;
  overflow-x: hidden;
}

.timeline {
  position: relative;
  max-width: 100vw;
  margin: 0 auto 40px auto;
  padding: 40px 0;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 100%);
}

/* Central vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--cat-surface0);
  transform: translateX(-50%);
  z-index: 0;
}

.memory {
  position: relative;
  width: 50%;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.memory:nth-child(odd) {
  justify-content: flex-end;
}

.memory:nth-child(even) {
  left: 50%;
  padding-left: 38px;
  justify-content: flex-start;
}

.memory::after {
  content: "";
}

.memory:nth-child(odd)::after {
  left: 100%;
  right: unset;
  width: 38px;
  height: 4px;
  background: var(--cat-surface0);
  top: 50%;
  transform: translateY(-50%);
}

.memory:nth-child(even)::after {
  position: absolute;
  left: 0;
  width: 38px;
  height: 4px;
  background: var(--cat-surface0);
  top: 50%;
  z-index: 2;
}

.person {
  background: var(--cat-mantle);
  min-height: 3rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-align: center;
  font-size: 1rem;
  box-shadow: 0 2px 12px var(--cat-surface0);
}

footer {
  color: var(--color-text);
  font-size: 1rem;
  inset: auto 0px 0px;
  padding: 1rem 1.5rem;
  position: fixed;
  text-align: center;
  width: 100%;
  font-family: sans-serif;
  background-color: var(--color-background);
}

a {
  color: var(--cat-sky);
}

a:hover {
  color: var(--cat-rosewater);
}