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

@font-face {
  font-family: "nasin nanpa";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    local("nasin-nanpa"),
    url(/fonts/nasin-nanpa-4.0.2.otf) format("opentype");
}

@font-face {
  font-family: "Fairfax HD";
  font-display: swap;
  src:
    local("Fairfax HD"),
    url("/fonts/FairfaxHD.ttf") format("truetype");
}

:root {
  --font-body: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-header: "Montserrat Alternates", "Helvetica Neue", Helvetica, Arial, sans-serif
}


/* General style */

body {
  color: white;
  font-family: var(--font-body);
  margin: 48px 0 0;
}
a {
  text-decoration: none;
}
a:focus, a:hover {
  text-decoration: underline;
}
a[target="_blank"] {
  cursor: alias;
}
h1 {
  font-family: var(--font-header);
  margin-top: 6px;
  margin-bottom: 12px;
  text-align: center;
}
h2, h3 {
  font-family: var(--font-header);
  margin: 6px 0;
}

body.with-aside {
  display: flex;
}
main {
  margin-left: auto;
  margin-right: auto;
  max-width: 860px;
}
body.with-aside main {
  margin-right: unset;
}
aside {
  margin-right: auto;
}
section {
  background-color: rgba(255, 192, 203, 0.75);
  border: 2px solid #60345b;
  padding: 10px;
  margin: 8px;
}
main > section {
  border-radius: 32px;
  padding: 18px;
}
aside > section {
  border-radius: 12px;
  width: 240px;
}
@media (max-width: 620px) {
  body { margin: 0; }
  body.with-aside { flex-direction: column; }
  aside { display: flex; }
  aside > section { width: unset; }
}

/* "components" */

/* no style list */
ul.nostyle {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* twemoji */
img.emoji {
  height: 18px;
  margin: 0 .05em 0 .1em;
  vertical-align: -3px;
}

/* fonts for language elements */
.sitelen-pona {
  font-family: 'nasin nanpa';
  font-size: 1.2rem;
}
.standard-galactic {
  font-family: "Fairfax HD";
  font-size: 1.2rem;
}

/* code block */
code.block {
  display: block;
  margin: 4px;
  border-radius: 8px;
  padding: 12px;
  background-color: #20202f;
  white-space: pre-line;
}
code.select {
  user-select: all;
}

/* code reference list */
ul.reference-list {
  list-style: none;
}
ul.reference-list li {
  margin-bottom: 20px;
}
h3[id] {
  position: relative;
}
h3[id] > a {
  font-size: medium;
  opacity: 0;
  position: absolute;
  left: -20px;
}
h3[id]:hover > a {
  opacity: 1;
}

/* details/summary  elements */
details {
  margin: 16px 0;
}
summary h3 {
  display: inline;
}

/* table alignment */
tbody.center-1 tr td:nth-child(1), thead.center-1 tr td:nth-child(1),
tbody.center-2 tr td:nth-child(2), thead.center-2 tr td:nth-child(2),
tbody.center-3 tr td:nth-child(3), thead.center-3 tr td:nth-child(3) {
  text-align: center;
}

/* image table*/
.image-table {
  display: flex;
  flex-wrap: wrap;
}
.image-table img {
  width: 256px;
  display: block;
  margin-top: 2px;
}
.image-table a {
  text-align: center;
  padding: 4px;
}

/* tooltip */
.tooltip-container {
  position: relative;
  width: min-content;
}
[role="tooltip"] { /* tooltip span itself */
  position: absolute;
  background-color: pink;
  padding: 2px 4px;
  border-radius: 6px;
  transform: translateX(-50%);
  left: 50%;
  width: max-content;
  transition: .1s linear all;
  top: -22px;
  opacity: 0;
  pointer-events: none;
}
[role="tooltip"]::before { /* pointer arrow */
  content: " ";
  position: absolute;
  border: 5px solid transparent;
  border-top-color: pink;
  margin-left: -5px;
  width: 0;
  height: 0;
  left: 50%;
  top: 100%;
}
[role="tooltip"]::after { /* bounding box to make hovering over tooltip itself easier */
  content: " ";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: calc(100% + 12px);
  z-index: -1;
}
/* show the tooltip when what it describes or it itself is hovered */
[aria-labeledby]:hover + [role="tooltip"],
[role="tooltip"]:hover {
  top: -28px;
  opacity: 1;
  pointer-events: all;
}

/* Homepage style */

/* profile */
.profile-header {
  display: grid;
  grid-template-columns: auto 1fr;
}
.profile-header img {
  margin-right: 8px;
  border-radius: 6px;
}
.profile-header h2 {
  margin: 4px 0;
}

.profile-info {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-row-gap: 6px;
  margin: 6px 0;
}
.profile-info h3 {
  margin: 0;
}

/* link list aside */
.link-list a {
  display: flex;
  align-items: center;
  width: fit-content;
}
.link-list img {
  height: 16px;
  margin-right: 4px;
}

/* status thingy */
.status-activity {
  grid-template-columns: min-content auto;
  display: grid;
}
.status-activity h2 {
  font-family: var(--font-header);
  margin-bottom: 4px;
  margin-top: 12px;
  font-size: 14px;
  text-transform: uppercase;
  grid-column-end: 3;
  grid-column-start: 1;
}
.status-activity span:not([role="tooltip"]) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.activity-images {
  margin-right: 10px;
  float: left;
  position: relative;
  grid-row-start: 2;
  grid-row-end: 6;
  height: min-content;
}
.activity-images img {
  max-height: 64px;
  border-radius: 8px;
}
.activity-images img.small-img {
  max-height: 24px;
  background-color: pink;
  padding: 2px;
}
.activity-images .tooltip-container.small {
  position: absolute;
  right: -2px;
  bottom: -2px;
}
.activity-images img.small {
  position: absolute;
  right: -2px;
  bottom: 4px;
}

#status-span {
  padding: 2px;
  border-radius: 6px;
}


/* Background */

.background {
  position: fixed;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  z-index: -1;
  user-select: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, 0);
}
@media not (prefers-reduced-motion) {
  @keyframes cumulonimbus {
    from { right: -100% }
    to { right: 0% }
  }
  .background > .cumulonimbus {
    animation-name: cumulonimbus;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-duration: 42s;
  }
}
.background > .cumulonimbus {
  position: absolute;
  width: 200vw;
  bottom: -12%;
  height: unset;
}
.background img {
  width: 100vw;
  height: 100%;
  object-fit: cover;
  object-position: 26% 30%;
}
