/* --- Alapok --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  color: #CFFFFF;
}

body {
  background-image: url("hatter01.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
}

/* --- Fejléc --- */
header {
  position: fixed;
  top: 0;
  left: 5%;
  width: 75%;
  height: 150px;
  z-index: 900;
  border-radius: 10px;
  background: rgba(0,0,0,0.25);
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  text-align: center;
}

header img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: contain;
  background: black;
  opacity: 0.9;
}

/* Tartalom eltolása */
main {
  width: 75%;
  margin-left: 5%;
  padding-top: 160px;
}

/* --- Navigáció (desktop) --- */
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 10px;
}

.menu {
  height: 40px;
  line-height: 40px;
  flex: 1 1 22%;
  background-image: linear-gradient(rgba(0, 60, 120, 0.6), rgba(0, 30, 60, 0.6));
  margin: 2px;
  text-align: center;
  border-radius: 5px;
  min-width: 120px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.menu a {
  text-decoration: none;
  font-size: 110%;
  color: #BCE6FF;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0,0,0,0.9);
}

/* --- Tartalom doboz --- */
.ablak {
  background: rgba(0, 0, 0, 0.15);
  padding: 30px;
  text-align: center;
  border-radius: 10px;
  margin-top: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

.ablak p, .ablak h3, .ablak h4 {
  color: #CFFFFF;
  text-shadow:
    0 0 8px rgba(0,0,0,1),
    0 0 12px rgba(0,0,0,0.9),
    0 0 18px rgba(0,180,255,0.4),
    2px 2px 4px rgba(0,0,0,1);
  margin-bottom: 10px;
}

/* --- Kezdőoldali kép (logo1.png) --- */
.ablak img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* --- H2 címsor --- */
h2 {
  color: #7fe3ca;
  font-size: 30px;
  font-weight: 900;
  margin: 25px 0;
  text-shadow:
      0 0 4px rgba(0,0,0,0.85),
      4px 4px 8px rgba(0,0,0,0.95),
      0 0 12px rgba(127,227,202,0.45),
      0 0 22px rgba(127,227,202,0.35),
      6px 6px 12px rgba(0,0,0,0.7);
}

/* H2 link örököl mindent */
h2 a {
  color: inherit;
  font: inherit;
  text-shadow: inherit;
  text-decoration: none;
}
h2 a:hover {
  text-shadow:
      0 0 6px rgba(0,255,255,0.8),
      0 0 12px rgba(127,227,202,0.6),
      4px 4px 8px rgba(0,0,0,0.9);
}

/* --- Galéria --- */
.galeria {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.galeria-item {
  width: 260px;
  height: 260px;
  margin: 10px;
  border-radius: 8px;
  text-align: center;
}

.galeria-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0,255,255,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeria-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0,255,255,0.6);
}

/* Képfelirat */
.kep-leiras {
  font-size: 18px;
  font-weight: 600;
  color: #CFFFFF;
  margin-top: 6px;
  text-shadow:
    0 0 8px rgba(0,0,0,1),
    0 0 12px rgba(0,0,0,0.9),
    2px 2px 4px rgba(0,0,0,1);
}

/* --- Térkép --- */
.terkep iframe {
  width: 100%;
  height: 450px;
  border-radius: 5px;
  border: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* --- GIF (desktop) --- */
.oldalso-gif {
  position: fixed;
  right: 15px;
  bottom: 20px;
  width: 290px;
  pointer-events: none;
  animation: lebeg 2.8s ease-in-out infinite;
  z-index: 500;
}

/* X gomb a GIF bal felső sarkában */
.gif-close-btn {
  position: fixed;
  right: 15px;
  bottom: calc(20px + 220px - 35px);
  background: rgba(0,0,0,0.65);
  color: #CFFFFF;
  font-size: 26px;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 650;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.9);
  user-select: none;
  display: none;
}

/* Ha bezárta */
body.gif-hide .oldalso-gif,
body.gif-hide .gif-close-btn {
  display: none !important;
}

/* --- Hamburger --- */
.hamburger {
  display: none;
  position: fixed;
  top: 15px;
  left: 15px;
  font-size: 40px;
  cursor: pointer;
  color: #CFFFFF;
  z-index: 3000;
  text-shadow: 0 0 10px black;
}

/* --- Mobil menü --- */
nav.mobile-nav {
  position: fixed;
  top: 70px;
  left: 15px;
  width: 200px;
  background: rgba(0,0,0,0.85);
  border-radius: 8px;
  padding: 10px 0;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
  display: none;
  z-index: 2500;
}

body.menu-nyitva nav.mobile-nav {
  display: block;
}

/* --- Mobil nézet --- */
@media (max-width: 768px) {

  nav:not(.mobile-nav) {
    display: none;
  }

  .hamburger {
    display: block;
  }

  nav.mobile-nav .menu {
    width: 100%;
    margin: 5px 0;
  }

  main {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 200px;
  }

  header {
    width: 95%;
    left: 50%;
    transform: translateX(-50%);
  }

  .galeria-item {
    width: 48%;
    height: 240px;
  }

  .galeria-item img {
    height: 180px;
  }

  /* Mobil GIF */
  .oldalso-gif {
    width: 130px;
    right: 10px;
    bottom: 20px;
  }

  .gif-close-btn {
    display: block;
    right: 10px;
    bottom: calc(20px + 130px - 30px);
  }

  /* Kezdőoldali kép mobilon */
  .ablak img {
    max-width: 90%;
  }

  /* Footer */
  footer {
    width: 100% !important;
    margin-left: 0 !important;
  }
}

/* --- FOOTER --- */
footer {
  background: black;
  padding: 10px 0;
  text-align: center;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
}

@media (min-width: 769px) {
  footer {
    width: 75%;
    margin-left: 5%;
  }
}

footer p {
  color: #CFFFFF;
  font-size: 18px;
  margin: 0;
}
