body {
    font: 13px Arial, Verdana, Helvetica, sans-serif;
    text-align: center;
}

@media screen {
    body {
        padding: 1em 1em 1em 21em;
    }

    div.document, div.footer {
        width: 45em;
        background-color: white;
    }
}

@media print {
    div.document, div.footer {
        width: auto;
        padding-left: 0px;
    }

    div.sidemenu {
        display: none;
    }
}

div.document, div.footer {
    margin: 1em auto 1em auto;
    color: #222;
}

div.document {
    text-align: left;
}

div.footer {
    text-align: center;
    font-size: 70%;
}

.center {
    text-align: center;
}

/*** TOC ***/

div.contents.topic ul {
    margin-top: 0;
}

div.contents.topic ul > li {
    text-decoration: none;
    line-height: 1.2em;
}

div.contents.topic > p > a {
    text-decoration: none;
}

/*** side menu ***/

div.sidemenu {
    position: absolute;
    top: 0;
    left: 0;
    width: 26em;
    font-size: 10px;
    text-align: left;
    border-right: groove gray;
    border-bottom: groove gray;
    padding-right: 1ex;
    background: #FFFAFA url(python-xml.png) no-repeat top right;
}

html > body div.sidemenu {
    /* ignored by IE -> everyone else knows 'fixed', right?  */
    position: fixed;
}

div.sidemenu span.section.title {
    line-height: 1.2em;
    font-size: 130%;
}

div.sidemenu ul.menu.current li {
    color: #CC0000;
    font-size: 105%;
}

div.sidemenu ul.menu.current > li > a {
    color: #CC0000;
}

div.sidemenu ul.menu.current ul.submenu {
    display: block;
}

div.sidemenu ul.menu.foreign ul.submenu li {
    padding-top: 2px;
    padding-bottom: 2px;
}

div.sidemenu ul.menu.foreign li.menu:hover ul.submenu {
    display: block;
    position: absolute;
    border: groove #990000;
    padding: 1ex 1ex 1ex 3ex;
    margin-top: 0;
    margin-left: 4em;
    margin-right: -20em;
    color: #990000;
    background-color: white;
}

div.sidemenu ul.submenu {
    display: none;
}

div.sidemenu ul {
    line-height: 1em;
    margin: 1ex;
    padding-left: 1em;
}

/*** headings ***/

h1.title {
    background: url(python-xml-title.png) no-repeat;
    padding: 20px 0 0 160px;
    height: 60px;
    font-size: 200%;
}

h1.title, h1 a, h2 a, h3 a {
    color: #666;
    font-weight: bold;
    font-family: Helvetica, sans-serif;
}

@media screen {
    div.section > h1:before {
        margin-left: -2ex;
        color: #CC0000;
        content: "\00BB" " ";
    }
}

h1 {
    font-size: 150%;
}

h2 {
    font-size: 130%;
}

h3 {
    font-size: 110%;
}

/*** content ***/

a, a:visited {
    background-color: transparent;
    font-weight: bold;
    color: Black;
    text-decoration: none;
}

p a:active, ul a:active {
    color: Red;
}

p a:hover, ul a:hover {
    text-decoration: underline;
}

p {
    /*margin: 0.5em 0em 1em 0em;*/
    text-align: justify;
    line-height: 1.5em;
    margin: 0.5em 0 0 0;
}

th.docinfo-name {
    padding-left: 3ex;
    text-align: right;
    font-weight: bold;
}

hr {
    clear: both;
    height: 1px;
    color: #8CACBB;
    background-color: transparent;
}

dt {
    line-height: 1.5em;
    margin-left: 1em;
}

dt:before {
    content: "\00BB" " ";
}

ul {
    line-height: 1.5em;
    margin-left: 1em;
}

ol {
    line-height: 1.5em;
    margin-left: 0;
}

blockquote {
    font-family: Times, "Times New Roman", serif;
    font-style: italic;
}

div.eyecatcher, p.eyecatcher {
    font-family: Times, "Times New Roman", serif;
    text-align: center;
    font-size: 140%;
    line-height: 1.2em;
    margin-left: 9em;
    margin-right: 9em;
}

div.pagequote {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px 10px 0 0;
    text-align: right;
    font-size: 80%;
    color: #990000;
}

div.pagequote .reference {
    font-size: 140%;
}

html > .pagequote {
    /* ignored by IE -> everyone else knows 'fixed', right?  */
    position: fixed;
}

code {
    color: Black;
    background-color: #f0f0f0;
    font-family: "Courier New", Courier, monospace;
}

