@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {
  --border: 1px solid var(--color-border);
  --color-page-bg: light-dark(#ffffef, #021313);
  --color-content-bg: light-dark(#eeeede, #001919);
  --color-fg: light-dark(#666666, #007342);
  --color-border: var(--color-fg);
  --color-text-alt: var(--color-fg);
  --color-text-main: var(--color-fg);
  --font-main: "VT323", monospace;
  --font-size-blog-post-title: x-large;
  --font-size-header: 200%;
  --font-size: 14pt;
  --font-size-small: 12pt;
  --main-width: min(100vw, 666px);
  --num-buttons: calc(2 * 23);
  color-scheme: light dark;
}

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

html {
  height: 100%;
}

body {
  background: var(--color-page-bg);
  color: var(--color-text-main);
  display: grid;
  gap: 10px;
  height: 100%;
  justify-items: center;
  margin: 0;
  line-height: 1.3;
  font-variant-ligatures: none;
}

h1 {
  margin: 0;
  font-size: 200%;
}
h2 {
  font-size: 150%;
}
h3 {
  font-size: 125%;
  margin-bottom: 0;
}

hr {
  border: none;
  border-top: 1px dashed var(--color-fg);
  margin: 0 auto;
  width: 50%;
}

#content-container,
#menu-container,
#buttons-container {
  background: var(--color-content-bg);
}

#header-and-content-container {
  max-width: var(--main-width);
  width: 100%;
}

#content-container,
#menu-container {
  border-radius: var(--border-radius);
  border: var(--border);
  font-family: var(--font-main);
  font-size: var(--font-size);
  height: fit-content;
  max-width: var(--main-width);
  padding: 10px;
  width: 100%;
}

#menu-and-buttons-container {
  align-self: end;
  margin-bottom: 10px;
  width: var(--main-width);
}

#header {
  font-family: var(--font-main);
  font-size: var(--font-size-header);
  margin-bottom: 10px;
}

#content {
  max-height: 70vh;
  overflow: auto;
  text-align: justify;
}

#content img {
  max-width: 100%;
}

.blog-post-list {
  list-style: "";
  padding: 0;
  margin: 0;
}

#content > *:first-child {
  margin-top: 0;
}
#content > *:nth-child(3) {
  margin-top: 0;
}
#content > *:last-child {
  margin-bottom: 0;
}

#content > .blog-post-title {
  margin: 0;
  margin-top: -10px;
}

#content > .blog-post-date-text {
  font-size: var(--font-size-small);
  margin-top: -5px;
}

.blog-post-tag-list {
  font-size: var(--font-size-small);
}

#content > blockquote {
  border-left: var(--border);
  margin-left: 10px;
  padding-left: 10px;
  margin-right: 0;
}

#content > p {
  margin-top: 0;
}

#content > pre {
  white-space: pre-wrap;
}

code {
  font-size: var(--font-size-small);
  font-family: var(--font-main);
  margin-left: 10px;
  padding-left: 10px;
  margin-right: 0;
}

#menu-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  padding: 0;
}

#menu-container > a {
  padding-bottom: 2px;
  text-align: center;
  width: 100%;
}

#menu-container > a:not(:last-child) {
  border-right: 1px solid var(--color-border);
}

.menu-selected {
  background: var(--color-text-main);
  color: var(--color-content-bg);
}

#buttons-container {
  align-self: end;
  border-radius: var(--border-radius);
  border: var(--border);
  height: 35px;
  margin-top: 10px;
  max-width: var(--main-width);
  overflow: hidden;
}

#buttons {
  animation: buttons-marquee infinite 10s linear;
  animation-play-state: playing;
  padding-top: 1px;
  white-space: nowrap;
  width: calc(var(--num-buttons)*88px + var(--num-buttons)*4px + 44px);
}

#buttons:hover {
  animation-play-state: paused;
}

@keyframes buttons-marquee {
  to {
    transform: translateX(-50%);
  }
}

a {
  color: unset;
}
a:hover {
  animation: text-link 1s infinite alternate;
}

@keyframes text-link {
  to {
    background: var(--color-text-main);
    color: var(--color-content-bg);
  }
}

.selfie {
  font-size: 8pt;
}
#selfie-light {
  display: none;
}
#selfie-dark {
  display: block;
}
@media (prefers-color-scheme: light) {
  #selfie-dark {
    display: none;
  }
  #selfie-light {
    display: block;
  }
}
