header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}


a {
    text-decoration: none;
    color: inherit;
}


.content {
    padding-bottom: 50px;
}

.landing {
    position: relative;
    height: 480px;
    overflow: hidden;
    background-image: url(../imgs/extraliga/extraliga_landing.webp);
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.landing h1 {
    color: white;
    font-family: Staatliches, Arial;
    font-size: 90px;
}

.landing img {
    height: 110px;
    width: 110px;
    margin-bottom: 20px;
    user-select: none;
}

.informace {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.informaceMargin {
    position: relative;
    width: 1400px;
    height: auto;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 30px;
    text-align: justify;
}

.informaceMargin h2 {
    font-family: Staatliches, Arial;
    font-size: 34px;
}

.informaceMargin p {
    font-family: Poppins, Arial;
    font-size: 18px;
    line-height: 160%;
    margin-top: 20px;
}

.pukimage {
    position: absolute;
    width: 200px;
    height: 150px;
    top: 5%;
    left: 90%;
    transform: scale(-1);
    transform: rotateY(180deg);
    user-select: none;
}

@media screen and (max-width: 1310px) {
    .pukimage {
        display: none;
    }
}

.historie {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

.historieLeft {
    width: 60%;
    padding-right: 30px;
}

.historieRight {
    width: 40%;
    height: 500px;
    background-image: url(../imgs/extraliga/mora-titul-1994-2019-9.jpg);
    background-size: cover;
    border-radius: 20px;
    margin-top: 80px;
    color: white;
    font-family: Poppins, Arial;
    font-weight: bold;
    font-size: 28px;
    position: relative;
}

.historieRight p {
    position: absolute;
    top: 88%;
    left: 18%;
    font-size: 20px;
    -webkit-text-stroke: 1px rgb(0, 0, 0);
}

.tabulka {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    height: 900px;
    flex-direction: column;
    margin-bottom: 50px;
    position: relative;
}

.tabulkaMargin {
    position: relative;
    width: 1400px;
    height: auto;
    border: 1px solid rgb(87, 67, 26);
    display: flex;
    justify-content: center;
    align-items: center;
}

.tabulkaback {
    height: auto;
    width: 1400px;
    background-color: rgb(218, 218, 218);
    z-index: 5;
}

.tabulkaHeader {
    display: flex;
    flex-direction: row;
}

.tabulkaHeader div {
    border: 1px solid black;
    background-color: rgb(158, 52, 52);
    color: white;
    font-family: Staatliches, Arial;
    font-size: 20px;
}


.tabulkaHeader div:nth-of-type(2) {
    width: 30%;
    padding: 10px;
}

.tabulkaHeader div:nth-of-type(1),
.tabulkaHeader div:nth-of-type(3),
.tabulkaHeader div:nth-of-type(4),
.tabulkaHeader div:nth-of-type(5),
.tabulkaHeader div:nth-of-type(6),
.tabulkaHeader div:nth-of-type(7),
.tabulkaHeader div:nth-of-type(8) {
    padding: 10px;
    width: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tabulkaRow {
    display: flex;
    flex-direction: row;
}

.tabulkaRow div {
    border-left: 1px solid rgb(82, 82, 82);
    color: black;
    font-family: Poppins, Arial;
    font-size: 18px;
}

.tabulkaRow img {
    margin-right: 15px;
}


.tabulkaRow div:nth-of-type(2) {
    width: 30%;
    padding: 10px;
}

.tabulkaRow div:nth-of-type(1),
.tabulkaRow div:nth-of-type(3),
.tabulkaRow div:nth-of-type(4),
.tabulkaRow div:nth-of-type(5),
.tabulkaRow div:nth-of-type(6),
.tabulkaRow div:nth-of-type(7),
.tabulkaRow div:nth-of-type(8) {
    padding: 10px;
    width: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tabulkaRow div:nth-of-type(1) {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}


.tabulkaHeader {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tabulkaHeader h2 {
    color: #141414;
    font-family: Staatliches, Arial;
    font-size: 50px;
}

#semi {
    background-color: rgb(149, 142, 255) !important;
}

#ctvrtfinale {
    background-color: rgb(169, 203, 226) !important;
}

#baraz {
    background-color: rgb(255, 138, 138) !important;
}

#sud {
    background-color: rgb(236, 236, 236) !important;
}

.legendbadge1 {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #000000;
    background: rgb(149, 142, 255);
}

.legendbadge2 {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #000000;
    background: rgb(169, 203, 226);
}

.legendbadge3 {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #000000;
    background: rgb(255, 138, 138);
}

.Legend {
    display: flex;
    justify-self: left;
    flex-direction: row;
    position: absolute;
    top: 750px;
    left: 0px;
}

.Legend div {
    display: flex;
    justify-content: center;
    align-items: center;
}

.legend-item {
    margin-right: 20px;
}

.Legend div p {
    font-family: Poppins, Arial;
    font-size: 18px;
    margin-left: 10px;
    margin-top: 15px;
}

.mapHeader {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
}

.mapHeader h2 {
    color: #141414;
    font-family: Staatliches, Arial;
    font-size: 50px;
}

.world-map {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0em;
    position: relative;
    user-select: none;
    margin-bottom: 50px;
}

.pin {
    position: absolute;
    width: 0.7em;
    height: 0.7em;
    border-radius: 50%;
    transform: translate(-50%, -100%);
    /* Správné centrování */
    transition: 0.2s;
    text-align: center;
}

.pin:hover {
    transform: scale(1.3) translate(-100%, -250%);
    transform-origin: bottom center;
    transition: 0.2s;
    z-index: 1000;
}

.teamPin {
    width: 60px;
    /* Nastavení velikosti obrázku */
    height: auto;
    transform-origin: bottom center;
}

.pin::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.pin span {
    position: absolute;
    top: -40px;
    /* Posun nad obrázek */
    left: 50%;
    /* Umístění na střed */
    transform: translateX(-20%);
    /* Vycentrování textu */

    text-align: center;
    background-color: #ffffff;
    border-radius: 3em;
    padding: 0.3em 0.6em;
    font-size: 0.9em;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    filter: drop-shadow(0px 0px 10px rgb(24, 20, 12));
    white-space: nowrap;
    font-family: Staatliches, Arial;
    /* Zabraňuje zalomení textu */
}



.pin:hover span {
    opacity: 1;
    visibility: visible;
}


.sparta {
    top: 30%;
    left: 33%;
    z-index: 21;
}

.trinec {
    left: 94%;
    top: 48%;
}

.vary {
    left: 11%;
    top: 22%;
}

.pardubice {
    left: 52%;
    top: 31%;
    z-index: 21;
}

.hradec {
    left: 54%;
    top: 24%;
}

.kladno {
    top: 27%;
    left: 27%;
}

.liberec {
    top: 6%;
    left: 44%;
}

.brno {
    left: 66%;
    top: 65%;
}

.budejovice {
    left: 32%;
    top: 70%;
}

.olomouc {
    left: 75%;
    top: 50%;
}

.litvinov {
    left: 23%;
    top: 11%;
}

.vitkovice {
    left: 89%;
    top: 42%;
}

.vitkovice span,
.trinec span,
.olomouc span {
    transform: translateX(-50%);
}

.boleslav {
    top: 21%;
    left: 41%;
}

.plzen {
    left: 18%;
    top: 42%;
}

@media screen and (max-width: 950px) {
    .teamPin {
        width: 55px;
        height: auto;
    }
}

@media screen and (max-width: 850px) {
    .teamPin {
        width: 50px;
        height: auto;
    }

    .trinec span {
        transform: translateX(-70%);
    }

    .vitkovice span {
        transform: translateX(-58%);
    }

    .vary span {
        transform: translateX(0%);
    }
}

@media screen and (max-width: 750px) {
    .teamPin {
        width: 45px;
        height: auto;
    }
}

@media screen and (max-width: 650px) {
    .teamPin {
        width: 40px;
        height: auto;
    }
}

@media screen and (max-width: 550px) {
    .teamPin {
        width: 35px;
        height: auto;
    }

    .pin:hover {
        transform: scale(1.3) translate(-50%, -150%);
    }

    @media screen and (max-width: 450px) {
        .teamPin {
            width: 30px;
            height: auto;
        }

        .mapHeader h2 {
            font-size: 35px;
        }
    }
}

@media screen and (max-width: 350px) {
    .teamPin {
        width: 25px;
        height: auto;
    }
}

.Legend span {
    width: 15px !important;
    height: 15px !important;
    background-color: rgb(149, 142, 255);
    border: 1px solid rgb(0, 0, 0);
}

/* responzivita */
/* landingpage */


@media screen and (max-width: 500px) {
    .landing img {
        height: 70px;
        width: 70px;
    }

    .landing h1 {
        font-size: 60px;
    }

    .landing {
        height: 300px;
        padding-top: 50px;
    }

}

@media screen and (max-width: 350px) {
    .landing img {
        height: 50px;
        width: 50px;
    }

    .landing h1 {
        font-size: 40px;
    }
}

/* sekce2 */

@media screen and (max-width: 1300px) {
    .historie {
        flex-direction: column;
        width: 100%;
    }

    .historieLeft {
        width: 100%;
        padding-right: 0px;
    }

    .historieRight {
        width: 80%;
        height: 500px;
        margin-top: 20px;
        font-size: 20px;
    }

    .informaceMargin h2 {
        text-align: center;
    }
}

@media screen and (max-width: 730px) {
    .historieRight p {
        text-align: center;
        left: 10px;
        top: 83%;
        font-size: 14px;
        -webkit-text-stroke: 1px rgb(43, 43, 43);
    }

    .historieRight {
        width: 100%;
        height: 300px;
    }
}

@media screen and (max-width: 360px) {
    .historieRight p {
        font-size: 12px;
    }
}

/* sekce3 */
@media screen and (max-width: 1400px) {
    .tabulkaMargin {
        width: 97%;
    }
}

@media screen and (max-width: 1160px) {
    .Legend {
        top: 780px;
    }
}


@media screen and (max-width: 948px) {
    .Legend {
        top: 800px;
    }
}

@media screen and (max-width: 920px) {
    .tabulkaRow div {
        font-size: 16px;
    }

    .tabulkaHeader.fixed {
        position: sticky;
        top: 60px;
        /* výška tvého horního headeru */
        z-index: 100;
        background-color: rgb(158, 52, 52);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .Legend {
        top: 100%;
        position: relative;
        margin-left: 20px;
    }

    .tabulka {
        width: auto;
        height: 1000px;
    }

    .tabulkaMargin {
        position: relative;
        width: 100%;
        height: auto;
        border: 1px solid rgb(87, 67, 26);
        display: block;
        /* změna */
        overflow-y: hidden;
        overflow-x: auto;
        /* může být scroll, ale auto je chytřejší */
        white-space: nowrap;
        /* pokud chceš horizontální řádky bez zalomení */
    }

    .tabulkaback {
        min-width: 1400px;
        width: max-content;
        /* přizpůsobí se šířce obsahu */
    }

    .tabulkaMargin {
        box-sizing: border-box;
        padding: 0;
        /* nebo minimální */
    }

    .tabulka {
        overflow-x: auto;
        width: 100%;
    }



}

.tabulkaHeader {
    background-color: rgb(158, 52, 52);
    display: flex;
    flex-direction: row;
}

.tabulkaHeader.fixed {
    position: fixed;
    top: 60px;
    left: 0;
    width: 1400px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.tabulkaHeader {
    /* Odstraňte position: sticky/fixed */
    position: relative;
    /* Ostatní styly ponechte */
}