body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #e1e1e1;
    
}

/* Header */
header {
    background-color: #e62336;
    /* background-color: black; */
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    z-index: 20;
    width: 100%;
}

.header-link {
    text-decoration: none;  /* Zruší podtržení odkazu */
    color: inherit;         /* Barva textu zůstane stejná jako barva v headeru */
}

.h1NadpisHeader{
    margin: 0;
    letter-spacing: 1px;
}

.menu-toggle { /*ikona pro vstup do burger menu*/
    font-size: 28px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: none;
    position: fixed; /* Umístíme ikonu absolutně */
    top: 15px;  /* Vzdálenost od horního okraje */
    margin-right: 20px; /* Vzdálenost od pravého okraje */
    z-index: 25; /* Aby byla ikona nad obsahem */
}

nav {
    flex-grow: 1;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    padding: 0;
    margin-right: 15px;
}

.nav-links li {
    margin: 0 20px;
}


.nav-links a {
    letter-spacing: 1px;
    font-weight: bold;
    font-size: 18px;
    color: white;
    /* background-color: #333; */
    background-color: #e62336;
    text-decoration: none;
    border: 1px solid #e62336;
    padding: 8px;
    border-radius: 5px;
    transition: background 0.4s ease;
}
.nav-links li :hover{
    color: red;
    border: 1px solid #e62336;
    padding: 8px;
    border-radius: 5px;
    background-color: white;
}


.time{
    margin-top: 30px;
    text-align: center;
    margin-bottom: -23px;
}
/* Tlačítka pod úvodní fotkou */
.buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: -15px;
}

.btn-primary {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background-color: white;
    color: red;
    border: 1px solid red;
}
/* Skryj určité odkazy ve velkém menu */
.hidden-on-large {
    display: none;
}

.section {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}



/* Úvodní fotka */

.intro-image {
    margin-top: 80px;
    position: relative;
    width: 100%;
    height: 500px; /* Výška fotky, můžeš upravit podle potřeby */
    overflow: hidden;
    margin-bottom: -20px;
    display: inline-block;
}

.intro-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Udržuje obrázek, aby zaplnil celé pozadí */
    object-position: center; /* Udrží obrázek zarovnaný ve středu */
    display: block;
}
.intro-text-responsive{
    display: none;
}
.intro-text {
    position: absolute;
    bottom: 300px;
    left: 20px;
    color: white;
    font-weight: bold;
    z-index: 2;
    font-size: 48px;
}

.intro-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85)2%, rgba(0, 0, 0, 0.15));
    z-index: 1;
}

/* Úvodní fotka */

/*AŽ SEM KOPÍRUJ PRO VYTVOŘENÍ JINÝCH STRÁNEK*/

.cervenaCaraNadpisuAktualne{
    margin: 0px auto;
    background-color: red;
    height: 3px;
    width: 180px;
    position: relative;
    top: -15px;
}
.cervenaCaraNadpisuKalendar{
    margin: 0px auto;
    background-color: red;
    height: 3px;
    width: 250px;
    position: relative;
    top: -15px;
}
.cervenaCaraNadpisuSport{
    margin: 0px auto;
    background-color: red;
    height: 3px;
    width: 400px;
    position: relative;
    top: -15px;
}
.cervenaCaraNadpisu2{
    margin: 0px auto;
    background-color: red;
    height: 3px;
    width: 210px;
    position: relative;
    top: -15px;
}
.nadpisSekce{
    margin-top: -9px;
}

h1{
    text-align: center;
}

h2{
    text-align: center;
}
h3{
    text-align: center;

}

.grid {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.card {
    flex: 1;
    background-color: #f3f3f3;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(6, 6, 6, 0.411);
    text-align: center;
    position: relative;
}

.card-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0px;
}


.button-container {
    text-align: center;
    margin-top: 20px;
}

