/* Hlavička */
.tm-header { background: white; }
.tm-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}
.tm-logo { display: flex; align-items: center; }
.tm-site-icon {
  font-size: 2rem;
  color: #09F; /* modrá, ladí s matematikou */
  margin-right: 10px;
}

.tm-site-name { font-size: 2rem; text-transform: uppercase; color: #999; }

/* Navigace */
.tm-nav .nav-link {
  color: #999;
  padding: 10px 15px;
  border-bottom: 3px solid transparent;
}
.tm-nav .nav-link:hover,
.tm-nav .nav-item.active .nav-link {
  color: #000;
  border-bottom: 3px solid #09F;
}

/* Mezera mezi položkami menu */
.tm-nav .nav-item {
  margin-left: 15px;   /* mezera vlevo */
}

.tm-nav .nav-item:first-child {
  margin-left: 0;      /* první položka bez mezery */
}

.navbar{
 padding-right: 70px;
}

.navbar-nav .dropdown-menu {
  background-color: white;
  border: 1px solid #ccc;
}
.navbar-nav .dropdown-item {
  color: #333;
}
.navbar-nav .dropdown-item:hover {
  background-color: #f0f0f0;
}

.nav-item.dropdown:hover .dropdown-menu {
  display: block;
}



/* Hero */
.tm-hero { margin: 0; line-height: 0; }
.tm-hero-img { width: 100%; height: auto; display: block; }

/* Tělo */
.tm-main { margin-top: 0; padding: 30px 40px; }

/* Patička */
.tm-footer {
  background: white;
  padding: 20px 40px;
  text-align: right;
  color: #666;
}


/*=== dlaždice na stránce ===*/
.button-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
  justify-content: center;
}

.btn-tile {
  display: flex;
  flex-direction: column; /* ikona nahoře, text dole */
  align-items: center;
  justify-content: center;
  padding: 15px 25px;
  background: #09F;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease;
  min-width: 180px;
  text-align: center;
}

.btn-tile:hover {
  background: #0077cc;
  transform: translateY(-3px);
}

.btn-icon {
  font-size: 3rem;   /* velikost emoji/ikony */
  margin-bottom: 8px;
}

.btn-icon img {
  max-width: 60px;
  max-height: 60px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

table th, table td {
  border: 1px solid #333;
  padding: 8px;
  text-align: center;
}

table th {
  background-color: #f0f0f0;
}

@media print {
  /* zabrání rozdělení úloh přes dvě stránky */ 
  .exercise { 
  page-break-inside: avoid !important; 
  break-inside: avoid !important; 
  margin-bottom: 20px; 
  }
  
  body { 
    font-size: 18pt; /* nebo 16pt podle potřeby */ 
    line-height: 1.5; /* trochu větší řádkování pro čitelnost */ }
 
  nav, header, footer, button, .breadcrumb, .breadcrumbs, #breadcrumb, nav.breadcrumb {
    display: none; /* schová navigaci, hlavičku, patičku a tlačítka */
  }
  .tm-hero, .tm-hero-img { display: none !important; }
  #content {
    width: 100%;
    font-size: 18pt; /* zvětší text pro tisk */
  }
  .print-btn {
    display: none; /* tlačítko se při tisku nezobrazí */
  }
}

.print-btn {
  margin: 10px 0;
  padding: 8px 16px;
  background: #007acc;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.print-btn:hover {
  background: #005fa3;
}


/* === procvicovani ===*/
.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.tile {
    background: #e8f8ff;
    border: 3px solid #a6ddff;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.tile:hover {
    background: #d6f1ff;
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* === drobečková navigace ===*/
.breadcrumb {
    margin: 10px 0;
    padding-left: 40px; /* ← odsazení od levého kraje */
    font-size: 16px;
    color: #666;
}

.breadcrumb a {
    color: #0077b6;
    text-decoration: none;
    font-weight: bold;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

