@media(prefers-color-scheme: light) {
  :root {
    --primary-bg: #f0f0f0cc;
    --secondary-bg: #d6d6d6;

    --primary-colour: #333;
    --secondary-colour: #555;
    --tertiary-colour: #999;

    --links: #2196f3;
    --links-light: #1c83d4;

    --inverse-text: #eee;
    --primary-text: #333;
    --secondary-text: #627286;

    --theme: #fff;
    --theme-secondary: #eee;
    --theme-tertiary: #ddd;

    --success-text: var(--primary-text);
    --success-bg: #c6f7d7;
    --success-bg-bold: #1ca04b;
    --warning-text: var(--primary-text);
    --warning-bg: #fff1a4;
    --warning-bg-bold: #ceaf0a;
    --error-text: var(--primary-text);
    --error-bg: #f7e3e1;
    --error-bg-bold: #d93025;

    --primary-line: #252c3531;
    --secondary-line: #999999a1;
    --tertiary-line: #ccc;

    --primary-btn: #0070DD;
    --primary-btn-hover: #0060DD;

    --card-colour: #e5e3e355;
  }
}

@media(prefers-color-scheme: dark) {
  :root {
    --primary-bg: #1a1e23;
    --secondary-bg: #141619;

    --primary-colour: var(--secondary-bg);
    --secondary-colour: #9da4af;
    --tertiary-colour: #768390;

    --links: #3b96c1;
    --links-light: #5da5c7;

    --inverse-text: #e4e8ec;
    --primary-text: #c9d5e0;
    --secondary-text: #768390;

    --theme: #22272e;
    --theme-secondary: #1a1e23;
    --theme-tertiary: #3a3c40;

    --success-bg: var(--theme);
    --success-bg-bold: #1ca04b;
    --success-text: var(--success-bg-bold);
    --warning-bg: var(--theme);
    --warning-bg-bold: #ceaf0a;
    --warning-text: var(--warning-bg-bold);
    --error-bg: var(--theme);
    --error-bg-bold: #d93025;
    --error-text: var(--error-bg-bold);

    --primary-line: #c9d5e031;
    --secondary-line: #373e47;
    --tertiary-line: #373e47;

    --primary-btn: var(--links);
    --primary-btn-hover: var(--links-light);

    --card-colour: #181b20;
  }
}

::-moz-selection {
  color: var(--inverse-text);
  background: var(--secondary-colour);
}

::selection {
  color: var(--inverse-text);
  background: var(--secondary-colour);
}

:root {
  /* --app-font: 'Manrope'; --font-size: 92%; --letter-spacing: 0.25pt; */
  --app-font: system-ui; --font-size: 94%; --letter-spacing: 0.4pt;
  --line-height: 1.65;
}

html {
    scroll-padding-top: 150px;
}

