@font-face {font-family: 'Fira Code';
  src: url('/woff2/FiraCode-Light.woff2') format('woff2'),
    url("/woff/FiraCode-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
}
  
@font-face {
  font-family: 'Fira Code';
  src: url('/woff2/FiraCode-Regular.woff2') format('woff2'),
  url("/woff/FiraCode-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}
  
@font-face {
  font-family: 'Fira Code';
  src: url('/woff2/FiraCode-Medium.woff2') format('woff2'),
    url("/woff/FiraCode-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
}
  
@font-face {
  font-family: 'Fira Code';
  src: url('/woff2/FiraCode-SemiBold.woff2') format('woff2'),
    url("/woff/FiraCode-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
}
  
@font-face {
  font-family: 'Fira Code';
  src: url('/woff2/FiraCode-Bold.woff2') format('woff2'),
    url("/woff/FiraCode-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
}
  
@font-face {
  font-family: 'Fira Code VF';
  src: url('woff2/FiraCode-VF.woff2') format('woff2-variations'),
    url('woff/FiraCode-VF.woff') format('woff-variations');
    /* font-weight requires a range: https://developer.mozilla.org/en-US/docs/WebCSS/CSS_Fonts/Variable_Fonts_Guide#Using_a_variable_font_font-face_changes */
  font-weight: 300 700;
  font-style: normal;
}

body {
  background: black;
  color: white;
  font-family: 'Fira Code';
  font-size: 12px;
}

hr {
  width: 80%;
  border-style: dashed;
}

h2 { text-align: center; }

a:link { color: #ccc; }
a:visited { color: #777; }
a:hover { color: #999; }
h1 { text-align: center; }

iframe { 
  border: 0;
  margin: 8px;
}

.main {
  width: 95%;
  display: grid;
  grid-template-columns: 0.5fr 2.0fr;
  grid-template-rows: 0fr 2.0fr 0fr;
  gap: 4px;
  padding: 4px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.main > div.header {
  grid-column: span 3 / span 3;
  text-align: center;
  color: dimgrey;
  font-size: smaller;
}

.main > div.left-sidebar {
  grid-row-start: 2;
  border-image: url("/media/border.png") 20 33 8 8 fill / 20px 32px 8px 8px;
  image-rendering: pixelated;
  padding: 20px 8px 8px 8px;
}

.main > div.content {
  grid-row-start: 2;
  border-image: url("/media/border.png") 20 33 8 8 fill / 20px 32px 8px 8px;
  image-rendering: pixelated;
  padding: 20px 8px 8px 8px;
}

.main-body { 
  image-rendering: auto; 
  padding: 0px 8px 0px 8px;
}
.main-body img { max-width: 100%; text-align: center;}

.title {
  font-size: 32px;
  text-align: center;
  font-weight: bold;
}

.main > div.footer {
  grid-column: span 2 / span 2;
  background-color: white;
  border-image: url("/media/border.png") 20 33 8 8 fill / 20px 32px 8px 8px;
  image-rendering: pixelated;
  padding: 20px 8px 8px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#random-quote { margin-top: 10px; }

#logo {
  margin-top: 4px;
  width: 292px;
  height:124px;
  image-rendering: pixelated;
  animation-duration: 5s;
  animation-name: logoFloat;
  animation-iteration-count: infinite;
}

.links {
  padding: 16px;
  text-align: center;
}

.blog {
  margin: 0;
  padding: 4px;
  text-align: center;
}

.small-header {
  font-size: 20px;
  font-weight: bold;
}

.blog > ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.links > ul{
  image-rendering: pixelated;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.links > ul > li {
  padding: 0;
  margin: 0;
}

.blog-link { line-height: 1; }

.inline { display: inline; }

.blog-posts > li { padding: 4px; }

.subtitle {
  font-size:18px;
  text-align: center;
}

.date {
  color:dimgray;
  text-align: center;
}

.center {text-align: center;}

.dataquest {
  pointer-events: none;
  position:absolute;
  top:192px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
}

#dq1 { width: 100%; }
#dq2 { 
  image-rendering: pixelated;
}

@keyframes logoFloat {
  from {
    translate: 0 -5px;
    rotate: 0deg;
    animation-timing-function: ease-out;
  }
  25% {
    rotate: 1deg;
    animation-timing-function: linear;
  }
  50% {
    translate: 0 5px;
    rotate: 0deg;
    animation-timing-function: ease-in-out;
  }
  75% {
    animation-timing-function: linear;
    rotate: -1deg;
  }
  to {
    translate: 0 -5px;
    rotate: 0deg;
    animation-timing-function: ease-in;
  }
}