@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&display=swap"); /* font na nadpisy */
@import url("https://fonts.googleapis.com/css2?family=Caudex:ital,wght@0,400;0,700;1,400;1,700&display=swap"); /* font na texty */

/* CELÁ STRÁNKA */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Caudex", serif; /* font na texty */
}

h1,
h2,
h3 {
  font-family: "Cinzel", serif; /* font na nadpisy */
}

/* SCROLLOVÁNÍ */
html {
  scroll-behavior: smooth;
}

/* TĚLO STRÁNKY */
body {
  background: #0b0f1a;
  color: #fff;
  overflow-x: hidden;
}

/* HEADER A NAVIGACE */
header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(10, 15, 30, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000; /* Přidáno, aby menu vždy překrývalo obsah při scrollování */
}

.logo img {
  height: 40px;
}

nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: #ccc;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
}

nav a:hover {
  color: #cd9948;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #cd9948;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* HAMBURGER MENU */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #fff;
  margin: 4px 0;
  transition: 0.3s;
}

/* TLAČÍTKO ZPĚT */
.btn_zpet {
  margin-top: 8%; /* Trochu upraveno kvůli fixnímu headeru */
  margin-left: 4%;
}

/* HLAVNÍ OBSAH - POSTAVA */
.ms_postava {
  display: flex;
  width: 100%;
  padding: 0 5%; /* Přidán lehký okraj zleva i zprava */
  margin-left: 10%;
}

.ms_texty {
  color: #cd9948;
  text-align: center;
  width: 50%;
}

.ms_fotka {
  margin-left: 5%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ms_nadpis {
  font-size: 300%;
}

.ms_text {
  font-size: 150%;
  margin-top: 2%;
  border-radius: 10px;
  border: #cd9948 1px solid;
  background-color: #00000020;
  padding: 2%;
}

/* FUNFACTY BOXÍKY */
.ms_funfacty {
  display: flex;
  justify-content: space-between;
  margin-top: 5%;
  gap: 20px;
}

.funfact1 {
  width: 48%;
  background-color: #00000020;
  display: flex;
  justify-content: center; /* Vystředí ty 3 obrázky */
  align-items: center;
  border-radius: 10px;
  border: #cd9948 1px solid;
  padding: 2%;
}

.funfact2 {
  width: 48%;
  background-color: #00000020;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: #cd9948 1px solid;
  padding: 2%;
}

/* FOTKY UVNITŘ FUNFACTŮ */
.ff_foto {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px; /* Mezera mezi třemi obrázky u sebe */
}

.ff_foto img {
  width: 100px;
  border-radius: 15px;
}

.ff_text {
  margin-left: 10px;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 30px;
  color: #777;
  font-size: 14px;
  border-top: 1px solid #1f2937;
  margin-top: 5%;
  background-color: #00000020;
}

/* ========================================= */
/* RESPONZIVITA PRO MOBILY A TABLETY         */
/* ========================================= */
@media (max-width: 900px) {
  nav {
    position: absolute;
    top: 70px;
    right: 0;
    background: #0b0f1a;
    flex-direction: column;
    width: 220px;
    padding: 20px;
    display: none;
  }

  nav.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .btn_zpet {
    margin-top: 25%;
    margin-left: 4%;
  }

  .ms_postava {
    display: flex;
    flex-direction: column;
    width: 85%;
    padding: 0;
  }

  /* TEXTY A NADPIS NA MOBILU PRVNÍ */
  .ms_texty {
    margin: 0 auto;
    width: 90%;
    order: 1; /* Půjde první */
    margin-top: 5%;
  }

  .ms_nadpis {
    font-size: 200%;
  }

  .ms_text {
    font-size: 120%; /* Trochu zmenšený text, ať to na mobilu není obří */
    padding: 4%;
  }

  /* FUNFACTY POD SEBE */
  .ms_funfacty {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10%;
  }

  .funfact1,
  .funfact2 {
    width: 100%;
    padding: 5%;
    flex-direction: column; /* Aby text v funfact2 skočil případně pod obrázek, pokud se nevejde */
    text-align: center;
  }

  .ff_foto {
    flex-wrap: wrap; /* Zalomí obrázky, když není místo */
    gap: 10px;
  }

  .ff_foto img {
    max-width: 25vw; /* Přizpůsobí se displeji */
    height: auto;
  }

  .ff_text {
    margin-left: 0;
    margin-top: 10px;
  }

  /* FOTKA AŽ ÚPLNĚ DOLE */
  .ms_fotka {
    order: 2; /* Půjde pod texty a funfacty */
    margin: 10% auto 5% auto;
    width: 90%;
  }

  .ms_fotka img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 15px;
  }
}

/* ========================================= */
/* ANIMACE NAČÍTÁNÍ                          */
/* ========================================= */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