pre {
    padding: 0.5em;
    border: 1px solid #8cacbb;
    color: Black;
    background-color: #f0f0f0;
    font-family: "Courier New", Courier, monospace;
}

/* Syntax highlighting */

.syntax  { background: #f0f0f0; }
.syntax .c { color: #60a0b0; font-style: italic } /* Comment */
.syntax .err { border: 1px solid #FF0000 } /* Error */
.syntax .k { color: #007020; font-weight: bold } /* Keyword */
.syntax .o { color: #666666 } /* Operator */
.syntax .cm { color: #60a0b0; font-style: italic } /* Comment.Multiline */
.syntax .cp { color: #007020 } /* Comment.Preproc */
.syntax .c1 { color: #60a0b0; font-style: italic } /* Comment.Single */
.syntax .cs { color: #60a0b0; background-color: #fff0f0 } /* Comment.Special */
.syntax .gd { color: #A00000 } /* Generic.Deleted */
.syntax .ge { font-style: italic } /* Generic.Emph */
.syntax .gr { color: #FF0000 } /* Generic.Error */
.syntax .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.syntax .gi { color: #00A000 } /* Generic.Inserted */
.syntax .go { color: #404040 } /* Generic.Output */
.syntax .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
.syntax .gs { font-weight: bold } /* Generic.Strong */
.syntax .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
.syntax .gt { color: #0040D0 } /* Generic.Traceback */
.syntax .kc { color: #007020; font-weight: bold } /* Keyword.Constant */
.syntax .kd { color: #007020; font-weight: bold } /* Keyword.Declaration */
.syntax .kp { color: #007020 } /* Keyword.Pseudo */
.syntax .kr { color: #007020; font-weight: bold } /* Keyword.Reserved */
.syntax .kt { color: #902000 } /* Keyword.Type */
.syntax .m { color: #40a070 } /* Literal.Number */
.syntax .s { color: #4070a0 } /* Literal.String */
.syntax .na { color: #4070a0 } /* Name.Attribute */
.syntax .nb { color: #007020 } /* Name.Builtin */
.syntax .nc { color: #0e84b5; font-weight: bold } /* Name.Class */
.syntax .no { color: #60add5 } /* Name.Constant */
.syntax .nd { color: #555555; font-weight: bold } /* Name.Decorator */
.syntax .ni { color: #d55537; font-weight: bold } /* Name.Entity */
.syntax .ne { color: #007020 } /* Name.Exception */
.syntax .nf { color: #06287e } /* Name.Function */
.syntax .nl { color: #002070; font-weight: bold } /* Name.Label */
.syntax .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
.syntax .nt { color: #062873; font-weight: bold } /* Name.Tag */
.syntax .nv { color: #bb60d5 } /* Name.Variable */
.syntax .ow { color: #007020; font-weight: bold } /* Operator.Word */
.syntax .w { color: #bbbbbb } /* Text.Whitespace */
.syntax .mf { color: #40a070 } /* Literal.Number.Float */
.syntax .mh { color: #40a070 } /* Literal.Number.Hex */
.syntax .mi { color: #40a070 } /* Literal.Number.Integer */
.syntax .mo { color: #40a070 } /* Literal.Number.Oct */
.syntax .sb { color: #4070a0 } /* Literal.String.Backtick */
.syntax .sc { color: #4070a0 } /* Literal.String.Char */
.syntax .sd { color: #4070a0; font-style: italic } /* Literal.String.Doc */
.syntax .s2 { color: #4070a0 } /* Literal.String.Double */
.syntax .se { color: #4070a0; font-weight: bold } /* Literal.String.Escape */
.syntax .sh { color: #4070a0 } /* Literal.String.Heredoc */
.syntax .si { color: #70a0d0; font-style: italic } /* Literal.String.Interpol */
.syntax .sx { color: #c65d09 } /* Literal.String.Other */
.syntax .sr { color: #235388 } /* Literal.String.Regex */
.syntax .s1 { color: #4070a0 } /* Literal.String.Single */
.syntax .ss { color: #517918 } /* Literal.String.Symbol */
.syntax .bp { color: #007020 } /* Name.Builtin.Pseudo */
.syntax .vc { color: #bb60d5 } /* Name.Variable.Class */
.syntax .vg { color: #bb60d5 } /* Name.Variable.Global */
.syntax .vi { color: #bb60d5 } /* Name.Variable.Instance */
.syntax .il { color: #40a070 } /* Literal.Number.Integer.Long */
