.part {
	display: flex;
	align-items: stretch;
	box-sizing: border-box;
	flex-flow: row wrap;
}

.selecting {
	min-height: 22em;
}

.part-title {
	flex: 1 0 100%;
}

.sidepart {
	flex: 0 1 220px;
/*	padding-right: 1em;*/
	padding: 0.5em;
background-color: #f0f0f0;
margin-right: 1em;
margin-bottom: 1em;
}

.mainpart {
	flex: 1 0 50%;
	max-width: 700px;
	    padding: 0.5em;
    background-color: #f0f0f0;
    margin-bottom: 1em;
}



.sidepart h3 {
	font-size: 1rem;
	margin-top: 0;
}

.subheading {
	flex: 1 0 100%;
	margin-top: 0;
}


.toc {
   display: flex;
	flex-flow: row wrap;
}

.tocmenu {
	flex: 0 1 auto;
	margin-right: 1em;
/*	border: 1px solid #bbb;*/
}

.tocmenu.menu3 {
    display: flex;
    flex-flow: column wrap;
    max-height: 17em;
}

.menuitem {
    padding: 0.3em;    
	padding-right: 1.5em;
	border: 1px solid transparent;
	cursor: pointer;
}

.menuitem.actual {
	border-color: #bbb;
}

.folder.actual {
	text-shadow: 1px 0 0 #999;
}


.folder {
    position: relative;
    
}

.folder:hover{
	background-color: #eee;
}

.folder::after {
    opacity: 0;
    position: absolute;
    right: 0.4em;
	content: ">";
}

.menuitem.item {
	padding-right: 0.5em;
    color: #800;
	
}
.item:hover{
	background-color: #fee;
}

.item.actual {
	color: #fff;
	text-shadow: 1px 0 0 #bbb;
	border-color: #a02622;
	background-color: #a02622;
	color: #fff;
}

.actual::after, .menuitem:hover::after {
	opacity: 0.5;
}

.display {
/*	display: flex;*/
	width: 100%;
}

.pic-pane {
	flex: 1 1 80%;
	min-height: 500px;
/*	border: 1px solid #bbb;*/
}

#item-title {
	margin-top: 0;
}


/***  menu algoritmu ****/

#algoritmus-menu {
    display: none;
}

.phases {
	margin-left: 0;
	margin-top: 0;
}

.phases li {
	padding: 0;
	padding-left: 0;
	margin: 0;
}


.phases li::before {
	display: none;
}
.phases a {
	display: block;
	padding: 0.2em;
	text-align: left;
}
.phases a:hover {
    background-color: #fee;
	cursor: pointer;
}

.subphase {
	margin-left: 40px;
}

.phases .inactive {
	color: #777;
	display: none;
}

/*

a.inactive:hover {
	background-color: transparent;
	cursor: default;
}
*/

.phase.actual {
	color: #fff;
	text-shadow: 1px 0 0 #eee;
	background-color: #a02622;
}
.phase.actual:hover {
	background-color: #c33;
}
main img {
	float: none;
	border-right-width: 1px;	
	margin: 0;
}

#viewport {
	position: relative;
}

#thumbs {
	display: flex;
	flex-flow: row wrap;
	min-height: 50px;
	padding: 0.5em;
	background-color: #f0f0f0;
}

.thumbs-section + .thumbs-section {
    margin-left: 0.7rem;
border-left: 1px solid #bbb;
padding-left: 0.8rem;
}

.thumbs-label  {
    margin-top: 0;
    font-size: 1rem;
    flex: 1 0 100%;
}

.thumb {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	padding: 0.3em;
}

.thumb:hover {
	cursor: pointer;
	background-color: #c66;
	color: #fff;
}

/*
.thumb + .thumb {
	margin-left: 0.5em;
}
*/

.thumb img {
	max-height: 30px;
padding: 0em;
width: 40px;
}

.thumb figcaption {
	text-align: left;
    margin-left: 0.1em;
    padding: 0.2em;
/*    white-space: nowrap;*/
	max-width: 12em;
}

.thumb.actual {
	background-color: #a02622;
	color: #fff;
}

#bigOne {
	float: none;
	max-width: 100%;
	max-height: 75vh;
	display: block;
	margin: 0 auto;
	border: 0 none;
}

#img-desc {
	position: absolute;
	bottom: 0.9em; right: 0.5em;
	padding: 0.5em;
	background-color: rgba(255,255,255, 0.5);
	font-weight: bold;
	font-size: 120%;
}

.pic-navig {
	display: flex;
	align-items: center;
	
    position: absolute;
    width: 20%;
    height: 100%;
    top: 0;
    left: 0;
/*    border: 1px solid red;*/
    font-size: 5rem;
/*    padding-top: 40%;*/
    color: #a02622;
	text-shadow: 1px 1px 5px #fdd; 
    font-weight: bold;
    opacity: 0;
	transition: opacity 0.3s;
}

.pic-navig:hover {
   
/*    background-color: rgba(0,0,0, 0.2);*/
    cursor: pointer;
    opacity: 1;
}

.pic-prev {
    padding-left: 0.3em;
	background: linear-gradient(to right, rgba(0,0,0, 0.2), rgba(0,0,0,0));
	justify-content: flex-start;
}

.pic-next {
    left: auto;
	right: 0;
	text-align: right;
	padding-right: 0.4em;
	background: linear-gradient(to left, rgba(0,0,0, 0.2), rgba(0,0,0,0));
	justify-content: flex-end;
}

.pic-navig.inactive:hover {
	cursor: default;
	opacity: 0;
}






.hidden {
	display: none;
}

#descriptions {
    margin-top: 1em;
}

.section {
	display: none;
	
}

.section p {
    margin: 0 0 0.8em 0;
}

.section.actual {
	display: block;
}

.results {
font-size: 90%;
    height: 16em;
/*    height: 100%;*/
    overflow: auto;
	text-align: left;
}

.result-item {
	
	text-align: left;
	padding: 0.1em;	
}

.result-item:hover {
	cursor: pointer;
	background-color: #fee;
}
.toolbar {
	display: flex;
	margin-bottom: 0;
}

#muscle-search, #searcher {
	padding: 0.2em;
	
}

#muscle-search {
	flex: 0 1 60%;
	max-width: 144px;
}