@font-face {
  font-family: "ChicagoKare";
  src: url("../assets/fonts/ChicagoKare-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "BitmapArial";
  src: url("../assets/fonts/Bitmap-Arial-11.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
}

:root {
  --chicago-font-bump: 2px;
}

html,
body {
  background: #000;
  overflow: hidden;
}

.app,
.app * {
  font-family: "BitmapArial", "Arial", sans-serif;
  font-size: 9px;
}

.menubar,
.menu > .title:not(.menu-apple-title) {
  font-family: "ChicagoKare", "Charcoal", sans-serif;
  font-size: calc(12px + var(--chicago-font-bump));
}

.menubar .clock,
.menubar .active-application span {
  font-family: "ChicagoKare", "Charcoal", sans-serif;
  font-size: calc(12px + var(--chicago-font-bump));
}

.static-scene {
  height: 100%;
}

.app {
  overflow: hidden;
}

.static-scene .menubar,
.static-scene .desktop-icon-column a,
.static-scene .desktop-right a,
.static-scene .control-box,
.static-scene .resize-handle {
  pointer-events: none;
}

.static-scene .profile-window .control-box {
  pointer-events: auto;
}

.static-scene .profile-window .resize-handle {
  pointer-events: auto;
}

.static-scene .desktop-icon-column a.desktop-profile-link-launcher {
  pointer-events: auto;
}

.static-scene .menubar .clock {
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
}

.menu > .title.icon.menu-apple-title {
  background-image: url("../assets/img/ui/icons-small/apple.png");
  background-position: center calc(50% - 1px);
  background-repeat: no-repeat;
  background-size: 12px 15px;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 18px;
  font-size: 12px;
  line-height: 18px;
}

.desktop {
  position: relative;
  overflow: hidden;
}

.desktop-icon-column {
  margin-top: 10px;
}

.desktop-right {
  margin-top: 10px;
  margin-right: 10px;
  justify-content: flex-end;
}

.profile-wrapper {
  z-index: 30;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.profile-window {
  width: min(620px, calc(100vw - 72px));
}

.profile-window .header {
  background: #dadada;
}

.profile-window .header .title {
  font-family: "ChicagoKare", "Charcoal", sans-serif;
  font-size: calc(12px + var(--chicago-font-bump));
  font-weight: normal;
}

.window.about.profile-window .contents {
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background-color: #ddd;
  border: 1px solid #000;
  font-family: "BitmapArial", "Arial", sans-serif;
  font-size: 9px;
  letter-spacing: 0.4px;
  overflow: hidden;
}

.profile-window .profile-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  box-shadow: inset 1px 1px #fff, inset -1px -1px #b3b3b3;
  padding: 7px;
}

.window.about.profile-window .about-body.profile-body {
  padding: 7px;
}

.profile-window .profile-hero {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid #000;
  box-shadow: -1px -1px #888, 1px 1px #fff;
  background: #fff;
  padding: 12px;
}

.profile-window .profile-pic-wrap {
  width: 110px;
  height: 110px;
  background: #d8d8d8;
  border: 1px solid #777;
  box-shadow: inset 1px 1px #fff, inset -1px -1px #999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 110px;
}

.profile-window .profile-pic {
  width: 82px;
  height: 82px;
  image-rendering: pixelated;
}

.profile-window .profile-copy {
  flex: 1;
  min-width: 0;
  color: #000;
}

.profile-window .profile-copy h1 {
  margin: 0 0 8px;
  font-family: "ChicagoKare", "Charcoal", sans-serif;
  font-size: calc(22px + var(--chicago-font-bump));
  font-weight: normal;
}

.profile-window .profile-copy p {
  margin: 0 0 8px;
  line-height: 1.45;
  font-size: 9px;
}

.window.about.profile-window .about-greets.profile-links {
  border-top: 1px solid #000;
  max-height: none;
  overflow: hidden;
  background: #eee;
  padding: 12px 10px 10px;
}

.profile-window .profile-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.profile-window .profile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: calc(12px + var(--chicago-font-bump));
  font-family: "ChicagoKare", "Charcoal", sans-serif;
  height: 20px;
  min-width: 94px;
  padding: 0 14px;
  color: #000;
  text-decoration: none;
  border-radius: 3px;
  border: 1px solid #000;
  background: #dedede;
  box-shadow: var(--button-box-shadow);
}

.profile-window .profile-button:active {
  color: #fff;
  background: #666;
  box-shadow:
    inset -1px -1px #888,
    inset -2px -2px #777,
    inset 1px 1px #444,
    inset 2px 2px #555;
}

.profile-window .resize-handle {
  position: absolute;
  right: 4px;
  bottom: 4px;
  cursor: nwse-resize;
  touch-action: none;
}

@media (max-width: 760px) {
  .menubar,
  .desktop div[class^="desktop-left"],
  .desktop .desktop-right,
  .desktop-icon-column,
  .desktop-right {
    display: none;
  }

  .desktop {
    background: #dadada;
    align-items: stretch;
    justify-content: stretch;
  }

  .profile-wrapper {
    position: static;
    transform: none;
    width: 100%;
    top: auto;
    left: auto;
  }

  .profile-window {
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
  }

  .profile-window .contents {
    flex: 1 1 auto;
    min-height: 0;
  }

  .profile-window .profile-hero {
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .profile-window .profile-copy {
    width: 100%;
  }
}
