html
{
  background-color: #202020;
  background-image: url(tile);
  background-repeat: repeat;
  color: #F0F0F0;
  font-family: monospace;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  margin: 0;
  padding: 0;
}

html:lang(en),html:lang(pl)
{
  font-family: "AHAMONO", monospace;
}

html:lang(ja)
{
  line-height: 1.75em;
}

body
{
  padding: 0;
}

@media screen and (grid:0)
{
  .no-gui
  {
    display: none;
  }
}

hr.sep
{
  border: none;
  margin: 1em 0;
  padding: 0;
}

#menu
{
  /*background-image: url(/img/kueea-logo.en.png);*/
  background-position: top left;
  background-repeat: no-repeat;
  padding-top: 130px;
  min-height: 160px;
}

#menu:lang(ja)
{
  /*background-image: url(/img/kueea-logo.ja.png);*/
}

#main
{
  max-width: 60em;
  margin: 1em 1em 4em 1em;
  padding: 0;
  text-align: left;
}

#footer
{
  font-size: 13px;
  margin: 3em 1em 4em 1em;
}

@supports (display:flex) and (background-position:10px 0px)
{
  #box
  {
    display: flex;
  }

  #box>div
  {
    flex-grow: 1;
  }

  #menu
  {
    background-size: 384px auto;
    background-position: 10px 20px;
    flex: 0 0 404px;
    padding: 160px 10px 10px 10px;
  }
}

#menu ul
{
  list-style: square inside;
}

#menu ol
{
  list-style-position: inside;
}

#menu ul,
#menu ol
{
  margin: 2em 0;
  padding: 0;
}

#menu li ol
{
  margin: 0.5em 0.5em 0.5em 1em;
  padding: 0;
}

#menu b
{
  color: #E790E9;
  font-weight: inherit;
}

@media (max-width: 1400px) {
  @supports (display:flex) and (background-position:10px 0px)
  {
    #menu
    {
      background-size: 280px auto;
      background-position: 10px 10px;
      flex: 0 0 300px;
      padding: 110px 10px 10px 10px;
    }
  }
}

@media (max-width: 1100px) {
  body
  {
    padding: 0 0 100% 0;
  }

  #box
  {
    /*background-image: url(/img/kueea-logo.en.png);*/
    background-repeat: no-repeat;
    background-position: top 10px center;
    background-size: auto 128px;
    display: block;
    padding-top: 140px;
  }

  #box:lang(ja)
  {
    /*background-image: url(/img/kueea-logo.ja.png);*/
  }

  #menu
  {
    background-image: none !important;
    padding-top: 1em;
    columns: 2;
  }

  #menu div
  {
    break-inside: avoid;
  }

  #menu div h4
  {
    margin-top: 0;
  }

  #menu-h1
  {
    display: block !important;
    margin: 10px;
  }

  .no-gui
  {
    display: block;
  }

  .flex
  {
    display: none;
  }
}

@media (max-width: 384px) {#box{background-size:contain}}
@media (max-width: 340px) {#box{padding-top:120px}}
@media (max-width: 300px) {#box{padding-top:110px}}
@media (max-width: 280px) {#box{padding-top:100px}}
@media (max-width: 240px) {#box{padding-top: 90px}}
@media (max-width: 200px) {#box{padding-top: 80px}}

#page-meta
{
  columns: 2;
  margin: 1rem;
  max-width: 40rem;
  text-align: left;
}

#main header,
#main footer
{
  margin: 3em auto;
}

#main code,
#main samp,
#main kbd
{
  border: none;
  background: #444;
  padding: 0.2em;
}

h1,h2,h3,h4,h5,h6
{
  margin: 2em auto;
  font-weight: inherit;
}

hgroup > *
{
  margin: 0.5em auto;
}

hgroup > *:first-child
{
  margin-top: 2em;
}

hgroup > *:last-child
{
  margin-bottom: 2em;
}

h1,h2
{
  border-bottom: 1px solid #F0F0F0;
}

h3,h4,h5,h6
{
  font-weight: bold;
}

pre
{
  border: 1px solid #777;
  background: #333;
  padding: 0.5em;
}

pre code,
pre samp,
pre kbd
{
  padding: none;
  background: none;
}

dfn,dt
{
  font-style: normal;
  font-weight: normal;
  color: #B0A0F0;
}

dt
{
  margin-top: 1em;
  margin-bottom: 0.5em;
}

dt:first-child
{
  margin-top: 0;
}

dd
{
  margin-top: 0.25em;
  margin-bottom: 0.25em;
}

dd.desc
{
  margin-top: 1em;
}

abbr[title]
{
  cursor: help;
  text-decoration: underline dotted;
}

a
{
  color: #C0C0B0;
  text-decoration: underline;
}

a abbr[title]
{
  cursor: pointer;
}

a:hover
{
  text-decoration: none;
  color: #DDA;
}

em
{
  font-style: oblique;
}

em:lang(ja)
{
  font-style: normal;
  text-emphasis: sesame;
}

ruby,
ruby rp,
ruby rt
{
  display: inline;
  font: inherit;
}

@supports (display:ruby) and (display:ruby-text)
{
  ruby:lang(ja)
  {
    display: ruby;
  }

  ruby:lang(ja) rp
  {
    display: none;
  }

  ruby:lang(ja) rt
  {
    display: ruby-text;
    font-size: 50%;
  }
}

table
{
  margin: auto;
}

thead
{
  text-align: center;
}

th,td
{
  padding: 0.5em;
  vertical-align: top;
}

th
{
  background: #000;
  border: 1px solid #888;
}

td
{
  background: #333;
}

tr:nth-child(even) td
{
  background: #444;
}

tr[onclick]:hover td
{
  background-color: #555;
  cursor: pointer;
}

ul
{
  list-style: square;
}

button,
input
{
  background: #292929;
  border: 3px solid #555;
  color: #FFF;
  font: inherit;
  padding: 0.25em 0.5em;
}

button:hover,
input:hover
{
  border-color: #888;
}

input:focus
{
  border-color: #FFF;
}

#module-state
{
  margin: 2em auto;
  font-weight: bold;
  font-size: 1.5em;
  text-align: center;
}

section.module-result header
{
  display: block;
  background: #292929;
  border: 3px solid #555;
  padding: 0.25em 1em;
  margin: 0 !important;
}

section.module-result header:hover
{
  background: #353535;
  border-color: #888;
}

section.module-result h3
{
  display: block;
  margin: 4px 0;
}

section.module-result dl
{
  display: block;
  margin: 4px 0;
}

section.module-result dt
{
  display: inline-block;
  margin: 2px 4px;
}

section.module-result dd
{
  display: inline-block;
  margin: 2px 4px;
}

section.module-result table
{
  background: #202020;
  border: 1px solid #555;
  margin: 0;
  padding: 1.5em;
  width: 100%;
}
