﻿/*main
{
 margin:20px 50px;   
}

h1{
    text-align:center;
}

h2{
    margin-bottom:-10px;
}


.tuk{
    font-weight:bold;
}


.zena {
    width: 50px;
    height: 50px;
}

   .zena:hover, .zena:active {
        width: 200px;
        height: 200px;
    }

.typ {
    display: inline-flex;
    align-items:baseline;
    margin-bottom:-7px;*/
/*    vertical-align:middle;*/
   

    
    
/*}

.typ h3{
    margin-left:15px;

}

table, th, td {
    border: 1px solid black;
    border-collapse: collapse;
    padding:5px;
    text-align:center;
}*/





main {
    position:relative;
    margin: 0px auto;
    padding: 0 100px;
/*    max-width: 980px;*/
    background: linear-gradient(180deg, #ffffff, #f9fafb);
/*    border-radius: 12px;*/
/*    box-shadow: 0 4px 16px rgba(0,0,0,0.06);*/
}

    /* Nadpisy – plynulá typografie a decentní orámování */
    main h1,
    main h2,
    main h3,
    main h4 {
        font-family: 'Segoe UI', system-ui, sans-serif;
        font-weight: 700;
        line-height: 1.25;
        margin: 1.2em 0 0.5em;
        color: #0f172a;
    }

    /* Efekt jemného spodního ohraničení */
   
    main h2 {
        border-bottom: 2px solid rgba(15,23,42,0.08);
        padding-bottom: 0.3em;
    }

    main h1 {
        /*        border-bottom:none;*/
        margin-top: 0;
        text-align: center;
        font-size: clamp(3rem, 2.8vw, 2.6rem);
        letter-spacing: -0.5px;
        margin: 0 auto 30px auto; /* vystředí blok */
        position: relative;
        display: table; /* šířka podle obsahu, ale chová se jako blok */
        line-height: 1.2;
    }

        main h1::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: -10px;
            height: 5px;
            width: 100%; /* přesně podle délky textu */
            background-color: #4CAF50;
            transform: translateX(-50%) scaleX(0);
            transform-origin: center;
            animation: underlineGrow 0.8s ease-out forwards;
        }


@keyframes underlineGrow {
    to {
        transform: translateX(-50%) scaleX(1);
    }
}



    main h2 {
        margin-top:70px;
        font-size: clamp(1.4rem, 2vw, 1.8rem);
        text-align: center;
    }

    main h3 {
        font-size: clamp(1.3rem, 1.7vw, 1.5rem);
        color: #1e293b;
    }

    main h4 {
        font-size: 1.1rem;
        color: #334155;
        font-weight: 600;
    }

        /* Plynulé zvýraznění při najetí myší na nadpis */
        main h1:hover,
        main h2:hover,
        main h3:hover,
        main h4:hover {
            color: #2563eb;
            transition: color 0.25s ease;
        }

    /* Textové odstavce */
    main p {
        margin: 0.6em 0 1em;
        line-height: 1.7;
        color: #374151;
        font-size: 1.2rem;
    }

    

/*.link-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;*/ /* umožní zalomení na menších obrazovkách */
/*}

.link-box {
    text-decoration: none;
    display: block;
    text-align: center;
    width: 230px;
    color: inherit;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

    .link-box:hover {
        transform: scale(1.2);
    }

    .link-box img {
        width: 100%;
        max-width: 300px;
        height: auto;
        object-fit: cover;
        border-radius: 8px;
    }

    .link-box h2 {
        font-size: 24px;
        margin-top: 10px;
        color: #333;
    }*/


.link-row {
    display: grid;
    gap: 20px; /* mezery mezi obrázky */
    justify-items: center; /* zarovnání obrázků na střed */
}

.link-box {
    width: 100%;
    max-width: 300px; /* maximální šířka obrázku */
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}



.link-box:hover
{
    transform: scale(1.5);
}

.link-box:active {
    transform: scale(1.5);
}

/* Nad 600px: 4 obrázky v jednom řádku */
@media (min-width: 1000px) {
    .link-row {
        grid-template-columns: repeat(4, 1fr); /* 4 sloupce */
    }
}

/* Pod 600px: 2 obrázky vedle sebe, další 2 na druhém řádku */
@media (max-width: 999px) {
    .link-row {
        grid-template-columns: repeat(2, 1fr); /* 2 sloupce */
    }
}

.link-box {
    width: 100%;
    max-width: 300px; /* maximální šířka obrázku */
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}




    /* Jemné zvýraznění klíčových slov */
    main .tuk {
        font-weight: 600;
        background: linear-gradient(120deg, rgba(255,235,59,0.4) 0%, rgba(255,235,59,0.4) 100%);
    }

    main .tukr {
        font-weight: 600;
        background: linear-gradient(120deg, rgb(225, 62, 17, 0.3) 0%, rgb(225, 62, 17, 0.3) 100%);
    }



    main .zena {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
        transition: transform 0.25s ease;
    }

        main .zena:hover,
        main .zena:active {
            transform: scale(6);
        }

    main .typ {
        display: inline-flex;
        align-items: baseline;
        margin-top:30px;
        margin-bottom: -7px;
        padding: 20px 40px;
        border-radius: 8px;
        background: rgba(37, 99, 235, 0.06);
        position: relative;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

        main .typ h3 {
            margin-left: 20px;
        }



#tab {
    width: 40%;
    max-width:500px;
    min-width:300px;
    overflow-x: auto;
    margin: 1rem 0;
    border-collapse: collapse;
}

    #tab table {
        width: 100%;
        min-width: 600px; /* udržuje čitelnost */
        border-collapse: collapse;
        background: #fafafa;
        border-radius: 6px;
        overflow: hidden;
    }

    #tab thead th {
        background: #93c5fd;
        font-weight: bold;
        color: #1e293b;
        padding: 8px;
    }

    #tab td {
        border: 1px solid #ccc;
        padding: 8px;
        text-align: center;
    }

    #tab tbody tr:hover {
        background: #e0e7ff;
    }


