/* from Google Font API */
@font-face {
  font-family: 'Molengo';
  font-style: normal;
  font-weight: normal;
  src: local('Molengo'), url('/static/font/molengo.ttf') format('truetype');
}
@font-face {
  font-family: 'IM Fell DW Pica';
  font-style: normal;
  font-weight: normal;
  src: local('IM Fell DW Pica'), url('/static/font/imfell.ttf') format('truetype');
}

body {
    width: 40em;
    margin: 1em 2em;
    font-family: "Molengo", Helvetica, sans-serif;
}

body.about p {
    line-height: 160%;
}




h1 {
    font-weight: normal;
    font-size: 3em;
    margin-top: 0.5em;
    margin-bottom: 0.1em;
    font-family: 'IM Fell DW Pica', 'Hoefler Text', serif;
}
h1 a {
    text-decoration: none;
    color: black;
}

a {
    color: blue;
}

.plug {
    color: #999;
}
.plug a {
    color: #66f;
}

#openidSelect {
    list-style: none;
    padding: 0;
    margin-left: 0;
}
#openidSelect li {
    list-style: none;
    margin: 0 2px;
    padding: 0;
    display: inline-block;
}
#openidSelect a:link, #openidSelect a:visited {
    border: 1px solid #ccc;
    padding: 7px 7px 2px;
    display: inline-block;
}
#openidSelect a:hover {
    border-color: black;
}
#openidSelect img {
    border-width: 0;
}
#openidEnter {
    margin: 0 0 0 4px;
}
#openidEnter label {
    display: block;
    margin: 0 0 0 4px;
}
#openidEnter input.username {
    width: 15em;
    display: inline-block;
    margin: 0 4px;
    border: 1px solid #ccc;
    font-size: 1.2em;
}
#openidEnter input.submit {
    -khtml-appearance: none;
    font-size: 1.2em;
    border: 1px solid #999;
    background: #eee;
}
#openidEnter input.submit:hover {
    background: #ccc;
}



#nav {
    margin: 0;
}
#nav a {
    display: inline-block;
    width: 6em;
    margin: 0 0.5em 0 0;
    text-align: center;
    background: #565;
    color: white;
    text-decoration: none;
    padding: 5px 0 3px;
    font-family: 'IM Fell DW Pica', 'Hoefler Text', serif;
    font-size: 1.2em;

    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}
#nav a:hover {
    background: black;
}
#nav a.current {
    background: black;
}


#papers {
    margin: 0;
}
#tools {
    margin: 0;
    display: none; /* initially hidden */
}




#paperlist, #paperlist li {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

#paperlist li {
    background: #cdc;
    padding: 0.2em 0.5em 0.4em;
    margin: 0.5em 0;

    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}
#paperlist li h3 {
    font-weight: normal;
    font-size: 1.5em;
    margin: 0;
}
#paperlist li h3 a {
    color: black;
    text-decoration: none;
}
#paperlist li h3 a:hover {
    text-decoration: underline;
}

#paperlist li .tags {
    display: inline;
    margin: 0;
}
#paperlist li .tags a {
    text-decoration: none;
    color: #454;
    margin: 0 0.5em 0 0;
}

#paperlist li .due, #paperlist li .readdate {
    color: #999;
    margin: 0 0.5em 0 0;
}
#paperlist li .overdue {
    color: #933 !important;
}

#paperlist .actions {
    display: block;
    position: absolute;
    text-align: right;
    width: 7em;
    padding: 0;
    margin-left: 33em;
    margin-top: -2em;
    white-space: nowrap;
}
#paperlist li a.action {
    color: #666;
    text-decoration: none;
    font-size: 1.8em;
    margin: 0 0.5em 0 0;
}
#paperlist li a.action:hover {
    color: black;
}

#paperlist li .confirmDelete {
    color: black;
    display: block;

    position: absolute;
    text-align: right;
    width: 39em;
    margin-top: -1.5em;
}
#paperlist li .confirmDelete a {
    text-decoration: none;
    padding: 0 3px;
    color: white;
    
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
}
#paperlist li .confirmDelete a.confirmYes {
    background: #c00;
}
#paperlist li .confirmDelete a.confirmNo {
    background: #333;
}
#paperlist li .confirmDelete a:hover {
    background: black;
}


