*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
}
body{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
/*Header*/
header{
    position: absolute;
    width: 100%;
    max-height: 107px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #f00;
    font-weight: bold;
}
header ul {
    position:relative;
}
header ul li {
    position:relative;
    list-style: none;
    float: left;
    z-index: 100;
}
header ul li a {
    color: red;
    font-size: 16px;
    padding: 20px 25px;
    text-decoration: none;
    display:flex;
    justify-content: space-between;
    font-weight: bold;
    height: 65px;
    align-items: center;
}
header ul li a:hover{
    background-color:#f00 ;
    color: #fff;
}
header ul li ul {
    position: absolute;
    left: 0;
    width: 200px;
    background-color: lightgray;
    display: none;
}
.logoIMG {
    height: 100px;
    position: relative;
}
.LogoText {
    position: absolute;
    top: 25px;
    left: 115px;
    width: 300px;
}
.LT1 {
    font-size: 28px;
}
.LT2 {
    font-size: 12px;
}
header ul li:hover ul{
    display: block;
}
header ul li ul li{
    position: relative;
    width: 100%;
}
@media(max-width:1250px) {
    header{
        width: 100%;
    }
    header nav{
        position: absolute;
        width: 100%;
        top:107px;
        left: 0;
        background-color: #fff;
        display:none;
        z-index: 100;
    }
    header nav ul li{
        width: 100%;
        
        
    }
    header nav ul li ul{
        width: 100%;
        position: relative;
        left:0;
        
    }
    header nav ul li:hover ul li{
        background-color: lightgrey;
    }
    .MenuBtn{
      position: relative;
      width: 40px;
      height: 50px;
      cursor:pointer;
      display: flex;
      justify-content: center; 
      align-items: center;
      right: 20px; 
    }
    .MenuBtn::before{
        content: '';
        position: absolute;
        width: 100%;
        height: 3px;
        background: #f00;
        transform: translateY(-12px);
        box-shadow: 0 12px #f00;
    }
    .MenuBtn::after{
        content: '';
        position: absolute;
        width: 100%;
        height: 3px;
        background: #f00;
        transform: translateY(12px);
    }
    header.active .MenuBtn::before{
        transform: rotate(45deg);
        box-shadow: 0 0 #f00;
    }
    header.active .MenuBtn::after{
        transform: rotate(315deg);
    }
    header.active nav{
        display:inherit
    }
}
@media(max-width:500px) {
    header nav{
        top:77px;
    }
    .logoIMG {
        height: 75px;
    }
    .LT1 {
        font-size: 20px;
    }
    .LT2 {
        font-size: 8px;
    }
    .LogoText {
        left: 95px;
        top: 22.5px
    }
}
.linetop{
    background-color: #f00;
    height: 2.5px;
    width: 100%;
    margin-top: 106px;
}
/*Footer*/
footer {
    display: flex;
    flex-flow: row wrap;
    padding: 10px;
    color: #fff;
    background-color: #777;
    max-width: 100%;
}
.end {
    color: #fff;
    text-align: center;
    width: 100%;
}
.footerline{
    background-color: #f00;
    height: 3.5px;
    width: 100%;
}
@media(width < 501px){
    .end{
        font-size: 12px;
    }
}
/*Main content*/
.main{
    flex: 1;
    
}
.line{
    background-color: #f00;
    height: 3.5px;
    width: 100%;
}
table {
    border: 1px solid black;
    width: 80%;
    margin-left: 10%;
    margin-bottom: 50px;
    border-collapse: collapse;
    text-align: center;
    font-weight: bold;
}
thead {
    background-color: #f00;
    color: #fff;
}
th {
    border: 1px solid black;
}
tr:nth-child(even) {
    background-color: #C0C0C0;
}
@media(width<501px){
    .linetop{
        margin-top: 80px;
    }
}
/*Home page*/
.SlideShow{
    position: relative;
    height: 500px;
    width: 100%;
}
.mySlides{
    width: 100%;
    height: 500px;
    object-fit: cover;
}
@media( width > 1920px){
    .SlideShow {
        height: 750px;
    }
    .mySlides {
        height: 750px;
    }
}
@media( width < 800px){
    .SlideShow {
        height: 300px;
    }
    .mySlides {
        height: 300px;
    }
}
.PodnadpisAkt{
    color: #f00;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin-top: 5px;
}
h2{
    font-size: 34px;
    font-weight: bold;
    text-align: center;
}
.TitleSidePage{
    margin-top: 1%;
}
.TitleSidePage2{
    color:#f00;
}
.row{
    max-width: 1920px;
    margin-top: 5%;
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.HomeAktCol{
    width: 400px;
    background: #e8e8e8;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 10px 12px;
    margin: 10px;
    box-sizing: border-box;
    transition: .5s;
    text-align: center;
}
.HomeAktImage{
    width: 300px;
    border-radius: 10px;
    height: 250px;
    object-fit: contain;
}
.HomeFbCol{
    flex-basis: 400px;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 10px 12px;
    box-sizing: border-box;
    transition: .5s;
    text-align: center;
}
.FB{
    border-radius: 10px;
}
.FB iframe {
    text-align: center;
    border-radius: 10px;
    box-shadow: #777;
}
.HomeAktCol:hover {
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.818);
}

.HomeFbCol:hover {
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.818);
}
a {
    color: black;
}
@media (max-width:400px) {
    .HomeAktImage {
        height: 175px;
        width: 250px;
        object-fit: contain;
    }
    .HomeAkt {
        margin-left: 15px;
        margin-right: 0.5%;
    }
    .HomeAktCol {
        width: 300px;
    }
    .HomeFbCol{
        width: 300px;
    }
}
@media (max-width:822px) {
   .row{
   justify-content:space-around;   
}}
@media (max-width:1260px) {
    .row{
    max-width: 900px; 
    justify-content:space-around;   
 }
}
/*Calendar site*/
.Calendar h5{
  font-weight: bold;
  font-size: 26px;
  text-align: center;
  margin-top: .5%;
}
.Calendar p{
    text-align: center;
}
/*Organizace*/
.TableOrg{
    width: 50%;
    margin-left: 25%;
    margin-right: 25%;
}
@media(width > 1300px){
    .TableOrg{
        width: 40%;
        margin-left: 30%;
        margin-right: 30%;
    }
}
@media(width > 2300px){
    .TableOrg{
        width: 30%;
        margin-left: 35%;
        margin-right: 35%;
    }
}
/*Seznam výjezdů*/
.table {
    overflow-x: auto;
}
.rowStatistic{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}
.Statistic{
    flex-basis: 250px;
    background: #C0C0C0;
    border-radius: 10px;
    margin-top: 2.5%;
    margin-bottom: 5%;
    padding: 10px 12px;
    box-sizing: border-box;
    transition: .5s;
    text-align: center;
}
.Statistic:hover{
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.818);
}
span.num{
    color: #f00;
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 3em;
}
span.text{
    color: #f00;
    font-size: 1em;
    font-weight: bold;
    text-align: center;
    pad: .7em 0;
    line-height: 0;
    margin-top: 10px;
}
/*Contacts*/
.Contacts{
    max-width: 1920px;
    margin-left: 5%;
    margin-right: 5%;
    margin-inline: auto;
}
.ContactMain{
    margin-top: 5%;
    margin-left: 5%;
    margin-right: 2.5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}