.datumPridani1{
    text-align: right;
    margin-top: 12px;
    /* border: 1px solid blue; */         /*pro zarovnani datumu do stejne vysky */
    font-size: 12px;
    color: #7b7b7b;
}
.datumPridani2{
    text-align: right;
    margin-top: 54.5px;
    /* border: 1px solid blue; */          /*pro zarovnani datumu do stejne vysky */
    font-size: 12px;
    color: #7b7b7b;
}


/* Hlavní tlačítko (např. "Přehled aktualit") */
.btn-primary {
    border: 1px solid black;
    display: inline-block;
    background-color: #333;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background-color: white;
    color: red;
    border: 1px solid red;
}
/* Hlavní tlačítko (např. "Přehled aktualit") */



/* DLAŽDICE */
.tile-grid {
    display: grid;
    grid-template-columns: 5fr 5fr 4.5fr; /* Dvě hlavní široké a jedna úzká dlaždice */
    grid-template-rows: 20fr 25fr; /* První řada vysoká, druhá nižší */
    gap: 10px; /* Větší mezery mezi dlaždicemi */
    width: 75%;
    max-width: 1200px; /* Zvýšení maximální šířky */
    height: 550px; /* Nastaví grid na 90 % výšky okna */
    margin: 40px auto;
}

.tile {
    position: relative; /* Důležité pro overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    letter-spacing: 3px;
    /* text-shadow: 
        -2px -2px 0 white,  
         2px -2px 0 white,  
        -2px  2px 0 white,  
         2px  2px 0 white;  */
    color: white; 
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.0s ease-in-out; 
    overflow: hidden; /* Aby overlay nevyčníval */
}


/* 🛠 STÁLÝ TMAVÝ OVERLAY */
.tile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5) ; /* Zvyšuji průhlednost na 60% a přidávám !important */
    border-radius: 5px;
    z-index: 1 ;
}
.textDlazdice{
    z-index: 9;
    font-size: 37px;
    font-weight: bold;
}



/* ✨ HOVER EFEKT */
.tile:hover {
    transform: scale(1.025); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); 
}

