body, html {
  
  overflow-x: hidden;
  font-family: sans-serif;
  scroll-behavior: smooth;	
}

.scene {
  position: relative;
  width: 100%;
  height: 100vh;
}

.scene img {
  position: absolute;
  left: 0;
  top: 0;	
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.8s ease;
  will-change: transform, opacity;
}

.sticky-info {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.9);
  padding: 1em;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none; /* zabrání interakci, když je neviditelný */
}

.sticky-info.visible {
  opacity: 1;
  pointer-events: auto;
}

#intro {
  height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
}


.responsive-table, .responsive-table-2, .responsive-table-3, .responsive-table-zahr {
    overflow-x: auto;
    margin: 2em auto;
    max-width: 100%;
	padding: 0 1em;
  }

  .responsive-table table, .responsive-table-2 table, .responsive-table-zahr table {
    border-collapse: collapse;
    border: 1px solid #ccc;
    font-family: sans-serif;
    font-size: 0.95rem;
    margin: 0 auto;
    width: 100%;
    max-width: 90%; /* nově přidaná maximální šířka */
    min-width: 480px; /* na mobilu začne scrollovat */
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }

.responsive-table-3 table {
    border-collapse: collapse;
    border: 1px solid #ccc;
    font-family: sans-serif;
    font-size: 0.95rem;
    margin: 0 auto;
    width: 100%;
	max-width: 90%; /* nově přidaná maximální šířka */
    min-width: 480px; /* na mobilu začne scrollovat */
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }




  .responsive-table th, .responsive-table-2 th, .responsive-table-3 th, .responsive-table-zahr th ,
  .responsive-table td, .responsive-table-2 td, .responsive-table-3 td, .responsive-table-zahr td {
    padding: 0.75em 1em;
    border: 1px solid #ddd;
    white-space: normal;
    text-align: left;
    vertical-align: top;
    word-break: break-word;
  }

  .responsive-table th, .responsive-table-2 th, .responsive-table-3 th, .responsive-table-zahr th {
    background-color: #f5f5f5;
    font-weight: bold;
  }

  

 /* .responsive-table tr:nth-child(even) td, .responsive-table-2 tr:nth-child(even) td, .responsive-table-3 tr:nth-child(even) td, /*.responsive-table-zahr tr:nth-child(even) {
 /*   background-color: #fafafa;
 /* }

  /* procentuální šířky sloupců */
  .responsive-table th:nth-child(1),
  .responsive-table td:nth-child(1) {
    width: 15%;
  }

  .responsive-table th:nth-child(2),
  .responsive-table td:nth-child(2) {
    width: 11%;
  }

  .responsive-table th:nth-child(3),
  .responsive-table td:nth-child(3) {
    width: 18%;
  }

  .responsive-table th:nth-child(4),
  .responsive-table td:nth-child(4) {
    width: 56%;
  }


.responsive-table-2 th:nth-child(1),
.responsive-table-2 td:nth-child(1) {
  width: 15%;
}

.responsive-table-2 th:nth-child(2),
.responsive-table-2 td:nth-child(2) {
  width: 85%;
}



.responsive-table-3 th:nth-child(1),
  .responsive-table-3 td:nth-child(1) {
    width: 20%;
  }

  .responsive-table-3 th:nth-child(2),
  .responsive-table-3 td:nth-child(2) {
    width: 15%;
  }

  .responsive-table-3 th:nth-child(3),
  .responsive-table-3 td:nth-child(3) {
    width: 10%;
  }

  .responsive-table-3 th:nth-child(4),
  .responsive-table-3 td:nth-child(4) {
    width: 20%;
  }

.responsive-table-3 th:nth-child(5),
  .responsive-table-3 td:nth-child(5) {
    width: 14%;
  }

  .responsive-table-3 th:nth-child(6),
  .responsive-table-3 td:nth-child(6) {
    width: 16%;
  }




.responsive-table-zahr th:nth-child(1),
  .responsive-table-zahr td:nth-child(1) {
    width: 7%;
  }

  .responsive-table-zahr th:nth-child(2),
  .responsive-table-zahr td:nth-child(2) {
    width: 24%;
  }

  .responsive-table-zahr th:nth-child(3),
  .responsive-table-zahr td:nth-child(3) {
    width: 18%;
  }

  .responsive-table-zahr th:nth-child(4),
  .responsive-table-zahr td:nth-child(4) {
    width: 23%;
  }

.responsive-table-zahr th:nth-child(5),
  .responsive-table-zahr td:nth-child(5) {
    width: 28%;
  }






.responsive-table td[data-tooltip], .responsive-table-2 td[data-tooltip], .responsive-table-3 td[data-tooltip], .responsive-table-zahr td[data-tooltip] {
    position: relative;
    cursor: help;
  }

  .responsive-table td[data-tooltip]::after, .responsive-table-2 td[data-tooltip]::after, .responsive-table-3 td[data-tooltip]::after, .responsive-table-zahr td[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(6px);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 0.4em 0.6em;
    border-radius: 4px;
    font-size: 0.75em;
    white-space: normal;
    max-width: 500px;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }











  .responsive-table td[data-tooltip]:hover::after, .responsive-table-2 td[data-tooltip]:hover::after, .responsive-table-3 td[data-tooltip]:hover::after, .responsive-table-zahr td[data-tooltip]:hover::after {
    opacity: 1;
  }





.responsive-table th[data-tooltip], .responsive-table-2 th[data-tooltip], .responsive-table-3 th[data-tooltip], .responsive-table-zahr th[data-tooltip] {
    position: relative;
    cursor: help;
  }

  .responsive-table th[data-tooltip]::after, .responsive-table-2 th[data-tooltip]::after, .responsive-table-3 th[data-tooltip]::after, .responsive-table-zahr th[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(6px);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 0.4em 0.6em;
    border-radius: 4px;
    font-size: 0.75em;
    white-space: normal;
    max-width: 500px;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }





  .responsive-table th[data-tooltip]:hover::after,  .responsive-table-2 th[data-tooltip]:hover::after, .responsive-table-3 th[data-tooltip]:hover::after, .responsive-table-zahr th[data-tooltip]:hover::after {
    opacity: 1;
  }






.tooltip-icon {
  font-size: 0.8em;
  margin-left: 0.3em;
  color: #888;
  cursor: help;
}




.inline-tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

.inline-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(6px);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 0.4em 0.6em;
  border-radius: 4px;
  font-size: 0.75em;
  white-space: pre-wrap;
  min-width: 200px;	
  max-width: 500px;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.inline-tooltip:hover::after {
  opacity: 1;
}




.html-tooltip {
  position: relative;
  cursor: help;
  display: inline-block;
}

.tooltip-content {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(6px);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 0.4em 0.6em;
  border-radius: 4px;
  font-size: 0.75em;
  white-space: normal;
  min-width: 300px;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  visibility: hidden;
}

.html-tooltip:hover .tooltip-content {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}








.responsive-table td[data-tooltip2] {
    position: relative;
    cursor: help;
  }

  .responsive-table td[data-tooltip2]::after {
    content: attr(data-tooltip2);
    position: absolute;
    bottom: 100%;
    left: 0%;
    transform: translateY(-6px);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 0.4em 0.6em;
    border-radius: 4px;
    font-size: 0.75em;
    white-space: normal;
    max-width: 500px;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }

  .responsive-table td[data-tooltip2]:hover::after {
    opacity: 1;
  }
