nav ul {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Rozdělí položky rovnoměrně */
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.center-menu {
    display: flex;
    justify-content: center;
    flex-grow: 1; /* Umožní centrálnímu menu růst a zabrat dostupný prostor */
}


nav ul li.logo {
    margin: 0 25px; /* Posune logo doprava */
}

nav ul li.logo img {
    height: 50px; /* Nastavte výšku obrázku podle potřeby */
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
/*    color: white; */
    color: black;
    text-decoration: none;
}



nav ul li.right-logo {
    margin-left: auto;
    position: relative;
    right: 15px; /* Posune logo doleva o 15px */
    top: 10px; /* Posune logo dolů o 12px */
}

nav ul li.right-logo img {
    height: 20px; /* Nastavte výšku obrázku podle potřeby */
}

nav ul li:not(.logo):not(.right-logo) {
    justify-content: center; /* Zarovná všechny položky na střed */
    text-align: center;
}

/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown button */
.dropbtn {
    color: black; /* Change text color to black */
    padding: 0px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    background-color: transparent;  /*Remove background color */
}




/* Dropdown content (hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
   background-color: #f9f9f9;  /* pozadi rozbalovaciho menu */
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
   background-color: #f1f1f1;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
   /*  background-color: #333; */
   background-color: #f1f1f1; /* změna barvy tlacitka v menu pri najeti mysi */
}

/* nastaveni fontu */
@font-face {
    font-family: 'RobotoLight';
    src: url('/static/fonts/Roboto-Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* nastaveni zalozniho fontu sans-serif*/
body {
    font-family: 'RobotoLight', sans-serif;
    margin: 0;
    padding: 0;
}



header {
    background-color: white;
/*    background-color: #333; */
    color: white;
    padding: 10px 0;
}


.gallery {
    display: grid;
    gap: 10px;
    justify-content: center;
}


.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 25px; /* Přidá 10px padding ze všech stran */
}

.gallery-item-top {
    align-items: center;
    justify-content: center;
    text-align: justify;
    margin-left: 10px;
    margin-right: 10px;
    height: 100%;
}

.gallery-item-top-nadpis h1 {
    text-align: left;
}

.gallery-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
      /*   border: 1px solid #ccc; /* Nastaví šedé ohraničení */
}


.clearfix {
    flex-basis: 100%;
    height: 0;
}

.responsive-table {
    display: grid;
    gap: 10px;
    justify-content: center;
}

.responsive-table-three-columns {
    grid-template-columns: repeat(3, 1fr);
}

.responsive-table-two-columns {
    grid-template-columns: repeat(2, 1fr);
}

.project-nadpis  {
    display: none;
    margin-left: 10px;
}

.hover-image {
    width: 100%;
    height: auto;
    transition: opacity 0.5s ease;
}

/* Media queries for responsive design */
@media (min-width: 1024px) {
    .responsive-table-three-columns {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .responsive-table-three-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .responsive-table-three-columns {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    .responsive-table-two-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .responsive-table-two-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .responsive-table-two-columns {
        grid-template-columns: 1fr;
    }
    .gallery-item-top-nadpis {
        display: none;
    }
    .project-nadpis  {
    display: block;
    margin-left: 10px;
    }
    .popis-text {
        margin-right: -2px !important;
    }
}

.responsive-table-one-columns {
    display: grid;

    height: 100%;; /* Maximální výška */
    width: 100%;; /* Maximální šířka */
}


@media (min-width: 1024px) {
    .responsive-table-one-columns {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Skryje pravé logo na mobilních zařízeních */
@media (max-width: 767px) {
    nav ul li.right-logo {
        display: none;
    }

    .center-menu {
        justify-content: flex-end; /* Zarovná menu doprava */
    }

    nav ul li.logo {
    margin: 0 5px; /* Posune logo doprava */
    }

    .gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 0px; /* Přidá 10px padding ze všech stran */
}
}

.contact{
    display: block;
    margin-top: 20px;
    margin-left: 25px;
    }

/* Ppopis pod ubrazky velkymi pismeny */
.uppercase {
    text-transform: uppercase;
}

