:root{
    --zelena: #2E8B57;
    --bezova: #F5F5DC;
    --bila: #FFF;

}

* {
    
    box-sizing:border-box;


}
html, body {
    height: 100%;
    margin: 0;
  }
body {
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    padding: 0;
    margin: 0;
    background-color: var(--bila);
    font-size: 20px;
    display: flex;
  flex-direction: column;
}

.bold {
    font-weight: bold;
}





nav {
    background-color: var(--zelena);
    position: sticky;
    top: 0;
    overflow: hidden;
    font-size: 1.5rem;
}
nav a {
    float: right;
    display: block;
    color: var(--bezova);
    text-align: center;
    padding: 14px;
    text-decoration: none;
  }

nav a:hover {
    color: var(--bila);
}

.left {
    float: left;
    clear: left;
}
.right {
    float: right;
    clear: right;
}

.center {
    
}


main {
    flex: 1;
}

aside  {
    width: 30%;
    margin: 0.4rem 0.5rem 0 0.5rem;
    padding: 0.25rem;
  background-color: var(--bezova);
  border-left: 4px solid #cacab6;
}

section {
    margin: 0.4rem 0.5rem 0 30%;
    padding: 0 0 0 1rem; 
}

a.readPage {
    background-color: var(--zelena);
    color: var(--bezova);
    padding: 1rem;
    font-weight: bold;
    display: block;
  width: fit-content;
  margin: 0 auto;
  text-decoration: none;
  
}
a.readPage:hover {
    color: var(--bila)
}


/* hlavní stránka */
.slideshow-container {
    
    max-width: 1000px;
    height: 450px;
    position: relative;
  overflow: hidden;
    margin: auto;
  }

  .slideshow-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;

  }
  .mySlides {
    display: none;
  }
  .prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
  }
  
  /* Position the "next button" to the right */
  .next {
    right: 0;
    border-radius: 3px 0 0 3px;
  }
  
  /* On hover, add a black background color with a little bit see-through */
  .prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
  }
  
  /* Caption text */
  .text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
  }
  
  /* Number text (1/3 etc) */
  .numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
  }
  
  /* The dots/bullets/indicators */
  .dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
  }
  
  .active, .dot:hover {
    background-color: #717171;
  }
  
  /* Fading animation */
  .fade {
    animation-name: fade;
    animation-duration: 1.5s;
  }
  
  @keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
  }


footer {
    padding: 16px;
    text-align: center;
}
.banner {
    position: relative;
    width: 100%;
    height: 300px; /* Nastav si požadovanou výšku banneru */
    overflow: hidden;
    margin: 0;
    padding: 0;
  }
  
  .banner img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Obrázek vyplní celý prostor a zachová estetický vzhled */
  }
  
  .banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bezova);
    font-size: 60px;
    text-align: center;
    text-shadow: 4px 4px 8px rgba(0,0,0,0.7);
    padding: 1rem;
  }

  .prihlasovaci_form input, .prihlasovaci_form label{
    display: block;
  }
  .prihlasovaci_form button {
    background-color: var(--zelena);
    color: var(--bezova);
    padding: 0.5rem;
    margin-top: 0.3rem;
    font-weight: bold;
    display: block;
    width: fit-content;
    border: 0;
    text-decoration: none;
    cursor: pointer;
  }
  .prihlasovaci_form button:hover {
    color: var(--bila)
}


.jidelnicekFlexbox {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px;
}
.jidelnicekDen {
  width: 100%;
  height: fit-content;
  background-color: var(--bezova);
  border-left: 4px solid #cacab6;

}
.jidelnicekDen h4, .jidelnicekDen p {
  margin-left: 10px;
  margin-top: 10px;
}
.pc-header {
  display: block;
}
.mobile-header {
  display: none;
}
/* The Overlay (background) */
.overlay {
  /* Height & width depends on how you want to reveal the overlay (see JS below) */   
  height: 100%;
  width: 0;
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  background-color: rgb(0,0,0); /* Black fallback color */
  background-color: rgba(0,0,0, 0.9); /* Black w/opacity */
  overflow-x: hidden; /* Disable horizontal scroll */
  transition: 0.5s; /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
}

