/* 
    
    Borrowed this from here: view-source: https://demo.htmlforpeople.com/css/simple.css

    Added the social media icons from here: https://www.w3schools.com/howto/howto_css_social_media_buttons.asp

*/

:root,
::backdrop {
  --sans-font: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir,
    "Nimbus Sans L", Roboto, "Noto Sans", "Segoe UI", Arial, Helvetica,
    "Helvetica Neue", sans-serif;
  --mono-font: Consolas, Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
  --standard-border-radius: 5px;

  /* Midnight retro-modern theme */
  color-scheme: dark;
  --bg: #171725;
  --header-bg: #1d1c30;
  --accent-bg: #242438;
  --text: #e8dff5;
  --text-light: #aaa4bb;
  --border: #39364f;
  --accent: #9be5aa;
  --accent-hover: #e6a568;
  --accent-text: #171725;
  --coral: #c49c9c;
  --code: #e6a568;
  --preformatted: #e8dff5;
  --marked: #e6a568;
  --disabled: #242438;
}

@media (prefers-color-scheme: dark) {
  :root,
  ::backdrop {
    color-scheme: dark;
    --bg: #171725;
    --header-bg: #1d1c30;
    --accent-bg: #242438;
    --text: #e8dff5;
    --text-light: #aaa4bb;
    --border: #39364f;
    --accent: #9be5aa;
    --accent-hover: #e6a568;
    --accent-text: #171725;
    --coral: #c49c9c;
    --code: #e6a568;
    --preformatted: #e8dff5;
    --disabled: #242438;
  }

  img,
  video {
    opacity: 0.92;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

textarea,
select,
input,
progress {
  appearance: none;
}

html {
  font-family: var(--sans-font);
  scroll-behavior: smooth;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.centered {
    text-align: center;
}

/* .centered img {
    display: block;
    margin: 0 auto;   
} */

.centered-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  /* width: 50%; */
}

/* Borrowed from here: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_images_side_by_side */

.column {
  float: left;
  width: 33.33%;
  padding: 5px;
}

/* Clearfix (clear floats) */
.row::after {
  content: "";
  clear: both;
  display: table;
}

body {
  color: var(--text);
  background-color: var(--bg);
  font-size: 1rem;
  line-height: 1.6;
  display: grid;
  grid-template-columns: 1fr min(58rem, 92%) 1fr;
  margin: 0;
}

body > * {
  grid-column: 2;
}

body > header {
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 0.5rem 0.75rem 1.25rem;
  grid-column: 1 / -1;
}

body > header h1 {
  max-width: 1200px;
  margin: 0.5rem auto 0.35rem;
}

body > header p {
  max-width: 40rem;
  margin: 0.35rem auto 0.5rem;
  color: var(--text-light);
}

main {
  grid-column: 1 / -1;
  width: min(82rem, 96%);
  margin: 0 auto;
  padding-top: 1.25rem;
}

body > footer {
  margin-top: 3rem;
  padding: 1.75rem 1rem 1.25rem;
  color: var(--text-light);
  font-size: 0.9rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

h1 { 
    font-size: 2.4rem;
    letter-spacing: -0.02em;
}

h2 { 
    font-size: 1.9rem;
    margin-top: 2.25rem;
    letter-spacing: -0.015em;
}

h3 { 
    font-size: 1.45rem;
    margin-top: 2rem;
    letter-spacing: -0.01em;
}

h4 { 
    font-size: 1.2rem;
    margin-top: 1.5rem;
}

h5 {
    font-size: 1.05rem;
    margin-top: 1.25rem;
}

h6 { 
    font-size: 0.9rem;
    margin-top: 1.25rem;
}

p { 
    margin: 1.1rem 0; 
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

h1, h2, h3 {
  line-height: 1.2;
}

/* Mobile header sizes */
@media only screen and (max-width: 720px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.55rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.1rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 0.85rem; }

  body > header {
    padding: 0.5rem 0.5rem 1rem;
  }
}

a,
a:visited {
  color: var(--accent);
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

button,
.button,
a.button,
input[type="submit"],
input[type="reset"],
input[type="button"],
label[type="button"] {
  border: 1px solid var(--accent);
  background-color: var(--accent);
  color: var(--accent-text);
  padding: 0.5rem 0.9rem;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button[aria-disabled="true"],
input:disabled,
textarea:disabled,
select:disabled,
button[disabled] {
  cursor: not-allowed;
  background-color: var(--disabled);
  border-color: var(--disabled);
  color: var(--text-light);
}

button:enabled:hover,
.button:not([aria-disabled="true"]):hover,
input[type="submit"]:enabled:hover,
input[type="reset"]:enabled:hover,
input[type="button"]:enabled:hover,
label[type="button"]:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-text);
  cursor: pointer;
}

.button:focus-visible,
button:focus-visible:where(:enabled),
input:enabled:focus-visible:where([type="submit"], [type="reset"], [type="button"]) {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}

header > nav {
  font-size: 0.95rem;
  line-height: 1.5;
  padding-top: 0.5rem;
}

header > nav ul,
header > nav ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

header > nav li {
  display: inline-block;
}

header > nav a,
header > nav a:visited {
  margin: 0 0.45rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: var(--standard-border-radius);
  color: var(--text-light);
  padding: 0.2rem 0.75rem;
  text-decoration: none;
  border-bottom: 2px solid var(--border);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

header > nav a:hover,
header > nav a.current,
header > nav a[aria-current="page"],
header > nav a[aria-current="true"] {
  color: var(--text-light);
  border-color: var(--border);
  border-bottom-color: var(--border);
  background-color: transparent;
}

header > nav a:hover {
  color: var(--text);
  border-bottom: 2px solid var(--accent-hover);
}

header > nav a:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
  color: var(--text);
}

#section-nav h2 {
    margin-bottom: 5px;   /* reduce space under header */
}

#section-nav ul {
    margin-top: 0; /* remove gap above the list */
    list-style-type: none;  /* removes bullets */
}

#section-nav ul ul {
    margin-left: 10px;   /* reduce indentation */
    padding-left: 10px;  /* controls inner spacing */
}

