@charset "UTF-8";

:root {
  --bg: #ffffff;
  --bg-alternate: #dfdfdf;
  --header: #f0f0f0;
  --text: #2d2d2d;
  --text-alternate: #696969;
  --text-inverted: #ffffff;
  --shadow: rgba(0, 0, 0, 0.2);
  --outline: #b1b1b1;
  --accent: DarkOrange;
  --accent-hover: Chocolate;
  --accent-alternate: SteelBlue;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Noto Sans", Roboto, Helvetica, Arial, sans-serif;
}

/* dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1f1f;
    --bg-alternate: #323232;
    --header: #111111;
    --text: #dfdfdf;
    --text-alternate: #9a9a9a;
    --text-inverted: #000000;
    --accent-alternate: Skyblue;
    --shadow: rgba(0, 0, 0, 0.5);
    --outline: #5f5f5f;
  }
}




/* everything header */
header {
  background-color: var(--header);
  width: 100vw;
  color: var(--text-alternate);
  position: fixed;
  top: 0;
  box-shadow: 0 1px 3px var(--shadow);
}

.header-flexbox {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 0 0.3em;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.header-flexbox .name {
  margin-right: auto;
  color: var(--text-alternate);
  padding: 0.3em;
  text-decoration: none;
  font-weight: bold;
  font-size: 2em;
  font-variant: small-caps;
}

.button {
  display: block;
  color: var(--text-inverted);
  font-size: 1.1em;
  font-weight: bold;
  margin: 0.3em;
  padding: 0.5em;
  background: var(--accent);
  border-radius: 3px;
  box-shadow: 0 1px 3px var(--shadow);
}

.button:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

/* mobile menu */
.menu-button {
  display: none;
  color: var(--text-inverted);
  font-size: 1.1em;
  font-weight: bold;
  margin: 0.3em;
  padding: 0.5em;
  background: var(--accent);
  border-radius: 3px;
  box-shadow: 0 1px 3px var(--shadow);
}

.mobilelist {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 0.3em 0;
  min-height: 100vh;
}

.mobilelist-item {
  display: block;
  font-size: 1.5em;
  font-weight: bold;
  text-align: center;
  color: var(--text-alternate);
  padding: 0.5em;
  margin: 0.3em;
}




/* i don't know why this is needed to keep the header full-wlidth */
body {
  margin: 0;
}

main {
  margin: 3em auto 0;
  padding: 1em;
  max-width: 800px;
  font-size: 1.1em;
}




/* miscellaneous things */
p {
  line-height: 1.5;
}

li {
  margin: 0.7em 0;
}

.code {
  font-family: monospace;
  font-size: 1.2em;
  color: var(--text);
  background: var(--header);
  border: 1px solid var(--outline);
  border-radius: 3px;
}

h1,h2,h3,h4 {
  color: var(--accent);
  font-weight: bold;
  margin-top: 1em;
}

/* links */
a {
  color: var(--accent-alternate);
  text-decoration: none;
}

a:hover {
  text-decoration: underline 1.5px;
}

/* external link icon */
a[href^="https://"]::after {
  content: "";
  width: 16px;
  height: 16px;
  margin-left: 4px;
  background-image: url("/images/external.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  display: inline-block;
}

.divider {
  /*border-top: 4px solid  var(--outline);*/
  margin: 2em 0;
  box-shadow: 0 1px 3px var(--shadow);
}

.center-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-title {
  font-size: 2em;
  color: var(--text-alternate);
}

.page-image {
  /* ??? */
  width: 100%;
  text-align: center;
  border-radius: 3px;
  margin: 1em 0;
  box-shadow: 0 1px 3px var(--shadow);
}




/* everything footer */
footer {
  margin: 0 auto;
  padding: 1em;
  text-align: center;
  font-size: 1em;
  color: var(--text-alternate);
  max-width: 800px;
}

#mobilefooter {
  display: none;
  margin: 0 auto;
  padding: 1em;
  text-align: center;
  font-size: 1em;
  color: var(--text-alternate);
  max-width: 800px;
}

footer p {
  margin: 0.3em;
}

footer img {
  padding: 0.5em;
}




/* responsive design */
@media screen and (max-width: 700px) {

  .header-flexbox .button {
    display: none;
  }
  
  .menu-button {
    display: block;
  }
  
  footer {
    display: none;
  }
  
  #mobilefooter {
    display: block;
  }
  
  a:hover {
  text-decoration: none;
  }
}
