* {
    margin: 0;
}

a {
    text-decoration: none;
}

html,
body {
    height: auto;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body {
    min-height: 100vh;
}

@media screen and (max-width: 991px) {
    body {
        height: auto;
    }

}

/* navbar */
header {
    top: 0;
    width: 100%;
    z-index: 50000;
}

.navbar {
    position: relative;
    background-color: #c62538;
    padding-left: 5%;
    padding-right: 5%;
    padding-top: 5px;
    padding-bottom: 5px;
    z-index: 5;
}

.navbar-collapse {
    justify-content: flex-end;
}

.navbar-brand {
    margin-right: 50px;
    padding-left: 54px;
    user-select: none;
}

.navbar-nav:hover {
    --bs-nav-link-color: #f8f8f8;
    --bs-nav-link-hover-color: #f8f8f8 !important;
    --bs-nav-link-disabled-color: #f8f8f8;
    --bs-nav-link-active-color: #f8f8f8 !important;
    --bs-nav-link-active-hover-color: #f8f8f8;
}

.navbar-toggler {
    border: none;
    transition: 0.3s;
    filter: invert();
}

.navbar-toggler-icon {
    background-image: url(/resources/imgs/webp/Hamburger.webp);
    filter: invert();
}

.navbar-toggler.rotated {
    transform: rotate(90deg);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler .navbar-nav {
    gap: 20px;
}

.nav-link {
    font-family: Staatliches, Arial;
    font-size: 24px;
    color: #f8f8f8;
    padding-right: 15px;
    padding-left: 15px;
    text-underline-offset: 5px;
    transition: .3s;
    margin-left: 10px;
    margin-right: 10px;
    position: relative;
    /* Přidáno pro správné pozicování podtržení */
}

.nav-link:hover {
    text-underline-offset: 5px;
    text-decoration-color: #f8f8f8 !important;
    text-decoration-thickness: 2px;
}

.navbar-nav .nav-item .nav-link:focus,
.navbar-nav .nav-item .nav-link:hover {
    color: #f8f8f8 !important;
    /* Zajistí, že barva textu zůstane světlá i při hoveru/fokusu */
}

.link-selected {
    text-underline-offset: 5px;
    text-decoration-color: #f8f8f8 !important;
    text-decoration-thickness: 2px;
}

/* Při najetí na odkaz se spustí animace podtržení */
.navbar-nav .nav-item .nav-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background-color: #ffffff;
    bottom: 10px;
    left: 0;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

/* Při najetí na odkaz se spustí animace podtržení */
.navbar-nav .nav-item .nav-link:hover::before {
    transform-origin: left;
    transform: scaleX(1);
}

@media screen and (max-width: 991px) {
    .navbar-nav .nav-item .nav-link::before {
        width: 13%;
    }
}

@media screen and (max-width: 550px) {
    .navbar-nav .nav-item .nav-link::before {
        width: 25%;
    }
}

/* po hoveru*/
.custom-dropdown {
    padding: 10px;
    background-color: #b82233;
    color: #f8f8f8;
    font-family: Staatliches, Arial;
    font-size: 15px;
}

.d-flex {
    display: flex;
    flex-direction: row;
    min-width: 400px;
}

.teamlogo {
    height: 22px;
    margin-right: 10px;
}

.dropdown-menu {
    --bs-dropdown-border-color: none;
    margin-left: -300px;
}

@media screen and (max-width: 991px) {
    .dropdown-menu {
        margin-left: 0px;
    }

    .custom-dropdown {
        font-size: 18px;
    }
}

.dropdown-item {
    color: #f8f8f8;
    display: flex;
    flex: 1;
}

.custom-dropdown .column {
    flex: 1;
    min-width: 200px;
    /* Nastavení minimální šířky sloupce */
}

.custom-dropdown .dropdown-item {
    white-space: nowrap;
}

@media screen and (max-width: 991px) {
    .navbar-brand {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
    }
}

@media screen and (max-width: 460px) {
    .navbar-brand {
        display: inline-block;
        margin: auto;
        padding: 0;
        width: 80%;
    }

    .d-flex {
        display: flex;
        flex-direction: column;
        min-width: auto;
    }
}

/* Content */
.content {
    flex: 1;
    overflow-y: hidden;
    /* Zablokuje vertikální scroll */
    overflow-x: hidden;
    /* Zablokuje horizontální scroll */
    height: auto;
    background-color: #f8f8f8;
    min-height: 310px;
}


/* Footer */
footer {
    background-color: #c62538;
    width: 100%;
    display: flex;
    padding-left: 5%;
    padding-right: 5%;
    margin-top: auto;
    min-height: 250px;
    flex-direction: column;
}

.footerTopRow {
    width: 100%;
    height: 100px;
    margin-right: 50px;
    padding-left: 54px;
    user-select: none;
    display: flex;
    top: 0;
}

.footerTopRowLeft {
    justify-content: left;
    align-items: left;
}

.footerTopRowRight {
    justify-content: right;
    align-items: right;
    margin-left: auto;
    margin-top: 20px;
}

.footerTopRowRight p {
    font-family: Odibee Sans, Arial, Helvetica, sans-serif;
    font-size: 40px;
    color: #f8f8f8;
    transform: rotate(90deg);
}

.footerTopRow .footerlogo {
    height: 45px;
    margin-top: 20px;
}

.copyright {
    font-size: 10px;
    color: #DDDDDD;
}

.footerBottomRow {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    margin-right: 50px;
    padding-left: 54px;
}

/* SPodni cast footeru */

.social {
    display: flex;
    flex-direction: column;
    width: 40%;
    height: 200px;
}

.social #lev {
    margin-left: 10px;
    margin-bottom: 10px;
}

.social h2 {
    color: #f8f8f8;
    font-family: Staatliches, Arial;
    margin-top: 20px;
    margin-bottom: 5px;
    font-size: 23px;
}

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

.footerTrippleRow {
    display: flex;
    flex-direction: column;
    width: 20%;
    height: 200px;
}

#lev {
    user-select: none;
}

