﻿#clan {
    margin: 0;
    padding: 20px;
    font-family: Arial, sans-serif;
/*    background-color: #f9f9f9;*/
    text-align: center;
}

    #clan h1, main h2, main h3 {
        text-align: center;
        margin-bottom: 20px;
        font-weight: 600;
        color: #222;
    }

    #clan h1 {
        font-size: clamp(3rem, 2.8vw, 3.6rem);
        margin: 0 auto 100px auto; /* vystředí blok */
        padding-bottom: 5px;
        position: relative;
        display: table; /* šířka podle obsahu, ale chová se jako blok */
        line-height: 1.2;
    }

    #clan 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);
    }
}





#clan .link-row {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* umožní zalomení na menších obrazovkách */
}

#clan .link-box {
    text-decoration: none;
    display: block;
    text-align: center;
    width: 300px;
    color: inherit;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}


    #clan .link-box:hover {
        transform: scale(1.1);
    }


    #clan .link-box img {
        width: 100%;
        max-width: 300px;
        height: auto;
        object-fit: cover;
        border-radius: 8px;
    }

    #clan .link-box h2 {
        font-size: 24px;
        margin-top: 10px;
        color: #333;
    }

/* 📱 Responzivní úpravy pro telefony */
@media (max-width: 768px) {
    #clan .link-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    #clan .link-box {
        width: 90%;
    }

        #clan .link-box h2 {
            font-size: 20px;
        }
}

@media (max-width: 350px) {


    #clan .link-box h2 {
        font-size: 17px;
    }
}



@media (prefers-color-scheme: dark) {
    html {
        color: #e4e4e4;
        background-color: #121212;
    }

    main {
        background: linear-gradient(180deg, #0f172a, #1e293b);
        color: #e5e7eb;
        box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    }


        main h1, h2, h3, h4, p {
            color: #ffffff;
        }

    .question-block label {
        color: aqua;
    }
}