/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* donjon.css
 *
 * copyright (c) 2009-2018 drow <drow@bin.sh>
 * all rights reserved.
*/

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* common */

  h1 { text-align: center; }
  hr { border: none; border-top: 1px solid; }
  table { border-collapse: collapse; }
  .center { text-align: center; }
  table.center { margin: 0px auto; }

  optgroup {
    margin: 1ex 1em;
    font-style: normal;
    font-weight: normal;
    color: #999999;
  }
  optgroup option {
    color: #000000;
  }

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* font-family */

  body { font-family: 'Asul', sans-serif; }
  textarea { font-family: 'Asul', sans-serif; font-size: 14px; }

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* header */

  .layout_header a { text-decoration: none; }
  .layout_header p.subtitle { margin-top: -2ex; text-align: center; }

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* navigation */

  .layout_nav {
    border-right: 1px solid;
    padding-bottom: 4ex;
  }
  .layout_nav .widgets {
    margin-top: 8ex;
    text-align: center;
  }

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* search index */

  .search_index { display: flex; text-align: center; }
  .search_index_box { flex: 1; display: flex; flex-direction: column; }

  .search_index input {
    flex: 1;
    margin: 1em;
    border: 1px solid #999999;
    border-radius: 0.5ex 0.5ex 0px 0px;
    padding: 1ex 1em;
    padding-left: 5ex;
    background-color: white;
    background-image: url('/nav/ic_search_black_48dp.png');
    background-size: 3ex 3ex;
    background-position: 1ex center;
    background-repeat: no-repeat;
    font-family: 'Asul', sans-serif;
    font-size: 12px;
  }
  .index_results {
    position: absolute;
    margin: 0px 1em;
    margin-top: calc(0px - 1em - 1px);
    border: 1px solid #999999;
    border-radius: 0px 0px 0.5ex 0.5ex;
    width: calc(100% - 2em - 2px);
    padding-bottom: 1ex;
    background: white;
    font-family: 'Asul', sans-serif;
    font-size: 12px;
  }
  .index_results li { text-align: left; }
  .index_results li.selected { background: #cccccc; }
  .index_results:hover li.selected { background: none; }
  .layout_nav .index_results ul li { padding-left: 5ex; font-size: 11px; }

  .index_results a {
    white-space: nowrap;
    overflow-x: hidden;
    text-overflow: ellipsis;
  }

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* sidebar nav */

  .layout_nav h2 { margin: 1ex 1ex; font-size: 100%; cursor: pointer; }
  .layout_nav h2 span.disclose { display: inline-block; width: 2ex; }
  .layout_nav div.list { margin: 1ex 1em; }
  .layout_nav ul { margin: 0px; padding: 0px; list-style: none; }
  .layout_nav ul li { padding: 3px 1em; font-size: 80%; }
  .layout_nav ul li:hover { background: #cccccc; }
  .layout_nav a { display: block; text-decoration: none; color: #000000; }
  .layout_nav a:link { color: #000000; }

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* content */

  .layout_content {
    padding: 1ex 2em;
    padding-bottom: 2em;
  }
  .layout_content h1 { margin: 2ex 2em; text-align: center; }
  .layout_content h2 { margin: 2ex 0em; }
  .layout_content h3 { margin: 2ex 1em; }

  .layout_content a:link { color: #0000cc; }
  .layout_content a:hover { color: #0000ff; }
  .layout_content a:active { color: #0000cc; }
  .layout_content a:visited { color: #0000cc; }

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* content tricks */

  p.intro {
    margin-bottom: 6ex;
    border: 1px solid #cccccc;
    border-radius: 2ex 0px;
    padding: 1ex 2em;
    background: #f0f0f0;
  }
  div.source_code {
    margin: 4ex 2em;
    border: 1px solid;
    border-radius: 1ex;
    max-height: 50ex;
    overflow: auto;
  }

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* footnotes */

  div.footnotes {
    margin-top: 6ex;
    padding: 0px 10%;
    text-align: center;
    font-size: smaller;
  }
  div.footnotes p { text-align: center; }
  div.footnotes span.def { white-space: nowrap; margin: 0px 1em; }
  div.footnotes span.def b { margin-right: 0.5em; }

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* link blocks */

  .link_block { display: flex; margin: 2ex 2em; }
  .link_block div.img { flex: 0 0 100px; text-align: center; }
  .link_block div.desc { flex: 1; margin-left: 2em; }
  .link_block div.desc h3 { margin: 1ex 0px; margin-top: 0px; }
  .link_block div.desc p { margin: 1ex 0px; }

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* link icons */

  img.axe { background: url('/icons/home/icons.gif') 0px 0px; }
  img.calc { background: url('/icons/home/icons.gif') 0px -50px; }
  img.coins { background: url('/icons/home/icons.gif') 0px -100px; }
  img.dice { background: url('/icons/home/icons.gif') 0px -150px; }
  img.dragon { background: url('/icons/home/icons.gif') 0px -200px; }
  img.dungeon { background: url('/icons/home/icons.gif') 0px -250px; }
  img.system { background: url('/icons/home/icons.gif') 0px -300px; }
  img.tavern { background: url('/icons/home/icons.gif') 0px -350px; }
  img.tome { background: url('/icons/home/icons.gif') 0px -400px; }
  img.weather { background: url('/icons/home/icons.gif') 0px -450px; }
  img.world { background: url('/icons/home/icons.gif') 0px -500px; }

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* form tricks */

  h3.error {
    margin: 4ex 10%;
    border: 1px solid;
    padding: 1ex 5%;
    text-align: center;
    color: #cc0000;
  }
  table.form select { min-width: 10em; }
  table.form select.num { min-width: 5em; }
  table.form table.form { margin: 0px; }

  td.preview { padding-left: 2em; }
  td.preview h3 { margin: 0px; margin-bottom: 1ex; }
  td.preview div.img { width: 201px; overflow: hidden; }

  option.in1 { padding-left: 1em; }
  option.in2 { padding-left: 2em; }

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* rpc output */

  div.out {
    margin: 0px;
    border: 1px solid;
    border-color: #999999;
    width: 40em;
    padding: 4px 8px;
  }
  div.out p { margin: 0ex 0em 1ex 0em; }
  div.out ol { margin: 0ex 0em; }
  div.out hr { margin: 1ex 0em; border-color: #999999; }

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* stats table */

  table.stats {
    margin: 2ex auto;
    border: none;
    border-top: 1px solid;
    border-color: #cccccc;
  }
  table.stats table {
    margin: 4px;
    border: none;
    border-top: 1px solid;
    border-color: #cccccc;
    width: 100%;
  }

  table.stats tr.selected td { background: #deffde; }
  table.stats tr:hover td { background: #dedede; }
  table.stats tr.empty:hover td { background: none; }
  table.stats tr:hover ol li:hover { background: #ffffff; }
  table.stats tr:hover table tr:hover td { background: #ffffff; }
  table.stats tr:hover table tr.empty:hover td { background: none; }
  table.stats tr:hover table tr:hover ol li:hover { background: #dedede; }

  table.stats th {
    padding: 1ex 1em;
    background: #000000;
    color: #ffffff;
  }
  table.stats td {
    border: none;
    border-bottom: 1px solid;
    border-color: #cccccc;
    padding: 4px 1em;
    vertical-align: top;
  }
  table.stats td.icon img {
    border: 1px solid;
    border-color: #cccccc;
  }
  table.stats td.section {
    width: 8em;
    padding-top: 8px;
    text-align: right;
    white-space: nowrap;
    font-size: larger;
    font-weight: bold;
  }
  table.stats td.detail {
    width: 8em;
    text-align: right;
    white-space: nowrap;
    font-style: italic;
  }
  table.stats td.key {
    width: 8em;
    text-align: right;
    white-space: nowrap;
    font-weight: bold;
  }

  table.stats td.value { vertical-align: bottom; }
  table.stats td.value p { margin: 0px 0px 0px 0px; }
  table.stats td.value p + p { margin-top: 1ex; }
  table.stats td.value ol { margin: 0px 0px 2ex 2em; padding: 0px; }
  table.stats td.value ol li { margin: 0px; padding: 2px 0.5em; }
  table.stats td.value hr { margin: 4px 0em; border-color: #cccccc; }

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* footer */

  .layout_footer { font-size: 80%; }

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* screen */

  @media screen {
    body { display: flex; flex-direction: column; }
    .layout_header { flex: 1; }
    .layout_page { flex: 1; display: flex; align-items: stretch; }
    .layout_nav { flex: 0 0 16em; }
    .layout_content { flex: 1; overflow-x: scroll; }
    .layout_footer { flex: 1; }

    body { background: #000000; }
    .layout_header { background: #000000; color: #ffffff; }
    .layout_header a { color: #ffffff; }
    .layout_nav { background: #dedede; }
    .layout_content { background: #ffffff; }
    .layout_footer { background: #000000; color: #ffffff; }
    .layout_footer a { color: #ffffff; }

    .source_code {
      border-color: #333333;
      background: #333333;
      color: #33ff33;
    }
  }

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* handheld */

  @media screen and (max-device-width: 480px) {
    .layout_nav { display: none; }

    body { font-size: 24px; }
    input, textarea { font-size: 24px; }
    select { font-size: 24px; }

    .link_block div.img { display: none; }
    .link_block h3 { margin: 0px; }
    .link_block p { margin: 0px; }
  }

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* print */

  @media print {
    body { padding: 0px 1ex; }

    .layout_header {
      border: 1px solid;
      border-color: #333333;
      box-shadow: 0.5ex 0.5ex 0.5ex #999999;
    }
    .layout_header h1 { margin: 1ex 0px; padding: 0px; }
    .layout_header a { color: #000000; }

    .layout_nav { display: none; }
    .layout_footer { border: 1px solid; border-color: #333333; }
    .layout_footer a { color: #000000; }

    p.subtitle { display: none; }
    th.ctrl { display: none; }
    td.ctrl { display: none; }
  }

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
