/* ==========================================
   Original 1984 Macintosh (System 1 / System 6) 1-Bit Monochrome Theme
   ========================================== */
.theme-mac-1984 {
  --desktop-bg: #666666;
  --window-bg: #ffffff;
  --window-border: #000000;
  --text-main: #000000;
  /* The accent, the surfaces, the bar and the second text of this look, which the desk's parts and a game in a window read; without them the first look's showed through. */
  --accent: #000000;
  --window-active-border: #000000;
  --surface: #ffffff;
  --surface-hover: #dddddd;
  --taskbar-bg: #ffffff;
  --text-secondary: #333333;
}

.theme-mac-1984 #desktop {
  background-color: #777777;
  background-image: repeating-linear-gradient(45deg, #000000 0, #000000 1px, transparent 0, transparent 50%);
  background-size: 4px 4px;
  background-repeat: repeat;  /* desktop.css sets no-repeat for wallpapers; this is a pattern */
  background-position: 0 0;
}

/* --- Windows --- */
.theme-mac-1984 .window {
  border: 2px solid #000000;
  border-radius: 0;
  box-shadow: 4px 4px 0px #000000;
  background: #ffffff;
  color: #000000;
}

.theme-mac-1984 .window.active {
  box-shadow: 6px 6px 0px #000000;
  border-color: #000000;
}

.theme-mac-1984 .window .titlebar {
  background: repeating-linear-gradient(
    to bottom,
    #ffffff 0px,
    #ffffff 1px,
    #000000 1px,
    #000000 2px
  );
  color: #000000;
  border-bottom: 2px solid #000000;
  font-family: "Chicago", "Courier New", monospace;
  font-weight: bold;
  height: 20px;
  padding: 0 4px;
}

/* The title plate is as wide as the title, centred, the stripes either side. */
.theme-mac-1984 .window .window-title {
  background: #ffffff;
  padding: 0 6px;
  flex: 0 1 auto;
  margin: 0 auto;
  min-width: 0;
  color: #000000;
  font-weight: bold;
  font-size: 11px;
  text-align: center;
  border-left: 2px solid #000000;
  border-right: 2px solid #000000;
}

.theme-mac-1984 .window .window-controls {
  order: -1;  /* at the left of the title, close box first, as on a Mac */
  flex-direction: row-reverse;
  display: flex;
  gap: 3px;
}

.theme-mac-1984 .window .window-controls button {
  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 0;
  color: #000000;
  font-size: 9px;
  font-weight: bold;
  padding: 0;
}

.theme-mac-1984 .window .window-controls button:hover {
  background: #000000;
  color: #ffffff;
}

.theme-mac-1984 .code-toolbar {
  background: #ffffff;
  border-top: 2px solid #000000;
}

.theme-mac-1984 .code-tab {
  background: #ffffff;
  border: 1px solid #000000;
  color: #000000;
  border-radius: 0;
  font-family: "Chicago", monospace;
  font-weight: bold;
}

.theme-mac-1984 .code-tab.active {
  background: #000000;
  color: #ffffff;
}

/* --- Taskbar --- */
.theme-mac-1984 #taskbar {
  background: #ffffff;
  border-top: 2px solid #000000;
  color: #000000;
}

.theme-mac-1984 .start-btn {
  background: #ffffff;
  border: 2px solid #000000;
  color: #000000;
  font-family: "Chicago", monospace;
  font-weight: bold;
  border-radius: 0;
}

.theme-mac-1984 .taskbar-windows button {
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 0;
  color: #000000;
  font-family: "Chicago", monospace;
}

.theme-mac-1984 .taskbar-windows button.active {
  background: #000000;
  color: #ffffff;
}

.theme-mac-1984 .taskbar-tray {
  padding-right: 10px;  /* the tray has a border here; keep the clock off it */
  border: 1px solid #000000;
  background: #ffffff;
}

.theme-mac-1984 .guide-btn,
.theme-mac-1984 .tray-item,
.theme-mac-1984 #clock {
  color: #000000 !important;
  font-weight: bold;
  font-family: "Chicago", monospace;
  text-shadow: none !important;
}

/* --- Context Menu & Start Menu --- */
.theme-mac-1984 .context-menu {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 0;
  box-shadow: 4px 4px 0px #000000;
  color: #000000;
}

.theme-mac-1984 .context-menu-item {
  color: #000000;
  font-family: "Chicago", monospace;
  font-weight: bold;
  border-radius: 0;
}

.theme-mac-1984 .context-menu-item:hover {
  background: #000000;
  color: #ffffff;
}

.theme-mac-1984 .start-menu {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 0;
  box-shadow: 6px 6px 0px #000000;
  color: #000000;
}

.theme-mac-1984 .start-menu-header {
  background: #000000;
  color: #ffffff;
  border-radius: 0;
}

.theme-mac-1984 .start-menu-username { color: #ffffff; font-family: monospace; }
.theme-mac-1984 .start-menu-status { color: #cccccc; }
.theme-mac-1984 .start-menu-section-title { color: #666666; }
.theme-mac-1984 .start-menu-item { color: #000000; font-family: monospace; font-weight: bold; border-radius: 0; }
.theme-mac-1984 .start-menu-item:hover { background: #000000; color: #ffffff; }
.theme-mac-1984 .start-menu-footer { background: #eeeeee; border-top: 2px solid #000000; }

/* close, minimize, zoom, then code from the left, as the other Macs */
.theme-mac-1984 .window .window-controls .btn-maximize { order: -1; }
.theme-mac-1984 .window .window-controls .btn-code { order: -2; }
