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;
}

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 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;
}

body.dark-mode caption{
    background: linear-gradient(0deg, rgb(27, 2, 51, 0.3),rgb(27, 2, 51, 0.1));
}

body.dark-mode th {
    color: white;
    text-decoration: none;
    text-align: center;
    background: linear-gradient(0deg, rgb(27, 2, 51, 0.6),rgb(27, 2, 51, 0.3));
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    padding: 2rem 0.5rem;
}

body.dark-mode td {
    background: linear-gradient(0deg, rgb(27, 2, 51, 0.8),rgb(27, 2, 51, 0.6));
    padding: 0vw;
    box-shadow: 0 4px 8px black;
}

#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;
}

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);
}

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;
}

.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);
}

caption{
    padding: 1.5rem 0 1rem 1.5rem;
    font-size: 1.5em;
    color: white;
    font-weight: bold;
    border-radius: 0.5em;
    background: linear-gradient(0deg, rgb(0,0,0,0.5),rgb(0,0,0,0.7));
}

summary {
    margin: 1.5rem 0 1rem 1.5rem;
    font-size: 2em;
    color: black;
    font-weight: bold;
}

summary::after {
    content: "";
    display: block;
    width: 30%;
    height: 0.063rem;
    background-color: black;
    margin-top: 0.5rem;
}

table {
    border-collapse: collapse;
    max-width: 90%;
    margin: auto;
}

figure{
    text-align: center;
}

td {
    background-color: #fff;
    padding: 0vw;
    border-radius: 1.5rem;
    box-shadow: 0 4px 8px black;
}

th {
    color: white;
    text-decoration: none;
    text-align: center;
    background: linear-gradient(0deg, rgb(0,0,0,0.4),rgb(0,0,0,0.5));
    border-radius: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    padding: 2rem 0.5rem;
}

th a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    border-radius: 0.25rem;
    font-size: 1.5vw;
    word-wrap: break-word;
    white-space: wrap;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

th:hover {
    transform: scale(1.1);
}

.firsth2{
    margin: 0;

}

.firsth2::after {
    content: "";
    display: block;
    width: 51.44%;
    height: 0.063rem;
    background-color: black;
    margin-top: 0.5rem;
}

h2 {
    margin: 1.5rem 0 1rem 1.5rem;
    font-size: 2rem;
    color: black
}

h2::after {
    content: "";
    display: block;
    width: 30%;
    height: 0.063rem;
    background-color: black;
    margin-top: 0.5rem;
}

.article-body {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: space-between;
    align-items: flex-start;
}


.content {
    padding-left: 1.5rem;
    flex: 1 1 60%;
    font-size: 1.5rem;
    text-align: justify;
}

aside {
    flex: 1 1 35%;
    margin: auto;
    justify-content: flex-end; 
    align-self: flex-start;
}

aside p{
    text-align: center;
}

aside img {
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}


.main{
    background-color: rgb(255,255,255,0.8);;
    max-width: 80%;
    margin: auto auto;
}
img{
    max-height: 25em;
}

article{
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    margin-right: 5%;
    gap: 2em;
}



.nagyithatoimg{
    max-width: 90%;
    border-radius: 1.25rem;
    transition: transform 0.3s ease;
    
}

.nagyithatoimg:hover{
    transform: scale(1.1);
    z-index: 1;
}

.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;
}

.imgtd {
    text-align: center;
    vertical-align: middle;
    padding: 1vw 0.8vw;
    padding-bottom: 0;
}

.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;
}

video{
    max-width: 90%;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 1.2em;
  color: #000;
  padding: 1em;
}

.social-link img{
    max-width: 2%;
}

.social-link a{
    color:#000;
    text-decoration: none;
    font-weight: bold;
}

.social-link a:visited{
    color: rgb(54, 57, 63);
}

figcaption a{
    color: red;
    font-weight: bold;
}

figcaption a:visited{
    color:brown;
}

figcaption img{
    height: 1.5em;
    vertical-align: middle;
}




@media (min-width: 600px) and (max-width: 900px) {

    .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: 50%;
    }
        
    .nav-group {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
    }

    article {
        flex-direction: column;
    }

    .content{
        width: 95%;
        margin: auto;
        font-size: 1.3rem;
    }

    aside {
        margin-top: 1rem;
        margin: auto
    }
}

@media (max-width: 599px) {
    .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: 50%;
    }
        
    .nav-group {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
    }

    article {
        flex-direction: column;
    }

    .content{
        width: 90%;
        margin: auto;
        font-size: 1rem;
    }

    aside {
        margin-top: 1rem;
        margin: auto
    }
}