/* Defaults */
:root {
  --main-background-color: #0f1530;
  --box-background-color: #171e38;
  --footer-background-color: #030816;
  --form-background-color: #3873ed;
  --text-color: #bfbec9;
  --heading-text-color: #dddddd;
  --inline-code-text-colour: #c2bfbf;
  --page-side-margin: 4vw;
  --font-size: 13pt; }

html {
  scroll-behavior: smooth; }

body {
  background-color: var(--main-background-color);
  color: var(--text-color);
  font-family: "Quicksand", sans-serif;
  font-size: var(--font-size);
  line-height: 1.4em; }

h1,
h2,
h3,
h4,
h5 {
  color: var(--heading-text-color);
  line-height: 100%; }

a {
  color: #3771e7;
  text-decoration: none; }

a:visited {
  color: #7d65f3; }

.subscribe {
  margin-top: 2em;
  text-align: center; }
  .subscribe > * {
    display: inline-block; }
  .subscribe button {
    background-color: var(--form-background-color);
    color: var(--heading-text-color);
    cursor: pointer;
    border-radius: 5px;
    border: none;
    padding: 0.5em 1em;
    margin: 0em 1em;
    font-weight: bold;
    font-size: 120%; }

p code,
li code {
  padding-left: 3pt;
  padding-right: 3pt;
  color: var(--inline-code-text-colour);
  background-color: rgba(255, 255, 255, 0.1);
  font-family: Courier, monospace; }

div.highlighter-rouge div.highlight pre {
  padding: 1em;
  font-family: Courier, monospace;
  background-color: #1a1919;
  white-space: pre-wrap;
  overflow-wrap: break-word; }

.close :first-child {
  margin-bottom: 0; }

.close :last-child {
  margin-top: 0; }

.note {
  background-color: var(--box-background-color);
  padding: 1em;
  border-radius: 5px;
  margin: 1em; }

.box {
  background-color: var(--box-background-color);
  padding: 20px;
  border-radius: 5px;
  margin: 0; }

main > .box {
  padding-top: 1px;
  padding-bottom: 1px; }

.box + .box {
  margin-top: 1em; }

figure {
  text-align: center; }
  figure a {
    text-decoration: none; }

.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30ch, 1fr));
  grid-gap: var(--page-side-margin); }

img {
  max-width: 100%; }

.videoWrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 */
  padding-top: 25px;
  height: 0;
  margin-bottom: 1em; }

.videoWrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; }

/* Homepage */
.software-icon {
  height: 8em; }

/* Blog posts */
body[data-layout="post"] aside {
  display: none; }
body[data-layout="post"] main > article {
  margin-bottom: 4em; }

.post-details {
  color: #908ab1;
  font-size: calc(100% - 1pt); }

summary {
  outline: none; }
  summary > * {
    display: inline-block; }

/* Categories list */
.categories h3 {
  color: var(--text-color); }
.categories div {
  margin-top: 1em;
  margin-left: 1em;
  margin-bottom: 2em; }
.categories a {
  color: var(--text-color);
  text-decoration: none;
  margin-right: 1em;
  display: inline-block;
  line-height: 170%; }
.categories a.currentCategory {
  color: var(--heading-text-color); }

/* Layout */
main {
  grid-area: main;
  overflow-wrap: break-word;
  max-width: 100%;
  min-width: 0; }

body > aside {
  grid-area: aside; }

body {
  display: grid;
  grid-template-areas: "header header header" ". aside ." ". main ." "footer footer footer";
  grid-template-columns: var(--page-side-margin) 1fr var(--page-side-margin);
  grid-template-rows: auto auto 1fr auto;
  min-height: 100vh; }

@media screen and (min-width: 75ch) {
  body[data-layout="post"] aside {
    display: block; }

  .categories a {
    display: block; }

  .note {
    float: right;
    max-width: 30%;
    min-width: 20ch; }

  body {
    display: grid;
    grid-template-areas: "header header header header" ". main aside ." "footer footer footer footer";
    grid-template-columns: 0 1fr auto 0;
    grid-template-rows: auto 1fr auto;
    grid-column-gap: var(--page-side-margin);
    min-height: 100vh; } }
.center {
  margin: 0;
  position: relative;
  top: 50%;
  -ms-transform: translate(0%, -50%);
  transform: translate(0%, -50%);
  text-align: center; }

/* Header */
body > header {
  grid-area: header;
  padding: 1em var(--page-side-margin);
  text-align: right;
  background-color: var(--box-background-color);
  margin-bottom: 2em; }
  body > header a {
    margin-left: 1em;
    display: inline-block;
    color: var(--text-color) !important;
    text-decoration: none !important; }
  body > header a:first-child {
    float: left;
    margin: 0; }
  body > header img {
    max-height: 1.5em; }

/* Footer */
body > footer {
  grid-area: footer;
  background-color: var(--footer-background-color);
  color: #abaab5;
  margin-top: 4em;
  padding: 2em 0;
  text-align: center; }
  body > footer > div {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: space-evenly;
    max-width: 50%;
    margin-left: auto;
    margin-right: auto; }
    body > footer > div p {
      grid-column: 1/4; }
  body > footer img {
    max-height: 1.5em; }
  body > footer svg {
    display: inline-block;
    height: 1.25em;
    width: 1.25em;
    fill: whitesmoke; }
