/* Additions to the old theme (stylesheet.css is kept as is) */

/* Sticky footer: on pages shorter than the window the footer stays at the bottom of it */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > * {
  flex-shrink: 0;
}

/* In a flex column an item with auto side margins (header, Bootstrap's .container) shrinks to its content instead of
   stretching: give it the full width back, max-width and the auto margins still center it as before */
body > header,
body > .container {
  width: 100%;
}

/* margin-top: auto pushes the footer down; the old 40px gap above it becomes a transparent border */
footer {
  margin-top: auto;
  border-top: 40px solid transparent;
  background-clip: padding-box;
}
