body {
    background-image: url("media/fooldal/IMG_8734.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    color: #1d1d1d;
}

header {
    background-color: rgba(36, 23, 34, 0.7);
    color: white;
    padding: 0.8rem 1.5rem 1.2rem;
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

body.dark-mode{
    background-image: url("media/fooldal/dark-mode-bg.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    color: white;
}

body.dark-mode .main{
    background-color: rgb(0,0,0,0.7);
}

body.dark-mode h2, body.dark-mode h3, body.dark-mode summary{
    color: white;
}

body.dark-mode .social-link a{
    color: rgb(122, 0, 243);
}

body.dark-mode .social-link{
    color: white;
}

body.dark-mode .social-link a:visited{
    color: rgb(67,56,98);
}

body.dark-mode h2::after,  body.dark-mode summary::after{
    content: "";
    display: block;
    width: 30%;
    height: 0.063rem;
    background-color: white;
    margin-top: 0.5rem;
}

#dark-mode-toggle {
    color:white;
    font-size: 1.5rem;
    font-weight: bold;
    border: none;
    border-radius: 0.25rem;
    background-color: rgba(0, 0, 0, 0);
    cursor: pointer;
    transition: background-color 0.3s;
}

#dark-mode-toggle:hover,
#dark-mode-toggle:focus-visible {
    background-color: rgba(255, 255, 255, 0.15);
    outline: none;
    transform: scale(1.05);
}

.dark-mode #dark-mode-toggle {
    color: #eee;
}

h1 {
    font-size: 2.2rem;
    margin: 0.5rem 0 1rem;
    font-weight: 700;
    text-align: center;
}

.main-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.header-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
}

.centered-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.hamburger-btn {
    position: absolute;
    right: 1.5rem;
}


.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1000;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: block;
    }
        
    .main-nav {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        width: 100%;
    }
        
    .main-nav.active {
        max-height: 500px;
    }
        
    .nav-group {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
    }
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


.nav-group {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    padding: 0.75rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    backdrop-filter: blur(6px);
    transition: background-color 0.3s ease;
    font-size: 1.5em;
}


.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    background-color: rgba(255, 255, 255, 0.15);
    outline: none;
    transform: scale(1.05);
}

.firsth2{
    margin-top: 0;
}

h2 {
    padding: 1.5rem 0 1rem 1.5rem;
    font-size: 2em;
    color: black
}

h2::after {
    content: "";
    display: block;
    width: 30%;
    height: 0.063rem;
    background-color: black;
    margin-top: 0.5rem;
}

h3{
    color: black;
    padding-left: 2.5rem;
}

.main{
    background-color: white;
    max-width: 80%;
    margin: auto auto;
}

ul{
    padding-left: 4rem;
    padding-bottom: 3rem;
}

.block {
  display: flex;
  gap: 1em;
  flex-wrap: nowrap;
  max-width: 100%;
  align-items: stretch;
}

.block .text {
  flex: 1;
  min-width: 0;
}

.image {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  gap: 1rem;
  max-width: 50%;
  height: auto;
  padding: 1rem 0;
}

.image img {
  width: 80%;
  height: auto;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 2;
}

.lightbox .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
}


.lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-meta {
  color: white;
  margin-top: 10px;
  font-size: 1rem;
  text-align: center;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  user-select: none;
  font-family: Arial, sans-serif;
  z-index: 1001;
  transition: color 0.2s ease;
}

.nagyithatoimg{
    border-radius: 1em;
    transition: transform 0.3s ease;
    height: auto;
    width: auto;
    max-height: 30em;
    object-fit: cover;
}

.nagyithatoimg:hover{
    transform: scale(1.1);
    z-index: 1;
}

section.block {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
section.block .text,
section.block .image {
    width: 50%;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    section.block {
        flex-direction: column;
        gap: 0;
    }

    section.block .text,
    section.block .image {
        width: 100%;
        max-width: 100%;
    }
    

    section.block .image {
        margin-top: 20px;
    }

    h2{
        font-size: 1.5rem;
        padding: 1rem 0 1rem 1rem;
    }

    h1{
        font-size: 2.4rem;
    }

    h3{
        padding-left: 1rem;
    }

    li{
        font-size: 0.8rem;
    }
    ul{
                padding-left: 2rem;
                padding-right: 1.5rem;
                padding-bottom: 0rem;
    }
}