/* 

COLOUR REFERENCE

Common:
  - links #4688f2
  - visited links #B046f2
  - borders #323233

Dark mode:
  - bg #181818
  - bg2 #1f1f1f
  - text #f8f0e3
  - lines #ffffff
  - contrast #f2B046

Light mode:
  - bg #e1d8cf
  - bg2 #faf0e6
  - text #343231
  - lines #000000
  - contrast #0a481e
  
*/

/* Dark mode */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #181818;
    color: #f8f0e3;
  }

  /* solid lines */
  hr {
    color: #f2b046;
  }

  .center {
    background-color: #1f1f1f;
  }

  header {
    background-color: #1f1f1f;
    border-bottom: 2px dotted #f2b046;
  }

  header a {
    color: #f2b046;
  }

  header a:hover,
  header .current a {
    color: #f2b046;
  }

  .article-meta {
    background: #121212;
  }
}

/* Light mode */
@media (prefers-color-scheme: light) {
  body {
    background-color: #e1d8cf;
    color: #343231;
  }

  /* solid lines */
  hr {
    color: #0a481e;
  }

  .center {
    background-color: #faf0e6;
  }

  header {
    background: #faf0e6;
    border-bottom: 2px dotted #0a481e;
  }

  header a {
    color: #0a481e;
  }

  header a:hover,
  header .current a {
    color: #0a481e;
  }

  .article-meta {
    background: #e1d8cf;
  }
}

html {
  font-family: "serif";
}

body {
  font-size: calc(15px + 0.1vw);
}

footer {
  font-size: 90%;
  padding-bottom: 8px;
}

footer hr {
  width: 90%;
  margin-bottom: 10px;
}

header {
  padding-top: 10px;
  padding-bottom: 10px;
}

header .current a {
  font-weight: bold;
}

#online {
  min-width: 40px;
  float: right;
  padding: 10px;
  display: block;
}

.center {
  display: flex;
  flex-direction: column;
  min-height: 99.3vh;
}

.full-height {
  flex: 1;
}

a {
  color: #4688f2;
}

.content-wrapper a:visited,
.terms a:visited,
footer a:visited {
  color: #b046f2;
}

pre {
  border: 2px solid #323233;
}

h1 {
  line-height: 1.1em;
}

.terms {
  font-size: 1em;
}

.view-all {
  margin-left: 22px;
}

.article-meta {
  margin: 20px;
}

.header-icon {
  margin-top: 3px;
  float: left;
}

/* Small devices, phones */
@media only screen and (min-width: 480px) {
  #online {
    min-width: 40px;
    float: center;
    padding: 10px 10px 10px 20px;
    display: block;
  }
}