/* Specifické umístění dlaždic*/
.tile-1 { background-color: #e27b42; border: 3px solid white;} /* Oranžová */
.tile-2 { background-color: #7faa5a; border: 3px solid white;} /* Zelená */
.tile-3 { background-color: #f7d170; grid-row: span 2; border: 3px solid white;} /* Žlutá – vysoký obdélník */
.tile-4 { grid-column: span 2; border: 3px solid white;} 

/* Responzivní úpravy */
@media (max-width: 1300px) {
    .tile-grid {
        width: 85%;
    }
}
@media (max-width: 800px) {
    .tile-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        width: 85%;
    }

    .tile-3, .tile-4 {
        grid-column: span 2;
        grid-row: auto;
    }
}
@media (max-width: 500px) {
    .textDlazdice{
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .tile-grid {
        display: flex;
        flex-direction: column;
        width: 95%;
        
    }
    
}
/* DLAŽDICE */


/*OKRSEK*/
.category{
    color: red;
}


.competition-info {
    text-align: center;
    background-color: #ffeeba;
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    color: #856404;
    border: 1px solid #ffc107;
}
/*OKRSEK*/




/*KALENDÁŘ*/
.section {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.calendar-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* Flexbox pro dynamické okna */
.calendar-grid {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap; /* Umožní zalomení oken na nový řádek při menších obrazovkách */
}

.calendar-card {
    flex: 1;  /* Umožní automatické přizpůsobení šířky */
    min-width: 280px;  /* Minimální šířka pro každé okno */
    background-color: #f3f3f3;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(6, 6, 6, 0.411);
}

.odkazDisk{
    color: red;
}

.calendar-card h3 {
    margin-top: 0;
}

.calendar-card p {
    margin: 10px 0;
}

/* Responsivní design pro různé obrazovky */
@media (max-width: 1024px) {
    .calendar-grid {
        flex-direction: column;  /* Pro obrazovky pod 1024px budou okna pod sebou */
        gap: 10px;
    }
    .time{
        margin-bottom: -5px;
    }

    .calendar-card {
        min-width: 90%; /* Na menších obrazovkách budou okna 100% široká */
    }
    .intro-image{
        margin-top: 68px;
    }
    .menu-toggle{
        margin-top: 6.5px;
    }
}

@media (max-width: 768px) {
    .calendar-section {
        padding: 10px;
    }
    .intro-image{
        margin-top: 60px;
    }
    .menu-toggle{
        margin-top: 0px;
        margin-right: 10px;
    }
}

/* Příklad, kdy se okna budou zobrazoat vedle sebe */
@media (max-width: 480px) {
    .calendar-grid {
        flex-direction: column;
    }
    .intro-image{
        margin-top: 50px;
    }
    .menu-toggle{
        margin-top: 0px;
    }
    .time{
        margin-bottom: 0;
        margin-top: 0px;
    }
}

.datum{
    color: red;
    font-size: 20px;
}
.textUdalosti{
    font-size: 20px;
}
/*KALENDÁŘ*/






/*Sociální sítě*/
.social-bar {
    padding: 0px 0;
    text-align: center;
    margin-top: -20px;
    margin-bottom: 30px;
}

.social-icon {
    display: inline-block;
    margin: 0 40px;

}
p{
    font-size: 17px;
}


.social-icon img {
    width: 80px;
    height: 80px;
    transition: opacity 0.3s ease;
}

.social-icon:hover img {
    filter: brightness(0) saturate(100%) invert(12%) sepia(73%) saturate(6689%) hue-rotate(1deg) brightness(111%) contrast(118%);
    opacity: 0.7;  /* Efekt při najetí myší */
}
/*Sociální sítě*/


.sdeleni{
    width: 40%;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 40px;
}
.odkaz_email_kalendar{
    color: red;
}




footer{
    text-align: center;
    background-color: black;
    color: white;
    height: 30px;
    padding: 10px;
    display: flex;              /* Používáme flexbox pro lepší zarovnání */
    justify-content: center;    /* Horizontálně centrování */
    align-items: center;        /* Vertikálně centrování */
}

.izs-links {
    text-align: center;
    padding: 20px 0;
}

.izs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}
.nadpisOdkazy{
    margin-top: 20px;
}

.izs-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
}

.izs-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.izs-item:hover img {
    transform: scale(1.1);
}

/* Zajištění responzivity */
@media (max-width: 768px) {
    .izs-container {
        gap: 20%;
    }
    .izs-item {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .izs-container {
        flex-direction: column;
        align-items: center;
    }
}





/*OSUD KOPÍRUJ PRO VYTVOŘENÍ JINÝCH STRÁNEK*/

/* Responsivní menu (hamburger) */
@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
        top: 8.5px;
        right: -2px;
    }


    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70%;
        right: 0;
        background-color: #e62336;
        width: 100%;
        text-align: center;
        padding: 10px 0;
        z-index: 10;
    }
    /* Skryj tlačítka pod fotkou na mobilu (už jsou v menu) */
    .buttons-container {
        display: none;
    }
    .hidden-on-large {
        display: block;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        text-underline-position: auto;
    }
    .intro-text{
        font-size: 40px;
    }
    .time{
        margin-top: 30px;
    }
    .section{
        margin-top: 0px;
    }
}

@media (max-width: 768px) {
    .grid {
        flex-direction: column;
    }

    .intro-image {
        height: 300px; /* Změníme výšku pro menší obrazovky */
        
    }

    .intro-img {
        object-position: 65% center; /* Přizpůsobíme zarovnání pro menší obrazovky */
    }

    .sdeleni{
        width: 90%;
    }
    .h1NadpisHeader{
        margin: 0;
        font-size: 25px;
    }
    .intro-text-responsive {
        display: block;
        position: relative;
        text-align: center;
        bottom: 10px;
        left: 0;
        color: white;
        font-weight: bold;
        z-index: 2;
        font-size: 36px;
        background-color: rgba(0, 0, 0, 0.5);
        margin-top: -30px;
        margin-bottom: -20px;
    }
    
    .intro-text {
        display: none;
    }
    
    .intro-image::after {
        display: none;
    }
}










