/*
 * Decoration: Windows 3.1-Inspired (html.decor-win31)
 * Windows 3.1 layout with 3D bevels and optional gradient title bars.
 * (The BeOS tab look is its own style now: beos.css.)
 */

html.decor-win31 body {
  font: bold 12px "MS Sans Serif", "Microsoft Sans Serif", Arial, sans-serif;
}

/* frame: the padding is the sizing border; inset shadows bevel it */
html.decor-win31 .wm-window {
  padding: 4px;
  background: var(--border-inactive);
  border: 1px solid var(--frame);
  box-shadow: inset 1px 1px var(--hilite), inset -1px -1px var(--shadow);
}
html.decor-win31 .wm-window.active { background: var(--border); }
html.decor-win31 .wm-window.maximized { padding: 0; border: 0; box-shadow: none; }

/* title bar */
html.decor-win31 .wm-titlebar {
  height: 20px;
  background: linear-gradient(to right, var(--title-inactive), var(--title-inactive2));
  color: var(--title-inactive-text);
  border: 1px solid var(--frame);
}
html.decor-win31 .wm-titlebar.active {
  background: linear-gradient(to right, var(--title), var(--title2));
  color: var(--title-text);
}
html.decor-win31 .wm-tabrow > .wm-titlebar { flex: 1 1 0; min-width: 0; }
html.decor-win31 .wm-tabrow > .wm-titlebar + .wm-titlebar { border-left: 0; }
html.decor-win31 .wm-title { text-align: center; line-height: 18px; }

html.decor-win31 .wm-ctlbox {
  width: 19px;
  background: var(--face);
  border-right: 1px solid var(--frame);
  position: relative;
  box-shadow: inset -1px -1px var(--shadow), inset 1px 1px var(--hilite);
}
html.decor-win31 .wm-ctlbox::after {
  content: "";
  position: absolute;
  left: 3px; right: 3px; top: 7px; height: 4px;
  background: var(--hilite);
  border: 1px solid var(--frame);
  box-shadow: 1px 1px var(--shadow);
}
html.decor-win31 .wm-btn {
  width: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--face);
  color: var(--button-text);
  border-left: 1px solid var(--frame);
  font-size: 9px;
  box-shadow: inset -1px -1px var(--shadow), inset -2px -2px var(--shadow), inset 1px 1px var(--hilite);
}
html.decor-win31 .wm-btn:active { box-shadow: inset 1px 1px var(--shadow), inset 2px 2px var(--shadow); padding: 2px 0 0 2px; }

/* menu bar and client area */
html.decor-win31 .wm-menubar {
  background: var(--menu);
  color: var(--menu-text);
  border: 1px solid var(--frame);
  border-top: 0;
}
html.decor-win31 .wm-menubar-item { padding: 2px 7px; }
html.decor-win31 .wm-menubar-item.open { background: var(--select); color: var(--select-text); }
html.decor-win31 .wm-client {
  background: var(--window);
  color: var(--window-text);
  border: 1px solid var(--frame);
  border-top: 0;
}
html.decor-win31 .wm-window.fixed .wm-client { background: var(--face); color: var(--button-text); }

/* resize handles over the 4px border */
html.decor-win31 .wm-rh-n  { top: 0;    left: 12px; right: 12px; height: 4px; }
html.decor-win31 .wm-rh-s  { bottom: 0; left: 12px; right: 12px; height: 4px; }
html.decor-win31 .wm-rh-e  { right: 0;  top: 12px;  bottom: 12px; width: 4px; }
html.decor-win31 .wm-rh-w  { left: 0;   top: 12px;  bottom: 12px; width: 4px; }
html.decor-win31 .wm-rh-nw { top: 0;    left: 0;  width: 8px;  height: 8px; }
html.decor-win31 .wm-rh-ne { top: 0;    right: 0; width: 8px;  height: 8px; }
html.decor-win31 .wm-rh-sw { bottom: 0; left: 0;  width: 12px; height: 12px; }
html.decor-win31 .wm-rh-se { bottom: 0; right: 0; width: 12px; height: 12px; }

/* icons */
html.decor-win31 .icon-label { font-weight: normal; }

/* menus */
html.decor-win31 .wm-menu {
  padding: 2px 0;
  border: 1px solid var(--frame);
  box-shadow: 2px 2px 0 var(--shadow);
}
html.decor-win31 .wm-menu-item { padding: 2px 14px 2px 0; }
html.decor-win31 .wm-menu-sep { border-top: 1px solid var(--menu-text); margin: 3px 0; }

/* dialogs */
html.decor-win31 .dialog { font-weight: normal; }
html.decor-win31 .dialog input[type=text] {
  font: inherit;
  background: var(--window); color: var(--window-text); border: 1px solid var(--frame);
}
html.decor-win31 .dialog button {
  font: inherit; font-weight: bold;
  padding: 3px 8px;
  background: var(--face);
  color: var(--button-text);
  border: 1px solid var(--frame);
  border-radius: 2px;
  box-shadow: inset -2px -2px var(--shadow), inset 2px 2px var(--hilite);
}
html.decor-win31 .dialog button:active { box-shadow: inset 2px 2px var(--shadow); }