.ContactMainCol{
    flex-basis: 48%;
    margin-bottom: 30px;
}
.ContactMainCol div{
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}
.ContactMainCol div .fa{
    font-size: 28px;
    color: black;
    margin: 10px;
    margin-right: 30px;
}
.ContactMainCol div p{
    padding: 0;
    font-size: 16px;
    color: #555;
    font-weight: 400;
}
.ContactMainCol div iframe {
    width: 550px;
    height: 450px;
}
.ContactMainCol div h5{
    font-size: 20px;
    margin-bottom: 5px;
    color: #555;
    font-weight: 400;
}
.ContactMainColRow{
    margin-left: 20%;
}
.IC{
    text-align: center;
}
.person-col {
    flex-basis: 300px;
    background: #e8e8e8;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 10px 12px;
    margin: 10px;
    box-sizing: border-box;
    transition: .5s;
    text-align: center;
}
.PersonContact {
    display: flex;
    align-items: center;
    margin-left: 5%;
}
.PersonContact h5 {
    font-size: 13px;
    margin-bottom: 5px;
    color: #555;
    font-weight: 400;
}
.PersonContact .fa {
    font-size: 16px;
    color: black;
    margin-right: 10px;
}
@media(max-width:1170px){
    .Contacts{
        max-width: 600px;
    }
    .ContactMain{
        justify-content: space-around;
    }
    .ContactMainColRow{
        margin-left: 7.5%;
    }
    .ContactMainCol div .fa {
        font-size: 24px;
    }
    .ContactMainCol div p {
        font-size: 12px;
    }
    .ContactMainCol div h5 {
        font-size: 16px;
    }
    .Nazev {
        font-size: 20px;
    }
}
@media(max-width:650px){
    .Contacts{
        max-width: 350px;
    }
    .ContactMainCol div iframe {
        width: 275px;
        height: 225px;
    }
}
/*Aktualita*/
.date {
    color: #f00;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
}
.ContentOfAkt {
    width: 80%;
    margin-left: 10%;
}
.files {
    margin-bottom: 1%;
}

.filesT {
    font-size: 20px;
    font-weight: 700;
}

.filename {
    font-size: 18px;
    font-weight: 400;
    color: #f00;
}

