/******************* CAST PRESUNUTA Z CONTENT.CSS **************************/
/* a nasledne upravena... */
/* TODO ruzne potencialni dodelavky:
   - procisteni odstinu sede, pouziti promennych
*/


/* NEW h2, h3 rules */

.rule-box h3 {
    font-size: 19px;
}

.rule-box h3, .rule-box h2 {
  margin-top: 1.5em;
  margin-bottom: 0.4em;
  display: inline-block;
  display: table;
  background-color: #f5f5f5;
  padding: 3px 15px;
  border-radius: 5px;
}

.rule-box h3:first-child  {
  margin-top: 0.5em;
}

.rule-box h2:first-child  {
  margin-top: 0.5em;
}

/* NEW 10-2024 support for <i> in summaries */
.rule-box i {
  font-size: 18px;
}

/* NEW 10-2024 without underlying */
.rule-box em {
   color: #7f8c8d;
/*   border-bottom-color: #ecedee;
   border-bottom-style: solid;
   border-width: 0.5px; */
/*  color: var(--blackHover);
  border-radius: 6px;
  background-color: #f5f5f5;
  padding: 0.1rem 0.3rem 0.1rem 0.3rem; */
}

.rule-box p {
    font-size: 18px;
    margin-top: 0.8em;
    margin-bottom: 0.1em;
/*  margin-bottom: 0px;
  margin-top: 12px; */
}

.rule-box h3 + p {
    margin-top: 0.3em;
}

h3:first-of-type:not(p + h3):not(ol + h3):not(ul + h3) {margin-top: 0}

.rule-box ul{
  list-style: none;
}

.rule-box li{
  font-size: 18px;
}

.rule-box li p {
  margin-top: 0px;
  display: inline;
}

.rule-box ul li::before{
  content: "\25CF";
  color: gray;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.rule-box img {

   margin-top: 10px;
   margin-bottom: 5px;

}

.rule-box .playSound img {

  cursor:pointer;
  margin: 0px;

}

.rule-box .playSound:hover{
  opacity: 0.6;
}


/************* STYLOVANI TABULEK   ******************/

.rule-box td, th {
  font-size: 18px;
}

.rule-box table {
  margin-left: auto;
  margin-right: auto;
  border: 1px solid #e0e0e0;
  vertical-align: top;
}

@media (max-width: 550px) {
  .rule-box table {
    display: block;
    overflow-x: scroll;
    overflow-y: hidden;
    max-width: calc(100vw - (var(--unit)*4));
    margin: 0;
    /* white-space: nowrap; */
  }
}

.rule-box details table {
  margin-left: 20px;
  margin-right: 20px;
}

.rule-box table thead {
  background-color: #f5f5f5;
}

.rule-box table tr:nth-child(odd) {
  background-color: #f5f5f5;
}

.rule-box table tr:nth-child(even) {
  background-color: #ffffff;
}

.rule-box table thead + tbody tr:nth-child(even) {
  background-color: #f5f5f5;
}

.rule-box table thead + tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.rule-box table td, th {
  padding-left: 10px;
  padding-right: 10px;
  border: none;
}

/************* STYL DETAILS/SUMMARY   ******************/
/***** zaklad stejny jako staticPage.css, ale postupne dost upraveno *****/

details {
  background: #f8f8f8;   /* NEW */
  border: 1px solid #f5f5f5;  /* NEW color 28. 11.,  var(--lightGrayHover)*/
  border-radius: var(--unit);
  box-shadow:  0 0px 3px 0 rgba(0, 0, 0, .08); /* NEW, was 0 2px 11px 0 rgba(0, 0, 0, .1); */
  max-width: fit-content;
  margin-top: 15px;    /* was 12, 20 */
  margin-bottom: 15px;
  overflow: hidden;
}

.details-compact-group details {  /* completely NEW  */
  border: 1px solid #f5f5f5;
  max-width: 80%;
  margin-top: 0px;
  margin-bottom: 0px;
  border-radius: 0px;
  box-shadow: none;
  position: relative;
  z-index: 10;
}

.details-compact-group details:first-child {border-top-right-radius: var(--unit); border-top-left-radius: var(--unit);}
.details-compact-group details:last-child {border-bottom-right-radius: var(--unit); border-bottom-left-radius: var(--unit);}

/* compact group shadow */
.details-compact-group {position: relative;}
.details-compact-group:before {content: ''; display: block; position: absolute; width: 80%; height: 100%; box-shadow:  0 0px 3px 0 rgba(0, 0, 0, .08); border-radius: var(--unit); z-index: 0;}

p + .details-compact-group {
  margin-top: 15px;
}

details[open] {
  padding-bottom: 15px;
  border: 1px solid var(--lightGrayHover); /* NEW 28. 11.,  */
  max-width: 100vw;
}

.details-compact-group details[open] {max-width: 80%;}

@media screen and (max-width: 550px) {
  .details-compact-group details, .details-compact-group details[open] {max-width: 100vw;}
}

details > * {
margin-left: 1rem;
margin-right: 1rem
}

details ul, details ol {padding-left: 1.2rem;}

summary {
  padding: 0.6rem 1.5rem 0.6rem 1rem;  /* NEW */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  font-weight: 500;
  background: #ffffff;
  margin: 0;
  line-height: 100%;
  position: relative;
/*  transition: .15s background ease; Petrovy vadi ze to je pomaly */
}

/* NEW 10-2024  */
details.highlight summary {
  background: #34495e;
  color: #ecf0f1;
}

details:hover{
  border: 1px solid var(--lightGrayHover);
}

summary:hover {
  background: #f0f0f0;
}

summary:before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  margin-right: 8px;
  width: 20px;
  height: 20px;
  background: url("https://www.umimeto.org/asset/global/img/icons-umime/icon-triangle.svg") center no-repeat;
  background-size: contain;
  transform: rotate(0);
  transform-origin: 50% 50%;
  transition: .25s transform ease;
}

