p.notice, div.notice {
    background-color: #ffcc00;
    color: #000;
    display: block;
    font-family: Courier, monospace;
    line-height: 140%;
    font-size: 1.2em;
    padding: 0.85em;
    margin: 1.35em;
    width: 25em;
}
p.error {
    background-color: #e32;
    color: #fff;
    font-family: Courier, monospace;
    font-size: 120%;
    line-height: 140%;
    padding: 0.8em;
    margin: 1em 0;
}
p.hidden {
    padding: 0;
    margin: 0 !important;
    border: none;
    display: none;
}
form, form#upload, form#edit {
    margin: 1.6em;
    padding: 1em;
    line-height: 1.122;
    background-color: #feffbf;
}
form#upload {
    width: 30em;
}
form#edit {
    margin-top: 0;
    width: 42em;
}
form.search {
    margin: 0 0 0 0;
    background-color: #ffffff;
}
table.search {
    background-color: #ffffff;
    border-width: 4px;
    border-style: outset;
    border-color: #cccccc;
    border-collapse: separate;
    width: 600px;
    margin-left: auto;
    margin-right: auto;
}
table.search td, table.search th {
    border-width: 1px;
    border-style: inset;
    border-color: #cccccc;
    padding: 1px;
    text-align: center;
}
table.search td ul {
    text-align: left;
}
table.search td ul li {
    list-style-type: none;
}
table.search th {
    vertical-align: middle;
}
.nobr {
    white-space: nowrap;
}
img.bugs-email {
    margin-top: 5px;
    margin-bottom: 5px;
}
table.proportional th {
    width: 40%;
}
table.proportional td {
    width: 60%;
}
table.narrow {
    width: 27em;
}
table#search_cell input[type="text"] {
    width: 9em;
}
div#edit_head {
    margin: 1.6em;
    margin-bottom: 0;
    width: 44em;
}
div#edit_head div {
    font-size: 1.2em;
}
div#edit_head div h2 {
    margin: 0;
    font-size: 1.2em;
}
div#edit_head div ul {
    margin: 0;
}
.input textarea#cifs {
    font-size: 1.1em;
}
.input textarea#logmessage {
    font-size: 1.1em;
}
form#upload label {
    display: block;
    background-color: #AEEF0E;
    padding: 0.1em 0.4em;
}
form#edit label[for="bibliography_id"],
form#edit label[for="cifs"],
label[for="logmessage"] {
    display: block;
    background-color: #AEEF0E;
    padding: 0.1em 0.4em;
    width: 40.6em;
}
form input[type="submit"] {
    margin: 0.5em 1em 1em 0;
}
form input[type="reset"] {
    margin: 0.5em 1em 1em 0;
}
div.errors ul {
    list-style-type: none;
}

/*
Style definition below is not working as expected, as it produces very
lines with &nbsp; instead of spaces. It should be added to excerpts
only.

.monospace li {
    white-space: pre;
}
*/
.monospace {
    font-family: Courier, monospace;
    font-size: 120%;
}
.duplicate, .unchanged {
    background-color: gray;
    color: white;
}
.warnings {
    background-color: #ffcc00;
    color: #000;
}
.errors, .fault, .undeposited {
    background-color: #e32;
    color: #fff;
}
.notices {
    background-color: #a9d0f5;
    color: #000;
}
.edited, .crude {
    background-color: #efefef;
}
.deposited {
    background-color: #0066aa;
    color: #fff;
}
.validating, .depositing, .pairing {
    background-color: #cccccc;
    color: #000;
}
.valid {
    background-color: #00cf1c;
    color: #fff;
}

.required_indicator {
    color: red;
}

dl dt {
    font-weight: bold;
}
dl dt em {
    text-decoration: underline;
}

dl dd ul {
    padding: 0;
    margin: 0;
    list-style-position: inside;
    list-style-type: none;
}

dl dd ul li:before {
    content: "\00BB \0020";
}

span.tagname {
    font-weight: bold;
    font-style: italic;
}

