@font-face {
  font-family: "Pixel Comic Sans";
  src: url("/pixel-comic-sans.woff2") format("woff2");
}
* {
  box-sizing: border-box;
}

body {
  /* background-color: #afd1fc; */
  background-image: url(/sky.png);
  background-size: 512px 512px;
  image-rendering: pixelated;
  background-attachment: fixed;
  background-position: top center;
  font-family: "Pixel Comic Sans";
  margin: 0;
  color: #284972;
  overflow-x: hidden;
  cursor: url("/cursor-default.cur"), auto;
}

.sr-only {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button {
  cursor: url("/cursor-point.cur"), auto;
  font-family: "Pixel Comic Sans";
  padding: 0;
  border: 0 none;
}

header {
  height: 4rem;
  width: 100%;
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
}
header .inner {
  display: flex;
  width: 100%;
  max-width: 1080px;
  justify-content: end;
  align-items: center;
  padding: 0 1rem;
  margin: auto;
}
header .inner .user {
  height: 32px;
  background-color: #666666;
  border: 2px solid #aaa;
  box-shadow: 0 0 0 2px #444444;
  color: #ffffff;
  display: flex;
  align-items: center;
  padding: 2px 4px;
  gap: 6px;
  text-decoration: none;
}
header .inner .user .pfp {
  height: 24px;
  width: 24px;
  image-rendering: pixelated;
}

a:any-link {
  cursor: url("/cursor-point.cur"), auto;
}

a.big-button {
  height: 3rem;
  width: fit-content;
  margin: auto;
  padding: 0 1rem;
  gap: 1rem;
  display: flex;
  align-items: center;
  border: 2px solid #1263b7;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
  background-color: #1f88f7;
  color: #ffffff;
  text-decoration: none;
  outline: none;
  font-size: 1.25rem;
  user-select: none;
  user-drag: none;
}
a.big-button:active {
  background-color: #60a3f5;
}
a.big-button:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3), 0 0 0 2px #afd1fc, 0 0 0 6px #1f88f7;
}
a.big-button img {
  height: 32px;
  image-rendering: pixelated;
}

.app-grid-container, aside.login-container {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(192px, 1fr));
  width: 100%;
  max-width: 1080px;
  margin: auto;
  margin-top: 6rem;
  margin-bottom: 6rem;
  overflow: visible;
}
.app-grid .app-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 128px;
}
.app-grid .app {
  height: 96px;
  position: relative;
  outline: none;
}
.app-grid .app:not(.deactivated):hover span {
  scale: 1.2;
  color: #284972;
  transition: scale 60ms ease-out, color 60ms linear;
}
.app-grid .app:not(.deactivated):hover .icon {
  transition: bottom 60ms ease-out;
  bottom: 40px;
}
.app-grid .app:not(.deactivated):focus-visible .cloud {
  filter: brightness(90%);
  transition: none;
}
.app-grid .app:not(.deactivated):focus-visible span {
  scale: 1.2;
  color: #284972;
  transition: none;
}
.app-grid .app:not(.deactivated):focus-visible .icon {
  transition: none;
  bottom: 40px;
}
.app-grid .app.deactivated {
  cursor: default;
  opacity: 0.25;
}
.app-grid .app .cloud {
  height: 96px;
  image-rendering: pixelated;
  user-select: none;
  transition: filter 160ms linear;
}
.app-grid .app .icon {
  transition: bottom 160ms ease-out;
  height: 64px;
  image-rendering: pixelated;
  user-select: none;
  position: absolute;
  bottom: 32px;
  left: 60px;
}
.app-grid .app span {
  transition: scale 160ms ease-out, color 160ms linear;
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 100%;
  text-align: center;
  color: #5174a0;
}
.app-grid > :nth-child(0) .app {
  transform: translate(0px, 12px);
}
.app-grid > :nth-child(1) .app {
  transform: translate(10px, -4px);
}
.app-grid > :nth-child(2) .app {
  transform: translate(6px, 2px);
}
.app-grid > :nth-child(3) .app {
  transform: translate(8px, 12px);
}
.app-grid > :nth-child(4) .app {
  transform: translate(-4px, 2px);
}
.app-grid > :nth-child(5) .app {
  transform: translate(-8px, 6px);
}
.app-grid > :nth-child(6) .app {
  transform: translate(4px, -4px);
}
.app-grid > :nth-child(7) .app {
  transform: translate(2px, 6px);
}
.app-grid > :nth-child(8) .app {
  transform: translate(-2px, 0px);
}
.app-grid > :nth-child(9) .app {
  transform: translate(6px, -6px);
}
.app-grid > :nth-child(10) .app {
  transform: translate(-8px, -8px);
}
.app-grid > :nth-child(11) .app {
  transform: translate(-6px, 10px);
}
.app-grid > :nth-child(12) .app {
  transform: translate(-2px, -4px);
}
.app-grid > :nth-child(13) .app {
  transform: translate(-16px, 10px);
}
.app-grid > :nth-child(14) .app {
  transform: translate(-8px, 4px);
}
.app-grid > :nth-child(15) .app {
  transform: translate(-12px, -6px);
}
.app-grid > :nth-child(16) .app {
  transform: translate(16px, 4px);
}
.app-grid > :nth-child(17) .app {
  transform: translate(-10px, -2px);
}
.app-grid > :nth-child(18) .app {
  transform: translate(-12px, 12px);
}
.app-grid > :nth-child(19) .app {
  transform: translate(-16px, 10px);
}

