#hlavicka {
  background-color: #0055FF;
  height: 90px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

#menu {
  background-color: #AA5500;
  height: 60px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;

  position: fixed;
  top: 90px; 
  left: 0;
  width: 100%;
  z-index: 999;
}


#stranka {
  margin-top: 150px; 
  padding-bottom: 60px; 
}
#menu table {
  width: auto;
  border-collapse: separate; 
  border-spacing: 20px 0; 
  margin: 0 auto; 
}

#menu td {
  padding: 5px 15px;
}

#menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  display: inline-block;
}

#menu a:hover, #menu a:focus {
  background-color: rgba(255, 255, 255, 0.2);
  color: #FFD700; 
  outline: none;
}

 #text {
      background-color: #ffffff;
      padding: 2rem;
      max-width: 800px;
      margin: 2rem auto;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    #text h2 {
      color: #2c3e50;
      border-bottom: 2px solid #3498db;
      padding-bottom: 0.5rem;
      margin-bottom: 1rem;
    }

    #text p {
      line-height: 1.6;
      font-size: 1.1rem;
      text-align: justify;
    }
  #gallery {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
        margin-top: 20px;
      }
      #gallery img {
        max-width: 200px;
        height: auto;
        border: 2px solid #ccc;
        border-radius: 8px;
        cursor: pointer;
        transition: transform 0.3s ease;
      }
      #gallery img:hover {
        transform: scale(1.05);
        border-color: #0077cc;
      }
    #modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  cursor: pointer;
}

#modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px #000;
}

#modal-close {
  position: fixed;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  z-index: 2100;
}
#paticka {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #0055FF;
  color: white;
  text-align: center;
  padding: 15px 0;
  font-size: 14px;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}

#menu td.dropdown {
  position: relative;
}

#menu td.dropdown .dropbtn {
  cursor: pointer;
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 5px;
  display: inline-block;
}

#menu td.dropdown .dropdown-content {
  display: none;
  position: absolute;
  background-color: #AA5500;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  border-radius: 5px;
  top: 100%;
  left: 0;
  z-index: 10000;
}

#menu td.dropdown .dropdown-content a {
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  font-weight: normal;
}

#menu td.dropdown .dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #FFD700;
}

#menu td.dropdown:hover .dropdown-content {
  display: block;
}

#menu td.dropdown:hover .dropbtn {
  background-color: rgba(255, 255, 255, 0.2);
  color: #FFD700;
}
#map {
  height: 600px;
  width: 100%;
  border: 2px solid #444;
  border-radius: 8px;
  margin-top: 20px;
}

#question {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #0055FF;
  font-weight: bold;
}

 body::before {
        content: "";
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background-image: url('karlstejn.jpg');
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        opacity: 0.3;
        z-index: -1;
      }
