h1, h2, h3, h4, h5, p, div, td {
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, p, div, td, li, input, textarea {
    font-family: Verdana, Arial, sans-serif;
}

pre {
    font-family: monospace;
    font-size: medium;
    margin: 0.7em 0;
    padding: 0 12px;
}

blockquote {
    padding: 4px 0;
    background-color: #e4e4e4;
    margin: 0.7em 12px;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
}

.code {
    font-family: monospace;
    color: green;
    font-weight: normal;
    font-size: large;
}

div.left {
    float: left;
    clear: left;
    margin: 0 12px;
}

p {
    padding: 0 12px;
}

li {
    padding-right: 12px;
}

h1 {
    font-size: 15pt;
    font-weight: bold;
    padding: 0.1em 0.5em;
    background: #ddd;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    -webkit-border-top-right-radius: 5px;
    -webkit-border-top-left-radius: 5px;
    -moz-border-radius-topleft: 5px;    
    -moz-border-radius-topright: 5px;
}

h1.noround {
    font-size: 15pt;
    font-weight: bold;
    padding: 0.1em 0.5em;
    background: #ddd;
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
}

h2 {
    font-size: large;
    font-weight: bold;
    padding: 0 12px;
}

h3 {
    font-size: medium;
    font-weight: bold;
    padding: 0 12px;
}

h4 {
    font-size: medium;
    font-style: italic;
    font-weight: bold;
    padding: 0 12px;
}

div, p, td, li, input, textarea {
    font-size: medium;
    font-weight: normal;
}

h1, h2, h3, h4 {
    margin-bottom: 0.5em;
    clear: left;
}

p, div {
    margin-bottom: 0.3em;
}

h2+p {
    margin-top: -0.5em;
    margin-bottom: 0.5em;
}

table {
    margin-bottom: 0.3em;
    border: none;
}

table.idx td {
    padding: 0 12px;
}   

table.idx th {
    font-weight: normal;
    padding-right: 1em;
    text-align: left;
    padding-left: 12px;
}

table.idx th:after {
    content: ':';
}

table.thumbtable td {
    vertical-align: top;
}

table.thumbtable td:first-child {
    padding-left: 12px;  
    padding-right: 1em;
}

table.thumbtable td:last-child {
    padding-right: 1em;
}

form div {
    padding: 0 12px;
}

form div p {
    padding: 0;
}

#title input, #name input, #author input, #isbn input {
    width: 40em;
}

#cat input {
    width: 40em;
}

#data textarea {
    width: 40em;
    height: 18em;
}

#images textarea { 
    width: 40em;
    height: 12em;
}

#type span {
    margin-right: 1em;
}

#tags input {
    width: 40em;
}

#add input {
    padding: 0 1em;
    margin: 0 auto;
    display: block;
}

.date {
    font-size: small;
    color: gray;
}

.tags {
    font-size: small;
    color: gray;
}

.author {
    font-size: small;
    color: gray;
}

ul#index, ul.index {
    list-style: none;
    padding: 0 12px;
    margin: 0 0 1em 0;
}

#nav p {
    font-size: small;
    color: black;
    margin: 0.5em 0;
    padding: 0;
}

#nav dl {
    font-size: small;
    color: black;
    margin: 1em 0 0.5em 0;
    padding: 0;
}

#nav p em {
    font-weight: bold;
    font-style: normal;
}

#nav p em:after {
    content: ' > ';
    display: inline;
}

#wrapper { 
    width: 1024px;
    margin: 1em auto;
    position: relative;
}

#content { 
    width: 668px;
    margin-right: 316px;
    background-color: #eee;
    border: 1px solid #ccc;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    -webkit-border-top-right-radius: 5px;
    -webkit-border-top-left-radius: 5px;
    -moz-border-radius-topleft: 5px;    
    -moz-border-radius-topright: 5px;
}

#nav { 
    width: 310px;
    position: absolute;
    right: 0;
    top: 0;
    padding: 2px 12px;
    background-color: #eee;
    border: 1px solid #ccc;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    -webkit-border-top-right-radius: 5px;
    -webkit-border-top-left-radius: 5px;
    -moz-border-radius-topleft: 5px;    
    -moz-border-radius-topright: 5px;
}

#content h1 a:link, #content h1 a:visited, #content h1 a:hover, #content h1 a:active { 
    text-decoration: none;
    color: #000;
}

#content a:link, #content a:visited {
    text-decoration: none;
    color: #800;
}

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

#content a:active {
    text-decoration: none;
    color: #000;
}

#content a.plain:link, #content a.plain:visited {
    color: #000;
}

#content a.plain:hover {
    color: #a00;
}

#content a.plain:active {
    color: #000;
}

#nav a:link, #nav a:visited {
    text-decoration: none;
    color: #000;
}

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

#nav a:active {
    text-decoration: none;
    color: #000;
}

ul#images { 
    list-style: none;
    padding: 0;
    margin: 0;
}

ul#images li { 
    clear: left;
}

ul#images li div.img { 
    float: left;
    margin: 0.5em 0.2em;
    width: 135px;
}

ul#images li div.desc { 
    padding-top: 0.5em;
}

ul#images li div.desc span {
    font-family: monospace;
    font-size: small;
    padding-left: 0.3em;
}

ul#gallery { 
    list-style: none;
    padding: 0 12px;
    margin: 0;
    display: none;
}

ul#gallery li { 
    display: inline;
    padding: 3px 3px;
}

#selected { 
    text-align: center;
    margin: 1em 0 0.3em 0;
}

#desc { 
    text-align: center;
}

#gallerynav { 
    width: 25em;
    margin: 0.5em auto;
}

#gallerynav a { 
    margin: 0 1em;
}

a img { 
    border: none;
}

p.buy a {
    font-size: small;
    margin-right: 1em;
}

ul.col3 {
    column-count: 3;
    column-gap: 1em;
    -moz-column-count: 3;
    -moz-column-gap: 1em;
}
