@media screen, print {
  .center { margin-left: auto; margin-right: auto; text-align: center; }
  .right { text-align: right; margin-right: 0; }
  .left { text-align: left; margin-left: 0; }

  .section h1 { font-size: 150%; }
  .footer { font-size: 80%; }

  body { font-family: verdana, sans-serif; }
  textarea { font-family: monospace; }
  table { width: 100%; border: none: rules: none; }
  p { text-align: left; }
  div{ text-align: left; }
  img { border: 0; }
  dt { font-weight: bold; }

  /* PHORM */
  td { vertical-align: top; }
  th.likert { text-align: center; }
  td.fieldname { width: 13em; }
  td.likertvalue { width: 1em; text-align: center; }
  .fieldname { font-weight: bold; }
  .description { font-size: 75%; }
  .extreme { color: red; font-weight: bold; }
  .missing { border-bottom: solid thin red; }


  li.folder { margin-top: 0; list-style-type: circle; }
  li.text-file { margin-top: 0; list-style-type: circle; }
  li.image-file { margin-top: 0; list-style-type: circle; }
  li.binary-file { margin-top: 0; list-style-type: circle; }
  li.url-link { margin-top: 0; list-style-type: circle; }

  dd { margin-left: 2em;}
  dd li { margin-top: 0; list-style-type: circle; }
  dd ul { padding-left: 0;}

  .form td { vertical-align: top; }

/** reStructuredText default.css */
  .abstract { margin: 2em 5em; }
  .abstract p.topic-title { font-weight: bold; }

  .attention, .caution, .danger, .error, .hint,
  .important, .note, .tip, .warning {
    margin: 2em;
    border: medium outset;
    padding: 1em;
  }

  .attention p.admonition-title, .caution p.admonition-title,
  .danger p.admonition-title, .error p.admonition-title,
  .warning p.admonition-title {
    color: red;
    background: none;
    font-weight: bold;
    font-family: sans-serif
  }

  .hint p.admonition-title, .important p.admonition-title,
  .note p.admonition-title, .tip p.admonition-title {
    font-weight: bold;
    font-family: sans-serif;
  }

  .dedication {
    margin: 2em 5em;
    text-align: center;
    font-style: italic;
  }

  .dedication p.topic-title {
    font-weight: bold;
    font-style: normal;
  }

  .system-messages { margin: 5em; }
  .system-messages h1 { color: red; background: none; }
  .system-message { border: medium outset; padding: 1em; }
  .system-message p.system-message-title {
    color: red;
    background: none;
    font-weight: bold;
  }

  .classifier {
    font-family: sans-serif;
    font-style: oblique;
  }

  .classifier-delimiter {
    font-family: sans-serif;
    font-weight: bold;
  }

  .interpreted { font-family: sans-serif; }

  .option { white-space: nowrap; }
  .option-argument { font-style: italic; }

  .pre { white-space: pre; }

  .problematic { color: red;  background: none; }

  .topic { margin: 2em; }

  ol.simple, ul.simple { margin-bottom: 1em; }
  ol.arabic { list-style: decimal; }
  ol.loweralpha { list-style: lower-alpha; }
  ol.upperalpha { list-style: upper-alpha; }
  ol.lowerroman { list-style: lower-roman; }
  ol.upperroman { list-style: upper-roman; }

  p.caption { font-style: italic; }
  p.credits { font-style: italic; font-size: smaller; }
  p.label { white-space: nowrap; }
  p.topic-title { font-weight: bold; }

  pre.address {
    margin-bottom: 0;
    margin-top: 0;
    font-family: serif;
    font-size: 100%;
  }

  pre.line-block {
    font-family: serif;
    font-size: 100%;
  }

  pre.literal-block, pre.doctest-block {
    margin-left: 2em;
    margin-right: 2em;
  }

  table.citation { border-left: solid thin gray; padding-left: 0.5ex; }
  table.footnote { border-left: solid thin black; padding-left: 0.5ex; }

  ul.auto-toc { list-style-type: circle; }

/** Generated menu */
  div.DirectoryListing {
    margin-left: 2em;
    margin-bottom: 1em;
  }
  div.DirectoryListing ul { margin-left: 0; }

/** Ajankohtaista -lodju */
  .ajankohtaista .DirectoryListing, .ajankohtaista p {
    font-size: 10pt;
    margin: 0 0 0.7em 0;
  }

  .ajankohtaista h1 {
    margin-top: 0px;
    margin-bottom: 0.3em;
    font-size: 12pt;
  }

  .ajankohtaista a:link, .ajankohtaista a:visited, .ajankohtaista a:active {
    text-decoration: none;
  }

  .ajankohtaista em { 
    font-style: normal;
    font-weight: bold; 
  }

  .ajankohtaista {
    font-size: 10pt;
    margin: 0em 1em 1em 1em;
    padding: 0.7em;
  }

  dt {
    margin-top: 0.5ex;
    font-style: italic;
  }

  p.signature {
    font-style: italic;
    text-align: right;
  }

  blockquote {
    font-style: italic;
  }

/** Sisäkkäiset numeroidut listat tyyliin:
     1
      1.1
       1.1.1
       1.1.2
      1.2

     ja pykäläviidakot
     1§ ...
     2§ ...
*/
  ul { padding-left: 2em;}
  ol { counter-reset: item; padding-left: 2em; }
  li { 
    margin-top: 0.7ex;
    margin-bottom: 0;
  }
}

@media screen {
  body {
    color: #FBEA9B;
    background: #008000;
  }

  p a:link, p a:active, p a:visited,
  dd a:link, dd a:active, dd a:visited,
  dl a:link, dl a:active, dl a:visited
  { text-decoration: underline; }

  a:link, a:visited, a:active {
    color: #FBEA9B;
    background: none;
    text-decoration: none;
  }

  a:hover {
    color: #FFFFFF;
    background: none;
    text-decoration: underline;
  }

  table.toolbar {
    color: #FBEA9B;
    background: #009000;
  }
  
/* http://www.med.yale.edu/caim/manual/pages/safe_area.html */
  .body {
    width: 595px;
    margin-left: auto;
    margin-right: auto;
  }

  .ajankohtaista {
    border: 0px;
    background: #009000;
  }

}

@media print {
  a:link, a:visited, a:active {
    text-decoration: underline;
  }

  table.toolbar, .ajankohtaista {
    width: 100%;
    border: thin solid;
  }

  table.docinfo { margin: 2em 4em; }
  th.docinfo-name, th.field-name {
    font-weight: bold;
    text-align: right;
    white-space: nowrap;
  }
}
