
  html {
    font-family: Arial, sans-serif;
    font-size: 90%;
  }

  body {
    margin: 0;
    padding: 0;
    background: #fff;
    min-width: 300px;
  }
  
  div.invisible,
  form.invisible,
  span.invisible,
  input.invisible  {
    display: none !important;
  }
  
  input[type="button"],
  input[type="submit"] {
    background: #114466;
    color: #ffffff;
    border: 1px solid #ffffff7f;
    border-radius: 5px;
    padding: 4px 8px;
  }
  
  input[type="button"]:hover,
  input[type="submit"]:hover {
    box-shadow: 0px 1px 2px #0000007f;
  }
  
  div.openedbunch div.clearfloat {
    clear: both;
    padding: 0;
    margin: 0;
  }

  #toplist{
    height: 3.5em;
    line-height: 3.5em;
    margin: 0;
    padding: 0 1em;
    background: #114466;
    color: #ffffff;
  }
  #toplist a.imagelink {
    position: relative;
    top: 7px;
    margin: 0 1.5em;
  }
  #toplist span.right {
    position: absolute;
    right: 1em;
  }
  #toplist a {
    color: #fff;
    text-decoration: none;
  }
  #toplist a:hover {
    text-decoration: underline;
  }

  #bottomlist {
    margin: 3em 1em 1em;
    padding: 0.5em;
    border-top: 1px solid #666666;
    text-align: center;
    font-size: 0.7em;
    color: #666666;
  }
  
  #loginbox {
    background: linear-gradient(to bottom, #000000cc, #00000033, #000000cc) no-repeat fixed, url(png/pattern.png) repeat fixed;
    display: table;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }

  #loginbox form {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
  }

  #loginbox form div.box {
    width: 38em;
    height: auto;
    color: #000;
    background: #eeeeee;
    margin: auto;
    border: 1px solid #eeeeee;
    box-shadow: 3px 5px 25px 0px rgba(0, 0, 0, .5);
    border-radius: 15px;
  }

  #welcomebox {
    width: 38em;
    color: #000;
    background: #eeeeee;
    margin: 3em auto 4em;
    padding: 0.2em 1em 0.5em;
    border: 1px solid #eeeeee;
    border-radius: 15px;
    box-shadow: 3px 5px 25px 0px rgba(0, 0, 0, .5);
  }

  #loginbox form div h1 {
    margin: 0.5em 0 0;
  }

  #loginbox form div p {
    margin: 0;
    padding: 0.5em;
  }

  #loginbox div.iconanchor {
    background: none no-repeat scroll 1em 10px;
    background-image: url("png/padlock.png");
    background-size: 110px;
  }

  #welcomebox div.iconanchor {
    background: none no-repeat scroll 26em 80px;
    background-image: url("png/masterkey.png");
    background-size: 140px;
  }

  #loginbox form div p.legalnotice {
    margin: 0.5em 2em 1em;
  }

  #loginbox input {
    min-width: 17em;
  }

  #welcomebox input {
    min-width: 24em;
  }

  #loginbox input[type="button"], #welcomebox input[type="submit"], div.configform input[type="submit"] {
    min-width: 10em;
  }

  p.legalnotice {
    font-family: Arial, sans-serif;
    font-size: 0.75em;
    color: #666666;
    text-align: left;
  }
  
  h2.legalnotice {
    font-size: 1em;
  }

  p.error {
    color: #f00;
  }


  #searcher {
    display: inline-block;
    position: absolute;
    margin-left: 0.5em;
  }
  #searcher input {
    width: 12em;
    border-radius: 5px;
    border: none;
    padding: 5px 6px;
  }
  #searcher input::-ms-clear {
    display: none; /* hide IE-specific clear X */ 
  }
  #searcher.active input {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  #searcher #hitlist {
    margin: -11px 0.5em 0 0;
    min-width: 15em;
    box-shadow: 2px 3px 4px rgba(0, 0, 0, .5);
    background: #fff;
    color: #000;
    border-radius: 0 5px 5px 5px;
  }
  #searcher #hitlist p {
    margin: 0;
    padding: 2px 0.5em 0.25em;
    line-height: 1.2em;
    font-size: 0.9em;
  }
  #searcher #hitlist p:first-child {
     border-top-right-radius: 5px;
  }
  #searcher #hitlist p:last-child {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
  }
  #searcher #hitlist p:hover {
    background: #eee;
  }
  #searcher #hitlist p span {
    color: #999;
  }
  
  #mainview div.openedbunch h3.blinking {
    padding: 0 0.5em 3px calc(0.5em + 2px);
    margin-left: -0.5em;
    margin-right: -0.5em;
    margin-bottom: 0;
    background: #33ff33;
  }
  
  #mainview div.openedbunch h3.blinking a {
    padding-left: 0.5em;
  }

  #mainview div.closedbunch,
  #mainview div.openedbunch  {
    margin: 1em;
  }

  #mainview div.closedbunch h2,
  #mainview div.openedbunch h2 {
    font-size: 1em;
    padding: 0.5em;
    padding-left: 2em;
    margin: 0 -0.5em;
    color: #efefef;
    background: url('png/unshared.png') no-repeat 0.7em 0.7em #666666;
    border-radius: 5px 5px 0 0;
  }
  #mainview div.closedbunch h2.shared,
  #mainview div.openedbunch h2.shared {
    background-image: url('png/shared.png');
  }
  
  #mainview div.closedbunch h2 {
    border-radius: 5px;
  }

  #mainview .comment {
    font-size: 60%;
    margin-left: 1px;
    padding: 0;
  }
  
  #mainview div.openedbunch h3 {
    margin: 0 0 3px 2px;
    font-size: 1em;
    clear: both;
  }
  
  #mainview div.openedbunch div a {
    color: #146;
    transition: padding-left 0.3s;
  }

  #mainview div.openedbunch div.preline {
    background: #fff;
    padding: 0.5em;
    border: 1px solid #666666;
    margin: -0.25em 0 -0.125em;
    white-space: pre-line;
    word-wrap: break-word;
    border-radius: 5px;
    font-family: Consolas, monospace;
    font-size: 0.8em;
  }

  #mainview div.closedbunch a,
  #mainview div.openedbunch a {
    text-decoration: none;
  }

  #mainview form.viewheader input {
    margin: 0.5em;
    margin-right: 0;
  }
  
  #mainview form.bunchheader input {
    margin: 0.5em 0;
  }

  #mainview div.openedbunch textarea {
    float: left;
    margin-bottom: 1em;
    background: #eeeeee;
    border: 1px solid #666666;
  }
  
  #mainview div.openedbunch textarea.canedit {
    background: #fff;
    border-color: #114466;
    box-shadow: 0px 0px 1px #114466;
  }
  
  #mainview form input {
    margin: 0 0.5em;
  }

  div.closedbunch div {
    display: none;
    
  }
  
  div.openedbunch > div {
    background-color: #eeeeee;
    border: 1px solid #666666;
    padding: 0.5em;
    margin: 0 -0.5em;
    border-radius: 0 0 5px 5px;
  }
  
  div.configform {
    width: 38em;
    color: #000;
    background: #eeeeee;
    margin: 3em auto 4em;
    padding: 0.2em 1em 0.5em;
    border: 1px solid #eeeeee;
    border-radius: 15px;
    box-shadow: 3px 5px 25px 0px rgba(0, 0, 0, .5);
  }
  
  div.configform div.iconanchor {
    background: none no-repeat scroll 26em 14px;
    background-image: url("png/masterkey.png");
    background-size: 140px;
  }
 
  div.configform input {
    min-width: 24em;
  }

/* ########## LAYOUT ADJUSTMENTS FOR SMALL SCREENS ########## */
  
@media screen and (max-width: 570px) {
  #toplist {
    height: 6.1em;
  }
  #toplist a.imagelink {
    position: absolute;
    top: calc(7px + 2.5em);
    margin: 0 1em;
    left: 5px;
  }
  #searcher {
    top: 2.5em;
    left: 50px;
  }
}  
