:root {
  --clr-primary: rgb(15 75 4);
  --clr-secondary: rgb(9 46 0);
  --clr-accent: rgb(15 75 4);
  --clr-gray-light: #e9ecef;
  --clr-gray-dark: #343a40;
  --transition: 0.3s ease;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 5.5rem;
  font-family: 'Poppins', sans-serif;
  color: #ffffff;
  background: url('../background/background.jpg') no-repeat center center fixed;
  background-size: cover;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('../background/background.jpg') no-repeat center center fixed;
  background-size: cover;
  filter: blur(5px);
  transform: scale(1.05);
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.1);
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

nav {
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  padding: 2rem 2rem;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

nav ul {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  color: #fff;
  font-weight: 500;
  transition: color var(--transition);
}

nav a:hover {
  color: var(--clr-accent);
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  position: absolute;
  left: 1rem;
  top: 1.5rem;
  z-index: 1100;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

footer {
  background: rgba(0, 0, 0, 0.7);
  color: rgb(229, 229, 229);
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}

.footer-space {
  height: 6rem;
}

.hero {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
  color: #ffffff;
  padding: 0.1rem 1rem 3rem 1rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  padding-left: 15rem;
  padding-right: 15rem;
}

.main-content {
  flex: 1;
  padding-bottom: 2rem;
}

.container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.section-heading {
  text-align: center;
  font-size: 1.75rem;
  margin: 2rem 0 1rem 0;
  color: white;
}

.btn, .toggle-btn {
  background: #ffffff;
  color: #000000;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
}

.btn:hover, .toggle-btn:hover {
  background: #919191;
  transform: scale(1.05);
}

.logo-container {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1100;
}

.logo-img {
  height: 180px;
  width: auto;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.6));
}

/* Responzívne úpravy pre obrazovky do 800px */
@media (max-width: 800px) {
  nav {
    padding: 0.75rem 1rem;
    height: 4.5rem;
  }

  .logo-container {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .logo-img {
    height: 120px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    position: fixed;
    top: 4.5rem;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.8);
    padding: 2rem;
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
    padding: 0 1rem;
  }
}

/* Skrytie loga pri stredných rozlíšeniach */
@media (min-width: 801px) and (max-width: 1229px) {
  .logo-container {
    display: none;
  }
}

/* Popup informácie o cookies - rovnaké nastavenie na všetkých obrazovkách */
#infoPopup {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  width: 90%;
  margin: 0 auto;
  background: #222;
  color: #eee;
  border: 1px solid #444;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  padding: 1rem;
  z-index: 9999;
  font-size: 0.95rem;
  border-radius: 6px;
  display: none;
}

#infoPopup p {
  margin: 0 0 0.75rem;
  line-height: 1.4;
  text-align: center;
}

#infoPopup .highlight {
  color: var(--clr-accent);
  font-weight: 600;
}

#infoPopup .popup-actions {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#infoPopup .popup-actions button {
  width: 100%;
  background: var(--clr-accent);
  color: #000;
  border: none;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition);
}

#infoPopup .popup-actions button:hover {
  background: var(--clr-primary);
}

#infoPopup .popup-actions a {
  color: var(--clr-accent);
  text-decoration: underline;
  font-weight: 500;
}
