* {
     font-family: "Montserrat", sans-serif;

}

html, body {
    overflow-x: hidden;
}

body {
  background-color: #000;
}

/*
selektor {
    atribut: hodnota;
    atribut: hodnota;
    atribut: hodnota;
    atribut: hodnota;
}
/*


/* Navigace */

nav {
    margin-left: 1rem;
    margin-right: 1rem;
    display: flex;
    justify-content: space-between;
}

.Habet-logo {
    padding-left: 80px;
}


.Navigace ul {
    display: flex;
    list-style: none;
}

.Navigace ul li {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid white;
}

.Navigace ul a {
    text-decoration: none;
    color: #ffffff;
    text-transform: uppercase;
}

.Navigace ul li:hover {
  display: inline-block;
}

.Navigace ul li:after {
  content: '';
  width: 0px;
  height: 1px;
  display: block;
  background: #ffffff;
  transition: 300ms;
}

.Navigace ul li:hover:after {
  width: 100%;
}

/* HlavniSekce */

.hero-mobile {
  display: none;
}

.countdown-box-mobile {
    display: none;
}

.hero {
    display:flex;
    position: relative; /* nutné pro absolutní pozicování uvnitř */
    padding-bottom: 0px;
    margin-bottom: 0px;
}

.hero-image-wrapper {
    display: flex;
    padding-bottom: 0px;
    margin-bottom: 0px;

}

#countdown {
    font-weight: bold;
    font-size: 18px;
    margin-top: 5px;
}

.hero img {
    max-width: 100%;
    height: auto;
}

.HlavniSekce {
    background-color: #000000;
    position: absolute;
    top: 115%;
    left: 50%;
    transform: translate(-10%, -20%);
    text-align: center;
    padding: 1rem 1rem;
    color: #ffffff;
}

.HlavniSekce > h1 {
    font-size: 1rem;
}

/* Tlacitka */

.btn {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    color: #fff;
}

.btn-primary {
    background-color: black;
    color: #fff;
    border: 2px solid #ffffff;
}

.btn-primary:hover {
    background-color: #93f3a8;
    color: #000000;
    transition-duration: 0.3s
}

.btn-secondary {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    border-radius: 1em;
    align-items: center;
    cursor: pointer; /* ✅ změní kurzor na ruku */
}

.btn-secondary:hover {
    background-color: #baffe0;
    color: #000000;
    transition-duration: 0.3s;
    transform: scale(1.1); /* ✅ zvětšení o 10 % */
}

.center-button {
    text-align: center;   /* zarovnání obsahu na střed */
    margin-top: 80px;     /* mezera nad tlačítkem */
}

.btn-outline {
    background-color: #fff;
    color: black;
    border: 2px solid #000000;
}

.btn-outline:hover {
    background-color: #93f3a8;
    color: #000000;
    transition-duration: 0.3s
}

/* O nás */

.o-nas {
    display: flex;
    align-items: center;
    color: #ffffff;
    border-bottom: 1px solid #ffffff;
    display: flex;
    flex-wrap: wrap; /* zalomí obsah na menších obrazovkách */
    max-width: 100vw;
    overflow: hidden;
    padding-bottom: none;
}

.o-nas img {
    max-width: 50%;
    height: auto; /* odstraní pevnou výšku */
    object-fit: cover;
}

.o-nas article>h2 {
    font-size: 2rem;
}

.o-nas article {
    padding-right: 10rem;
    padding-left: 10rem;
    flex: 1;
    min-width: 300px;
}




.row {
    display: flex;
    color: transparent;
}





/* Skrytý overlay */
#qr-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* ztmavení */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Zobrazený stav */
#qr-overlay.show {
    display: flex;
    opacity: 1;
}

/* Modal s QR */
.qr-modal {
    background: white;
    padding: 5px 0; /* ✅ jen horní a dolní okraj */
    border-radius: 10px;
    text-align: center;
    position: relative;
}