#validation .messages h2 {
    margin: 0;
    font-size: 1.14em;
}
#validation .messages ul {
    margin: 0;
}
#validation form, #validation_globals form {
    margin: 0;
    padding: 0;
    line-height: initial;
    background-color: initial;
    display: inline;
}
#validation input, #validation_globals input {
    margin: 0;
}
#validation_globals {
    width: 100%;
    min-height: 3em;
}
tbody tr.warnings td ul li a {
    color: #000;
}
#progress_indicator {
    border-collapse: collapse;
    width: 100%;
    text-align: center;
    vertical-align: middle;
}
#progress_indicator div {
    float: left;
    width: 20%;
}
#progress_indicator div span.wide {
    margin: 0 0.5em 0 0.5em;
}
#progress_indicator div span.narrow {
    display: none;
}
#progress_indicator div.past {
    background-image: url("../images/chevron-left.gif"),
                      url("../images/chevron-right.gif");
    background-repeat: no-repeat;
    background-position: left, right;
    background-color: #00cf1c;
}
#progress_indicator div.current {
    background-image: url("../images/chevron-left.gif"),
                      url("../images/chevron-right.gif"),
                      url("../images/stripes.gif");
    background-repeat: no-repeat, no-repeat, repeat;
    background-position: left, right, left;
    background-color: #00cf1c;
}
#progress_indicator div.future {
    background-image: url("../images/chevron-left.gif"),
                      url("../images/chevron-right.gif");
    background-repeat: no-repeat;
    background-position: left, right;
    background-color: #feffbf;
}
#stage_pointer {
    min-width: 25px;
    max-width: 25px;
}
a.no_decoration {
    text-decoration: none;
}
span.bold, a.bold {
    font-weight: bold;
}
a.count_valid {
    color: #00cf1c;
}
a.count_deposited {
    color: #0066aa;
}
a.count_warnings {
    color: #ffcc00;
}
a.count_duplicate, a.count_queued_for_validation,
a.count_queued_for_pairing, a.count_unchanged {
    color: gray;
}
a.count_errors, a.count_fault {
    color: #e32;
}
a.count_undeposited {
    color: #e32;
}
a.count_validating, a.count_pairing, a.count_depositing {
    color: #000;
}
span.process_name {
    color: #e32;
}

a.structureReference,
div.duplicate a
{
    color: #ffffff;
}
div.padded {
    line-height: 140%;
    padding: 0.8em;
    margin: 1em 0;
}
table.information
{
    border-collapse:collapse;
    background-color: #f0f0f0;
}
table.information tr:nth-child(2n+1)
{
    background-color: #d0d0d0;
}
table.information td,
table.information th
{
    padding: 0.1em 0.5em 0.1em 0.5em;
    vertical-align: top;
}
table.vertical th
{
    text-align: left;
    font-weight: initial;
}
table.information th span
{
    white-space: nowrap;
}
#head
{
    text-align: left;
    font-size: 0.95em;
}
#information_links tr
{
    vertical-align: top;
}
#information_links tr td,
#information_links tr th
{
    text-align: left;
    padding: 0 30px 0 0;
}
div.news
{
    padding-left: 4.5em;
    padding-right: 4.5em;
    text-align: left;
}
div.textpanel
{
    padding: 0.5em 0.5em 0.5em 0.5em;
    margin: 0 0 0 0;
    border: 1px;
    border-width: 1px;
    border-style: solid;
    border-top-style: none;
    border-color: #0066aa;
    text-align: left;
}
div.textpanel p
{
    padding: 0 0 0 0;
    margin: 0 0 0 0;
}
div.textpanelhead
{
    color: #0066aa;
    background-color: #a9d0f5;
    padding: 0 0 0 0.25em;
    text-align: left;
    font-weight: bold;
    border: 1px;
    border-width: 1px;
    border-style: solid;
    border-color: #0066aa;
}
div.hattop
{
    margin-top: 1em;
    border-style: solid;
    border-color: #000000;
    margin-left: 4em;
    margin-right: 4em;
    padding-left: 1em;
    padding-right: 1em;
    background: #feffbf;
}

/* Search by structural formula meniu */
#menu {
    list-style: none;
    padding: 0 0 0 0;
    margin: 0;
}
#menu li {
    float: left;
    padding: 0 0 15px 0;
    border: 0;
    position: relative;
}
#menu ul {
    list-style: none;
}
#menu ul li {
    float: none;
    margin: 0;
    padding: 0 0 0 15px;
}

/* A child selector matches when an element is the child of some element. 
A child selector is made up of two or more selectors separated by ">".
http://www.w3.org/TR/CSS2/selector.html */
/*nav > ul > li > ul {
    padding: 0 0 0 0;
    display: none;
    visibility: hidden; 
}*/
/* Adjacent sibling selectors have the following syntax: E1 + E2, where E2 is
the subject of the selector. The selector matches if E1 and E2 share the same
parent in the document tree and E1 immediately precedes E2, ignoring non-element
nodes (such as text nodes and comments).
http://www.w3.org/TR/CSS2/selector.html */
/* nav input[type="checkbox"]:checked + ul {
    display: block;
    visibility: visible;
} */
#draw {
    background-color:#FFF;
    padding: 0 100px 0 0;
    margin: 0;
}
#draw-str-search {
    vertical-align: top;
}

/* Morzilla kūrėjų pavyzdys, kaip sukurti 'dropdown' meniu be javascript.
https://developer.mozilla.org/en-US/docs/Web/CSS/:checked */
#lbl_search_formula {
    color: blue;
}

#isexpanded:checked ~ #lbl_search_formula {
    color: #660099;
}