form.newpaper {
    background: #ccc;
    padding: 0.3em 0.5em;
    margin: 0.7em 0 0;

    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}
form.newpaper input, form.edit input {
    font-family: "Molengo", Helvetica, sans-serif;
}
form.newpaper p, form.edit p {
    margin: 0 0 3px;
}
form.newpaper label, form.edit label {
    display: inline-block;
    width: 4em;
    color: black;
    font-size: 1.1em;
    font-family: 'IM Fell DW Pica', 'Hoefler Text', serif;;
}
form.newpaper p.detail input, form.edit p.detail input {
    width: 30em;
    font-size: 1em;
}
form.newpaper input.description, form.edit input.description {
    font-size: 1.5em;
    padding: 3px;
    width: 98%;
    margin-top: 0.2em;
}
form.newpaper p.submit input, form.edit p.submit input {
    -khtml-appearance: none;
    display: inline-block;
    margin: 5px 0 0 2px;
    padding: 5px 1.2em 3px;
    background: #565;
    color: white;
    border: 0;
    font-size: 1.2em;
    font-family: 'IM Fell DW Pica', 'Hoefler Text', serif;

    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}
form.newpaper p.submit input:hover, form.edit p.submit input:hover {
    background: black;
}
form.newpaper p.invalid input, form.edit p.invalid input {
    background: #fcc;
}
form.newpaper p.invalid label, form.edit p.invalid label {
    color: #c33;
}



#sidebar {
    position: absolute;
    left: 44em;
    top: 9em;
    width: 12em;
}
#sidebar h4 {
    font-size: 1em;
    margin: 0;
    font-weight: normal;
    font-family: 'IM Fell DW Pica', 'Hoefler Text', serif;
}
#sidebar div {
    margin-top: 2em;
}
#sidebar small {
    font-size: 1em;
    font-family: 'IM Fell DW Pica', 'Hoefler Text', serif;
}
#sidebar a {
    color: black;
}
#sidebar div p {
    margin: 0;
    font-size: 1em;
    color: #333;
}

#usertags ul, #usertags ul li {
    margin: 0;
    padding: 0;
    list-style: none;
}
#usertags ul {
    width: 12em;
}
#usertags ul li {
    display: inline-block;
    margin-right: 0.5em;
}
#usertags ul li a {
    text-decoration: none;
    color: #353;
}

a.tag.currentTag {
    background: #ee7;
    color: black !important;
}


#tools p {
    line-height: 140%;
}


#apikeyinfo {
    margin: 1em 0;
}
#apikeyinfo p {
    margin: 0;
}
#apikeyinfo #apikeydisplay {
    font-size: 2em;
}
#apikeyinfo .apikeyregen {
    margin: 5px 0 0 2px;
    padding: 1px 4px;
    background: #565;
    color: white;
    text-decoration: none;
    
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}
#apikeyinfo .apikeyregen:hover {
    background: black;
}


#bookmarklet #bookmarkletsrc {
    display: none;
}
#bookmarklet p {
    margin: 0;
}
a.bookmarklet {
    text-decoration: none;
    color: black;
    background: #969696;
    font-size: 0.8em;
    padding: 2px 6px;
    font-family: Helvetica;
    font-weight: bold;
    
    display: inline-block;
    margin: 0.5em 0;
    
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    
    text-shadow: #ccc 1px 1px 0;
}
a.bookmarklet:hover {
    background: #707070;
    color: white;
    text-shadow: #333 1px 1px 2px;
}


#ajaxError {
    position: absolute;
    width: 32em;
    top: 7em;
    left: 50%;
    margin-left: -15em;

    background: #dcc;
    text-align: center;
    border: 4px solid #333;
    
    display: none; /* initially hidden */
    font-family: Helvetica, sans-serif;
}
#ajaxError h1 {
    font-size: 2.5em;
    margin-top: 0.25em;
    font-family: Helvetica, sans-serif;
}


