html {
    scroll-behavior: smooth;
}
body {
    background-color: #ffedc9;
    background-image: url('img/hatter.png');
    background-repeat: repeat;
    background-size: auto;
    text-align: center;
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}
a {
    color: #0064d8;
    text-decoration: none;
}
h5 {
    font-size: 1.25rem;
}
.container {
    max-width: 1200px;
    margin: 20px auto;
}
.logo {
    width: 100%;
    max-width: 400px;
}
h1 {
    color: #F84E91;
    font-size: 2em;
    margin: 10px 0;
}
h2 {
    color: #1856A3;
    font-size: 1.5em;
    margin: 5px 0;
}
.buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}
.button {
    background-color: #F84E91;
    color: white;
    font-size: 1.2em;
    padding: 10px 20px;
    border-radius: 20px;
    margin: 10px;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
    opacity: 0;
    transform: translateY(20px);
}
.button.show {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.button:hover {
    background-color: #D73D79;
}
.card-img-top {
    height: 300px;
    object-fit: cover;
    object-position: 50% 30%;
}
.card-title {
    font-size: 1.5rem;
    font-weight: bold;
}
.card-text {
    text-align: justify;
}
.red {
    color: #ffffff;
    background: #ff77ac;
    padding: 7px 12px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: bold;
}
.content {
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    display: none;
}
.kapcsolat-div {
    font-family: Calibri, sans-serif;
    padding-top: 16px;
    font-size: 1.2em;
}
.kapcsolat-div div {
    padding-top: 2px;
}
.kapcsolat-nev {
    font-weight: bold;
    font-size: 1.4em;
    color: #1856A3;
}
.tamogatoink div {
    padding: 20px 10px;
}
.tamogatoink-img {
    height: 120px;
}
.bszc-img { height: 160px; }
.bcs-img { height: 140px; }

.terkep img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.card-prog {
    position: relative;
    background-color: #f9b03d;
    border-radius: 6px;
}
.card-prog.alt {
    background-color: #ffffff;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease;
    cursor: pointer;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Lazy load stílusok */
.gallery img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery img.loaded {
    opacity: 1;
}

/* Lightbox stílusok */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    touch-action: none;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

#lightbox-image {
    max-width: 95%;
    max-height: 80vh;
    object-fit: contain;
    -webkit-user-select: none;
    user-select: none;
}

.caption {
    color: white;
    text-align: center;
    margin-top: 15px;
    font-size: 1.2em;
    max-width: 90%;
}

#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: none;
    background-color: #2966bf;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    text-align: center;
    line-height: 50px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#scrollTopBtn.show {
    display: block;
    opacity: 0.4;
    transform: translateY(0);
}

#scrollTopBtn.hide {
    opacity: 0;
    transform: translateY(20px);
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    z-index: 1001;
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav.prev {
    left: 10px;
}

.nav.next {
    right: 10px;
}

.close:hover, .nav:hover {
    color: #ccc;
    background-color: rgba(0,0,0,0.5);
}

/* Mobil nézet */
@media (max-width: 768px) {
    .nav {
        font-size: 30px;
        width: 40px;
        height: 40px;
        padding: 15px;
    }

    .content {
        padding: 0;
    }

    .close {
        font-size: 35px;
        right: 15px;
        top: 15px;
    }

    #lightbox-image {
        max-width: 100%;
        max-height: 70vh;
    }
}

/* Swipe érzékeléshez */
.touch-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

.lightbox-open {
    overflow: hidden; /* Görgetés letiltása lightbox nyitva van */
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.2em;
    }
    .button {
        font-size: 1em;
        padding: 8px 15px;
    }
    #scrollTopBtn {
        bottom: 10px;
        right: 10px;
    }
    .bszc-img, .bcs-img {
        height: 140px;
    }
}