html, body {
  margin: 0;
  height: 100%;
}

body {
  overflow: hidden;
  background: #8080b6;
  color: #000;
  font-family: "Chicago", "Charcoal", "Geneva", "Helvetica", sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: none;
  text-rendering: optimizeSpeed;
}

.menubar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 19px;
  background: #d8d8d8;
  border-bottom: 1px solid #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  box-sizing: border-box;
  z-index: 50;
  font-weight: 700;
  font-size: 12px;
}

.menu-left,
.menu-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.apple {
  font-size: 14px;
  line-height: 1;
}

.help {
  margin-left: 6px;
}

.finder-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  border-left: 1px solid #000;
  padding-left: 8px;
}

.mini-face {
  width: 14px;
  height: 14px;
  display: inline-block;
  background:
    linear-gradient(90deg, #f6f6f6 0 49%, #75a2ea 49% 100%);
  border: 1px solid #000;
  position: relative;
}

.mini-face::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 1px;
  height: 9px;
  background: #000;
}

.mini-face::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 3px;
  width: 8px;
  height: 6px;
  border-top: 1px solid #000;
  border-radius: 0 0 10px 10px;
}

.apple-menu {
  position: fixed;
  top: 19px;
  left: 9px;
  width: 196px;
  background: #d8d8d8;
  border: 2px solid #000;
  box-shadow: 1px 1px 0 #888;
  z-index: 45;
}

.menu-item {
  position: relative;
  padding: 3px 22px 3px 14px;
  font-size: 12px;
  line-height: 1.15;
  white-space: nowrap;
}

.menu-item.top {
  padding-top: 4px;
}

.menu-item.has-arrow::after {
  content: "▶";
  position: absolute;
  right: 7px;
  top: 3px;
  font-size: 10px;
}

.separator {
  height: 1px;
  background: #8e8e8e;
  border-bottom: 1px solid #fff;
  margin: 2px 0;
}

.desktop-pattern {
  position: fixed;
  inset: 19px 0 0 0;
  background-color: #8a89be;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='140' viewBox='0 0 160 140'><g opacity='0.16'><path d='M71 13l28 11-8 37-41 9z' fill='none' stroke='%236e6fa9' stroke-width='2'/><path d='M77 22l20 9-6 26-30 7z' fill='none' stroke='%239ea0cd' stroke-width='2'/><path d='M78 29c5-6 12-8 19-7' fill='none' stroke='%239ea0cd' stroke-width='2'/><path d='M80 28c-6 8-6 16 0 22' fill='none' stroke='%236e6fa9' stroke-width='2'/><path d='M86 43c-4 5-3 11 2 15' fill='none' stroke='%236e6fa9' stroke-width='2'/></g></svg>");
  background-size: 160px 140px;
  z-index: 1;
}

.desktop-icons {
  position: fixed;
  top: 44px;
  right: 24px;
  bottom: 14px;
  width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 5;
}

.desktop-icon {
  width: 96px;
  text-align: center;
  color: #000;
  font-size: 11px;
}

.caption {
  display: inline-block;
  margin-top: 3px;
  padding: 0 3px;
  background: rgba(255,255,255,0.72);
  transform: skew(-12deg);
}

.icon {
  margin: 0 auto;
  position: relative;
}

.icon.drive {
  width: 28px;
  height: 10px;
  margin-top: 4px;
  background: #f2f2f2;
  border: 1px solid #000;
}
.icon.drive::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 2px;
  width: 22px;
  height: 7px;
  background: #fff;
  border: 1px solid #000;
  border-bottom: none;
}

.icon.globe {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #7cd8ff 0 20%, #3f8bd5 20% 100%);
  border: 1px solid #000;
}
.icon.globe::before,
.icon.globe::after {
  content: "";
  position: absolute;
  background: #36a43b;
}
.icon.globe::before {
  width: 12px;
  height: 8px;
  left: 3px;
  top: 8px;
  border-radius: 8px 4px 8px 4px;
}
.icon.globe::after {
  width: 8px;
  height: 11px;
  right: 3px;
  top: 5px;
  border-radius: 6px;
}

.icon.note {
  width: 22px;
  height: 26px;
  background: #fff8d9;
  border: 1px solid #000;
}
.icon.note::before {
  content: "";
  position: absolute;
  right: -1px;
  top: -1px;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, transparent 50%, #d7cda0 50%);
  border-left: 1px solid #000;
  border-bottom: 1px solid #000;
}
.icon.note::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 12px;
  height: 1px;
  background: #000;
  box-shadow: 0 4px 0 #000, 0 8px 0 #000;
}

.icon.q {
  width: 24px;
  height: 24px;
  background: #fff;
  border: 1px solid #000;
}
.icon.q::before {
  content: "Q";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #6b7ddb;
}

.icon.pencil {
  width: 5px;
  height: 25px;
  background: linear-gradient(#f3c871 0 75%, #d98b53 75% 90%, #000 90% 100%);
  border: 1px solid #000;
  transform: rotate(28deg);
}

.icon.search {
  width: 24px;
  height: 24px;
}
.icon.search::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid #7bd2df;
  border-radius: 50%;
  left: 2px;
  top: 2px;
  background: rgba(255,255,255,0.45);
}
.icon.search::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 3px;
  background: #b99d52;
  border: 1px solid #000;
  transform: rotate(45deg);
  right: 0;
  bottom: 2px;
}

