﻿/* css base for all projects, next step after modern-normalize.css*/
/* classes - always with prefix base-....*/

/*Force Vertical Scrollbar */
html {
  overflow-y: scroll;
}

 /* Add this class to an image to make it fit within it's fluid parent wrapper while maintaining aspect ratio*/
 /* if neccessary add vertical-align: bottom; and maybe remove display: block, as a reset for images to get rid
of 4px of white space at the bottom of images
.base-img {
    max-width: 100%;
    height: auto;
    display: block;
} */

/* or use overall "reset" definition for all images  - (test vertical-align and/or display: block)*/
/* vert align - funguje na inline pict ... block bude univerzálnější, převede to na blok typu div atd...*/
/* pozor ale, na block nelze používat inline formátování, např. text align-center!!*/
.img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Set core body defaults*/
body {
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  line-height: 1.3;
} 

summary {
	background: silver;
}

.circle {
	border-radius:50%;
	width: auto;
	float: left;
	margin: 0px 15px 0px 0px;
	}
	
.image-right {
	width: 35%;
	float: right;
	margin: 0px 0px 0px 15x;
}	

/* for scroll navbar from W3*/
#navbar {
  background-color: #333;
  position: sticky;
  top: 0;
  width: 100%;
  transition: top 0.3s;
}

/* for scroll navbar derivated from headroom.js */
.nav-bar{
  background-color: teal;
  position: sticky;
  top: 0;
  width: 100%;
  transition: transform 0.25s ease-in-out;
}
.nav-bar-unpin{
  /*display: none;*/
  transform: translateY(-80px);
}
.nav-bar-pin{
  /*display: block;*/
  transform: translateY(0);
}

.col {
  background: white;
  padding: 1rem 2rem;
  column-gap: 5rem;
  column-rule: 1px solid gray;
}

.col-2 {
  columns: 2 300px;
}

.col h4 {
  column-span: all;
  border-bottom: 2px solid green;
}

/*antoher way of columns span */
p.spancolumns {
    column-span: all;
    font-weight: bold;
    font-size: 1.2em;
    background-color: lightskyblue;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    padding: .5em;
    /*margin: .5em;*/
    text-align: center;
}

/*pozor na default values: https://www.w3schools.com/TAGs/tag_figure.asp */
.figure {
  border: 1px #cccccc solid;
  padding: 4px;
  margin: auto;
}

.figcaption {
	background-color: black;
  color: white;
  font-style: italic;
  padding: 2px;
  text-align: center;
}

/* images gallery definitions */
/* basic columns design */
.col-img-base {
  background: white;
  padding: 1rem 1rem;
  column-gap: 1rem;
  column-rule: 1px solid gray;
}

.col-img-count {
  columns: 5 150px;
}

.col-img-base figure {
	margin: auto;
	padding: 0 0 1rem 0;
	break-inside: avoid;
	text-align: center;
}

.col-img-base figcaption {
	background-color: black;
  color: white;
  font-style: italic;
  padding: 2px;
  text-align: center;
}


/* ratio definitions for image gallery*/
.ratio-100 {
	width: 100%;
}

.ratio-rem {
	width: 4rem;
}



/* Remove list styles on ul, ol elements with a class attribute
ul[class],
ol[class] {
  list-style: none;
} */

/* A elements that don't have a class get default styles
a:not([class]) {
  text-decoration-skip-ink: auto;
} */

/* Natural flow and rhythm in <article> by default
article > * + * {
  margin-top: 1em;
} */

/* nebo zcela obecně pomocí třídy
.base-flow > * + * { margin-top: 1em;} */


/* always be removing margin top on the first item and margin bottom on the last item,
since it pushes a container out too far or something

*:first-child {
  margin-top: 0;
}

*:last-child {
  margin-bottom: 0;
} */


/* Remove all animations and transitions for people that prefer not to see them
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}*/

/*
 Only custom marker for summary/details
 For cross browser compatible styling hide Firefox's marker by setting summary { display: block }
 and Chrome and Safari's marker by setting ::-webkit-details-marker {display: none;}
*/
.tree-nav {
}


.summarytree {
  display: block;
  cursor: pointer;
  outline: 0; 
}

.summarytree::-webkit-details-marker {
    display: none;
  }

.tree-nav__item {
  display: block;
  white-space: nowrap;
  color: #ccc;
  position: relative;
}
.tree-nav__item.is-expandable::before {
  border-left: 1px solid #333;
  content: "";
  height: 100%;
  left: 0.8rem;
  position: absolute;
  top: 2.4rem;
  height: calc(100% - 2.4rem);
}
.tree-nav__item .tree-nav__item {
  margin-left: 2.4rem;
}
.tree-nav__item.is-expandable[open] > .tree-nav__item-title::before {
  font-family: "ionicons";
  transform: rotate(90deg);
}
.tree-nav__item.is-expandable > .tree-nav__item-title {
  padding-left: 2.4rem;
}
.tree-nav__item.is-expandable > .tree-nav__item-title::before {
  position: absolute;
  will-change: transform;
  transition: transform 300ms ease;
  font-family: "ionicons";
  color: Black;
  font-size: 1.1rem;
  content: "\f125";
  left: 0;
  display: inline-block;
  width: 1.6rem;
  text-align: center;
}

.tree-nav__item-title {
  cursor: pointer;
  display: block;
  outline: 0;
  color: Black;
  font-size: 1.5rem;
  line-height: 3.2rem;
}
.tree-nav__item-title .icon {
  display: inline;
  padding-left: 1.6rem;
  margin-right: 0.8rem;
  color: #666;
  font-size: 1.4rem;
  position: relative;
}
.tree-nav__item-title .icon::before {
  top: 0;
  position: absolute;
  left: 0;
  display: inline-block;
  width: 1.6rem;
  text-align: center;
}

.tree-nav__item-title::-webkit-details-marker {
  display: none;
}