main {
    padding-bottom: 2em;
}

.mainmatter {
    margin-bottom: 5em;
}

.languages {
    display: block;
    margin: 0.5em 0;
}

.languages label {
    color: #999;
    vertical-align: baseline;
}

.languages :checked + label {
    color: #070;
    font-weight: bold;
}

.names {
    display: flex;
    flex-flow: wrap;
/*    width: 80%*/
    margin-left: 2em;
}

.names li {
    box-sizing: border-box;
    flex: 1 1 auto;
    margin: 0;
    padding: 0.2em;
    width: 50%;
}

.names li::before {
    background-image: none;
/*    left: -1.5em;*/
    left: auto;
    right: 102%;
/*    content: "sk";*/
    font-style: italic;
/*    display: none;*/
}

.en::before {
    content: "en";
}

.de::before {
    content: "de";
}

.sk::before {
    content: "sk";
}
.la::before {
    content: "la";
}

.reference ul {
    font-size: 85%;
}

.menu-left a {
    cursor: pointer;
}

a + ul {
    display: none;
}

a.actual + ul {
    display: block;
}

.letter {
    display: inline-block;
    padding: 0.3em;
    cursor: pointer;
}

.letter:hover {
    outline: 1px dotted #ddd;
    background-color: #dfd;
}

.foundlist {
    margin-top: 1em;
/*
    border: 1px solid #ada;
    padding: 0.5em;
*/
/*    background-color: #dfd;*/
}

.foundlist h2 {
    margin-top: 0;
    padding-left: 0;
    padding-top: 0;
    margin-bottom: 0.4em;
}

.foundlist h2::before {
    display: none;
}

.foundlist ol {
    width: 101%;
    margin-left: 0;
    display: flex;
/*    flex-flow: column;*/
    flex-wrap: wrap;
    flex-grow: 0;
/*    flex-shrink: 0.6;*/
    justify-content: flex-start;

/*
    max-height: 22em;
    overflow: auto;
*/
    padding-left: 0;
    margin-top: 0;
/*    margin-right: 0.5em;
    background-color: #efe;*/
}

.foundlist li {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    margin-right: 0.8em;
    margin-bottom: 0.3em;
    list-style: none;
    flex: 1 0 auto;
    flex-grow: 0;
/*     max-width: 100%;*/
    width: 23%;
    width: 210px;
    background-color: #fff;
    padding: 0.4em 1em 1em 2em;
    
    
    border-radius: 15px 15px 0 0;
    
    border: 2px solid #dbe7cf;
    color: #666;
    cursor: pointer;
    z-index: 10;
  }

.foundlist li.item2 {
    margin-right: 0;
}

.foundlist li::after {
    box-sizing: border-box;
    z-index: 5;
    position: absolute;
    bottom: -20px; left: -2px;    
    content: " ";
    background: linear-gradient(to bottom, #e6f2de 0, #fff 100%);
/*    border: 2px solid #e6f2de;*/
    width: 210px;
    height: 25px;
}

.foundlist li:hover {
/*    outline: 1px dotted #bbb;*/
    background-color: #dfd;
}

li.active {
    color: #fff;
    background-color: #73bd44;
    border-color: #73bd44;
    font-weight: bold;
}
li.active:hover {
    
    background-color: #73bd44;
    
}
.foundlist li.active::after {
    content: " ";
    background: linear-gradient(to bottom, #9edc79 0, #fff 100%);

}

.single {
    margin-top: 1.5em;
    padding-top: 1em;
    border-top: 2px solid #ada;
}

.substance {
    font-style: normal;
    color: green;
    text-decoration: underline;
    cursor: pointer;
}

/*****  editacni formular *********/

.editor label {
    display: inline-block;
    margin-right: 0.5em;
}


#edit-names label {
    display: inline-block;
    width: 9em;
}
#edit-names input {
    display: inline-block;
    padding: 0.2em;
    width: 35em;
}

.mainlist input {
    display: none;
}

.mainlist label {
    color: #777;
    cursor: pointer;
}

.mainlist :checked + label {
    font-weight: bold;
    color: #800;
}

.sublist {
    padding-left: 0;
    margin-top: 0;
}

.sublist li {
    display: inline-block;
    margin: 0;
    padding: 0.2em 0.4em;
}

.sublist li::before {
    display: none;
}

p.chapter, p.sect1 {
    margin-bottom: 0;
}

.part .remover, .question .remover, .biblioitem .remover {
    position: absolute; 
    top: -25px; right: 0px;
}

.biblioitem {
   position: relative; 
}
.biblio-content {
    
    min-height: 1.5em;
    background: #def;
    margin: 0.2em 1em;
    padding: 0.5em;
}

.story {
    
    min-height: 1.5em;
    background: #ffd;
    margin: 0.2em 1em;
    padding: 0.5em;
    border: 1px solid #bbb;
}

.story p {
    text-indent: 0;
}

.toolbar {
    margin: 1em 0;
}

.toolbar input {
    display: inline-block;
    padding: 0.2em;
    margin-right: 0.5em;
}

.addnew {
    margin-top: 1.5em;
}

.addnew input {
    padding: 0.2em;
}

#report {
    background-color: #eee;
    padding: 0.5em;
    font-style: italic;
    font-size: smaller;
}