body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #333;
}

header {
  background-color: #05ad05;
  color: white;
  padding: 10px 5%;
  display: flex;
  align-items: center;
  min-height: 100px;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 110px;
}

.contact-info-navbar {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 50px;
}

.contact-details {
  display: flex;
  flex-direction: column;
}

.contact-info-navbar img {
  height: 70px;
  margin-right: 10px;
}

.contact-info-navbar a {
  color: #000000;
  text-decoration: none;
  margin: 3px 0;
  display: block;
}

.language-switch {
  display: flex;
  align-items: center;
}

.language-option {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 10px; /* Pridáme medzeru medzi obrázkami */
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.language-option img {
  height: 30px;
  width: auto;
}

.language-option:last-child {
  margin-right: 0; /* Zabezpečíme, že posledný obrázok nemá pravú medzeru */
}

.language-option:hover {
  opacity: 0.8;
}

.intro {
  font-size: 25px;
  text-align: center;
  margin: 20px 0;
  padding: 10px 20%;
  color: #006400;
}

.intro h1 {
  font-size: 50px;
}

.container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 50%;
  margin: 0 auto;
  padding: 20px 0;
  justify-content: center;
}

.container img {
  width: 70%;
}

.section {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  color: inherit;
  text-decoration: none;
}

.section:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.section img {
  width: 70%;
  height: auto;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.section:hover img {
  transform: scale(0.85);
}

footer {
  background-color: #05ad05;
  color: white;
  text-align: center;
  padding: 20px 10%;
}

footer a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  margin: 0 10px;
}

footer a img {
  vertical-align: middle;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media screen and (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
  }

  header .logo {
    height: 80px;
    margin-right: auto;
  }

  .contact-info-navbar a {
    color: #000000;
    font-size: 15px;
  }
  .contact-info-navbar img {
    height: 60px;
    margin-right: 10px;
  }
  header {
    position: sticky; /* Prilepí header na vrchu pri skrolovaní */
    top: 0; /* Prilepí header na vrchu stránky */
    z-index: 1000; /* Nastaví z-index pre zabezpečenie, že bude nad ostatnými elementmi */
    padding: 5px 5%; /* Zmenšíme padding */
    min-height: 60px; /* Znížime minimálnu výšku */
  }
}

@media screen and (max-width: 600px) {
  .container {
    width: 90%;
  }

  header .logo {
    height: 60px;
    margin-right: auto;
  }

  .intro {
    font-size: 17px;
    text-align: center;
    margin: 20px 0;
    padding: 10px 10%;
    color: #006400;
  }

  .intro h1 {
    font-size: 30px;
  }

  .container {
    width: 70%;
    margin: 0 auto;
    padding: 20px 0;
    justify-content: center;
  }

  .contact-info-navbar a {
    color: #000000;
    font-size: 10px;
  }
  .language-option img {
    height: 25px;
    width: auto;
  }
  header {
    padding: 5px 5%; /* Zmenšíme padding */
    min-height: 60px; /* Znížime minimálnu výšku */
  }

  .contact-info-navbar img {
    height: 40px; /* Znížime výšku obrázka kontaktov */
  }
  .contact-info-navbar {
    margin-right: 15px;
  }
}

.contact-info-footer {
  text-align: center;
  margin-left: 0%;
  color: #000000;
}

.social-links {
  text-align: center;
}

@media screen and (min-width: 900px) {
  .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 50%;
    margin: 0 auto;
    padding: 20px 0;
  }

  .container .section:last-child:nth-child(odd) {
    grid-column: span 2;
    justify-self: center;
    width: 50%;
  }
}