/*Galerie*/
.gallery {
    margin-left: 2%;
    min-height: 20%;
    margin-top: 5%;
    margin-bottom: 5%;
}
.SDH_photo {
    width: 300px;
    max-height: 200px;
    margin-left: 0.5vw;
    object-fit: cover;
}
.row_gallery{
    margin-left: 10%;
    margin-right: 10%;
    display: flex;
    flex-wrap: wrap;
    justify-content: baseline;
    align-items: center;
}
@media (max-width:822px) {
    .row_gallery{
    justify-content:space-around;
    margin-left: 0;
    margin-right: 0;   
 }}
 @media (max-width:1260px) {
     .row_gallery{
     max-width: 900px; 
     justify-content:space-around;
     margin-left: 0;
     margin-right: 0;    
  }
 }

/*Zobrazení aktualit*/
.AktMain{
    max-width: 1920px;
    margin-left: 5%;
    margin-right: 5%;
    margin-inline: auto;
}
.controls {
    flex-wrap: wrap;
    align-items:center;
    justify-content: space-around;text-align: center;
}

.PrevPage {
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    color: #f00;
    border: 2px solid #f00;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    cursor: pointer;
    transition: 1s;
}

.PrevPage:hover {
    border: 1px solid #f00;
    background: #f00;
    color: #fff;
}

.NextPage {
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    color: #f00;
    border: 2px solid #f00;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    cursor: pointer;
    transition: 1s;
}

.NextPage:hover {
    border: 1px solid #f00;
    background: #f00;
    color: #fff;
}
/*Technika*/
.tech-col {
    flex-basis: 300px;
    background: #e8e8e8;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 10px 12px;
    margin: 10px;
    box-sizing: border-box;
    transition: .5s;
    text-align: center;
}
.TechnikaImage{
    width: 300px;
    border-radius: 10px;
    height: 250px;
    object-fit: contain;
}
.tech-col:hover {
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.818);
}
@media (max-width:400px) {
    .TechnikaImage {
        height: 175px;
        width: 250px;
        object-fit: contain;
    }}
/*Nahlaseni paleni*/
.Paleni{
    max-width: 1920px;
    margin-left: 5%;
    margin-right: 5%;
    margin-inline: auto;
}
.PaleniBtn {
    display: flex;
    text-decoration: none;
    font-weight: bold;
    color: #f00;
    border: 2px solid #f00;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    cursor: pointer;
    transition: 1s;
    border-radius: 10px;
    justify-content: space-around;
    margin-top: 30px;
    margin-inline: auto;
    width: 200px;
}

.PaleniBtn:hover {
    border: 1px solid #f00;
    background: #f00;
    color: #fff;
}
.PaleniCl{
    margin-top: 100px;
    max-width: 1100px;
    margin-left: 10%;
    margin-right: 10%;
    padding-left: 5%;
    padding-right: 5%;
    margin-inline: auto;
    align-items: center;
}
.PaleniCl h5{
    font-weight: bold;
    font-size: 26px;
    text-align: center;
    margin-top: .5%;
    color: #f00;
  }
  .PaleniCl p{
      text-align: center;
  }
/*Prevence*/
.PrevMain{
    max-width: 1400px;
    margin-inline: auto;
}
.PrevText{
    text-align: center;
    color: #f00;
    padding-left: 10%;
    padding-right: 10%;
}
.rowprev{
    max-width: 1400px;
    margin-top: 5%;
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.PrevCol{
    width: 200px;
    background: #e8e8e8;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 10px 12px;
    margin: 10px;
    box-sizing: border-box;
    transition: .5s;
    text-align: center;
}
.PrevImage{
    width: 175px;
    border-radius: 10px;
    height: 175px;
    object-fit: contain;
}
.ContentOfPrev {
    max-width: 1400px;
    margin-inline: auto;
    padding-left: 10%;
    padding-right: 10%;
}
.ContentOfPrev p {
    font-size: 14px;
}
.ContentOfPrev li {
    font-size: 14px;
}
.PrevCol:hover {
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.818);
}
a {
    color: black;
}

@media (max-width:822px) {
   .rowprev{
   justify-content:space-around;   
}}
@media (max-width:1260px) {
    .rowprev{
    max-width: 900px; 
    justify-content:space-around;   
 }
}
/*Zobrazeni druzstev*/
.druz-col {
    width: 400px;
    background: #e8e8e8;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 10px 12px;
    margin: 10px;
    box-sizing: border-box;
    transition: .5s;
    text-align: center;
}
.DruzImg{
    width: 375px;
    border-radius: 10px;
    height: 400px;
    object-fit: contain;
}
.druz-col:hover {
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.818);
}

@media(max-width:650px){
    .druz-col {
        width: 370px;
    }
    .DruzImg {
        height: 200px;
        width: 290px;
        object-fit: contain;
    }}
