section.hidden {
    display: none;
}

.toc {
/*    display: none;*/
}


.display {
  
     margin-top: 1em;
    margin-bottom: 5em;
    border-top: 1px solid #ddd;
}


.cathegories {
    display: flex; 
/*    flex-flow: wrap;*/
    width: 650px;
}
.cathegories li {
    flex: 1 1 auto;
    min-width: 15%;
/*    max-width: 25%;*/
/*    width: 25%;*/
/*    border: 1px solid #eee;*/
/*    padding: 0.5em !important;*/
    text-align: left;
    margin: 0.5em;
    background-color: #ddf;
    border: 1px solid #def;
}

.cathegories li:hover {
    background: #eefcff;
    cursor: pointer;
}

.cathegories h3 {
    color: #fff;
    background-color: #0D4B9B;
    padding: 0.2em;
}
/*
.cathegories li + li {
    border-left: 1px solid #ddd;
    padding-left: 0.5em;
}
*/
.cathegories p {
    margin: 0;
    padding: 0.5em;
    padding-left: 0.5em;
}

.toc li::before {
    display: none
}


.question li, .story li, .solution li {
   position: relative;
    padding-left: 30px;
}


.cases {
    display: flex; 
    flex-wrap: wrap;
    width: 650px;
    text-align: center;
}
.cases img { border: 0px none}

.cases figcaption {
    margin-top: 0;
}
.case {
    margin: 0.0em 0.2em;
    padding: 0.4em;
    border: 1px solid transparent;
}

.case:hover, .case.actual {
    border: 1px solid #ddd;
    background-color: #fafafa;
    cursor: pointer;
}

.toc p {
    text-align: left;
    color: #777;
}

.part /*+ .part*/ {
    margin-top: 1.8em;
}

h2 + .part {
    margin-top: 0.0em;
}

.questions {
    margin-top: 1em;
    border-width: 1px 1px 1px 10px;
    border-style: solid;
    border-color: #393;
    padding-right: 1em;
    padding-bottom: 1em;
    
}

.questions h4 {
    padding-left: 30px;
}

.biblio {
    font-size: 80%;
    border: 1px solid #36f;
    border-left-width: 10px;
/*    padding: 0.5em;*/
}


.question {
    padding: 0.5em;
    padding-left: 30px;
/*    color: #999;*/
}

.question + .question {
    margin-top: 1em;
}

.question h3 {
    margin-left: 0;
    padding-left: 0;
}
.question p {
    padding-left: 0;
    text-indent: 0;
}

.task {
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    position: relative;
    padding-right: 30px;
}

.task p {
    display: inline;
}
.answer {
    margin-left: 1.5em;
    margin-top: 0.3em;
    display: none;
    color: #666;
}
.answer-toggler {
    position: absolute;
    bottom: 2px; right: 0;
    width: 20px; height: 20px;
}


.toolbar {
    margin: 1em 0;
}

.toolbar input {
    display: inline-block;
    margin-right: 1em;
    padding: 0.3em;
}

.repeater {
    margin-top: 1.5em;
}

table p {
    text-indent: 0;
}



.panel {
/*
    display: inline-block;
    width: 47%;
    vertical-align: top;
*/
}

#editor {
    counter-reset: part;
    counter-reset: question;
}

#editor p {
    margin-top: 0;
    margin-bottom: 0.2em;
}

#editor > p {
    margin-bottom: 0.7em;
    text-indent: 0; 
}

#editor p label {
    display: inline-block;
    text-indent: 0px;
    width: 12em;
    color: #666;
    vertical-align: top;
}

#editor .editors {
  display: inline-block;
vertical-align: top;
max-length: 20em;
margin-top: 0;
}

.editors label {
   margin-left: 1em;
color: #777;
}

.editors :checked + label {
   font-weight: bold; color: #000;
}
.part {
/*    width: 40em;*/
    margin: 1em 0;
    margin-left: 5em;
    counter-increment: part;
    position: relative;
}

.part::before {
    position: absolute;
    left: -4em;
    content: "Část " counter(part, upper-roman);
}

.part h2, .part h3 {
    font-size: 100%;
    margin: 0.2em 0;
}

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

.part > .adder {
    display: block;
    margin: 1.5em 0 1.5em -4em;
}


.question .remover {
    top: -1.5em;
}
.story {
    min-height: 1em;
    border: 1px solid #ddd;
    padding: 0.5em; 
    background: #fee;    
}

.questions {
    padding-left: 1.5em;
}

.question {
    margin: 0.5em;
    position: relative;
    counter-increment: question;
}

.question::before {
    position: absolute;
    left: -1.5em;
    content: counter(question) "."
}

.task {
    min-height: 1.5em;
    border: 1px solid #ddd;
    padding: 0.5em; 
    background: #eef;
    margin-bottom: 0.5em;
}

.solution {
    min-height: 1.5em;
    border: 1px solid #ddd;
    padding: 0.5em; 
    background: #efe;
    margin-left: 40px;
    position: relative;
}

.solution::before {
    position: absolute;
    left: -38px; top: 5px;
    content: url(key_solid.png);
}

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

#vystupni {
    visibility: hidden;
}
#io {
    display: none;
}

.editors li::before { display: none }