#section-nav a {
    text-decoration: none;
}

#section-nav a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

#quick-links {
  text-align: center;
  margin-top: -0.5rem;
  font-size: 1rem; /* makes it bigger */
}

#quick-links a,
#quick-links a:visited {
  color: var(--text-light);
  text-decoration: none; /* remove underline */
  margin: 0 0.45rem;
  padding: 0.2rem 0.55rem;
  border-bottom: 2px solid transparent; /* subtle effect */
  transition: all 0.2s ease;
}

#quick-links a:hover {
  color: var(--text);
  border-bottom: 2px solid var(--accent-hover); /* underline on hover */
}

.quick-quote {
  color: var(--coral);
  letter-spacing: 0.05em;
}

.ascii-separator {
  text-align: center;           /* centers the line */
  color: var(--text-light);
  margin: 0.5rem 0 1rem 0;      /* spacing above and below */
  font-family: monospace;       /* keeps alignment neat */
  font-size: 1.1rem;            /* slightly bigger for emphasis */
}

/* Mobile nav */
@media only screen and (max-width: 720px) {
  header > nav {
    padding-top: 0.35rem;
  }

  header > nav a,
  header > nav a:visited {
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    margin: 0 0.35rem 0.25rem;
    padding: 0.15rem 0.35rem;
    text-decoration: none;
    line-height: 1.3;
  }

  header > nav a:hover {
    border: none;
    border-bottom: 2px solid var(--accent-hover);
  }
}

aside,
details,
pre,
progress {
  background-color: var(--accent-bg);
  border: 1px solid var(--border);
  border-radius: var(--standard-border-radius);
  margin-bottom: 1rem;
}

