@import url("https://fonts.googleapis.com/css2?family=Fira+Mono&family=Grenze+Gotisch&family=IBM+Plex+Serif:wght@300;400;500&display=swap");

:root {
  --background-image: url("./StarBackground.gif");
  --main-font: "IBM Plex Serif";
  --accent-font: "Grenze Gotisch";
  --mono-font: "Fira Mono";
  --dark: #000;
  --light: #fff;
  --accent: rgb(0, 139, 139);
  --accent-light: rgba(0, 139, 139, 0.5);
  --accent-lighter: rgba(0, 139, 139, 0.3);
  --section-width: 80%;
}

h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol {
  margin: 0.5rem;
}

h1 {
  font-size: 2em;
}

h2,
h1 {
  font-family: var(--accent-font), cursive;
  font-weight: 400;
}

h3,
h4,
h5,
h6,
th,
thead {
  font-weight: 500;
}

ul {
  list-style-type: square;
}
hr {
  border: 0;
  height: 1px;
  width: 90%;
  background: #333;
  background-image: linear-gradient(
    to right,
    var(--accent-lighter),
    #333,
    var(--accent-lighter)
  );
}
table {
  border-collapse: collapse;
}
th,
td {
  border: 1px dotted #ccc;
}
td,
th {
  padding: 0.2em;
}
code {
  background: #f9f9f9;
  padding: 0.1em;
  font-family: var(--mono-font), monospace;
}

q:before {
  color: #ccc;
  content: open-quote;
  font-size: 2em;
  line-height: 0.1em;
  margin-right: 0.25em;
  vertical-align: -0.4em;
  quotes: "\201C""\201D""\2018""\2019";
}

q:after {
  color: #ccc;
  content: close-quote;
  font-size: 2em;
  line-height: 0.1em;
  margin-left: 0.25em;
  vertical-align: -0.4em;
  quotes: "\201C""\201D""\2018""\2019";
}
blockquote {
  background: #f9f9f9;
  border-left: 1px inset var(--accent);
  box-shadow: -2px 0px 1px var(--accent-lighter);
  margin: 1.5em 10px;
  padding: 0.5em 10px;
}

blockquote p {
  display: inline;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  background: var(--background-image);
}

.container {
  flex: 1 0 auto;
  display: flex-start;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  font-family: var(--main-font), serif;
}

header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  text-align: center;
  margin: 1em 0;
}

header h1 span {
  font-size: 1.75em;
  background-color: var(--light);
  text-transform: lowercase;
}

nav {
  padding: 1vw;
  text-align: center;
}

nav a {
  color: inherit;
  text-decoration: none;
  background-color: var(--light);
}
nav a::before {
  content: "[ ";
}
nav a::after {
  content: " ]";
  margin-right: 5px;
}

nav a:hover,
nav a.selected {
  font-weight: 500;
  text-shadow: 2px 2px 5px var(--accent-light);
}

.content a {
  display: inline-block;
  line-height: 1;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.content a:hover {
  color: var(--accent);
}

section {
  max-width: var(--section-width);
  margin: auto;
  margin-bottom: 1.5rem;
}

h2.section-header {
  text-transform: lowercase;
  margin: 0;
  padding: 0.25rem 1rem;
  background-color: var(--dark);
  color: var(--light);
  border-bottom: 1px inset var(--accent);
  box-shadow: 0px 1px 1px var(--accent-lighter);
}

.content {
  padding: 0.25rem 1rem;
  border: 1px dotted var(--dark);
  border-top: none;
  font-weight: 300;
  background-color: var(--light);
}

footer {
  padding: 0.5rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono-font);
  background-color: var(--dark);
  color: var(--light);
  flex-shrink: 0;
  border-top: 1px inset var(--accent);
  box-shadow: 0px -1px 1px var(--accent-lighter);
  font-size: 0.8rem;
}

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

footer a:hover {
  color: var(--light);
}
