* {
  font-family: serif;
}

:root {
  --white: white;
  --wheat:#F3E5CE;
  --ernie-black: #1D201F;
  --steel-teel: #719898;
  --deep-sparkle: #4D6A6A;
  --light-gray: #bdbdbd;
}

body, html {
  margin: 0px;
  padding: 0px;
  width: 100vw;
  /* height: 100%; */
  background: var(--wheat);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: -2;
}

.tab-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.tab {
  margin: 1rem;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--ernie-black);
}

.tab.active {
  border-bottom: 2px solid var(--ernie-black);
}

.grid-container {
  width: 100%;
  /* height: 100%; */
  display: grid;
  justify-content: center;
  margin-top: 3rem;
  grid-template-columns: 30% auto 30%;
  /* grid-template-rows: auto 200px; */
  /* border: 1px solid black; */
}

.article-list {
  width: 100%;
  grid-column: 2 / 3;
  /* border: 1px solid black; */
}

.article-item {
  display: flex;
  align-items: center;
}

.date {
  text-align: right;
  width: 30%;
  margin: 0px 0.5rem;
}

.article-link {
  width: 70%;
  font-size: 1.2rem;
  margin: 0px 0.5rem;
  color: var(--deep-sparkle);
  text-decoration: none;
}

.home-link {
  grid-column: 2 / 3;
  text-decoration: none;
  color: var(--deep-sparkle);
  font-size: 1.5rem;
}

.title {
  grid-column: 2 / 3;
}

.paragraph {
  grid-column: 2 / 3;
  font-size: 1.2rem;
}

.code-block {
  grid-column: 2 / 3;
  background: var(--white);
  padding: 0.5rem 1rem;
  box-shadow: 4px 4px var(--light-gray);
  overflow-x: scroll;
}

.code-inline {
  background: var(--light-gray);
  display: inline;
}

.snippet {
  grid-column: 2 / 3;
  font-size: 1rem;
  font-family: serif;
}

.image {
  grid-column: 2 / 3;
  width: 100%;
  height: 350px;
  object-fit: cover;
  box-shadow: 5px 6px 27px 0px rgba(151,149,149,0.47);
  -webkit-box-shadow: 5px 6px 27px 0px rgba(151,149,149,0.47);
  -moz-box-shadow: 5px 6px 27px 0px rgba(151,149,149,0.47);
}

.image-lg {
  grid-column: 1 / 4;
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.footer {
  grid-row: 2 / 3;
  grid-column: 1 / 2;
  z-index: 3;
  /* border: 1px solid black; */
}

.icon-link, .icon-link:visited {
  color: var(--steel-teel)
}

.image-fixed {
  position: fixed;
  z-index: -1;
  -webkit-user-drag: none;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.weird-cat-1 {
  left: -70px;
  top: 100px;
  width: 600px;
  height: 600px;
}

.weird-cat-2 {
  bottom: 0px;
  right: 30px;
  width: 600px;
  height: 600px;
}

.bottom-space {
  margin-top: 400px;
}

.gist {
  grid-column: 2 / 3;
  max-width: 600px;
}

/* @media screen and (max-width: 900px) {
  .footer {
    grid-column: 2 / 3;
    height: 280px;
  }
} */

@media screen and (max-width: 900px) {
  .grid-container {
    grid-template-columns: 75%;
  }
  .footer {
    grid-column: 1 / 2;
  }
  .article-list {
    grid-column: 1 / 2;
  }
  .home-link {
    grid-column: 1 / 2;
  }
  .title {
    grid-column: 1 / 2;
  }
  .paragraph {
    grid-column: 1 / 2;
  }
  .code-block {
    grid-column: 1 / 2;
  }
  .image {
    grid-column: 1 / 2;
    height: 220px;
  }
  .image-lg {
    grid-column: 1 / 2;
  }
  .gist {
    grid-column: 1 / 2;
  }
  .weird-cat-1 {
    left: -30px;
    top: 100px;
    width: 300px;
    height: 300px;
  }
  .weird-cat-2 {
    bottom: 0px;
    right: 30px;
    width: 300px;
    height: 300px;
  }
  .bottom-space {
    margin-top: 200px;
  }
}