aside {
  font-size: 0.95rem;
  width: 30%;
  padding: 0.25rem 15px;
  margin-inline-start: 15px;
  float: right;
}

*[dir="rtl"] aside {
  float: left;
}

@media only screen and (max-width: 720px) {
  aside {
    width: 100%;
    float: none;
    margin-inline-start: 0;
  }
}

article,
fieldset,
dialog {
  border: 1px solid var(--border);
  padding: 1.25rem;
  border-radius: var(--standard-border-radius);
  margin-bottom: 1.25rem;
}

section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0.75rem;
  margin: 2rem 0;
}

section + section {
  border-top: 0;
  margin-top: 0;
}

section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

details {
  padding: 0.7rem 1rem;
}

summary {
  cursor: pointer;
  font-weight: bold;
  padding: 0.7rem 1rem;
  margin: -0.7rem -1rem;
  word-break: break-all;
}

details[open] > summary {
  margin-bottom: 0.5rem;
}

table {
  border-collapse: collapse;
  margin: 1.5rem 0;
  display: block;
  overflow-x: auto;
  max-width: 100%;
}

td,
th {
  border: 1px solid var(--border);
  padding: 0.5rem;
}

th {
  background-color: var(--accent-bg);
  font-weight: bold;
}

tr:nth-child(even) {
  background-color: var(--accent-bg);
}

table caption {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

textarea,
select,
input,
button,
.button {
  font-size: inherit;
  font-family: inherit;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: var(--standard-border-radius);
  max-width: 100%;
}

textarea,
select,
input {
  color: var(--text);
  background-color: var(--bg);
  border: 1px solid var(--border);
}

label {
  display: block;
}

textarea:not([cols]) {
  width: 100%;
}

select:not([multiple]) {
  background-image:
    linear-gradient(45deg, transparent 49%, var(--text) 51%),
    linear-gradient(135deg, var(--text) 51%, transparent 49%);
  background-position: calc(100% - 15px), calc(100% - 10px);
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-inline-end: 25px;
}

*[dir="rtl"] select:not([multiple]) {
  background-position: 10px, 15px;
}

input[type="checkbox"],
input[type="radio"] {
  vertical-align: middle;
  position: relative;
}

input[type="radio"] {
  border-radius: 100%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background-color: var(--accent);
}

input[type="checkbox"]:checked::after {
  content: "";
  width: 0.18em;
  height: 0.32em;
  position: absolute;
  top: 0.05em;
  left: 0.17em;
  border-right: 0.08em solid var(--bg);
  border-bottom: 0.08em solid var(--bg);
  transform: rotate(45deg);
}

input[type="radio"]:checked::after {
  content: "";
  width: 0.25em;
  height: 0.25em;
  border-radius: 100%;
  position: absolute;
  top: 0.125em;
  left: 0.125em;
  background-color: var(--bg);
}

@media only screen and (max-width: 720px) {
  textarea,
  select,
  input {
    width: 100%;
  }
}

input[type="color"] {
  height: 2.5rem;
  padding: 0.2rem;
}

input[type="file"] {
  border: 0;
}

hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 1rem auto;
}

mark {
  padding: 2px 5px;
  border-radius: var(--standard-border-radius);
  background-color: var(--marked);
  color: var(--accent-text);
}

img,
video {
  max-width: 100%;
  height: auto;
  border-radius: var(--standard-border-radius);
}

figure {
  margin: 0;
  overflow-x: auto;
}

figcaption,
.centered-img + p,
img + em {
  text-align: center;
  font-size: 0.9rem;
  color: #c2bccf;
  margin-block: 1rem;
}

blockquote {
  margin: 1.5rem 0 1.5rem 1.5rem;
  padding: 0.35rem 0.75rem;
  border-left: 0.25rem solid var(--border);
  color: var(--text-light);
  font-style: italic;
}

