body {
  margin: 0;
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  padding-left: 0px;
  background-color: #e0b58a ;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border: #000000 solid 1px;
  background-image: radial-gradient(circle at bottom, rgba(239, 239, 225, 0.877) 20%, transparent 80%);
}

h1, h2, h3, h4 {
  font-family: 'Comic sans', serif;
  text-align: center;
  margin: 0px 0px 10px 0px;
  padding: 0px 20px;
}

h1 {
  color: rgb(236, 99, 7);
  text-shadow: 2px 2px 2px #090b86;
  font-style: italic;
  font-size: 2.2em;
  font-weight: bolder;
}

h2 {
  color: rgb(236, 99, 7);
  text-shadow: 1px 1px 1px #090b86;
  font-style: italic;
  font-size: 1.8em;
  font-weight: bold;
  text-underline-position: below;
}

h3 {
  color: rgb(236, 99, 7);
  text-shadow: 1px 1px 1px #090b86;
  font-style: italic;
  font-size: 1.3em;
  font-weight: bold;
  text-underline-position: below;
}

h4 {
  color: rgb(61, 65, 176);
  font-size: 1.8em;
  font-family: 'Dancing Script', 'Bellefair', cursive;
  display: inline-block;
  position: relative;
  transition: all 0.3s ease;
}

h4:hover {
  transform: scale(1.03);
  color: #a46006;
  cursor: pointer;
}

h4:hover {
  transform: scale(1.03);
  color: #a46006;
  font-weight: light;
  cursor: pointer;
}

h4:hover::after {
  width: 100%;
}

p {
    color: #1e261e;
    font-style: italic;
    font-size: 1.2em;
    font-weight: lighter;
    text-indent: 1em;      /* Nastavuje odsazení prvního řádku odstavce */
    text-align: justify;
    font-family: 'Comic Sans MS', sans-serif;
    padding: 0px;
    margin: 20px 15% 10px 15%;
    line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

b {
  font-weight: 700 !important;
  color: rgb(15, 8, 152);
  text-shadow: 1px 1.3px 1px #dc780c;
}

/* Obrázek na pozadí při rolování myší */
.background-blur {
  position: fixed;
  top: 100px; /* obrázek začne až pod hlavičkou */
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url('img/titulní/IMG-20250821-WA0001.jpg');
  background-size: cover;
  background-position: top center;
  background-attachment: fixed;
  filter: blur(1px);
  z-index: -1;
}

.logo {
  font-size: 55px;
  font-weight: bold;
  font-family: 'Dancing Script', Polaroid Script, monospace;
  font-style: italic;
  color: rgb(236, 99, 7);
  text-shadow: 2px 2px 2px #090b86;
}

nav a {
  color: #333;
  text-decoration: none;
  padding: 0.5rem 1rem;
}

nav a:hover {
  background-color: #fef7f7;
  border-radius: 4px;
}

main {
  padding: 7rem 1rem 2rem 1rem;
  max-width: 960px;
  margin: 0 auto;
}

article, section {
  margin: 1rem auto;
  background: #e6e2dec6;
  padding: 1rem;
  border-radius: 25px;
  border: 1px solid #230883;
  text-align: center;
  font-family: 'Dancing Script', 'Bellefair', cursive;
  font-size: 1em;
}

.dva-oddily {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  background: #d7b798e9;
  padding: 1rem;
  border-radius: 25px;
  border: 1px solid #230883;
}

.oddil {
  flex: 1 1 45%;
  background-color: #e6e2dea4;
  padding: 0.5rem;
  border: 1px solid #230fbf;
  border-radius: 10px;
}

.curved-underline {
  position: relative;
  display: inline-block;
}

.curved-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-image: radial-gradient(circle at bottom, rgb(30, 11, 203) 5%, transparent 80%);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 35px;
  height: 28px;
  cursor: pointer;
}

.hamburger span {
  height: 4px;
  background: #041c91;
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

#menu_box {
  background-color: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 150px;
  position: relative;
}

#menu_inner {
  display: flex;
  gap: 25px;
  margin-right: 180px;
}

#menu_inner a {
  color: rgb(237, 102, 34);
  font-weight: bold;
  font-size: 1em;
  transition: color 0.4s;
  text-shadow: 1px 1px 1px #709ee6;
}

#menu_inner a:hover {
  color: #1d087a;
  transform: scale(1.1);
  background-color: #e4d9cfc5;
  border: #000000 solid 1px;
  border-radius: 5px;
}



/* ====== RESPONSIVE (MOBILNÍ) ====== */
@media (max-width: 768px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
    margin-left: 1.5rem;
    z-index: 1001;
  }

  #menu_inner {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff8f3;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0rem 0;
  }

  #menu_inner.active {
    display: flex;
  }

   nav a {
    font-size: 1.1em;
    text-align: center;
    padding: 1rem;
    border-bottom: 1px solid #3347bc;
    background-color: #f7eee8;
  }

  main {
    padding-top: 6rem;
  }

  .footer-content {
    text-align: center;
    justify-content: center;
  }

  .footer-text {
    margin-bottom: 1rem;
    text-align: center;
  }

  .footer-gif img {
    height: 60px;
    justify-content: center;
    text-align: center;
  }

  article {
    padding: 1rem;
  }

  p {
    font-family: 'Comic Sans MS', sans-serif; ;
    font-weight: bolder;
    font-size: 1em;
    font-style: italic; ;
  }
  

  .logo {
    font-size: 2.2em;
    margin: 0;
    text-align: left;
    width: auto;
  }
}

/* Footer styling - Patička + GIF*/
footer {
  background-color: #e0b58ac6;
  color: #1e261e;
  text-align: center;
  padding: 5px;
  border: #000000 solid 1px;
  bottom: 0;
  width: 100%;
  font-size: 0.8em;
  font-weight: bold;
  font-family: 'Comic Sans MS', sans-serif;
}
.footer-gif img {
  max-width: 80px;
  height: auto;
  border-radius: 50px;
  position: center;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  font-size: 1em;
  justify-content: center;

}

/* Footer styling - Patička autor */
.author-note {
  color: #170692a8;
  font-size: 1em;
  text-align: right;
  align-items: right;
  transition: color 0.3s ease;
}

.author-note:hover {
  color: #757fe7;
}

/* Mapa styling */

.mapa {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
}

.mapa iframe {
  width: 100%;
  height: 400px;
  border: 1px solid #2d09b0;
  border-radius: 10px;
  box-shadow: 8px 8px 8px rgba(51, 13, 223, 0.466);
}

/* Galerie obrázků */
.gallery {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-item {
  width: 150px;
  max-width: 100%;
  cursor: pointer;
  border: 1.5px solid #2c06b3;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

/* Lightbox styl */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox.show {
  display: flex;
}

.lightbox-img {
  max-width: 100vw;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.close {
  position: fixed;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.close:hover {
  color: #ccc;
}

.nav {
  margin-top: 15px;
  display: flex;
  gap: 40px;
  justify-content: center;
}

.nav button {
  font-size: 40px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.nav button:hover {
  color: #ddd;
}








