*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
    scroll-padding-top: 10vh;
}

body{
    color: rgb(255, 255, 255);
    background-color: rgb(92, 91, 91);
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

body.no-scroll {
    overflow: hidden;
}

header{
    background-image: url(images/WIBJ6925.JPG);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
}

.header-title{
    display: flex;
    flex-direction: column;
    align-items: center;   
    justify-content: center;
    gap: 2vh;
    margin-top: 35vh;
    color: #b7df67;
    text-align: center;
}

.header-title h1{
    font-size: 5vh;
    font-weight: 1000;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.header-title h3{
    font-size: 2.5vh;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

nav{
    z-index: 1000;
    position: fixed;
    top: 0;
    display: flex;
    flex-direction: row;
    width: 100vw;
    height: 7vh;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.74);
}

nav ul{
    display: flex;
    flex-direction: row;
    width: 100vw;
    height: 7vh;
    align-items: center;
    justify-content: flex-end;
    gap: 2vw;
    padding-right: 3vw;

 
}

nav ul li{
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li a{
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-size: 2vh;
    font-weight: bold;
}

nav a.active {
    text-decoration: underline;
}



.logo{
    justify-self: flex-start;
    margin-left: 2vw;
    align-items: center;
}

.logo img{
    height: 5vh;
    width: auto;
}

nav button{
    background: none;
    border: none;
    cursor: pointer; /* ruka při hoveru */
}

.sidebar button {
    background: none;
    border: none;
    cursor: pointer; /* ruka při hoveru */
}

.sidebar{
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 60vw;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.74);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    box-shadow: 10px 0 10px rgba(0, 0, 0, 0.1);
    justify-content: flex-start;
    transition: left 0.3s ease;
}
.sidebar.active{
    right: 0;
}

.sidebar ul{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;

}

.sidebar li{


    margin-top: 3vh;
    margin-right: 2vw;
 
}

.sidebar a{
    width: 100%;
    font-size: 2.5vh;
    text-align: right;
    margin-right: 0;
}

.menu-button{
    display: none;
}

.info{
    width: 100vw;
    height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6vh;
    background-color: rgb(102, 110, 94);
    text-align: center;
}

.info-container{
    width: 80vw;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;

}

.info-container div{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2vh;
    width: 22vw;
 
}
.info-container div p{
    text-align: center;
    color: rgb(212, 212, 212);
    font-weight: 600;
    font-size: 2vh;
}
.info-container div h3{
    font-size: 3vh;
    font-weight: 1000;

}

h2{
    font-size: 5vh;
    font-weight: 1000;
    text-transform: uppercase;
}

h3 a{
    text-decoration: none;
    color: white;
    cursor: pointer;
}

h4{
    text-decoration: none;
    font-size: 1.2vh;
    font-weight: 600;
}

.extra-desc{
    font-size: 2.5vh;
}

.rules{
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: rgb(102, 110, 94);
    align-items: center;
    justify-content: center;   
    gap: 5vh;
}

.rules-list{
    width: 80vw;
    display: flex;
    flex-direction: column;
}

.rules-list li{
    font-size: 2.5vh;
    margin-bottom: 1vh;
}

.exception{
    width: 80vw;
    font-size: 2.2vh;
    text-align: center;
}

.penality{
    font-size: 2.3vh;
    font-weight: 600;
    color: rgb(183, 41, 6);
    width: 80vw;
    text-align: center;
}

.contacts{
    width: 100vw;
    height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10vh;
}

.contact-container{
    width: 80vw;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    gap: 5vw;
}

.contact-container div{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2vh;
    width: 22vw;
}

.contact-container div h3{
    text-align: center;
    font-size: 3vh;
}


footer{
    width: 100vw;
    height: 8vh;
    background-color: rgb(42, 42, 42);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1vh;
    text-align: center;
}


/*  gallerie  */

.gallery h2{
    text-align: center;
    margin-bottom: 2vh;
    margin-top: 5vh;
}


/* Overlay pozadí pro lightbox */
#lightboxOverlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Kontejner pro obrázek */
#lightboxContent {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

/* Obrázek */
#lightboxImg {
  max-width: 85vw;
  max-height: 85vh;
  width: auto;  
  height: auto;
  display: block;
  margin: auto;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  object-fit: contain;
  border-radius: 5px;
}

/* Starý obrázek odchází doleva (nový přijde zprava) */
.slide-out-left {
  transform: translateX(-120%) scale(0.9); /* odlet + mírné zmenšení */
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Starý obrázek odchází doprava (nový přijde zleva) */
.slide-out-right {
  transform: translateX(120%) scale(0.9);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Nový obrázek přichází zleva */
.slide-in-left-active {
  transform: translateX(-120%) scale(0.9); /* začne z pravé strany */
  opacity: 0;
  transition: none;
}

/* Nový obrázek přichází zprava */
.slide-in-right-active {
  transform: translateX(120%) scale(0.9); /* začne z levé strany */
  opacity: 0;
  transition: none;
}

/* Animace příchodu nového obrázku */
.slide-in-left-active.show,
.slide-in-right-active.show {
  transform: translateX(0) scale(1); /* posune se do středu */
  opacity: 1;
  transition: transform 0.2s ease, opacity 0.2s ease;
}


/* Křížek na zavření */
#lightboxClose {
  position: fixed;        /* fixovaný vzhledem k obrazovce */
  top: 2vh;              /* odsazení od horní hrany obrazovky */
  right: 2vh;            /* odsazení od pravé hrany obrazovky */
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  width: 5vh;            /* větší velikost */
  height: 5vh;
  font-size: 6vh;
  font-weight: bold;
  color: #000;
  cursor: pointer;
  line-height: 4.3vh;
  text-align: center;
  user-select: none;
  z-index: 10001;         /* aby byl nad šipkami a obrázkem */
  box-shadow: 0 0 5px rgba(0,0,0,0.3); /* lehký stín pro lepší viditelnost */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#lightboxClose:hover {
  background: rgba(255, 255, 255, 0.5);

}

/* Šipky pro posun vlevo a vpravo */
#lightboxPrev, #lightboxNext {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4vh;             /* uprav podle potřeby */
  color: #000;
  user-select: none;
  z-index: 10000;
  
  width: 5vh;                 /* pevná šířka */
  height: 5vh;                /* pevná výška */
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;          /* dokonalý kruh */
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#lightboxPrev:hover, #lightboxNext:hover {
  background: rgba(255, 255, 255, 0.5);
}

#lightboxPrev { left: 20px; }
#lightboxNext { right: 20px; }


.gallery-container {
  display: flex;
  flex-wrap: wrap;           /* umožní zalomení do více řádků */
  justify-content: center;   /* vycentruje řádky */
  gap: 2vh;                 /* mezera mezi obrázky */
  max-width: 80vw;
  margin: 0 auto;            /* vycentrování celé galerie v rámci rodiče */
  padding: 20px;
  box-sizing: border-box;
  margin-bottom: 5vh;
}

.gallery-container a {
  display: block;
  border: 2px solid transparent;
  width: 20vh;
  height: 20vh;
}

.gallery-container a img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* aby obrázek zaplnil box bez deformace */
  border-radius: 1.5vh;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery-container a img:hover {
  transform: scale(1.05);
}

.gallery-container h2 {
  width: 100%;
  text-align: center;
  margin-bottom: 15px;
  color: white;
}




@media screen and (max-width: 1100px){
    .contact-container{
        flex-direction: column;
    }
    .contacts{
        height: 120vh;
    }
    
        .hideOnMobile{
        display: none;
    }

    .menu-button{
        display: block;
    }
}

@media screen and (max-width: 1040px){
    .info{
        height: 80vh;
    }
    
    .info-container{
        flex-direction: column;
    }

    .info-container div{
        width: 30vw;
        margin-bottom: 5vh;
    }
}

@media screen and (max-width: 850px){
    .hideOnMobile{
        display: none;
    }

    .menu-button{
        display: block;
    }

    .info{
        height: 90vh;
    }

    .rules{
        height: 130vh;
    }
}

@media screen and (max-width: 600px){
    .rules{
        height: 120vh;
    }
    
}

@media screen and (max-width: 550px){
   .sidebar{
    width: 100vw;
   }

   .sidebar a{
    font-size: 3vh;
   }

   .info{
        height: 90vh;
    }
    
    .info-container{
        flex-direction: column;
    }

    .info-container div{
        width: 60vw;
        margin-bottom: 5vh;
    }
    
    .rules{
        height: 160vh;
    }

    .rules-list{
        gap: 1.5vh;
    }

    button svg{
        height: 7vh;
        width: 7vh;
    }   
}

@media screen and (max-width: 450px){
    .gallery-container a {
        width: 50vh;
        height: 50vh;
    }

    .logo img{
        height: 7vh;
    }

    a svg{
        height: 7vh;
        width: 7vh;
    }

    nav{
        height: 10vh;
    }
}

@media screen and (max-width: 400px){
    .rules{
        height: 180vh;
    }
    
}