details.highlight summary:before {
  background: url("https://www.umimeto.org/asset/global/img/icons-umime/icon-triangle-cloud.svg") center no-repeat;
  background-size: contain;
}


details[open] summary {
  border-bottom: 1px solid var(--lightGrayHover);
  background: #f0f0f0;  /* NEW, was #f5f6f7 */
  margin-bottom: 0.6rem;
}

/* NEW 10-2024  */
details.highlight[open] summary {
  background: #34495e;
  color: #ecf0f1;
}


details[open] > summary:before {
  transform: rotate(90deg);
}

summary::-webkit-details-marker {
  visibility: hidden;
  position: absolute;
  top: 0; left: 0;
}

summary::marker {
  display: none;
}

/************* ILLUSTRATIVE IMAGES *************/

.rule-box .img-illustrative {
  float: right;
  max-width: 210px;
  margin-bottom: calc(var(--unit) * 3);
  margin-left: calc(var(--unit) * 3);
  margin-top: 0;
  padding-top: 0;
}

.rule-box .img-illustrative.small {max-width: 170px;}
.rule-box .img-illustrative.large {max-width: 250px;}

@media (max-width: 550px) {
  .rule-box .img-illustrative {display: none;}
}

/************* STYLOVANI OBRAZKU  - boxes with more images       **********/

.rule-box {
    --image-desc-height: 130px
}

.descflex {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
    margin-bottom: 15px;
    align-items: center;
    justify-content: center;
}

.descflex>div {
    position: relative;
    display: flex;
    flex-grow: 0;
    flex-shrink: 0;
    height: var(--image-desc-height)
}

.descflex.higher>div {
    height: calc(var(--image-desc-height) + 30px)
}

.descflex>div>img {
    display: inline-block;
    max-height: 100%;
    object-fit: cover;
    margin-top: 0 !important;
    margin-bottom: 0 !important
}

.descflex>div>div {
    display: inline-block;
    text-align: center;
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 0 .3rem .3rem;
    padding: .12em .4rem;
    background-color: rgba(44, 60, 80, .85);
    border-radius: 50vh;
    color: #fff;
    line-height: 100%
}

@media(max-width:550px) {
    .descflex>div>div {
        font-size: 80%
    }

    .descflex>div {
        max-height: calc(var(--image-desc-height) - 40px)
    }

    .descflex.higher>div {
        max-height: calc(var(--image-desc-height) - 20px)
    }
}

/* two adjacent images */
.image-halves {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    width: 100%
}

.image-halves img {
    width: 100%
}


/* individual images */