section, footer {
  max-width: 800px;
  padding: 1.5rem 2rem;
  margin: auto;
  background-color: #d8e9ff;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #5174a0;
}
section:not(:last-child), footer:not(:last-child) {
  margin-bottom: 0.5rem;
}
section:first-child, footer:first-child {
  margin-top: 6rem;
}
section:last-child, footer:last-child {
  margin-bottom: 2rem;
}
section p:not(:last-child), footer p:not(:last-child) {
  margin-bottom: 1rem;
}
section h1:not(:last-child), section h2:not(:last-child), footer h1:not(:last-child), footer h2:not(:last-child) {
  margin-bottom: 0.75rem;
}
section p, footer p {
  color: #5174a0;
}
section a:not(.big-button), footer a:not(.big-button) {
  color: #284972 !important;
}

section:has(.blarg-sit) {
  position: relative;
}

.blarg-sit {
  position: absolute;
  top: -80px;
  right: 2rem;
  width: 96px;
  image-rendering: pixelated;
  cursor: url("/cursor-point.cur"), auto;
}

.hidden {
  display: none;
}

section:first-of-type {
  /* background: linear-gradient(to bottom, #e0eeff, #cdf); */
}

section.buttons {
  padding: 1rem 2rem;
}
section.buttons .grid {
  display: grid;
  /* justify-content: space-between; */
  flex-wrap: wrap;
  grid-template-columns: repeat(auto-fit, 88px);
  gap: 0.25rem;
}
section.buttons .grid:not(:last-child) {
  margin-bottom: 1rem;
}
section.buttons .grid .button {
  width: 88px;
  height: 31px;
  background-color: #5174a0;
  outline: none;
}
section.buttons .grid .button img {
  image-rendering: pixelated;
}
section.buttons .grid .button:focus-visible {
  box-shadow: 0 0 0 2px #d8e9ff, 0 0 0 6px #1f88f7;
  z-index: 10;
}

@keyframes pop-out {
  from {
    scale: 0.9;
    opacity: 0;
  }
  to {
    scale: 1;
    opacity: 1;
  }
}
@keyframes pop-back {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
::backdrop {
  animation: pop-back 160ms ease-out;
}

#btn-dialog {
  width: 100%;
  max-width: 320px;
  box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 0.2);
}
#btn-dialog:open {
  animation: pop-out 160ms ease-out;
}
#btn-dialog textarea {
  display: block;
  width: 100%;
  resize: none;
  height: 5rem;
  margin-bottom: 0.5rem;
}
#btn-dialog button {
  height: 2rem;
  padding: 0 0.5rem;
  gap: 1rem;
  display: flex;
  align-items: center;
  border: 2px solid #444444;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
  background-color: #666666;
  color: #ffffff;
  text-decoration: none;
  outline: none;
  font-size: 1rem;
  user-select: none;
  user-drag: none;
}
#btn-dialog button:active {
  background-color: #777777;
}
#btn-dialog button:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3), 0 0 0 2px #afd1fc, 0 0 0 6px #1f88f7;
}

section:has(#flake) {
  position: relative;
}
section:has(#flake) #flake {
  position: absolute;
  top: -36px;
  right: -32px;
  width: 88px;
  height: 80px;
  z-index: 10;
  image-rendering: pixelated;
}

section.no {
  padding: 0.75rem 2rem 1rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(4rem, 1fr));
  justify-content: space-between;
}
section.no div {
  display: flex;
  align-items: center;
  flex-direction: column;
}
section.no div div {
  width: 0px;
  white-space: nowrap;
  font-size: 0.7rem;
  color: #5174a0;
}
section.no div img {
  image-rendering: pixelated;
  margin-bottom: 0.25rem;
}

.serverpics {
  display: flex;
  /* width: 100%; */
  gap: 0.5rem;
  margin-left: -1rem;
  margin-right: -1rem;
  margin-bottom: 1rem;
}
.serverpics figure {
  width: 0;
  flex: 1 1;
  margin: 0;
  background: #fff;
  border: 2px solid #5174a0;
  padding: 2px;
  color: #5174a0;
}
.serverpics figure img {
  width: 100%;
}
.serverpics figure figcaption {
  padding: 0 calc(1rem - 4px);
}

ul.serverparts {
  list-style-type: none;
  padding-left: 0;
  margin: inherit;
  background-color: #ffe;
  border: 2px solid #ca4;
  margin: 1rem -1rem;
  padding: 0.75rem calc(0.5rem - 4px);
  max-width: 24rem;
  box-shadow: 6px 6px 0 0 rgba(0, 0, 0, 0.1);
}
ul.serverparts li {
  margin: inherrit;
  display: flex;
  padding: 0 0.5rem;
  border-bottom: 2px solid #fea;
}
ul.serverparts li:not(:last-child) {
  margin-bottom: 0.5rem;
}
ul.serverparts li b {
  width: 4rem;
  display: block;
  color: #640;
}
ul.serverparts li span {
  flex: 1 1;
  color: #5174a0;
  color: #a82;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

section.deps {
  display: flex;
  padding-right: 0;
}
section.deps span {
  flex-shrink: 0;
  width: fit-content;
}
section.deps marquee {
  width: 0;
  flex-grow: 1;
}
section.deps marquee span.dep {
  margin-right: 1rem;
}
section.deps marquee span.dep .version {
  color: #5174a0;
}
