/* Universal css settings */
body {
  background: #e9e9e9;
  font-family: sans-serif;
  font-size: 15pt;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 1.5em;
}

a {
  color: #009955;
  text-decoration: none;
}

/* Fix for text in syntax highlighting blocks sometimes spilling out of bounds */
.codehilite code {
  display: block;
  overflow-x: auto;
}

/* Navbar */
.navbar {
  list-style-type: none;
  background: linear-gradient(180deg, rgba(0, 170, 119, 1) 0%, rgba(0, 204, 153, 1) 100%);
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  li {
    float: left;
    a {
      display: block;
      color: black;
      text-align: center;
      font-size: 24px;
      padding: 14px 16px;
      text-decoration: none;
      transition: all 0.2s ease-in-out;
      &:hover:not(.active) {
        background-color: #009955;
      }
      &.active {
        background-color: #008855;
        color: white;
      }
    }
  }
}

/* Posts index */
.posts {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-left: 15%;
  padding-right: 15%;
}
.post-entry {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding-left: 0.5em;
  padding-right: 0.5em;
  padding-top: 0.10em;
  padding-bottom: 0.10em;
  background-color: white;
  color: #5f5f5f;
  margin: 10px;
  border-style: solid;
  border-color: white;
  border-radius: 10px;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  * {
    margin-block-start: 0.15em;
    margin-block-end: 0.15em;
  }
  &:visited {
    color: #5f5f5f;
  }
  &:hover {
    background-color: #c9c9c9;
    border-color: #c9c9c9;
  }
  .post-date {
    font-style: italic;
    font-size: 0.75em;
  }
  &:active {
    background-color: #a9a9a9;
  }
}

/* Posts */
.post-contents {
  margin-left: 15%;
  margin-right: 15%;
  margin-top: 1em;
  img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    object-fit: cover;
  }
}