cite {
  font-size: 0.9rem;
  color: var(--text-light);
}

dt {
  color: var(--text-light);
}

code,
pre,
pre span,
kbd,
samp {
  font-family: var(--mono-font);
  color: var(--code);
}

kbd {
  color: var(--preformatted);
  border: 1px solid var(--preformatted);
  border-bottom: 3px solid var(--preformatted);
  border-radius: var(--standard-border-radius);
  padding: 0.1rem 0.4rem;
}

pre {
  padding: 1rem 1.25rem;
  overflow: auto;
  color: var(--preformatted);
}

pre code {
  background: none;
  margin: 0;
  padding: 0;
}

progress {
  width: 100%;
}

progress:indeterminate {
  background-color: var(--accent-bg);
}

progress::-webkit-progress-bar {
  border-radius: var(--standard-border-radius);
  background-color: var(--accent-bg);
}

progress::-webkit-progress-value {
  border-radius: var(--standard-border-radius);
  background-color: var(--accent);
}

progress::-moz-progress-bar {
  border-radius: var(--standard-border-radius);
  background-color: var(--accent);
  transition: width 0.3s;
}

progress:indeterminate::-moz-progress-bar {
  background-color: var(--accent-bg);
}

dialog {
  max-width: 40rem;
  margin: auto;
}

dialog::backdrop {
  background-color: var(--bg);
  opacity: 0.8;
}

@media only screen and (max-width: 720px) {
  dialog {
    max-width: 100%;
    margin: auto 1em;
  }
}

sup,
sub {
  vertical-align: baseline;
  position: relative;
}

sup { top: -0.4em; }
sub { top: 0.3em; }

.big-text {
  font-size: 1.5rem;
}

.fa {
  font-size: 18px;
  width: 36px;
  height: 36px;
  padding: 8px;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
  text-decoration: none;
  display: inline-block;
}

.fa:hover {
  opacity: 0.7;
}

/* Individual brand colors */
.fa-facebook { 
    background: #3b5998; color: white; 
}

.fa-twitter { 
    background: #55acee; color: white; 
}

.fa-google { 
    background: #dd4b39; color: white; 
}

.fa-linkedin { 
    background: #007bb5; color: white; 
}

.fa-youtube { 
    background: #bb0000; color: white; 
}

.fa-instagram { 
    background: #125688; color: white; 
}

.fa-pinterest { 
    background: #cb2027; color: white; 
}

.fa-snapchat-ghost {
  background: #fffc00;
  color: white;
  text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

.fa-skype { 
    background: #00aff0; color: white; 
}

.fa-android { 
    background: #a4c639; color: white; 
}

.fa-dribbble { 
    background: #ea4c89; color: white; 
}

.fa-vimeo { 
    background: #45bbff; color: white; 
}

.fa-tumblr { 
    background: #2c4762; color: white; 
}

.fa-vine { 
    background: #00b489; color: white; 
}

.fa-foursquare { 
    background: #45bbff; color: white; 
}

.fa-stumbleupon { 
    background: #eb4924; color: white; 
}

.fa-flickr { 
    background: #f40083; color: white; 
}

.fa-yahoo { 
    background: #430297; color: white; 
}

.fa-soundcloud { 
    background: #ff5500; color: white; 
}

.fa-reddit { 
    background: #ff5700; color: white; 
}

.fa-rss { 
    background: #ff6600; color: white; 
}

footer .fa {
  font-size: 1.8rem;
  padding: 10px;
  width: 45px;
  height: 45px;
  background: var(--accent-bg);
  color: var(--accent);
}

#footer p {
  display: flex;
  justify-content: center;
  gap: 4px; /* controls spacing between icons */
}

#footer .right {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: right;
    margin-bottom: 0;
    line-height: 1;
}

.notice {
  background: var(--accent-bg);
  border: 1px solid var(--border);
  border-radius: var(--standard-border-radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}