body {
  margin: 0;
  font-family: 'Merriweather', serif;
  background-color: #f8f5f0;
  color: #333;
  line-height: 1.6;
}

a:link {
  text-decoration: none;
}

section {
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
}

.intro {  
  margin-bottom: 40px;
}

.intro h2 {
  margin-bottom: 100px;
  text-align: center;
}

.introintro {
  text-align: left;
  font-size: 1.1em;
}

.txtlijevimali {
  font-size: 0.7em;
  text-align: left;
}

header {
  background: #4a6734 url('66.jpg') center/cover no-repeat;
  min-height: 40vh;
  padding: 30px 20px;
  color: #ddd;
  font-family: 'Merriweather', serif;
  text-align: center;
  position: relative;
}

header h1 {
  font-size: 3em;
  margin: 0;
  background-color: rgba(140, 105, 0, 0.6);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

 nav {
      background: #4A6734;
      background: linear-gradient(180deg,rgba(74, 103, 52, 1) 0%, rgba(74, 103, 52, 1) 92%, rgba(248, 245, 240, 1) 100%);
      position: relative;
    }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: 15px 20px;
  cursor: pointer;
}

.menu-toggle div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px 0;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 1.1em;
}

nav li {
  position: relative;
}

nav a {
  display: block;
  color: white;
  padding: 15px 20px;
  transition: background 0.3s;
}

nav a:hover {
  background-color: #3a5128;
}

nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #4a6734;
  min-width: 180px;
  z-index: 1000;
  flex-direction: column;
}

nav ul li:hover > ul {
  display: flex;
}

nav ul ul a {
  padding: 5px 14px;
  font-size: 0.8em;
}

#nav-menu a.active {
  background-color: inherit;
  color: yellow;
  border-radius: 5px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  background-color: #bd7e4029;
  padding: 10px;text-align:center;
}

.gallery img {
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

figure {
  margin: 50px;
}

figcaption {
  font-size: 0.9em;
}

figure img {
  max-width: 100%;
}

.float-left,
.float-right {
  margin: 0 15px 15px 0;
  max-width: 40%;
  height: auto;
}

.float-left {
  float: left;
}

.float-right {
  float: right;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}

.kronotabla {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Merriweather', serif;
  font-size: 0.9em;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  min-width: 500px;
  margin: 0;
}

.kronotabla th,
.kronotabla td {
  padding: 6px 8px;
  text-align: left;
  border: 1px solid #ccc;
}

.kronotabla th {
  background-color: #d5cfcf;
  color: white;
  font-size: 17px;
}

.kronotabla tr:nth-child(even) {
  background-color: #f9f9f9;
}

.kronotabla tr:nth-child(odd) {
  background-color: #eae6db;
}

table a:link,
.pgn a:link {
  color: #4c79ff;
}

.pgn a:link {
  font-size: 0.8em;
}

.tooltip {
  cursor: context-menu;
  text-decoration: none;
  position: relative;
}

.tooltip span {
  margin-left: -999em;
  position: absolute;
}

.tooltip:hover span {
  margin-left: 180px;
  right: 4em;
  top: -1em;
  z-index: 99;
  position: absolute;
  width: auto;
  border-radius: 5px 5px 25px 25px;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
  background: #FFFFAA;
  color: black;
  padding: 0.8em 1em;
}

#icon {
  position: absolute;
  top: 10px;
  right: 20px;
  background-color: #d9a30080;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.9em;
  color: #fff;
  white-space: nowrap;
}
footer {
  background: linear-gradient(to right, #6e8b3d0a, #4a6734, #6e8b3d0a);
  color: #f5f5f5;
  padding: 10px 5px;
  text-align: center;
  font-size: 0.8em;
  font-family: 'Merriweather', serif;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  header {
    min-height: 30vh;
  }

  header h1 {
    font-size: 2em;
  }

  .intro h2 {
    margin-bottom: 50px;
  }

  .introintro {
    font-size: 1em;
  }
nav {background:none;background-color: #4A6734;position: relative;}
  nav a {
    padding: 5px 10px;
    transition: background 0.5s;
  }

  .menu-toggle {
    display: flex;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li:hover > ul {
    margin-left: 30px;
  }

  nav ul ul {
    display: none;
    position: relative;
    background-color: #5a7942;
    box-shadow: none;
    padding-left: 20px;
    margin-bottom: 10px;
  }

  nav ul ul a {
    padding: 5px 7px;
    font-size: 0.7em;
  }

  #icon {
    top: 25vh;
    right: 1px;
  }

  .kronotabla {
    font-size: 0.8em;
  }

  .kronotabla th {
    font-size: 16px;
  }

  nav ul li > a[href="#"] {
    cursor: pointer;
  }

  nav ul li.open > ul {
    display: flex !important;
    flex-direction: column;
  }
  .gallery {text-align:center}
}