#submit {
    text-decoration:none;
    text-align:center;
    display: block;
    width: 25%;
    padding: 15px;
    margin: 30px auto 12px auto;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size:2rem;
    font-weight: bold;
}

  #submit:hover {
    
	
    
    background-color:black;
  


    
    
  }


.obrstranka {
    border-radius: 8px;
    width: 60%;
    min-width:40%;
    height: 80%; /* nebo 100%, nebo jiná pevná velikost */
    transition: transform 0.3s ease;
    overflow: hidden;
}

    .obrstranka:hover {
        transform: scale(1.5);
    }














/* Mobily (≤ 600px) */




















/*h3::before {
    content: "";
    display: inline-block;
    background-image: url('Obrazky/Slunce/fototyp1.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    width: 40px;
    height: 40px;
    margin-right: 8px;
    transition: transform 0.3s ease
}*/

/*.typ::before {
    content: "";
    display: inline-block;
    background-image: url('Obrazky/Slunce/fototyp1.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    width: 40px;
    height: 40px;
    margin-right: 8px;
    transition: transform 0.3s ease;
}*/

/* Hover efekt na nadpis */
/*h3:hover::before {
    width:100px;
    height:100px;
}*/


#submit {
    text-decoration: none;
    text-align: center;
    display: block; /* blokový prvek */
    width: auto; /* přizpůsobí se obsahu */
    max-width: 30%; /* nikdy nepřesáhne obrazovku */
    padding: 15px;
    margin: 30px auto 12px auto; /* auto na levé/pravé straně = centrování na ose X */
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 2rem;
    font-weight: bold;
    word-wrap: break-word;
    white-space: normal;
    box-sizing: border-box;
    line-height:1.2;
}

    #submit:hover {
        background-color: black;
    }

@media (max-width: 850px) {
    #submit {
        font-size: 1.2rem;
        padding: 12px;
    }




    @media (prefers-color-scheme: dark) {
        main {
            background: linear-gradient(180deg, #0f172a, #1e293b);
            color: #e5e7eb;
            box-shadow: 0 4px 16px rgba(0,0,0,0.4);
        }

            main h1,
            main h2,
            main h3,
            main h4 {
                color: #f1f5f9;
                border-bottom-color: rgba(241,245,249,0.15);
            }


            main h3 {
                color: #d1d5db;
            }

            main h4 {
                color: #cbd5e1;
            }

                main h1:hover,
                main h2:hover,
                main h3:hover,
                main h4:hover {
                    color: #93c5fd;
                }

            main p {
                color: #cbd5e1;
            }

            main .tuk {
                background: linear-gradient(120deg, rgba(234,179,8,0.25) 0%, rgba(15,23,42,0) 100%);
                color: #fff;
            }

            main .typ {
                background: rgba(59,130,246,0.12);
            }

        #tab table {
            background: #1e293b;
        }

        #tab thead th {
            background: #334155;
            color: #f8fafc;
        }

        #tab td {
            border-color: #475569;
            color: #e2e8f0;
        }

        #tab tbody tr:nth-child(even) {
            background: #273549;
        }

        #tab tbody tr:hover {
            background: #334155;
        }








        /* 📱 Responzivní úpravy pro telefony Obrázky */
        @media (max-width: 768px) {
            .link-row {
                flex-direction: column;
                align-items: center;
                margin-bottom: 5px;
                gap: 5px;
            }

            .link-box {
                width: 85%;
                margin-bottom: 5px;
            }

                .link-box h2 {
                    font-size: 20px;
                }
        }

        @media (max-width: 350px) {


            .link-box h2 {
                font-size: 17px;
            }
        }
    }
}


@media (max-width: 600px) {
    main {
        padding: 0 12px;
        border-radius: 0; /* v mobilu obsah přes celou šířku */
        box-shadow: none;
    }

        main h1 {
            font-size: 1.5rem;
            line-height: 1.3;
        }

        main h2 {
            font-size: 1.2rem;
            margin-bottom: 0;
        }

        main h3 {
            font-size: 1.1rem;
            margin-bottom: 0;
        }

        main p {
            font-size: 1rem;
            margin-bottom: 0;
        }


        /* Typ box – přechod na vertikální uspořádání */
        main .typ {
            flex-direction: column;
            align-items: flex-start;
            gap: 6px;
        }

            main .typ h3 {
                margin-left: 0;
            }

    /* Tabulky – horizontální posuv pro úzký displej */
    #tab table {
        min-width: 420px;
        font-size: 13px;
    }
}




#lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

    #lightbox img {
        max-width: 90%;
        max-height: 90%;
        border-radius: 10px;
    }

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 50px;
    color: white;
    cursor: pointer;
    font-weight: bold;
}
