 /* šis stils ttiecas uz visu, galvene, kājene, fons */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Avenir, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f0f0f0;
  color: #000;
}

/* Galvene */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #E6EDB7;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #000;
  font-size: 20px;
  font-weight: bold;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav ul li {
  position: relative;
}

nav ul li a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #000;
}

nav ul li:hover > a {
  background: #8db382;
}

nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #8db382;
  min-width: 150px;
  z-index: 100;
}

nav ul li:hover ul {
  display: block;
}

nav ul li ul li a {
  padding: 10px;
}

nav ul li ul li a:hover {
  background: #7aa46a;
}

/* Kājene */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #E6EDB7;
  padding: 0 25px;
  flex-shrink: 0;
}

.footer-left {
  text-align: left;
  font-size: 18px;
  line-height: 1;
}

.footer-center a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  font-size: 16px;
}

.footer-center a:hover {
  color: #333;
}

.footer-right img {
  height: 30px;
  margin-left: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.footer-right img:hover {
  transform: scale(1.1);
}

/* vidusdaļa */
main {
  flex: 1;
  padding: 20px;
}


/* Melnā režīma krāsas */
body.dark-mode {
  background-color: #000;
  color: #fff;
}

body.dark-mode a {
  color: #FFD700;
}

body.dark-mode header,
body.dark-mode footer {
  background-color: #222;
  color: #fff;
}

body.dark-mode .quick-links,
body.dark-mode .news,
body.dark-mode .events {
  background-color: #111;
  color: #fff;
}

/* Piekļūstamības pogas */
ul li button[data-font],
ul li button[data-color] {
  cursor: pointer;
  padding: 5px 10px;
  font-size: 1rem;
  margin: 2px 0;
  border: 1px solid #888;
  border-radius: 4px;
  background: #eee;
}

ul li button[data-font]:hover,
ul li button[data-color]:hover {
  background: #ddd;
}

/* Sīkdatņu paziņojums */
#cookie-alert {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #75956c;
  color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  z-index: 2000;
}

#cookie-alert button {
  background: #384734;
  color: #ffffff;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

#cookie-alert button:hover {
  background: #53674e;
}