.qr-modal img {
    width: 340px;
    max-width: 90%;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: #333;
    cursor: pointer;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem; /* malý vnitřní odsazení pro menší obrazovky */
}

.shadow {
    box-shadow: 0px 0px 5px 4px rgba(157,240,186,0.75);
    -webkit-box-shadow: 0px 0px 5px 4px rgba(157,240,186,0.75);
    -moz-box-shadow: 0px 0px 5px 4px rgba(157,240,186,0.75);
}

.shadowlarge {
    box-shadow: 0px 0px 0px 8px rgba(157,240,186,0.75);
    -webkit-box-shadow: 0px 0px 0px 8px rgba(157,240,186,0.75);
    -moz-box-shadow: 0px 0px 0px 8px rgba(157,240,186,0.75);
}

.section-padding {
    padding-bottom: 3rem;
}

#countdown-box {
  position: absolute;
  bottom: 100px;
  left: 80px;
  /*background-color: rgba(0, 0, 0, 0.85);*/
  background-color: transparent;
  padding: 20px 25px;
  border-radius: 10px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  z-index: 2;
  text-align: center;
  max-width: 180px;
}

.countdown-heading {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px; /* ✅ mezera pod textem NEJBLIŽŠÍ UTKÁNÍ */
}

.countdown-label {
  font-size: 14px;
  margin-bottom: 12px;
  opacity: 0.9;
}

#countdown {
  display: flex;
  justify-content: space-between;
  gap: 12px; /* mezera mezi časovými bloky */
  font-weight: bold;
  font-size: 18px;
  flex-wrap: wrap;
}

.countdown-image {
    width: 140px;
    height: auto;
    display: block;
    margin: 0 auto;
    margin-bottom: 15px; /* ✅ mezera pod obrázkem */
}

.time-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Tabulka */

#standings-box {
  position: absolute; /* stejné chování jako countdown */
  bottom: 110px;
  right: 20px; /* stejný offset jako countdown zleva */
  background-color: rgba(0, 0, 0, 0.2); /* poloprůhledné pozadí */
  padding: 15px 20px;
  border-radius: 10px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  z-index: 2;
  text-align: left;
  max-width: 300px;
}

.standings-heading {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 8px;
  text-align: center;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
}

.standings-table th,
.standings-table td {
  text-align: left;
  padding: 4px 6px;
  font-size: 18px;
}

.standings-table th {
  font-weight: bold;
}

.highlight td {
  font-weight: bold;
  color: #ffffff;
}

.standings-table a {
  color: #ffffff;
  text-decoration: none;
  cursor: pointer; /* ✅ změna kurzoru na ruku */
}

.standings-table a:hover {
  color: #a7dfba;
  text-decoration: underline;
}

/* Kolotoč */

.carousel-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.carousel-controls button {
  background: #333;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 0 5px;
  cursor: pointer;
  font-size: 20px;
}
.carousel-controls button:hover {
  background: #555;
}

.vysledky-karty {
  display: flex;
  gap: 2px;                  /* mezery mezi kartami */
  overflow-x: auto; /* ✅ změna z hidden na auto */
  scroll-behavior: smooth;    /* plynulý posun */
  padding: 1rem;              /* vnitřní odsazení */
  white-space: nowrap;        /* zajistí, že karty nebudou na nový řádek */
  flex-wrap: nowrap;          /* nutně zrušit wrap */
}

.vysledky-karty::-webkit-scrollbar {
  display: none; /* Skryje scrollbar, ale scroll funguje */
}

.vysledek-karta {
  flex: 0 0 auto; /* zabrání smrštění */
  background-color: #507c5b93;
  padding: 1.5em;
  color: white;
  font-family: 'Montserrat', sans-serif;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: transform 0.3s ease;
  transform: skew(-3deg); /* Zkosení doprava */
}
.vysledek-karta * {
  transform: skew(3deg); /* Vrátíme obsah do roviny */
}

.vysledek-center {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%; /* důležité pro vertikální centrování */
}

