/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  @font-face {
    font-family: "Steinerlight";
    src: url("../Font/Steinerlight.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
  }
  
  @font-face {
    font-family: "Bahnschrift Light";
    src: url("../Font/BAHNSCHRIFT.ttf") format("truetype");
    font-weight: lighter;
    font-style: normal;
  }
  
  @font-face {
    font-family: "Bahnschrift";
    src: url("../Font/BAHNSCHRIFT.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
  }
  
  body {
    font-family: "Bahnschrift Light";
    background-color: #ffffff;
    color: #000000;
    --dynamic-bg: url('../Mintak/háttér.jpg');
  }
  
  /* Background blur overlay */
  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--dynamic-bg);
    background-size: 100%;
    background-position: center;
    filter: blur(10px);
    z-index: -1;
  }
  
/* Header (fixed at top, includes blur effect) */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: transparent;
  z-index: 1000;
  backdrop-filter: blur(10px); /* Adds blur to the content underneath */
  -webkit-backdrop-filter: blur(10px); /* For Safari support */
}

/* Header container grid structure */
.header-container {
  display: grid;
  grid-template-columns: auto 1fr auto auto; /* Four columns: logo, nav menu, language switcher, social links */
  align-items: center;
  height: 80px;
  padding: 0 20px;
  background-color: transparent;
  position: relative;
}

/* Position the .logo off-grid */
.logo {
  position: absolute;
  top: 0; 
  left: 20px;
}

.logo img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-top: 0px;
  z-index: 1000;
  transition: all 0.3s ease; /* Smooth transition */
}

/* Smaller logo size on scroll */
.logo.shrink img {
  width: 80px;
  height: 80px;
  top: 0; /* Aligns with the header height */
}

/* Navigation Menu */
.nav-menu {
  grid-column: 2; /* Second column for the nav menu */
  justify-self: center; /* Center it horizontally within its column */
  display: flex;
  list-style: none;
  margin-left: 50px; /* Push slightly to the right if needed */
}

.nav-menu ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav-menu ul li {
  margin: 0 20px;
}

.nav-menu ul li a {
  text-decoration: none;
  color: #000;
  font-family: "Steinerlight";
  font-size: 24px;
  font-weight: bold;
  transition: font-size 0.3s ease, color 0.3s ease;
  letter-spacing: 3px;
}

.nav-menu ul li a.active {
  font-size: 24px;
  text-decoration: underline;
  color: #000;
}

.nav-menu ul li a:hover {
  font-size: 30px;
}

/* Language Switcher */
.language-switcher {
  grid-column: 3; /* Third column for the language switcher */
  display: flex;
  gap: 10px;
  align-items: center;
  justify-self: flex-end;
  margin-right: 15px;
}

.language-switcher .lang-option {
  text-decoration: none;
  font-size: 18px;
  font-family: "Steinerlight";
  font-weight: bold;
  color: #000;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.language-switcher .lang-option:hover {
  background-color: #f5f5f5;
  color: #333;
}