.footerTrippleRow:nth-of-type(1) {
    width: 12%;
}

.footerTrippleRow:nth-of-type(2) {
    max-width: 290px;
}

.footerTrippleRow:nth-of-type(3) {
    width: 28%;
}


.footerTrippleRow h1 {
    color: #f8f8f8;
    font-family: Staatliches, Arial;
    margin-bottom: 5px;
    font-size: 28px;
    min-height: 40px;
}

.footerTrippleRow p {
    color: #DDDDDD75;
    font-family: Tauri, Arial;
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 15px;
    transition: 0.3s;
}

.tksocial,
.igsocial,
.fcsocial {
    margin-right: 2px;
}

.footerTrippleRow p:hover {
    color: #f8f8f8;
    font-family: Tauri, Arial;
    margin-top: 5px;
    font-size: 15px;
    transition: 0.3s;
}

.footerTrippleResponzive {
    all: unset;
    /* Resetuje všechny vlastnosti na výchozí hodnotu */
    display: contents;
    /* Způsobí, že div zmizí, ale jeho děti zůstanou viditelné */
}

/* footer responsive */
@media screen and (max-width: 1200px) {
    .footerTrippleRow h1 {
        font-size: 24px;
    }


}

@media screen and (max-width: 1000px) {
    .footerTrippleRow h1 {
        font-size: 20px;
    }
}

@media screen and (max-width: 950px) {
    .footerBottomRow {
        flex-direction: column;
        padding-left: 0px;
    }

    .footerTopRow {
        padding-left: 0px;
    }

    .social {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        height: 120px;
    }

    .social div {
        width: 100%;
    }

    .footerTrippleResponzive {
        display: flex;
        all: initial;
        width: 100%;
        display: flex;
        flex-direction: row;
        /* Způsobí, že div zmizí, ale jeho děti zůstanou viditelné */
    }

    .footerTrippleRow {
        width: auto;
        flex: 1;
    }

    .footerTrippleRow:nth-of-type(2) {
        margin-right: 20px;
    }

    #lev {
        display: none;
    }
}

@media screen and (max-width: 550px) {
    .social h2 {
        font-size: 18px;
    }

    .footerTopRowRight p {
        font-size: 30px;
    }

    .footerTrippleRow p {
        line-height: 1.8;
        font-size: 13px;
    }

    .footerTrippleRow p:hover {
        line-height: 1.8;
        font-size: 13px;
    }

    .tksocial,
    .igsocial,
    .fcsocial {
        margin-right: 5px;
    }
}

@media screen and (max-width: 360px) {
    .footerTrippleRow p {
        line-height: 1.5;
        font-size: 13px;
    }
}