.vysledek-text {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.rem24 {
    width: 28rem;
}

.vysledek-karta:hover {
  transform: scale(1.05);
}

.vysledek-hlavicka {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0rem;
  text-align: center;
  align-items: center;
  
}

.vysledek-tela {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: center;
  align-items: center;
}

.vysledky-blok {
  background-color: transparent;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.vysledek-loga {
    display: flex;
    justify-content: space-between; /* jedno vlevo, druhé vpravo */
    align-items: center;
    margin: 0rem 0;
    padding: 0 1rem;
}

.vysledek-loga img {
    width: 70px; /* přizpůsobit velikost */
    height: auto;
    margin-right: 15%;
    margin-left: 15%;
}

.btn-prubeh {
  display: inline-block;
  padding: 0.5em 1.2em;
  background-color: rgba(111, 165, 129, 0.733);
  color: rgb(255, 255, 255);
  font-weight: 400;
  border-radius: 1em;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-prubeh:hover {
  background-color: #7ec99dc2;
}

/* === HAMBURGER IKONA === */
.hamburger {
    display: none; /* defaultně skryté */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1001; /* nad menu */
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    transition: all 0.4s ease;
}

/* Animace při otevření menu (hamburger → X) */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* === DESKTOP MENU === */
.Navigace ul {
    display: flex;
    list-style: none;
}


/* Fix pro přetékání */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Hero sekce */
.hero, .hero-image-wrapper {
    width: 100%;
    max-width: 100vw; /* zabrání přetékání */
    overflow: hidden;
}

.hero img {
    max-width: 100%;
    height: auto; /* zachová poměr stran */
    display: block;
}



.carousel-wrapper {
  position: relative;
  width: 100%;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  z-index: 10; /* vyšší než vše ostatní */
  pointer-events: auto; /* jistota */
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none; /* zruší kliknutí */
}

.carousel-btn.disabled:hover {
  background: rgba(0, 0, 0, 0.6); /* beze změny při hoveru */
}


/* Skrýt mobilní box ve výchozím zobrazení */
#standings-box-mobile {
  display: none;
}

/* Footer */
.site-footer {
  background: transparent;
  border-top: 1px solid transparent;
  padding: 20px;
  text-align: center;
}

.site-footer .footer-content {
  display: flex;
  justify-content: center;
}

.btn-login {
  display: inline-block;
  padding: 5px 10px;
  background-color: #fff;
  color: #000000;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 400;
  font-size: 10px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-login:hover {
  background-color: #baffe0;
  transform: scale(1.05);
}



/* === MOBILNÍ MENU === */
@media (max-width: 900px) {
    .hamburger {
        display: flex; /* zobrazit hamburger */
    }

    .Navigace ul {
        position: fixed;
        top: 0;
        right: -100%; /* schováno mimo obrazovku */
        width: 220px;
        height: auto; /* už ne 100vh */
        max-height: 80vh; /* omezení výšky */
        background-color: #000;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 50px 0 10px 0;
        transition: right 0.4s ease; /* animace slide-in */
        z-index: 100;
        box-shadow: -4px 0 8px rgba(0, 0, 0, 0.5); /* stín pro lepší vzhled */
        overflow-y: auto; /* scroll, pokud je obsah vyšší */
        overflow-x: hidden; /* schová vodorovný scrollbar */
    }

    .Navigace ul.show {
        right: 0; /* menu se vysune */
    }

    .Navigace ul li {
        padding: 1rem;
        text-align: center;
        width: 100%;
    }

    .Navigace ul li a {
        color: white;
        font-size: 18px;
    }
}


/* PRO MOBILY */

@media (max-width: 500px) {
    body {
        background: linear-gradient(to bottom, #000000, #34c26fc9);
        font-size: 14px;
    }

    nav .Habet-logo img {
        display: none;
    }

  .hero {
        display: none;
    }

    .hero-mobile {
        display: flex; /* ← tady byl problém */
        background-color: transparent;
        width: 100%;
        padding: 0rem 1rem;
    }

    .hero-content {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }



    .hero-logo img {
        width: 120px;
        height: auto;
        position: absolute;
        top: 70px;
        left: 10%;
        width: 120px;
        height: auto;
    }

    .countdown-box-mobile img.countdown-image {
        width: 100%;
        max-width: 100px;
        height: auto;
        display: block;
        margin: 0 auto 0.5rem;
    }

    #countdown-box {
        display: none;
    }

    .countdown-box-mobile {
        display: block;
        padding: 1rem;
        border-radius: 8px;
        color: white;
        width: 60%;
        max-width: 220px; /* ✅ přidáno */
        font-size: 14px;
        box-sizing: border-box; /* ✅ jistota, že padding nezvětší box */
    }

    #countdown-mobile {
        font-size: 0.7rem;
        text-align: center !important;
        justify-content: center;   /* ✅ zarovnání na střed vodorovně */
        align-items: center;       /* volitelné: zarovná i svisle */
        display: flex;
        gap: 1rem;
        margin-top: 0.5rem;
    }

    .countdown-heading {
        font-size: 0.8rem;
        text-align: center;
        font-weight: 400;
        margin-bottom: 0.5rem;
        width: 100%;
    }

    .time-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-weight: bold;
    }

    /* Tabulka týmů */
    #standings-box {
        display: none; /* desktopový box skryjeme */
    }

    #standings-box-mobile {
        display: block;
        width: 95%;
        margin: 20px auto;
        padding: 10px;
        background: none;
        border-radius: 6px;
        font-size: 12px;
        color: rgb(255, 255, 255);
    }

    #standings-box-mobile .standings-table td,
    #standings-box-mobile .standings-table th {
        font-size: 14px;
        padding: 4px 6px;
    }


     /* Celkové zarovnání */
    .carousel-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .carousel-btn {
        font-size: 16px;
        padding: 4px 8px;
    }

    /* Výsledkové karty */
    .vysledky-karty {
        gap: 1px;
        padding: 0.5rem;
    }

    .vysledek-karta {
        padding: 0.5rem;
        font-size: 10px;
        width: 180px;
        min-width: 180px;
        transform: scale(0.95);
        transform: skew(-3deg); /* Zkosení doprava */
    }

    .vysledek-karta .vysledek-hlavicka {
        font-size: 0.8rem;
        font-weight: 400;
        margin-bottom: 4px;
    }

    .vysledek-karta .vysledek-tela {
        font-size: 0.5rem;
        margin-bottom: 6px;
        font-weight: 300;
    }

    .vysledek-loga img {
        height: 32px;
        width: auto;
        max-width: 40%;
        object-fit: contain;
    }

    .btn-prubeh {
        font-size: 11px;
        padding: 6px 10px;
        margin-top: 6px;
    }

    /* Skryj obrázek a text */
    .o-nas > img,
    .o-nas article > p,
    .o-nas article > h2 {
        display: none !important;
    }

    /* Nastav rodiče pro centrování tlačítka */
    .o-nas {
        position: relative;
        justify-content: center;
        align-items: center;
    }

    .center-button {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 0 10px;
    }

    .center-button .btn {
        font-size: 12px;
        padding: 10px 16px;
        max-width: 90%;
        white-space: nowrap;
        border: none;
    }

    /* Tlačítko QR modal */
    #qr-overlay.show {
        display: flex !important;
        justify-content: center;
        align-items: center;
    }

    .qr-modal {
        background: white;
        padding: 1rem;
        border-radius: 10px;
        max-width: 90vw;
        max-height: 90vh;
        overflow: auto;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .qr-modal img {
        width: 100%;
        max-width: 200px;
        height: auto;
        display: block;
    }

    .close-btn {
        font-size: 24px;
    }

    /* Navigace - hamburger menu */
    .hamburger {
        transform: scale(0.8);
    }

    #nav-menu li a {
        font-size: 14px;
        padding: 6px 10px;
    }
}

