:root {
  --width: 128px;
  --height: 128px;
}

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  background-color: #00807F;
  color: white;
  position: relative;
  min-height: 100vh;
}

.readme {
  background-color: black;
}

.folder {
  left: calc(var(--left) - var(--width) / 2);
  top: calc(var(--top) - var(--height) / 2);
  width: calc(var(--width) * 1.25);
  height: var(--height);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.folder:hover {
  outline: 1px dotted;
  outline-offset: 0;
}

img {
  box-sizing: content-box;
  width: calc(var(--width) / 2);
  height: calc(var(--height) / 2);
  image-rendering: pixelated;
  padding-bottom: .5rem;
}

main {
  margin: 2rem;
}

#desktop {
  margin: 0;
}

.win95-btn {
  position: fixed;
  right: 1rem;
  bottom: 2.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border: 2px solid;
  border-color: #ffffff #3f3f3f #3f3f3f #ffffff;
  background: #c0c0c0;
  color: #000000;
  cursor: pointer;
}

.win95-btn:active {
  border-color: #3f3f3f #ffffff #ffffff #3f3f3f;
}

a {
  color: white;
  text-decoration: none;
}

ul {
  list-style: none;
}

.centered {
  width: 100%;
  text-align: center;
  padding: .5rem;
}

nav {
  top: 0;
}

footer {
  position: fixed;
  bottom: 0;
}

.folder-pos {
  position: absolute;
  touch-action: none;
  user-select: none;
}

.window95 {
  position: fixed;
  top: 4rem;
  right: 2rem;
  width: 320px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #3f3f3f #3f3f3f #ffffff;
  color: #000000;
  z-index: 2000;
}

.window95.hidden {
  display: none;
}

.window95-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0.4rem;
  background: #000080;
  color: #ffffff;
  font-size: 0.85rem;
}

.window95-title button {
  width: 22px;
  height: 22px;
  border: 2px solid;
  border-color: #ffffff #3f3f3f #3f3f3f #ffffff;
  background: #c0c0c0;
  color: #000000;
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.window95-title button:active {
  border-color: #3f3f3f #ffffff #ffffff #3f3f3f;
}

.window95-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.6rem;
}

#identicon-input {
  width: 100%;
  padding: 0.3rem;
  border: 2px solid;
  border-color: #3f3f3f #ffffff #ffffff #3f3f3f;
  background: #ffffff;
  color: #000000;
  font-family: "JetBrains Mono", monospace;
}

#identicon-canvas {
  width: 160px;
  height: 160px;
  border: 2px solid;
  border-color: #3f3f3f #ffffff #ffffff #3f3f3f;
  background: #ffffff;
  image-rendering: pixelated;
}

#identicon-status {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.75rem;
}

.folder span {
  display: block;
  width: 100%;
  text-align: center;
  word-break: break-all;
}