.ir-20, .ir-25, .ir-30, .ir-35, .ir-40, .ir-45, .ir-50, .ir-55, .ir-60, .ir-65, .ir-70, .ir-75, .ir-80, .ir-85, .ir-90, .ir-95 {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.ir-20 {
    max-width: 20%
}

.ir-25 {
    max-width: 25%
}

.ir-30 {
    max-width: 30%
}

.ir-35 {
    max-width: 35%
}

.ir-40 {
    max-width: 40%
}

.ir-45 {
    max-width: 45%
}

.ir-50 {
    max-width: 50%
}

.ir-55 {
    max-width: 55%
}

.ir-60 {
    max-width: 60%
}

.ir-65 {
    max-width: 65%
}

.ir-70 {
    max-width: 70%
}

.ir-75 {
    max-width: 75%
}

.ir-80 {
    max-width: 80%
}

.ir-85 {
    max-width: 85%
}

.ir-90 {
    max-width: 90%
}

.ir-95 {
    max-width: 95%
}

@media(max-width:600px) {
    .ir-30,
    .ir-35,
    .ir-40,
    .ir-45,
    .ir-50,
    .ir-55,
    .ir-60,
    .ir-65,
    .ir-70,
    .ir-75,
    .ir-80,
    .ir-85,
    .ir-90,
    .ir-95
    .descImg {
        max-width: 100%;
        height: auto
    }

    /* .ix-25 {
        max-width: 40%
    }

    .ix-40 {
        max-width: 75%
    } */
}


/*************** SYNTAX HIGHLIGHTING INF   ******************/

.rule-box code:not(.sourceCode) {
    background: #f5f5f5;
    font-size: 90%;
    padding: 2px 4px;
    border-radius: 4px;
    color: #007020;
}

/*************** Pandoc style, manualne upraveny Radkem  ******************/

details div.sourceCode { margin: 1em 1em; } /* new, inside details modification  */


div.sourceCode { overflow-x: auto;  border-style: solid;  border-color: lightgray;   border-width: thin;   background-color: rgb(250,250,250); padding: 10px; }
a.sourceLine { display: inline-block; line-height: 0.8; }
a.sourceLine { pointer-events: none; color: inherit; text-decoration: inherit; }
.sourceCode { overflow: visible; }
a.sourceLine:empty { height: 1.2em; }
code.sourceCode { white-space: pre; position: relative; }
div.sourceCode { margin: 1em 0; }
pre.sourceCode { margin: 0; line-height: 0.8;}
@media screen {
div.sourceCode { overflow: auto; }
}
@media print {
code.sourceCode { white-space: pre-wrap; }
a.sourceLine { text-indent: -1em; padding-left: 1em; }
}
pre.numberSource a.sourceLine
  { position: relative; left: -4em; }
pre.numberSource a.sourceLine::before
  { content: attr(title);
    position: relative; left: -1em; text-align: right; vertical-align: baseline;
    border: none; pointer-events: all; display: inline-block;
    -webkit-touch-callout: none; -webkit-user-select: none;
    -khtml-user-select: none; -moz-user-select: none;
    -ms-user-select: none; user-select: none;
    padding: 0 4px; width: 4em;
    color: #aaaaaa;
  }
pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa;  padding-left: 4px; }
div.sourceCode
  {  }
@media screen {
a.sourceLine::before { text-decoration: underline; }
}
code span.al { color: #ff0000; font-weight: bold; } /* Alert */
code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
code span.at { color: #7d9029; } /* Attribute */
code span.bn { color: #40a070; } /* BaseN */
code span.bu { } /* BuiltIn */
code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
code span.ch { color: #4070a0; } /* Char */
code span.cn { color: #880000; } /* Constant */
code span.co { color: #60a0b0; font-style: italic; } /* Comment */
code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
code span.do { color: #ba2121; font-style: italic; } /* Documentation */
code span.dt { color: #902000; } /* DataType */
code span.dv { color: #40a070; } /* DecVal */
code span.er { color: #ff0000; font-weight: bold; } /* Error */
code span.ex { } /* Extension */
code span.fl { color: #40a070; } /* Float */
code span.fu { color: #06287e; } /* Function */
code span.im { } /* Import */
code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
code span.kw { color: #007020; font-weight: bold; } /* Keyword */
code span.op { color: #666666; } /* Operator */
code span.ot { color: #007020; } /* Other */
code span.pp { color: #bc7a00; } /* Preprocessor */
code span.sc { color: #4070a0; } /* SpecialChar */
code span.ss { color: #bb6688; } /* SpecialString */
code span.st { color: #4070a0; } /* String */
code span.va { color: #19177c; } /* Variable */
code span.vs { color: #4070a0; } /* VerbatimString */
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
