/*
 * PixyMU classic frame artwork, in the style of the 2018 OpenMu.com layout. Loaded after classic.css
 * (not on the WebShop, which has its own standalone frame).
 * The images in ../img/classic/frame/ are original, generated by .local/scripts/build-classic-frame.py:
 * page.png (page column with stone pillars, repeat-y), line.png (15px carved separator), menu.png (menu strip),
 * box-bg.png (side box slate), center-bg.png (centre box pattern), corner-*.png and motif-*.png (chrome caps),
 * new.gif (the NEW badge). As on the original site, a box's title sits inside its top cap and rows are dark glass.
 */

/* ---------- Page column, separators, menu strip ---------- */
#om-main { background: #151a19 url('../img/classic/frame/page.png') center top repeat-y; }
.om-line { height: 15px; background: url('../img/classic/frame/line.png') center top no-repeat; }
#om-header nav { background: #111516 url('../img/classic/frame/menu.png') center top repeat; }

.om-menu { gap: 2px; padding: 3px 0; }
.om-menu li { background: rgba(0, 0, 0, .4); border: 0; box-shadow: none; transition: background-color .15s; }
.om-menu a { padding: 5px 5px; font-weight: normal; transition: color .15s; }
.om-menu li:hover, .om-menu li.is-active { background: rgba(0, 0, 0, .62); box-shadow: none; }
.om-menu li:hover a { color: var(--om-link-hover); }
.om-menu li.is-active a { color: #fff; }

/* ---------- Side boxes (200px): slate body, chrome corners and centre ornament top and bottom ---------- */
.om-box {
  background:
    url('../img/classic/frame/corner-tl.png') left top no-repeat,
    url('../img/classic/frame/corner-tr.png') right top no-repeat,
    url('../img/classic/frame/corner-bl.png') left bottom no-repeat,
    url('../img/classic/frame/corner-br.png') right bottom no-repeat,
    url('../img/classic/frame/motif-top.png') center top no-repeat,
    url('../img/classic/frame/motif-bottom.png') center bottom no-repeat,
    linear-gradient(180deg, rgba(0, 0, 0, .45), transparent 16px, transparent calc(100% - 16px), rgba(0, 0, 0, .45)),
    #1b2022 url('../img/classic/frame/box-bg.png') center top repeat;
  border: 1px solid #000;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.om-box-top { height: 25px; background: none; border-radius: 0; }
.om-box-bottom { height: 24px; background: none; border-radius: 0; }
/* Measured in Edge: the longest title (11px, 186px) and step line (10.5px, 180px) stay on one line. */
.om-box-container { padding: 0 8px; }
.om-box-container > b {
  margin: 0 -4px 6px;
  padding: 0;
  font-size: 11px;
  background: none;
  border: 0;
  text-shadow: 0 1px 0 #000, 0 0 4px #000;
}
.om-box-container li { background: rgba(0, 0, 0, .4); border: 0; }
.om-ranking li.om-rank-head { background: none; }
.om-steps .om-step { font-size: 10.5px; text-shadow: 0 1px 0 #000; }
.om-status { border-top-color: rgba(0, 0, 0, .55); box-shadow: 0 -1px 0 rgba(255, 255, 255, .05); }
.om-login button { background: rgba(0, 0, 0, .55); }

/* ---------- Centre box (526px, or 940px on wide pages) ---------- */
.om-center {
  background:
    url('../img/classic/frame/corner-tl.png') left top no-repeat,
    url('../img/classic/frame/corner-tr.png') right top no-repeat,
    url('../img/classic/frame/corner-bl.png') left bottom no-repeat,
    url('../img/classic/frame/corner-br.png') right bottom no-repeat,
    url('../img/classic/frame/motif-top-wide.png') center top no-repeat,
    url('../img/classic/frame/motif-bottom-wide.png') center bottom no-repeat,
    linear-gradient(180deg, rgba(0, 0, 0, .45), transparent 16px, transparent calc(100% - 16px), rgba(0, 0, 0, .45)),
    #1d2326 url('../img/classic/frame/center-bg.png') center top repeat;
  border: 1px solid #000;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.om-center-top { height: 25px; background: none; border-radius: 0; }
.om-center-bottom { height: 25px; background: none; border-radius: 0; }

/* ---------- [News] rows and the NEW badge ----------
   As on OpenMu (a table with 1px cell spacing), the title, author and content are each a see-through
   black panel with a 1px gap between them. */
.om-news { border: 0; background: none; }
.om-news-head { padding: 3px 6px; font-size: 11px; background: rgba(0, 0, 0, .4); }
.om-news-by { margin-top: 1px; padding: 2px 6px; font-size: 12px; background: rgba(0, 0, 0, .4); }
.om-news-body { margin-top: 1px; background: rgba(0, 0, 0, .4); }
.om-news-body .om-shop-list li { background: rgba(0, 0, 0, .35); border-color: rgba(0, 0, 0, .55); }
img.om-new {
  display: inline-block;
  width: 22px;
  height: 14px;
  margin: -5px 0 0 1px;
  padding: 0;
  vertical-align: top;
  border: 0;
  background: none;
  animation: none;
  image-rendering: pixelated;
}
