/* -----------------
   Platí pro vše
-----------------------*/

* {
    box-sizing: border-box;
}

body {  
    background: linear-gradient(to bottom, #d8a6e8, #f8b195);
    font-family: Arial, sans-serif;
    font-weight: 500;
}
main {
    padding-bottom: 24vh;
}
li {
    font-size: 1.1rem;
}

.fotka {
    border-radius: 10px;
}
.main-header {     /* hlavní nadpis*/
    font-size: 3rem;
    text-align: center;
    color: #A14CE6;
    text-shadow: 1px 1px 2px black;
}

.section-header {    /* nadpis h2*/
    text-align: center;
    font-size: 3rem;
    color: #a14ce6;
    text-shadow: 1px 1px 2px black;
}
ul{
    font-size: 1rem;
}

figcaption {     /*titulek*/
    text-align: center;
    font-style: italic;
    padding: 1rem;
}

footer {
    background-color: black;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-align: center;
}

figure {
    padding: 0;
    margin: 0;
}

a {
    color: #A14CE6;
}


/* ------------
    header
-----------------*/

header {
    display: flex;
    align-items: center;
    border-radius: 10px;
    justify-content: space-between;
    padding: 1rem 2rem;
    margin: 10px auto;
    position: relative;
    background-color: #A14CE6;
}

.logo {
    max-height: 60px;
    margin: 0;
    padding: 0;
}

.logo-link {
    margin: 0;
    padding: 0;
}

#nav-list {      /*vysouvací list na mobilu*/
    display: flex;
    flex-flow: row nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    justify-content: center;
}

.nav-link {       /* <li> položky v navigaci */
    display: inline-block;
    font-size: 1.3rem;
    padding: 0.75rem 1rem;
    color: rgb(0, 0, 0);
    text-decoration: none;
    text-align: center;
}

#nav-toggle {    /*nav-toggle = tlačítko pro vysunutí navigace na mobilu*/
    display: none;
    background-color: black;
    border: none;
    border-radius: 10px;
    padding: 0.2rem 0.6rem;
    color: white;
    font-size: 2rem;
}

/* --------------
   Hlavné obsah
---------------------*/

.flex-container {       /*class divů*/
    display: flex;
    flex-flow: row wrap;
    gap: 1rem;
    padding: 0.5rem;
    margin: 0;
}

.flex-item {    /*class sectionů*/
    flex: 1 1 400px;
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    background-color: #ffffff;
    color: #000000;
    border-radius: 10px;
    padding: 1rem 2rem;
}

.intro-item {
    justify-content: start;
}

.section-image img {
    height: 800px;
    object-fit: cover;
    object-position: top;
}

.position {       /*class hgoup*/
    display: flex;
    justify-content: space-between;
    flex-flow: column nowrap; /* nowrap: prvky se nezalamují při nedostatku místa, budou vždy v soupci */
    text-align: center;
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translate(-50%, 0%);
    z-index: 1;
}

#intro-header {      /*nadpis parkour*/
    color: #A14CE6;
    text-shadow: 1px 1px 2px black;
    font-size: 5.5rem;

}

#intro-subheader {    /*podnadpis svoboda pohybu*/
    font-size: 1.6rem;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7);
    color: black;

}

/* -----------
   Galerie
----------------- */

.gallery {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
    padding: 2rem;
    margin: 0 auto;
}

.gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;   /* poměr stran obrázků na 4:3 */
    object-fit: contain;  /*poměr stran obrázků na 4:3 */
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #ffffffae;
    padding: 0.5rem;
}

.gallery img:hover {
    transform: scale(1.03);     /*způsobí malé zvětšení obrázku o 3 % */
}

/* -------------------------------
   Usporádání pro mobilní zařízení
------------------------------------ */

@media screen and (max-width: 70rem) {

    #nav-toggle {
        display: block;
    }

    #nav-list {
        display: none; /* ve výchozím stavu menu není vidět */
        flex-flow: column nowrap;
        position: absolute;
        z-index: 2; /* prvek je nadřazený indexem 2 nadpisu "Parkour", který má index 1 */
        top: 110%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        padding: 1rem;
        border-radius: 10px;
    }

    #nav-list.visible {
        display: flex; /* po kliknutí na tlačítko se nav-listu přidá viditelnost pomocí display: flex */
    }

    .nav-link {
        width: 100%;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .section-image img {
        object-fit: contain;
        height: auto;
    }

    #intro-header {
        font-size: 2.3rem;
        padding: 0;
        margin-top: 30px;
    }

    #intro-subheader {
        font-size: 0.9rem;
        color: black;
        padding: 0;
        margin: 0;
        margin-top: -20px;
    }

    .position {
        justify-content: start;
        gap: 0;
    }

}

/*galerie - slidy*/
.row > .column {
  padding: 0 8px;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Create four equal columns that floats next to eachother */
.column {
  float: left;
  width: 25%;
}

/* VIDEO */
.videoInModal {
  width: auto;
  height: auto;
  max-width: 80vw; /*šířka vůči celému oknu*/
  max-height: 80vh;/*výška vůči celému oknu*/
  display: block;
  margin: auto;
}


/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: black;
}

/* Modal Content */
.modal-content {
  max-height: 90vh;
  background: none;
}

.modal-content img {
    width: auto;
  height: auto;
  max-width: 80vw; /*šířka vůči celému oknu*/
  max-height: 80vh;/*výška vůči celému oknu*/
  display: block;
  margin: auto;
}

/* The Close Button */
.close {
  color: white;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

/* Hide the slides by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev,.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* Caption text */
.caption-container {
  text-align: center;
  background-color: black;
  padding: 2px 16px;
  color: white;
}

img.demo {
  opacity: 0.6;
}

.active,
.demo:hover {
  opacity: 1;
}

img.hover-shadow {
  transition: 0.3s;
}

.hover-shadow:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
/*zarovnani na stred vertikálně (od shora dolů)*/
.slideImg, .videoInModal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}

/*tabulka - schválení uživatelů*/
table, th, td{
    border: 1px solid;
    border-collapse: collapse;
    padding: 10px;
    background-color: #a26ccb;

}

table a{
 color: #000000;
}