.icon.trash {
  width: 18px;
  height: 22px;
  background: #d7d7d7;
  border: 1px solid #000;
}
.icon.trash::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 4px;
  background: #ececec;
  border: 1px solid #000;
  left: -2px;
  top: -5px;
}
.icon.trash::after {
  content: "";
  position: absolute;
  inset: 3px 4px;
  border-left: 1px solid #999;
  border-right: 1px solid #999;
}

.trash-wrap {
  margin-top: auto;
}

.window {
  position: fixed;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  width: min(540px, calc(100vw - 220px));
  min-width: 320px;
  background: #d8d8d8;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #848484;
  z-index: 10;
}

.titlebar {
  height: 22px;
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr 22px;
  align-items: center;
  border-bottom: 1px solid #000;
  background:
    linear-gradient(#efefef, #d0d0d0);
}

.titlebar::before,
.titlebar::after {
  content: "";
  position: absolute;
  top: 9px;
  width: calc(50% - 95px);
  height: 1px;
  background: repeating-linear-gradient(to right, #000 0 1px, transparent 1px 3px);
}
.titlebar::before { left: 6px; }
.titlebar::after { right: 6px; }

.title {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  background: #d8d8d8;
  z-index: 1;
}

.title-buttons {
  width: 11px;
  height: 11px;
  border: 1px solid #000;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 18%, #d7d7d7 18% 60%, #8f8f8f 60% 100%);
  justify-self: center;
  z-index: 1;
}

.window-body {
  padding: 18px 18px 22px;
  text-align: center;
  background: #d8d8d8;
}

.intro-icon {
  margin-bottom: 10px;
}

.mini-finder {
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border: 1px solid #000;
  display: flex;
  overflow: hidden;
  box-shadow: 1px 1px 0 #fff inset;
}

.mini-left,
.mini-right {
  flex: 1;
  position: relative;
}

.mini-left {
  background: #f6f6f6;
  border-right: 1px solid #000;
}

.mini-right {
  background: #76a0ef;
}

.mini-left::before,
.mini-right::before {
  content: "";
  position: absolute;
  width: 1px;
  height: 28px;
  background: #000;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
}

.mini-left::after,
.mini-right::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 7px;
  border-bottom: 1px solid #000;
  border-radius: 0 0 10px 10px;
  left: 8px;
  top: 19px;
}

.mini-right::after {
  left: 3px;
}

.label-maker {
  display: inline-block;
  max-width: 370px;
  margin: 0 auto 16px;
  padding: 8px 10px 7px;
  border: 1px solid #000;
  background: #f7f7ef;
  font-family: "Courier New", monospace;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: 0.5px;
  text-transform: lowercase;
  box-shadow: 1px 1px 0 #fff inset;
}

.red-button {
  appearance: none;
  border: 2px solid #000;
  background: linear-gradient(#ff6a63, #cb0d0d);
  color: #fff;
  font-family: "Chicago", "Geneva", sans-serif;
  font-size: 28px;
  font-weight: 700;
  border-radius: 999px;
  min-width: 190px;
  padding: 10px 28px 12px;
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.75),
    2px 2px 0 #7b7b7b;
  cursor: pointer;
}

.red-button:active {
  transform: translate(1px, 1px);
  box-shadow:
    inset 1px 1px 0 rgba(0,0,0,0.18),
    1px 1px 0 #7b7b7b;
}

.red-button:disabled {
  cursor: wait;
}

.result {
  min-height: 26px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
}

.result.show {
  display: inline-block;
  padding: 7px 10px;
  border: 1px solid #000;
  background: #fff;
  box-shadow: 1px 1px 0 #fff inset;
}

@media (max-width: 760px) {
  .apple-menu {
    display: none;
  }

  .desktop-icons {
    right: 10px;
    width: 92px;
  }

  .window {
    width: calc(100vw - 120px);
  }

  .red-button {
    min-width: 150px;
    font-size: 22px;
  }
}

@media (max-width: 560px) {
  .desktop-icons {
    display: none;
  }

  .window {
    width: calc(100vw - 24px);
  }

  .menubar {
    font-size: 11px;
  }

  .menu-left, .menu-right {
    gap: 8px;
  }
}

.mac-face {
  width: 60px;
  height: 60px;
  margin: 0 auto 10px;
  background: #b8b3d9;
  border: 4px solid #000;
  position: relative;
}

.mac-face::before {
  content: "";
  position: absolute;
  inset: 6px;
  background: #c7c2ea;
  border: 2px solid #555;
}

.mac-face.happy::after,
.mac-face.sad::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.mac-face.happy::after {
  bottom: 18px;
  width: 20px;
  height: 10px;
  border-bottom: 3px solid #000;
}

.mac-face.sad::after {
  bottom: 18px;
  width: 20px;
  height: 10px;
  border-top: 3px solid #000;
}

.mac-face.happy {
  box-shadow:
    18px 18px 0 -14px #000,
    34px 18px 0 -14px #000;
}

.mac-face.sad {
  box-shadow:
    18px 18px 0 -14px #000,
    34px 18px 0 -14px #000;
}
