:root {
  --body_background_color: #222;
  --content_background_color: white;
  --theme_color: #008000;
  --header_color: #008000;
  --header_alt_color: #005000;
  --text_color: black;
  --link_color: blue;
  --comment_background_color: #ffc;
  --online_color: green;
  --offline_color: grey;
}

@media (prefers-color-scheme: dark) {
  --body_background_color: #111;
  --content_background_color: #222;
  --theme_color: #008000;
  --header_color: #008000;
  --header_alt_color: #005000;
  --text_color: white;
  --link_color: #0080ff;
  --comment_background_color: #444;
  --online_color: green;
  --offline_color: grey;
}

html {
  width: 100%;
  height: 100%;
}

body {
  min-width: 100%;
  min-height: 100%;
}

body {
  background-image: url(/media/images/tiled_background_left.svg), url(/media/images/tiled_background_right.svg);
  background-repeat: repeat-y, repeat-y;
  background-position: left top, right top;
  display: flex;
  flex-direction: column;
}

body header {
  background: var(--theme_color);
  background-image: linear-gradient(var(--header_color), var(--header_alt_color));
  box-shadow: 0 0 3pt black;
}

body main {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

body main article {
  /* Overruling picocss here to have a semi-transparent card */
  background-color: #181c25dd;
}

body img {
  border-radius: 5pt;
}

body a img {
  transition: filter 0.4s ease;
}

body a img:hover {
  filter: blur(0.25pt) contrast(75%) brightness(80%) sepia(60%);
}

body article:target {
  border: solid 2px var(--pico-primary)
}

body article .robot_render {
  border-radius: 5pt;
  box-shadow: 5px 5px 8px #2e2e2e;
}

body article .robot_labelled {
  position: relative;
}
body article .robot_labelled::after {
  content: attr(data-name);
  position: absolute;
  bottom: 0;
  left: 0;
  color: white;
  background: #0008;
  padding: 0.25rem 0.5rem 0.25rem 0.5rem;
  border-top-right-radius: 5pt;
  border-bottom-left-radius: 5pt;
}

body article .is_tall_render {
  max-height: 500pt;
}

#robot-viewer {
  display: flex;
  flex-grow: 1;
  width: auto;
  height: auto;
}

.avatar {
  width: 64pt;
  max-width: 64pt;
  height: auto;
  aspect-ratio: 1/1;
  border-radius: 50%;
}

.social_media {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
}

.social_media img {
  width: auto;
  height: 48pt;
}
