* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bgcolor: #000;
  --textcolor: #ccc;
  --textstrong: #9dc;
  --textstrongheader: #9dc;
  --textstrongheadertoday: #f0f;
  --texthighlight: #9988ff;
  --textcode: #8c88ef;
  --textlink: #8c88ef;/*#4bf;*/
  --textlinkhover: #a09cff;/*#4bf;*/
  --infolink: #8c88ef;
  --infocolor: #524D88;
  --infolinkhover: #a09cff;
  --shadow: #000;
}

body {
  background: var(--bgcolor);
  color: var(--textcolor);
  line-height: 1.5;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 100%; /* Works in conjunction with the font-size of the wrapper */
}

.wrapper {
  font-size: 1.5em;
}

header, section, footer, nav {
  display:block;
}

header #logo img,
header #logo canvas { 
  max-width: 100%;
  max-height: 33vh; 
  display: block; 
  margin: 0 auto;
}

nav {
  margin: .25em auto 0 auto;
  max-width: 50em;
  text-align: center;
}

nav a {
  display: inline-block;
  width: 24%;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  color: var(--texthighlight);
}

nav a:hover { background: #131313; }

section strong { color: var(--textstrong); font-weight: bold; }
section em { color: var(--texthighlight); font-style: normal; }
section code { color: var(--textcode); font-family: monospace; }
section a { color: var(--textlink); font-weight: bold; }
section a:hover { color: var(--textlinkhover); }
section .info { font-size: .7em; line-height: 1.25; color: var(--infocolor); }
section .info a {color: var(--infolink); font-weight: bold; }
section .info a:hover {color: var(--infolinkhover); }

section .share { font-size: .7em; line-height: 1; margin: 1rem 0 1rem 1.25rem; color: var(--texthighlight); opacity: .7; }
section .share b { font-weight: bold; border: none; padding: 0; color: var(--textstrong); }

p.shadows { text-shadow: .25em .25em .0625em #0004; }

section b { /* for styling colour swatches in the prompts list */
  padding: 0.25em;
  border: 2px solid #000;
  font-weight: bold;
}

section h1 a { color: inherit; text-decoration: none; }

section {
  box-sizing: border-box;
  font-size: 1em;
  max-width: 42em;
  margin: .5em auto;
  padding:0 2em 2em 2em;
}

section p {
  margin: 1em 0;
}

p.box {
  display: inline-block;
  width: 45%;
  margin: 1em .5em;
}

p.box img {
  display: block;
  max-width: 80%;
  margin: 0 auto;
}

p.box em {
  display: block;
  text-align: center;
} 

section hr {
  margin: 3em 0;
  border-top: .25em solid var(--textstrong);
  border-bottom: .25em solid var(--shadow);
  border-left: none;
  border-right: none;
}

section h1, section h2, section h3, section h4, section h5, section h6 {
  margin: .75em 0 .5em 0;
  font-size: 1.25em;
  line-height: 1;
  font-weight: bold;
  color: var(--textstrongheader);
}

section h1 {
  text-shadow: .0625em .0625em 0 var(--shadow);
  font-size: 2em;
  text-align: center;
}

section h2 {
    border-top: 2px solid #333055;
    font-size: 1.5em;
    margin: 0 -2rem;
    padding: .5em 1em 0 1em;
}

section ul {
    list-style: disc outside;
    margin: 1em 0.5em;
    padding: 0 0.25em;
}

section ul li {
  margin: .5em 0;
}


section pre {
  background:#131313;
  border: solid 1px #000;
  border-radius: 0.25em;
  box-shadow: inset 0 0.25em 1em rgba(0,0,0,0.2);
  color: #0fc;
  padding: 1em;
  text-shadow: 0 0 3px #021, 0 0 10px #0fc;
/*  overflow-x: auto;*/
  margin-top: 1em;
  white-space: pre-wrap;
  word-break: break-all;
}

section pre .completion4 { color: #0fc4; text-shadow: 0 0 3px #0218, 0 0 10px #0fc8;}
section pre .completion2 { color: #0fc2; text-shadow: 0 0 3px #0214, 0 0 10px #0fc4;}
section pre .completion1 { color: #0fc1; text-shadow: 0 0 3px #0212, 0 0 10px #0fc2;}

section pre code {
    color: #0fc;
}

section pre .cursor {
  animation: blink 0.8s infinite;
  border-bottom: solid 2px #0fc4;
  display: inline-block;
  height: 1.2em;
  width: 0.4em;
}

@keyframes blink {
  0% {opacity: 0.6}
  20% {opacity: 0.6}
  100% {opacity: 0}
}

footer {
  color: var(--infocolor);
  font-size: 0.6em;
  margin: 1em auto 0;
  max-width: 42em;
  padding: 1em;
  text-align: left;
}

footer a { color: var(--infolinkhover); }

@media (max-width: 640px) {
  .wrapper {
    font-size: 0.9em;
  }
}

.today {
  font-size: 2em;
  color: var(--textstrongheadertoday);
  border-left: 3px solid #333055;
/*  text-shadow: 0 0 0.1em #fff, .0625em .0625em 0 #fff;*/
}

/*.today::after {
  background-color: #fff;
  color: var(--textstronginverse);
  content: "that's today!";
  display: inline-block;
  vertical-align: middle;
  font-size: 0.2em;
  font-weight: bold;
  margin-left: 2em;
  padding: .5em .75em;
  border-radius: .5em;
  text-shadow: none;
}
*/
.credit {
  font-size: 0.5em;
  color: var(--textstrongheader);
}
.credit a {
  text-decoration: none;
}