html, body {
  padding: 0;
  margin: 0;
  height: 100%;
  font-size: var(--font-size, 95%);
  line-height: var(--line-height, 1.5);
  font-family: var(--app-font, system-ui), -apple-system,
    -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
    Helvetica Neue, Fira Sans, Ubuntu, Oxygen, Oxygen Sans, Cantarell,
    Droid Sans, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol,
    Lucida Grande, Helvetica,Arial, sans-serif;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--primary-text, #333);
  background-color: var(--secondary-bg, #ededed);
  -webkit-text-size-adjust: 100%;
  letter-spacing: var(--letter-spacing, 0.3pt);
}

a {
  text-decoration: none;
  transition: ease-in-out 0.2s;
  color: var(--links, #2196f3);
}

a:active, a:hover {
  transition: ease-in-out 0.2s;
  color: var(--links-light, #1c83d4);
}

a[target="_blank"]:not(.icon):not(.plain)::after {
  content: "\2197";
  font-size: 0.4rem;
  vertical-align: super;
  margin: 0 1.25px;
}

code, .code, .custom-input.code {
  font-family: 'SF Mono', SFMono-Regular, ui-monospace,
    'DejaVu Sans Mono', Menlo, Consolas, monospace !important;
  font-size: 0.85rem;
}

ul, ol {
  padding: 0;
}

p {
  margin: 8px 0;
}

header {
  top: 0;
  margin-bottom: 20px;
  position: sticky;
  z-index: 1;
}

header > div {
  padding: 10px;
  padding-left: 0;
  background-color: var(--primary-colour, #333) ;
  color: var(--theme, #fff);
}

header > nav {
  padding: 10px;
  background-color: var(--theme-secondary, #eee);
  color: var(--secondary-colour, #555);
  border-bottom: 1px solid var(--theme-tertiary, #ccc);
}

section {
  margin: 30px 0;
}

footer {
  height: 10px;
  margin-top: 35px;
  position: absolute;
  bottom: -10px;
  width: 100%;
}

button {
  min-width: 100px;
  outline: none;
  border: none;
  font-family: var(--app-font), -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;

  padding: 10px;
  border-radius: 10px;
  margin: 0 10px;
}

.container {
  position: relative;
  min-height: calc(100% - 105px);
  padding-bottom: 10px;
  background-color: var(--theme, #fff);
}

.no-script-warning {
  text-align: center;
  padding: 10px;
  font-size: 0.9rem;
  background-color: var(--warning-bg, #fff1a4);
  color: var(--warning-text, #333);
  border-bottom: 1px solid;
}

.warning-banner {
  background:var(--warning-bg, #fff1a4);
  padding: 10px;
  border-radius: 5px;
  border: 1px solid var(--warning-bg-bold, #ceaf0a);
  border-left: 5px solid var(--warning-bg-bold, #ceaf0a);
}

.centre {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

.title-name {
  color: var(--inverse-text, #c4c8cc);
}

.avatar {
  margin: 5px 20px 5px 0;
}

.overview {
  display: flex;
  flex-direction: row;
}

/* Mobile devices */
@media only screen and (max-width: 600px) {
  .large-screen {
    display: none;
  }

  .overview > img {
    width: 100px;
    height: 100px;
  }
}

/* Tablets, laptops, and other larger devices */
@media only screen and (min-width: 600px) {
  .small-screen {
    display: none;
  }
}

.phanton-menace {
  height: 0px;
  width: 0px;
  position: absolute;
}

.hidden {
  display: none;
}

.navlist {
  list-style-type: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.navlist > li {
  margin: 0 10px;
}

.navlist > li:not(.phantom):not(:first-child):before {
  content: '\2219';
  margin-right: 15px;
}

.avatar {
  border-radius: 10px;
  float: left;
  object-fit: cover;
}

.section-title {
  border-bottom: 1px solid var(--primary-line, #d6d6d6);
  padding-bottom: 10px;
}

.section-item {
  border-radius: 10px;
  margin-bottom: 5px;
  padding-bottom: 5px;
  display: grid;
  grid-template-columns: 20px auto;
  align-items: center;
}

.tabular-row {
  display: grid;
  grid-template-columns: 80px calc(100% - 80px);
  margin: 20px 0;
}

.tabular-row-simple {
  display: grid;
  grid-template-columns: 140px calc(100% - 125px);
  /* margin: 20px 0; */
}

.tabular-row > :first-child {
  margin: 5px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.tabular-row:last-child {
  margin: 0;
}

.retro {
  filter: grayscale(1);
}

.section-item-info {
  margin-bottom: 5px;
  margin-left: 15px;
}

.section-item-info > p {
  margin: 7.5px 0;
}

ol.timeline {
  margin-top: 10px;
  list-style-type: none;
}

ol.timeline > li {
  margin-bottom: 10px;
  display: flex;
  width: 100%;
  flex-direction: row;
}

ol.timeline > li:not(:last-child) > .tl-lines {
  border: 1px solid var(--tertiary-line);
  position: relative;
  left: -20px;
  margin: 5px 0;
  top: 18px;
}

.fit-width {
  width: 100%;
}

.timeline > li:not(:only-child)::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--tertiary-line);
  border-radius: 8px;
  margin: 10px 15px 0px 0px;
}

.bullet {
  width: 10px;
  height: 10px;
  background: var(--secondary-colour, #555);
  border-radius: 10px;
  display: flex;
  justify-self: center;
}

.bullet.top {
  align-self: flex-start;
  margin-top: 8px;
}

.subtext {
  color: var(--secondary-text, #808080);
}

.subtext > a {
  opacity: 0.7;
}

.simple-list {
  list-style-type: none;
  display: inline-flex;
  flex-flow: wrap;
}

.simple-list.author > li:not(:last-child)::after {
  content: '\2022';
  margin-left: 5px;
  margin-right: 5px;
}

.simple-list.items {
  margin: 0px;
}

.simple-list.items > li:not(:last-child)::after {
  content: ',';
  margin-left: 0px;
  margin-right: 5px;
}

.custom-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  border: 1.25px solid var(--tertiary-line, #ccc);
  border-radius: 5px;
  width: calc(100% - 40px);
  padding: 10px;
  padding-top: 20px;
  margin: 10px;
  outline: none;

  font-family: var(--app-font, 'Franklin Gothic'), -apple-system,
    'Helvetica Neue', sans-serif;
  font-size: 0.9rem;
  color: var(--primary-text, #333);
  background-color: transparent;
  box-shadow: none;
  resize: none;
  line-height: 1.5rem;

  letter-spacing: var(--letter-spacing, 0.3pt);
}

.tabular {
  margin-top: 25px;
}

.note-input {
  height: 150px;
}

.actions-field {
  display: flex;
  justify-content: center;
}

.negative {
  color: var(--primary-text, #333);
  background: var(--primary-bg);
  transition: ease-in-out 0.2s;
}

.negative:hover, .negative:active {
  background: var(--secondary-bg);
  transition: ease-in-out 0.2s;
}

.positive {
  color: var(--primary-bg, #f0f0f0cc);
  background: var(--primary-btn, #0070DD);
  transition: ease-in-out 0.2s;
}

.positive:hover, .positive:active {
  background: var(--primary-btn-hover, #0060DD);
  transition: ease-in-out 0.2s;
}

.input-w-placeholder {
  position: relative;
}

.inputText:focus ~ .floating-label,
.inputText:not(textarea):not([value=""]) ~ .floating-label,
.inputText:not(:focus):valid ~ .floating-label
{
  top: 15px;
  bottom: 10px;
  left: 20px;
  font-size: 0.7rem;
  opacity: 1;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active
{
 box-shadow: 0 0 0 30px var(--theme, #fff) inset !important;
 -webkit-box-shadow: 0 0 0 30px var(--theme, #fff) inset !important;
 -webkit-text-fill-color: var(--primary-text, #333) !important;
}

.inputText:disabled, .inputText:disabled ~ .floating-label {
  background: var(--theme-secondary, #eee);
}

.clipboard-copy {
  cursor: copy;
}

.disabled {
  cursor: help !important;
  pointer-events: none;
}

.disabled.icon, .disabled.logo {
  background-color: var(--tertiary-colour, #999);
}

.writing-item {
  border: 1px solid var(--primary-line);
  padding: 10px;
  list-style-type: none;
  border-radius: 4px;
  margin-top: 30px;
}

.floating-label {
  height: 0px;
  background-color: var(--theme, #fff);
  border-radius: 2px;
  position: absolute;
  pointer-events: none;
  left: 20px;
  top: 25px;
  transition: 0.1s ease all;
  color: var(--tertiary-colour, #999);
}

.footnotes {
  padding: 0 10px 10px 20px;
  font-size: 0.8rem;
  color: var(--secondary-colour, #555);
}

.footnotes > .footnote-item {
  display: grid;
  grid-template-columns: 3% 97%;
}

.grecaptcha-badge { visibility: hidden; }

.media-items-list {
  display: flex;
  margin: 0;
  flex-direction: row;
  flex-wrap: wrap;
}

.card {
  border: 1px solid var(--card-colour, #e5e3e355);
  background: var(--card-colour, #e5e3e355);
  box-shadow: 0px 0px 2px 0px var(--card-colour, #e5e3e355);
  border-radius: 1pt;
}

.policies > h2 {
  border: none;
  padding: 0;
}

.policies {
  padding: 0 25px 25px;
}

.policies p, .policies span {
  font-size: 0.8rem;
  letter-spacing: 0.02rem;
}

.media-items-list > li {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  list-style-type: none;
  margin: 10px;

  flex-direction: column;
  width: 75px;
  height: 120px;
  border-radius: 5px;
  text-align: center;

  transition: ease-in-out 0.2s;
}

.media-items-list > li:hover {
  transition: ease-in-out 0.2s;
}

.media-items-list > li > a {
  color: var(--tertiary-colour, #999);
  transition: ease-in-out 0.2s;
}

.media-items-list > li:hover a {
  color: var(--links-light, #1c83d4);
  transition: ease-in-out 0.2s;
}

.media-items-list > li:hover a .media-item-icon {
  transition: ease-in-out 0.2s;
  background-color: var(--links-light, #1c83d4);
}

.media-items-list > li > a {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.media-item-icon {
  width: 50px;
  height: 50px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;

  transition: ease-in-out 0.2s;
  background-color: var(--tertiary-colour, #999);
}

.external-links {
  text-align: center;
  padding: 10px;
  display: flex;
  justify-content: center;
  background-color: var(--primary-bg, #f0f0f0cc);
  border-top: 1px solid var(--theme-tertiary, #ddd);
}

.external-links > ul {
  display: contents;
  list-style-type: none;
}

.external-links > ul > li {
  display: contents;
}

.badges {
  margin-top: 5px;
  margin-left: 0;
  font-size: 0.85rem;
}

.badges > li {
  display: flex;
  align-items: center;
}

.medium {
  font-size: 0.95em;
}
.small {
  font-size: 0.9em;
}

.tiny {
  font-size: 0.825em;
}


.platter {
  display: grid;
  grid-template-columns: 50px auto;
}

.icon {
  width: 25px;
  height: 25px;
  margin: 0 10px;
  background-color: var(--secondary-colour, #555);
  transition: ease-in-out 0.2s;
  vertical-align: middle;
  align-self: center;
}

.continue {
  display: inline-block;
}

.icon.small, .icon.tiny {
  background-color: var(--tertiary-colour, #999);
  display: inline-block;
}

.icon.small {
  width: 18px;
  height: 18px;
}

.icon.tiny {
  width: 14px;
  height: 14px;
}

a.icon:hover, a.icon:active {
  transition: ease-in-out 0.2s;
  background-color: var(--links-light, #1c83d4);
}

.icon.small.link {
  width: 12.5px;
  height: 12.5px;
  margin: 0 3px;
}

i.icon {
  margin: 0 5px;
}

.logo {
  opacity: 0.7;
  width: 100px;
  height: 50px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
  background-color: var(--tertiary-colour, #999);
}

a > .logo:hover, a > .logo:active {
  transition: ease-in-out 0.2s;
  background-color: var(--links-light, #1c83d4);
}

.tag {
  border: 1px solid var(--tertiary-colour, #333);
  border-radius: 2px;
  padding: 2px 4px;
  margin: 4px 8px 0 0;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
}

.copyright {
  align-items: center;
  display: flex;
  padding: 20px;
  background: var(--secondary-bg, #ededed);
  width: calc(100% - 40px);
  height: 100%;
  text-align: center;
  color: var(--secondary-colour, #555);
}
