* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
body{
    background-image: url(hatter2.jpg);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    width: 100vw;
}
#header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 20vh;
  width: 100%;
  padding: 20px;
}

#nav {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  height: auto;
  min-height: 60px;
  width: 100%;
  background-color: white;
  padding: 10px 20px;
  flex-wrap: wrap;
  gap: 10px;
}

#body {
  display: flex; 
  min-height: 60vh;
  width: 50vw;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: row;
  background: linear-gradient(90deg,rgba(177, 177, 177, 1) 0%, rgba(255, 255, 255, 1) 50%, rgba(177, 177, 177, 1) 100%);
}
#footer{
    display: flex;
    height: 13vh;
    width: 100%;
    background: linear-gradient(180deg,rgba(177, 177, 177, 1) 0%, rgba(255, 255, 255, 1) 50%);
    padding: 5px;
    justify-content: center;
}
#kandofooter{
    height: 10vh;
    width: 10vw;
}
#szovegresz{
  min-height: 52vh;
  width: 40vw;
  padding: 20px;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.fulek{
    font-size: 24px;
    font-weight: bold;
}
.cím{
    font-size: 48px;
}
.alcim{
  font-size: 36px;
  font-style: italic;
}
.szöveg{
    font-size: 28px;
}
*{
  font-family:  'Times New Roman', Times, serif;
}

/* NAVIGATION STYLES */
.navbar {
  padding: 5px 10px;
}

.menu {
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.menu-item {
  position: relative;
  display: inline-block;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  border-radius: 5px;
  border: 2px solid black;
  text-decoration: none;
  color: black;
  font-weight: 600;
  background: rgb(250, 250, 250);
  box-shadow: 0 6px 20px black;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  font-size: 16px;
}

.menu-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* DROPDOWN MENU */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 9vw;
  background: #574d4c;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  
  /* Reszponzív magasság */
  max-height: 60vh;
  overflow-y: auto;
  
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  
  z-index: 1000;
}

.dropdown-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
  font-size: 15px;
}

.dropdown-menu a:hover {
  background: #f0f4ff;
  color: black;
}

/* NYÍL ANIMÁCIÓ */
.arrow {
  transition: transform 0.25s ease;
}

/* HOVER AKTIVÁLÁS */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown:hover .arrow {
  transform: rotate(180deg);
}

/* TOUCH DEVICE SUPPORT */
@media (hover: none) and (pointer: coarse) {
  .dropdown:active .dropdown-menu,
  .dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* TABLET (768px alatt) */
@media (max-width: 768px) {
  #header {
    height: 15vh;
    padding: 15px;
  }
  
  #nav {
    padding: 10px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .navbar {
    width: auto;
    padding: 5px;
  }
  
  .menu {
    justify-content: center;
    gap: 8px;
  }
  
  .menu-link {
    padding: 10px 15px;
    font-size: 14px;
  }
  
  .dropdown-menu {
    width: 220px;
    max-height: 50vh;
    top: calc(100% + 8px);
  }
  
  .dropdown-menu a {
    padding: 10px 12px;
    font-size: 14px;
  }
}

/* MOBIL (480px alatt) */
@media (max-width: 480px) {
  #header {
    height: 12vh;
    padding: 10px;
  }
  
  #nav {
    padding: 8px;
    flex-direction: column;
    gap: 10px;
  }
  
  .menu {
    width: 100%;
    justify-content: center;
    gap: 6px;
  }
  
  .menu-link {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    padding: 12px 20px;
    font-size: 15px;
    margin: 0;
  }
  
  .dropdown-menu {
    width: 90vw;
    max-width: 300px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    max-height: 40vh;
    top: calc(100% + 12px);
    padding: 6px;
  }
  
  .dropdown:hover .dropdown-menu {
    transform: translateX(-50%) translateY(0);
  }
  
  .dropdown-menu a {
    padding: 10px 12px;
    font-size: 14px;
  }
}