
body{
    font-family: 'Poppins', sans-serif;
    min-height: 100vh; 
    background:var( --pozadi_2);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center; 
    display: flex; 
    flex-direction: column;
  }
  main {
  
    display: flex;
    flex-direction:row;
    justify-content: space-evenly;
    padding-top: 78px;
    flex: 1;
    }
.mid{
    width: 40%;
    
  }
  .right{
    width: 30%;
  }
  .left{
    width: 30%;
    display: flex;
    flex-direction:column;
    align-items:center;
    padding:10px 4% 0 0%;
  }

.mid h1{
    margin-bottom: 30px;
    padding-top: 20px;
    font-size: 30px;
    color: var(--nadpis_h1);
}
.mid h2{
    font-size: 15px;
    color: var(--nadpis_h2);
}
.vyber{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 20px;
}
#search {
    
    width: 100%;
    max-width: 350px;
    height: 40px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    text-align: center;
}

/* Styl pro div s výsledky */
#results {
   
    width: 100%;
    max-width: 350px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-height: 200px; /* 5 řádků po 40px */
    overflow-y: auto; /* Scrollování pokud je více než 5 výsledků */
}

/* Styl pro každý odkaz ve výsledcích */
#results a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: rgb(36, 81, 105);
    border-bottom: 1px solid  var(--nadpis_h3a);
}

/* Styl pro hover efekt na odkazech */
#results a:hover {
    background-color: #f0f0f0;
}

/* Styl pro poslední výsledek, aby neměl spodní rámeček */
#results a:last-child {
    border-bottom: none;
}
.tab {
    width: 100%;
    max-width: 600px;
    margin: 0px auto 0px auto; 
    font-size:14px;
    border-collapse: collapse;
}
.nazev a{
    font-size: 15px;
    text-decoration: none;
    color: var( --nadpis_a);  
}
.tab tr th{
    margin-right: auto; margin-left: 0;
    background: var(--pozadi_box);
}

.obsah .meno{
    text-align:center;
}
td{
        color:var(--text);       
        text-align: center;        
    }
th{
        color:var(--nadpis_h2);
        padding:5px 0px 5px 0px;       
    }
.njn{
    background-color: var(--tr_thhover);
}
.tab tr td{
        color: var(--tr_td);       
        text-align:center;
    }
.tab tr:hover td{
        background: var(--tr_thhover);
    }
.cas{
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
      }
tr:nth-child(even) {
        background-color:var(--child2)
    }
      
tr:nth-child(odd) {
        background-color:var(--child1)
      }

@media (max-width: 1010px){

    .tab{
        font-size: 12px; 
       
    }      
       
    .nazev{
            font-size: 18px;
        }
    .hlava h1{
        margin-bottom: 20px;
        padding-top: 10px;
        font-size: 23px;
    }
    .nazev a{
        font-size: 15px;
        
    } 
    .left{
        display: none;
    }
    .right{
        display: none;
    }
    .mid{
        align-items: center;
        width: 70%;
      
    }
    }
    @media (max-width: 700px){

        .tab{
            font-size: 10px; 
           
        }  
        .mid{
            align-items: center;
            width: 100%;
        }  
        .cas{
            font-family: 'Courier New', Courier, monospace;
            font-size: 12px;
              }  
       
        
    }