* {
     font-family: "Montserrat", sans-serif;

}

body {
  background-color: #000;
}



/*
selektor {
    atribut: hodnota;
    atribut: hodnota;
    atribut: hodnota;
    atribut: hodnota;
}
/*

/* Navigace */

.Habet-logo {
    padding-left: 80px;
}

nav {
    margin-left: 1rem;
    margin-right: 1rem;
    display: flex;
    justify-content: space-between;
}

.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 {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: auto;
    display: block;
}

.overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 120px; /* aby pruh byl pod navigací */
}

.season-bar {
    position: absolute; /* ✅ nad tabulkou a nad obrázkem */
    top: 10px;          /* posun pod navigaci, uprav podle potřeby */
    left: 1rem;
    right: 1rem;
    width: 98%;
    height: 80px;
    background-color: #507c5b93; /* pruh s průhledností */
    display: flex;
    justify-content: center;
    align-items: center;
    transform: skew(-3deg); /* Zkosení doprava */
    text-align: center;
}

/* Menu pro volbu sezony */

.season-selector {
    position: relative;
    display: inline-block;
}

.season-button {
    background-color: transparent;
    border: none;
    color: #fff;
    height: 80px; /* ✅ vyplní výšku pruhu */
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: 80px;
    width: 400px;
}

.season-button:hover {
    background-color: rgba(106, 204, 136, 0.76);
}

.season-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    top: 100%;
    left: 30%;
    background-color: rgba(30, 30, 30, 0.95);;
    min-width: 160px;
    z-index: 10;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.season-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.season-menu li {
    padding: 10px 16px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
}

.season-menu li:hover {
    background-color: #81d19e;
    color: #000;
}

/* === HAMBURGER IKONA === */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    transition: all 0.4s ease;
}

.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);
}

/* Časová osa */

.timeline-chart {
    position: relative; /* ✅ umožní absolutní pozicování uvnitř */
    width: 90%;
    max-width: 1900px;
    margin: 3em auto;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    transform: translateY(-70px); /* posune graf nahoru */
}

.chart-center-img {
    position: absolute;
    top: 44%;   /* vertikální střed */
    left: 50%;  /* horizontální střed */
    transform: translate(-50%, -50%); /* zarovnání na střed */
    max-width: 25%;
    opacity: 0.4; /* ✅ průhlednost, aby nepřekrýval graf */
    pointer-events: none; /* ✅ neblokuje interakce s grafem */
}

.timeline-chart canvas {
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  display: block;
  margin: 0 auto;     /* vycentruje plátno v .timeline-chart */
}

.scroll-arrow { display: none; }


/* Zmenšení pro tablet */

@media (max-width: 900px) {
    .hamburger { display: flex; }
    .Navigace ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 220px;
        background-color: #000;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 50px 0 10px 0;
        transition: right 0.4s ease;
        z-index: 1000;
        box-shadow: -4px 0 8px rgba(0, 0, 0, 0.5);
    }
    .Navigace ul.show { right: 0; }
    .Navigace ul li { padding: 1rem; width: 100%; text-align: center; }
    .Navigace ul li a { color: white; font-size: 18px; }
}


/* Zmenšení pro mobil */

@media (max-width: 500px) {

    /* Pozadí */
    body {
    background: linear-gradient(to bottom, #000000, #34c26fc9);
    }

    .hero-bg {
    display: none;
    }

    .hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .season-bar {
    height: 50px;
    width: 88%;
  }

  .season-button {
    height: 50px;
    font-size: 1em;
    cursor: default;
  }

/* Navigace - hamburger menu */
  .hamburger {
    transform: scale(0.8);
  }

  #nav-menu li a {
    font-size: 14px;
    padding: 6px 10px;
  }

  .Navigace ul li {
    border-bottom: 1px solid white;
    margin: 0 auto;
    width: calc(100% - 20px);
  }

    .Habet-logo {
    margin-left: 0;
    padding-left: 0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

  .Habet-logo img {
    width: 70px !important;
    height: auto !important;
    margin-left: 20px;
    text-align: center !important;
    justify-content: center;   /* ✅ zarovnání na střed vodorovně */
    align-items: center; 
  }


  /* GRAF */
  .timeline-chart {
    width: 100vw;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    margin: 8px auto 12px;     /* menší mezery okolo grafu */
    padding: 10px 0;
    background: transparent;   /* podklad bude na canvasu */
    transform: none;
  }

  .timeline-chart::-webkit-scrollbar {
    display: none;             /* Chrome, Safari, Opera */
  }

  #leagueTimelineChart {
    /* layoutová šířka pro scroll */
    width: 1700px;           /* odpovídá atributu width="1700" */
    height: 500px;

    /* tmavé pozadí patří na škálovaný prvek */
    background: rgba(0,0,0,.6);
    border-radius: 8px;
    display: block;

    /* škálování – ať drží levý horní roh */
    --chart-scale: 0.6;      /* ← nastav si poměr (0.5–0.8) */
    transform-origin: top left;
    transform: scale(var(--chart-scale));
  }

  .chart-center-img{
    position: absolute;
    left: 0%;
    top: 10%;
    transform: translate(-50%, -30%) scale(var(--chart-scale));
    max-width: none;

    /* nezávislá velikost loga na grafu */
    width: clamp(200px, 40vw, 280px);
    
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
  }
  .chartBox canvas{
    z-index: 1;
    position: relative;
  }

.scroll-arrow{
  position:fixed; 
  top:20%; 
  transform:translateY(-50%);
  display:flex; 
  align-items:center; 
  justify-content:center;
  width:38px; 
  height:38px; 
  border:none; 
  border-radius:50%;
  background:rgba(0,0,0,0.5); 
  color:#fff; 
  font-size:24px; 
  line-height:1;
  cursor:pointer; 
  z-index:10; 
  transition:background .25s, transform .15s;
}

.scroll-arrow:hover{ 
    background:rgba(0,0,0,0.75); 

}
.scroll-arrow:active{ 
    transform:translateY(-50%) scale(0.95); 
}

.scroll-arrow.left{ 
    left:6px; 
}

.scroll-arrow.right{ 
    right:6px; 
}

.chartBox { 
  padding-right: 16px; 
  position: relative;
  --chart-scale: 0.6;   /* ⬅ stejné měřítko pro canvas i logo */
} 


}

/* Zobraz jen na mobilu */
@media (min-width: 501px) {
    .scroll-arrow { display: none; }
}