.isexpanded, .expandable {
    display: none;
}
.isexpanded + label, .isexpanded + label span {
    cursor:pointer;
}
.isexpanded + label span {
    display:inline-block;
    width:10px;
    height:10px;
    margin:0 7px 0 0;
    vertical-align:middle;
    background:url(../images/arrow-right.gif) left top no-repeat;
}
.isexpanded:checked + label span {
    background:url(../images/arrow-down.gif) left top no-repeat;
}
.isexpanded:checked ~ * li.expandable {
    display: block;
}
.isexpanded:checked ~ div.expandable {
    display: block;
}
td .isexpanded2:checked + td div.expandable {
    display: block;
}
.infoheader {
    font-size: 150%;
    font-weight: bold;
}
form.pagination
{
    margin: 0;
    padding: 0em;
    line-height: 1;
    background-color: #ffffff;
}
p.narrow
{
    font-family: initial;
    font-size: medium;
    line-height: normal;
    padding: 0;
}
ul.newslist
{
    text-align: left;
}
ul.newslist li
{
    margin-bottom: 1em;
}

#logo img {
    display: block;
    margin: auto;
}
#title {
    vertical-align: middle;
    height: 90px;
    line-height: 90px;
    font-size: 250%;
    font-weight: bold;
    float: left;
    margin-left: 0.4em;
}
ul.links-first {
    padding: 0;
    text-indent: 0.5em;
}
ul.links-first li {
    color: #ffffff;
    background-color: #0066aa;
    font-weight: bold;
    list-style-type: none;
}
ul.links-second {
    background-color: #a9d0f5;
    margin-bottom: 1em;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}
ul.links-second li {
    color: #000000;
    background-color: #a9d0f5;
    font-weight: initial;
    list-style-type: none;
    text-indent: -1em;
}
ul.links-second a {
    text-decoration: none;
}
div.sidebar {
    float: left;
    width: 200px;
}
#page {
    margin-left: 200px; /* reserved for sidebar */
    padding-left: 1em;
}

/* <img class="logo"/> element is a large database logo image shown in
 * some of the pages. The image is not shown on screens with small
 * resolutions. */
img.logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

div.footer {
    clear: both;
}
div.footer div {
    float: left;
    padding-bottom: 1em;
    font-size: small;
}
div.footer hr {
    width: 100%;
}
#license {
    float: right;
}

hr.donators_top {
    width: 56%;
}
hr.donators_bottom {
    width: 40%;
}
span.header {
    font-weight: bold;
    font-size: 24pt;
    display: block;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}
span.center, #page #index {
    text-align: center;
}
ul.linearizable {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
ul.linearizable li {
    display: inline;
}
a.feedlink
{
    background-image: url("../images/rss.svg");
    background-position: right center;
    background-repeat: no-repeat;
    background-size: 12px 12px;
    padding-right: 16px;
}
/* Validation page */
#validation div.filename
{
    width: 35%;
    float: left;
}
#validation div.status
{
    width: 15%;
    float: left;
}
#validation div.actions
{
    width: 50%;
    float: left;
}
#validation div.header
{
    font-weight: bold;
}
/* A clearfix, as documented in
   http://stackoverflow.com/questions/11709433/floating-div-not-displaying-background-color-when-i-am-not-using-overflow
*/
.clear
{
    clear: both;
}
#validation div.file, #validation div.messages
{
    margin-bottom: 3px;
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-top: 2px;
    padding-bottom: 2px;
    padding: 0.5em;
}
#validation div.file
{
    height: 1.75em; /* somethy the div is squashed without this */
}
#validation div.entry
{
    margin-bottom: 1em;
}

div.sidebar .license .name
{
    display: none;
}

/* Code for mobile- and other small screen-friendliness */
@media screen and (max-width:1200px) {
    #main {
        margin: initial;
        width: initial;
    }
    #right-sidebar {
        display: none;
    }
}
@media screen and (max-width:900px) {
    #title {
        font-size: 18pt;
    }
    div.sidebar {
        width: 33%;
    }
    #page {
        margin-left: 33%;
    }
    img.logo {
        display: none;
    }
    ul.links-second li {
        text-indent: -2em;
    }
    table.search, form.search {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    table.search input {
        width: 90%;
    }

    /* "Responsive" information table. Solution from:
     * http://css-tricks.com/responsive-data-tables/ */
    /* BEGIN INFORMATION RESPONSIVE */
    table.information table,
    table.information thead,
    table.information tbody,
    table.information th,
    table.information td,
    table.information tr { 
        display: block;
    }
    #information thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    table.information th {
        font-weight: bold;
    }
    table.information td:before {
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 6px;
        left: 6px;
        width: 45%; 
        padding-right: 10px;
        white-space: nowrap;
    }
    /* END INFORMATION RESPONSIVE */
    ul.linearizable li {
        display: block;
    }
    ul.linearizable span.sep {
        display: none;
    }
    #progress_indicator div span.wide {
        display: none;
    }
    #progress_indicator div span.narrow {
        display: block;
    }
}
@media screen and (max-width:480px) {
    #title {
        height: initial;
        font-size: 16pt;
        line-height: initial;
        text-align: center;
        margin-left: initial;
    }
    div.sidebar {
        float: initial;
        width: initial;
    }
    #page {
        width: auto;
        margin-left: initial;
        padding-left: initial;
    }
    ul.links-first li {
        text-indent: 10%;
    }
    ul.links-second {
        margin-bottom: initial;
        padding-top: initial;
        padding-bottom: initial;
    }
    img.logo {
        display: none;
    }
    span.header {
        padding: 0;
    }
}
