* {
  color: #27559A;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden; /* Zabraňuje horizontálnímu scrollování */
  font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

nav {
  background-color: white;
  position: fixed;
  display: flex;
  top: 0;
  left: 0;
  z-index: 1000;
  align-items: center;
  justify-content: space-between;
  padding: 0px 50px;
  margin:auto;
  width: 100%;
}

nav a {
    font-size: 2vw;
    font-weight: 100;
    text-decoration: none;
    padding: 12px 40px;
    transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

nav a:hover {
  color:white;
  background-color:#27559A;
  border-radius: 1px;
  transition: 0.3s;
}

.logo img {
  display: block;
  height: 120px; /* nebo jiná výška podle potřeby */
  width: auto;
  margin: 0;
  padding: 0;
}

video {
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}

.uvodni h1 {
  color: white; 
  font-size: 7vw;
  position: absolute; /* Absolutní pozice pro text */
  top: 70%; /* Vertikální zarovnání na střed */
  margin-left: 230px;
}

.sekce1 {
  display: flex;
  flex-wrap: wrap; /* Umožní přizpůsobení obsahu */
  justify-content: space-between; /* text vlevo, fotka vpravo */
  align-items:center; /* Zarovná obrázky a text na střed */
  max-width: 75%; /* Maximální šířka obsahu */
  margin: auto; /* Vycentrování na stránce */
  padding: 20px;
}

.text-sekce1 {
  font-size: 1.3vw;
  max-width: 600px; /* Maximální šířka textu */
  margin-bottom: 60px;
}

.text-sekce1 h2{
  font-size: 5vw;
  margin-bottom: 5%;
}
.text-sekce1 h4{
  color:#2E7FC0;
  font-size: 2vw;
  margin-bottom: 5%;
}

.foto-sekce1 {
  display: flex;
  flex-direction: column; /* Fotky nad sebou */
  justify-content: flex-start; /* fotky začínají nahoře */
}

.foto-sekce1 img {
   max-width: 585px;
  height: auto;
  align-self: center;   /* vycentruje ji v boxu */
}

a.rodokmen {
  color:#2E7FC0;
  font-size: 2vw;
}

a.rodokmen:hover {
  color:#27559A;
}

footer {
  background-color: #27559A;
  color: white;
  text-align: center;
  padding: 30px 30px;
  font-size: 1vw;
  line-height: 1.5;       /* mezera mezi řádky */
}

footer p{
  color: white;
}

footer a:hover {
  color: #2E7FC0;
}

/*---------------------------------------------------------------------------------------------------------*/

@media (max-width:500px) {

nav {
  background-color: white;
  position: fixed;
  display: flex;
  top: 0;
  left: 0;
  z-index: 1000;
  align-items: center;
  justify-content: space-between;
  padding: 0px 30px;
  margin:auto;
  width: 100%;
}

nav a {
    font-size: 3vw;
    font-weight: 100;
    text-decoration: none;
    padding: 5px 10px;
    transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

nav a:hover {
  color:white;
  background-color:#27559A;
  border-radius: 1px;
  transition: 0.3s;
}

.logo img {
  display: block;
  height: 50px; /* nebo jiná výška podle potřeby */
  width: auto;
  margin: 0;
  padding: 0;
}

video {
  top: 0;
  left: 0;
  width: 100vw;
  height: 50vh;
  object-fit: cover;
}

.uvodni h1 {
  color: white; 
  font-size: 8vw;
  position: absolute; /* Absolutní pozice pro text */
  top: 25%; /* Vertikální zarovnání na střed */
  margin-left: 17%;
}

.sekce1 {
  display: flex;
  flex-direction: column; /* text nad obrázkem */
  align-items: center;    /* centrování textu */
  max-width: 100%;
  padding: 10px;
  
}

.text-sekce1 {
  text-align: center;   /* text uprostřed boxu */
  margin: 20px auto;  /* nahoře/dole 15px */
  max-width: 75%;
}

.text-sekce1 h2{
  font-size: 7vw;
  margin-bottom: 10%;
}
.text-sekce1 h4{
  color:#2E7FC0;
  font-size: 5vw;
  margin-bottom: 5%;
}

.text-sekce1 p{
  font-size: 4vw;
  line-height: 1.5;       /* mezera mezi řádky */
  margin-bottom: 10%;
}


.foto-sekce1 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;   /* celá šířka */
  padding: 20px;
}

.foto-sekce1 img {
  width: 100%;   /* obrázek se roztáhne přes celou šířku */
  height: auto;  /* zachová proporce */
  max-height: none; /* odstraní omezení výšky */
  align-self: center;
}


a.rodokmen {
  color:#2E7FC0;
  font-size: 4vw;
  margin: 5%;
  
}

a.rodokmen:hover {
  color:#27559A;
}

footer {
  background-color: #27559A;
  color: white;
  text-align: center;
  padding: 30px 30px;
  font-size: 3vw;
  line-height: 1.5;       /* mezera mezi řádky */
}

footer p{
  color: white;
}

footer a:hover {
  color: #2E7FC0;
}
}