.language-switcher .lang-option.active {
  background-color: #fff;
  color: #000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Social Links */
.social-links {
  grid-column: 4; /* Fourth column for social links */
  display: flex;
  gap: 15px;
  align-items: center;
  justify-self: flex-end;
}

.social-links .social-dot {
  font-size: 20px;
  color: #000000;
  text-decoration: none;
  transition: transform 0.3s;
}

.social-links .social-dot:hover {
  transform: scale(1.2);
}
  
  /* Main content */
  main {
    max-width: 800px;
    width: 100%;
    margin: 200px auto 100px; /* Center horizontally and add 200px top margin */
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0px; /* No rounded corners */
    text-align: justify;
    line-height: 1.6;
  }

/* Paragraphs in main content */
main p {
  margin-bottom: 1rem;
}

/* Strong headings */
main strong {
  display: block;
  margin: 1rem 0 0.5rem;
  font-size: 1.2rem;
}

/* Unordered list in main */
main ul {
  list-style: disc;
  margin: 1rem 0 1rem 2rem;
}

main li {
  margin-bottom: 0.5rem;
}

  /* Footer fixed at bottom */
  footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #ffffff;
    color: #000000;
    text-align: center;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  footer p {
    margin-bottom: 3px;
  }
  footer a {
    text-decoration: none;
    color: #000000;
    transition: color 0.3s;
  }
  footer a:hover {
    color: #888888;
  }
  
  /* Responsive Design */
@media (max-width: 1024px) {
  body {
    overflow-y: auto; /* Ensure scrolling is allowed */
    --dynamic-bg: url('../Mintak/háttér.jpg'); /* Use the original background */
  }

  .logo {
    left: 0px;
  }

  .logo img {
    width: 120px;
    height: 120px;
  }

  main {
    max-width: 90%; /* Reduce maximum width */
    margin: 100px auto 100px; /* Adjust margins for smaller screens */
    padding: 15px; /* Reduce padding */
    font-size: 0.9rem; /* Slightly smaller font size */
    line-height: 1.5; /* Adjust line height for readability */
  }

  main p {
    margin-bottom: 0.8rem; /* Reduce spacing between paragraphs */
  }

  main strong {
    font-size: 1rem; /* Adjust heading size */
  }

  main ul {
    margin: 1rem 0 1rem 1.5rem; /* Adjust list indentation */
  }

  main li {
    margin-bottom: 0.4rem; /* Reduce spacing between list items */
  }

  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--dynamic-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(15px);
    z-index: -1; /* Ensure background stays behind content */
  }

  header {
    height: 80px; /* Maintain header height */
    backdrop-filter: blur(10px); /* Add blur effect to content underneath */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    z-index: 1001; /* Ensure header is in front */
  }

  .header-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 15px 10px; /* Reduce padding for smaller screens */
    height: 80px;
  }

  .logo img {
    width: 120px;
    height: 120px;
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: absolute;
    left: 140px; /* Adjust based on logo width */
    top: 50px; /* Center vertically */
    z-index: 1002; /* Ensure menu is above content */
  }

  .hamburger-menu span {
    width: 30px;
    height: 3px;
    background-color: #000;
    border-radius: 2px;
  }

  .nav-menu {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: fixed;
    top: 80px; /* Below the header */
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent */
    z-index: 1000;
    padding: 20px 0;
    align-items: center;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu ul {
    flex-direction: column;
    width: 100%;
    text-align: center;
    gap: 15px;
  }

  .nav-menu ul li {
    margin: 10px 0;
  }

  .nav-menu ul li a {
    font-size: 20px;
  }

  footer {
    z-index: 1001; /* Ensure footer stays on top */
  }
  .footer-container{
    font-size: 10px;
  }
}

@media (max-width: 768px) {
  body {
    overflow-y: auto; /* Ensure scrolling is allowed */
    --dynamic-bg: url('../Mintak/háttér.jpg'); /* Use the original background */
  }

  .logo {
    left: 0px;
  }

  .logo img {
    width: 80px;
    height: 80px;
  }

  main {
    max-width: 95%; /* Make it slightly narrower */
    margin: 75px auto 100px; /* Reduce top and bottom margins */
    padding: 10px; /* Further reduce padding */
    font-size: 0.8rem; /* Smaller font size for very small screens */
    line-height: 1.4; /* Adjust line height */
  }

  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--dynamic-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(15px);
    z-index: -1; /* Ensure background stays behind content */
  }

  header {
    height: 70px; /* Adjust header height */
    backdrop-filter: blur(10px); /* Add blur effect to content underneath */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    z-index: 1001; /* Ensure header is in front */
  }

  .header-container {
    padding: 15px 10px; /* Adjust padding */
    height: 70px;
  }

  .hamburger-menu {
    left: 100px; /* Adjust based on logo size */
    top: 30px; /* Center vertically */
  }

  .hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: #000;
    border-radius: 2px;
  }

  .nav-menu ul li a {
    font-size: 18px; /* Smaller font size for small screens */
  }

  footer {
    z-index: 1001; /* Ensure footer stays on top */
  }
  .footer-container{
    font-size: 10px;
  }
}

  