/* Position the content inside the overlay */
.overlay-content {
  position: relative;
  top: 25%; /* 25% from the top */
  width: 100%; /* 100% width */
  text-align: center; /* Centered text/links */
  margin-top: 30px; /* 30px top margin to avoid conflict with the close button on smaller screens */
}

/* The navigation links inside the overlay */
.overlay a {
  padding: 8px;
  text-decoration: none;
  font-size: 36px;
  color: #818181;
  display: block; /* Display block instead of inline */
  transition: 0.3s; /* Transition effects on hover (color) */
}

/* When you mouse over the navigation links, change their color */
.overlay a:hover, .overlay a:focus {
  color: #f1f1f1;
}

/* Position the close button (top right corner) */
.overlay .closebtn {
  position: absolute;
  top: 20px;
  right: 45px;
  font-size: 60px;
}

.aktuality {
  display: flex;
  flex-direction: column;
}
/* Základní styl pro container */
.aktualita {
  display: flex;
  flex-direction: row; /* Uspořádání vlevo (obrázek) a vpravo (text) */
  margin: 20px 0;
  padding: 16px;
  background-color: var(--bezova);
}

/* Nastavení obrázku */
.aktualitaImg {
  width: 40%; /* Obrázek zabírá 40% šířky */
  position: relative;
  overflow: hidden;
  margin-right: 20px; /* Mezera mezi obrázkem a textem */
}

/* Vytvoření poměru 16:9 */
.aktualitaImg::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* Poměr 16:9 (100 / (16 / 9) = 56.25%) */
}

.aktualitaImg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Obrázek bude vyplňovat celý prostor */
}
.aktualitaFullImg {
  display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 65%; /* aby nebyl větší než stránka */

}
/* Blok pro textové informace */
.informace {
  width: 60%; /* Text zabírá 60% šířky */
}

/* Nadpis aktuality */
.nadpis {
  font-size: 1.5rem;
  margin: 10px 0;
  font-weight: bold;
}

/* Datum přidání aktuality */
.datum {
  color: #888;
  font-size: 0.9rem;
}
.calendar-container {
  position: relative;
  width: 100%;
  padding-top: 75%; /* Poměr stran: 4:3 → můžeš upravit podle potřeby */
  overflow: hidden;
}

.calendar-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.pagination {
margin: 16px;
text-align: center;
}
.pagination a {
  background-color: var(--bezova);
  padding: 8px;
  text-decoration: none;
  color: var(--bila)s;
}
.pagination a:hover {
  background-color: #c9c9b2;
}

table.documents {
  width: 100%;
  border-collapse: collapse;
}
table.documents th {
  padding: 8px;
  border: 1px solid #ddd;
  background-color: var(--bezova);
  text-align: left;
}
 table.documents td {
  padding: 8px;
  border: 1px solid #ddd;
  text-align: left;
}

/* When the height of the screen is less than 450 pixels, change the font-size of the links and position the close button again, so they don't overlap */
@media screen and (max-height: 450px) {
  .overlay a {font-size: 20px}
  .overlay .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }
}
@media (max-width: 870px) {
  aside {
    margin: 0.2rem 0.1vw 0 0.1vw;
    display: block;
    width: 97.5vw;
    
  }
  .aktualita {
    flex-direction: column; /* Na mobilu se vše zobrazuje pod sebou */
}

.aktualitaImg {
    width: 100%; /* Obrázek zabírá 100% šířky */
    margin-bottom: 15px; /* Mezera mezi obrázkem a textem */
}

.informace {
    width: 100%; /* Text zabírá 100% šířky */
}
  .pc-header {
    display: none;
  }
  .mobile-header {
    display: block;
  }
  .left {
    float: none;
    clear: none;
  }
  .right {
    float: none;
    clear: none;
  }
  section {
    margin: 0.2rem 0.5vw 0 0.5vw;
    padding: 0;
    display: block;
    width: 97.5vw;
    
  }
  }