@font-face {
  font-family: xythese;
  src: url("/media/ttf/xythese-3x5.ttf");
}

:root {
  height: 100%;
}

body {
  background-color: #000000;
  color: #e6e6e6;
  margin: 0 1vw 0 1vw;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: serif;
}

main {
  display: flexbox;
  flex: 1;
}

main > hr {
  width: 55vw;
  font-size: 0;
  margin-top: 5vh;
  margin-bottom: 5vh;
  margin-left: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-top: 3px dashed #444;
}

main.constrain { /* haha rhyming */
  width: 65vw;
}

a {
  color: #ff5e00;
}

a.no-decoration {
  text-decoration: none;
  color: unset;
}

/* external link indicator */
a[target="_blank"]:not(.no-indicator):after {
  /* if you need to change the stroke color, do a s//g on stroke:*; */
  content: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 10' id='svg1' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cdefs id='defs1' /%3E%3Cg id='layer1' transform='translate(-2.6486934,-1.3197212)'%3E%3Cpath style='fill:none;stroke:%23ffffff;stroke-width:0.79375;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers' d='m 6.6145837,3.0459044 -3.5690153,4.71e-5 V 10.183263 H 10.183599 V 6.6142553' id='path1' /%3E%3Cg id='g3' style='stroke:%23ffffff;stroke-width:0.79375;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1'%3E%3Cpath style='fill:none;stroke:%23ffffff;stroke-width:0.79375;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers' d='M 8.1583492,1.7990206 H 11.547202 V 5.1041979' id='path2' /%3E%3Cpath style='fill:none;stroke:%23ffffff;stroke-width:0.79375;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers' d='M 11.589041,1.7383641 6.2756533,7.0517505' id='path3' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  display: inline-block;
  height: 1em;
  width: auto;
  padding-inline-start: 0.4em;
  aspect-ratio: 1;
  line-height: 2;
  vertical-align: text-top;
  font-size: 0.6em;
}

math {
  text-align: left;
  font-size: larger;
}

table {
  border-style: solid;
  border-collapse: collapse;
  border-color: #c0c0c0;
  border-width: 2px;
}

th, td {
  border-style: dotted;
  border-color: #808080;
  border-width: 2px;
  text-align: center;
  padding: 8px 1em 8px 1em;
}

code {
  font-size: 0.9rem;
  background-color: #232323;
  padding-inline-start: 4px;
  padding-inline-end: 4px;
}

img.badge {
  width: 88px;
  height: 31px;
}

img.no-antialiasing {
  image-rendering: optimizeSpeed;
  image-rendering: pixelated;
}

img.blog {
  width: 40%;
  height: auto;
}

img.blog-small {
  width: 30%;
  height: auto;
}

img.blog-x-small {
  width: 20%;
  height: auto;
}

img.blog-fill, img.art {
  width: 100%;
  height: auto;
}

img.table {
  width: 6em;
  height: auto;
}

img.art-showcase {
  width: auto;
  height: 10em;
}

img.art-showcase-tall {
  width: auto;
  height: 15em;
}

img.art-small {
  width: 50%;
  height: auto;
}

img.vixen,img.wolf {
  filter: invert() opacity(0.8); 
}

img.profile {
  width: 15vw;
  height: auto;
  border: solid #555;
  border-width: 0.1em;
}

button {
  background-color: #282828;
  color: #fff;
}

header {
  margin-top: 1vh;
}

header * {
  margin: 0;
}

header div {
  margin-bottom: 1vh;
}

header span.est {
  font-size: small;
  font-weight: normal;
}

footer * {
  margin: 0;
}

footer {
  vertical-align: bottom;
  margin-bottom: 1vh;
  margin-top: 1vh;
}

footer hr {
  margin-bottom: 1vh;
}

footer div {
  vertical-align: middle;
  /* margin-top: 0.5em; */
}

footer div.bottom {
  position: relative;
}

footer div.bottom img.vixen {
  left: calc(100vw - 17% - 4vw);
}

footer div.bottom img.wolf {
  left: calc(100vw - 32% - 4vw);
}

footer div.bottom img.vixen, footer div.bottom img.wolf {
  display: block;
  margin-left: auto;
  width: 20%;
  height: auto;
  z-index: -1;
  position: absolute;
  bottom: 50%;
}

blockquote, div.art {
  /* display: flex; */
  margin-left: 0;
  padding-left: 1em;
  padding-right: 1em;
  width: fit-content;
  max-width: 55vw;
  background-color: #151515;
  border-style: dotted;
  border-color: #333;
  color: #bbb;
  vertical-align: middle;
}

.footer-center-right {
  float: right;
  justify-content: right;
  text-align: right;
  vertical-align: middle;
}

.whoami-img {
  max-height: 3em;
}

.rainbow {
  background: linear-gradient(to right,
      #ff0000,
      #ff8c00,
      #fffb00,
      #00ff11,
      #0084ff,
      #a200ff,
      #ff00ea,
      #ff0000);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  text-decoration-color: transparent;
  animation: rainbow_animation 3s linear infinite;
  background-size: 40em 100% !important;
}

@keyframes rainbow_animation {
  0% {
    background-position: 0% 0;
  }

  100% {
    background-position: 46em 0;
  }
}

.disabled {
  color: #888;
}

.fake-h3 {
  font-size: large;
  font-weight: bold;
}

.mainpage-badges {
  position: absolute;
  bottom: 0;
  max-width: 80;
}

.xythese {
  font-family: xythese;
}

@media (prefers-color-scheme: light) {
  body {
    background-color: #ffffff;
    color: #000000;
  }

  a {
    color: #d94800;
  }

  img.wolf, img.wolf.profile, img.vixen {
    filter: none;
  }

  a[target="_blank"]:not(.no-indicator):after {
    content: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 10' id='svg1' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cdefs id='defs1' /%3E%3Cg id='layer1' transform='translate(-2.6486934,-1.3197212)'%3E%3Cpath style='fill:none;stroke:%23000000;stroke-width:0.79375;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers' d='m 6.6145837,3.0459044 -3.5690153,4.71e-5 V 10.183263 H 10.183599 V 6.6142553' id='path1' /%3E%3Cg id='g3' style='stroke:%23000000;stroke-width:0.79375;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1'%3E%3Cpath style='fill:none;stroke:%23000000;stroke-width:0.79375;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers' d='M 8.1583492,1.7990206 H 11.547202 V 5.1041979' id='path2' /%3E%3Cpath style='fill:none;stroke:%23000000;stroke-width:0.79375;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers' d='M 11.589041,1.7383641 6.2756533,7.0517505' id='path3' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  }

  code {
    background-color: #ccc;
  }
  
  blockquote {
    background-color: #ddd;
    border-color: #aaa;
    color: #444;
  }
}

@media screen and (max-width: 600px) {
  .mainpage-badges {
    display: none;
  }

  body {
    margin: 0 2vw 0 2vw;
  }

  .whoami-img {
    max-height: 2em;
  }

  main.constrain {
    width: 90vw;
  }

  blockquote {
    width: fit-content;
    min-width: calc(100% - 3em);
    margin-left: 1em;
    margin-right: 1em;
  }

  .hide-if-phone {
    display: none;
  }

  table {
    max-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
  }

  td, th {
    overflow-wrap: break-word;
    font-size: 0.5em;
    padding: 4px 4px 4px 4px;
  }
}
