/* Alapbeállítások a teljes oldalra */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1, h2, h3 {
  font-weight: 600;
}

html, body {
  height: 100%;
  font-family: 'Roboto', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0f172a; /* Sötétkék háttér */
  color: white;
  display: flex;
  flex-direction: column;
}

header {
  background-color: #1e293b;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative; /* hogy a hamburger abszolút pozícióját ehhez viszonyítsuk */
}

.logo {
  height: 80px;
  display: block;
  margin: 0 auto 10px auto;
  pointer-events: none; /* Így a logo nem fogja blokkolni a hamburger menüt */
}

header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #f8fafc;
}

nav {
  margin-top: 0.5rem;
}

nav a {
  color: #93c5fd;
  text-decoration: none;
  margin: 0 8px;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #38bdf8;
}

main {
  flex: 1;
  padding: 2rem;
}

h2 {
  margin-bottom: 1rem;
  color: #e2e8f0;
}

p, li {
  line-height: 1.6;
  margin-bottom: 1rem;
}

ul {
  list-style: none;
  padding-left: 0;
}

ul li a {
  color: #60a5fa;
  text-decoration: none;
}

ul li a:hover {
  text-decoration: underline;
}

/* Galéria */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 1rem;
}

.gallery img {
  width: 250px;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Footer (sticky footer megoldás) */
footer {
  background-color: #1e293b;
  color: #cbd5e1;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* Hamburger ikon alapstílusai */
.hamburger {
  display: none; /* alapból rejtve */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: absolute; /* absolute, hogy a jobb felső sarokban legyen */
  top: 20px;
  right: 20px;
  z-index: 1001; /* hogy felül legyen */
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: #93c5fd;
  border-radius: 2px;
  transition: all 0.3s linear;
}

/* Hamburger animáció nyitáskor (opcionális) */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobilnézet: hamburger mutatása, menü elrejtése és slide-in jobbról */
@media (max-width: 600px) {
  nav {
    display: flex;
    flex-direction: column;
    width: 250px; /* fix szélesség */
    background-color: #1e293b;
    position: fixed; /* fix pozíció, hogy felül legyen minden más felett */
    top: 0;
    right: -250px; /* alapból kint jobbra, láthatatlan */
    height: 100vh;
    padding-top: 80px; /* header magasság alatti hely */
    box-shadow: -4px 0 8px rgba(0,0,0,0.3);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
  }
  
  nav.active {
    right: 0; /* slide-in jobbról */
  }
  
  nav a {
    margin: 1rem 0;
    padding: 0.5rem 1.5rem;
    display: block;
    text-align: left;
  }

  .hamburger {
    display: flex;
  }
}

/* Separator eltüntetése mobilon */
.separator {
  display: inline;
}

@media (max-width: 600px) {
  .separator {
    display: none;
  }
}
