* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    overflow-y: auto;
    background-color: #f0f0f0;
    position: relative;
}
.container h2 {
    margin-top: 10px;
}

/* Navigációs sáv */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1000;
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-links ul {
    list-style: none;
    display: flex;
}

.nav-links ul li {
    margin-left: 20px;
}

.nav-links ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links ul li a:hover {
    color: #f0c14b;
}

/* Hamburgermenü */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001; /* Alapértelmezett z-index, hogy látható legyen */
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

.hamburger.active {
    z-index: 2000; /* Növelt z-index aktiváláskor, hogy a legfelső rétegben legyen */
    position: relative; /* Biztosítjuk, hogy a z-index érvényesüljön */
}

.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(7px, -7px);
}

/* Diavetiítés */
.slideshow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #333;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    animation: kenburns 15s infinite;
}

.slide.active {
    opacity: 1;
}

/* Ken Burns hatás */
@keyframes kenburns {
    0% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.2);
    }
}

/* Accordion stílusok */
.accordion {
    width: 100%;
    margin-top: 20px;
}

.accordion-item {
    border-bottom: none; /* Eltávolítjuk a border-bottom-t a lekerekítés miatt */
    border-radius: 10px; /* Lekerekített sarkok */
    margin-bottom: 10px; /* Térköz a konténerek között */
    overflow: hidden; /* A tartalom ne lógjon ki */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Finom árnyék a szeparációhoz */
}

.accordion-header {
    cursor: pointer;
    padding: 20px;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #f0f0f0;
}

.accordion-header h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
}

.accordion-header .preview-text {
    font-size: 16px;
    color: #555;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    padding: 0 20px;
    background: #ffffff;
}

.accordion-content.activeacc {
    max-height: 500px; /* Igazítsd a tartalomhoz */
    padding: 20px;
}

.accordion-content p {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.accordion-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

.accordion-content ul li {
    font-size: 16px;
    color: #555;
    margin-bottom: 5px;
}

.accordion-icon {
    font-size: 16px;
    color: #f0c14b;
    transition: transform 0.3s ease;
}

.accordion-icon.activeacc {
    transform: rotate(180deg);
}

/* Szekciók általános stílusa */
.section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 60px 20px;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1s ease, transform 1s ease;
    z-index: 2;
    overflow-y: auto;
}

.section.active {
    display: flex;
    opacity: 1;
    transform: scale(1);
    transition: opacity 1s ease, transform 1s ease;
}

/* Konténer stílusa */
.container {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 20px;
    max-width: 98%;
    width: 98%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    position: relative;
}

/* Algaléria grid */
.subgallery-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    visibility: visible !important;
    opacity: 1 !important;
}

.subgallery-grid.hidden {
    display: none !important;
}

/* Főgaléria grid */
.main-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    min-height: 600px;
    visibility: visible !important;
    opacity: 1 !important;
}

.main-gallery-grid.hidden {
    display: none !important;
}

.gallery-category {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1/1;
}

.gallery-category a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.category-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.main-category-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.gallery-category:hover .category-image {
    transform: scale(1.1);
}

.gallery-category:hover .main-category-image {
    transform: scale(1.1);
}

.category-title {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.gallery-category:hover .category-title {
    transform: scale(1.2);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    touch-action: none;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

/* Lightbox vezérlők */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    display: block;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    user-select: none;
    z-index: 1001;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.back-button {
    margin-top: 20px;
    background-color: #f0c14b;
    color: #333;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #e0b03b;
}

/* Fotós csomagok szekció */
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f0c14b;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
}

.button:hover {
    background-color: #e0b03b;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.package-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.package-item h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.package-item p {
    font-size: 16px;
    color: #555;
}

.back-to-packages {
    position: absolute;
    top: 20px;
    left: 20px;
    margin: 0; /* Biztosítjuk, hogy ne legyen extra margó */
    padding: 8px 15px;
}

/* Kapcsolati űrlap */
.form-group {
    margin-bottom: 20px;
    text-align: left;
    min-width: 450px;
}

.form-group label {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.form-group .required {
    color: #f23a3c;
}

.form-global {
    margin-top: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #f0c14b;
    box-shadow: 0 0 5px rgba(240, 193, 75, 0.5);
    outline: none;
}

.form-group textarea {
    height: 163px;
    resize: vertical;
}

.phone-fields {
    display: flex;
    gap: 10px;
}

.phone-fields input {
    flex: 1;
}

.phone-fields input:first-child {
    flex: 0 0 60px;
}

.phone-fields input:nth-child(2) {
    flex: 0 0 60px;
}

.submit-button {
    background-color: #f0c14b;
    color: #333;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    margin: 0 auto;
}

.submit-button:hover {
    background-color: #e0b03b;
}

/* Reszponzív dizájn */
@media (max-width: 3500px) {
    .container {
        max-width: 50%;
    }
}
@media (max-width: 2048px) {
    .container {
        max-width: 60%;
    }
}
@media (max-width: 1900px) {
    .container {
        max-width: 70%;
    }
}
@media (max-width: 1300px) {
    .container {
        max-width: 80%;
    }
}
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        z-index: 1500; /* Biztosítjuk, hogy a menü a diavetiítés és szekciók felett legyen */
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links ul {
        flex-direction: column;
        padding: 60px 20px;
        height: 100%;
        justify-content: center;
        align-items: center;
    }

    .nav-links ul li {
        margin: 20px 0;
    }

    .nav-links ul li a {
        font-size: 24px;
    }

    .slide {
        background-position: center;
    }

    .section {
        padding: 40px 10px;
    }

    .content h1 {
        font-size: 36px;
    }

    .content h2 {
        font-size: 24px;

    }


    .content p {
        font-size: 16px;
    }

    .main-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        min-height: 700px;
    }

    .subgallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .container {
        padding: 15px;
        width: 98%;
        min-height: 85vh;
    }

    .phone-fields {
        flex-direction: column;
        gap: 5px;
    }

    .phone-fields input {
        flex: 1;
    }

    .phone-fields input:first-child,
    .phone-fields input:nth-child(2) {
        flex: 1;
    }

    .lightbox {
        background-color: rgba(0, 0, 0, 1);
    }

    .prev, .next {
        display: none;
    }

    .close {
        font-size: 28px;
        top: 15px;
        right: 15px;
    }

    .lightbox-image {
        max-width: 100%;
        max-height: 100%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        transition: opacity 0.3s ease;
    }

    .container {
        max-width: 100%;
    }
}

@media (min-width: 769px) {
    .lightbox {
        background-color: rgba(0, 0, 0, 0.9);
    }
}