html {
    scroll-behavior: smooth;
}

/* ABOUT animáció */

.story {
    margin-bottom: -8vh;
}

.about-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out 0.5s, transform 1s ease-out 0.5s;
    position: relative;
    z-index: 1;
    padding-bottom: 50px;
}

.about-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-section h2 {
    text-align: center;
    color: #C62E2E;
    -webkit-text-stroke: 1px white;
    font-size: 62px;
    text-shadow:
        rgba(255, 255, 255, 1) 0px 5px 10px,
        rgba(255, 255, 255, 0.5) 0px 5px 15px;
    opacity: 1;
    margin-top: 1em;
}


.about-section h3 {
    text-align: center;
    color: #C62E2E;
    -webkit-text-stroke: 0.2px white;
    margin-top: 70px;
    font-size: 32px;
    text-shadow:
        rgba(255, 255, 255, 1) 0px 2px 3px,
        rgba(255, 255, 255, 0.5) 0px 2px 5px;
    opacity: 1;
    transform: translateY(20px);
    transition: opacity 1s ease-out 0.5s, transform 1s ease-out 0.5s;
}

.about-section.visible h3 {
    opacity: 1;
    transform: translateY(0);
}

:root {
    --about-bg: linear-gradient(180deg, rgba(198, 46, 46, 1) 0%, rgba(0, 0, 0, 1) 29%);
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    border-radius: 70px 15px 70px 15px;
    padding: 40px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    background: var(--about-bg);
    transition: background 0.3s ease;
}

.about p {
    text-align: justify;
    hyphens: auto;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Bal és jobb oldali div-ek animációi */
.left-about,
.right-about {
    flex: 1;
    margin: 10px;
    padding: 20px;
    color: white;
    opacity: 0;
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Bal oldali div – késleltetés */
.left-about {
    transform: translateX(-50px);
    transition-delay: 1s;
}

.right-about {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(50px);
    transition-delay: 1s;
    position: relative;
    width: 100%;
    max-width: 750px;
    overflow: hidden;
    margin: 0px;
    padding: 10;
}

.right-about video {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
    margin-bottom: 20px;
}

/* Videó hover hatás */
.right-about video:hover {
    transform: scale(1.05);
}

.about-section.visible .left-about,
.about-section.visible .right-about {
    opacity: 1;
    transform: translateX(0);
}

/* Kép reszponzív méretezés */
.left-about img,
.right-about img {
    width: 100%;
    height: auto;
    max-width: 750px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
    margin-bottom: 20px;
}

.left-about img:hover,
.right-about img:hover {
    transform: scale(1.05);
}

/* Mobil és tablet nézet */
@media (max-width: 768px) {
    .about {
        flex-direction: column;
        align-items: center;
    }

    .left-about,
    .right-about {
        width: 100%;
    }

    .about-section h2 {
        font-size: 42px;
    }
}

@media screen and (max-width: 480px) {

    .about-section h2 {
        font-size: 2.3em;
        text-shadow:
            rgba(255, 255, 255, 1) 0px 2px 3px,
            rgba(255, 255, 255, 0.5) 0px 2px 5px;
        opacity: 1;
    }

    .about {
        padding: 10px;
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
        position: relative;
        overflow: hidden;
        transition: background-color 0.3s ease;
    }

    .right-about video {
        width: 140%;
        height: auto;
        border-radius: 15px;
        object-fit: cover;
    }

    .left-about ul {
        margin-bottom: 20px;
    }

    .left-about img,
    .right-about img {
        width: 100%;
        height: auto;
        border-radius: 20px;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
        transition: transform 0.3s ease-in-out;
        margin-bottom: 2px;
    }

    .about-section h3 {
        margin-top: 10px;
        font-size: 22px;
    }

}

/* Parallax szekció */
.parallax-section {
    height: 500px;
    background-image: url('/images/bg/hero.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: -170px;
    z-index: 0;
    border: 1px solid #B7B7B7;
}

@media screen and (max-width: 480px) {

    .parallax-section,
    .parallax-section-alt {
        background-attachment: scroll;
    }

}

/* World MAP */

.world-map-section {
    border: 1px solid #B7B7B7;
}

.world-map-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 15vh;
}

/* Flexbox wrapper a két oszlophoz */
.content-wrapper {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Cím stílusok */
.world-map-section .container h2 {
    text-align: center;
    color: #C62E2E;
    -webkit-text-stroke: 1px white;
    margin-top: 0px;
    font-size: 48px;
    text-shadow:
        rgba(255, 255, 255, 1) 0px 20px 40px,
        /* Látható fehér árnyék */
        rgba(255, 255, 255, 0.5) 0px 10px 20px;
    /* Második árnyék halványabb */
    opacity: 1;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
    transition-delay: 0.5s;
}

.country-links {
    flex: 1;
    max-width: 300px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
    transition-delay: 1s;
    justify-content: center;
}

.country-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45%;
    height: 40px;
    padding: 5px 1px;
    background-color: #f0f0f0;
    text-decoration: none;
    color: #333;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    box-sizing: border-box;
}

.country-links a:hover {
    background-color: #C62E2E;
    color: #fff !important;
    transition: background-color 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

#map {
    flex: 4;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
    transition-delay: 1s;
}

/* SVG pozicionálás */
#map svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Térkép útvonalak */
.map path {
    fill: #FFF1DB;
    stroke: #9A7E6F;
}

.map path.default-highlighted {
    fill: #6EC207;
    cursor: pointer;
}

.map path.default-highlighted:hover {
    fill: red;
}

.map path.clicked {
    fill: red !important;
}

/* Vissza gomb */
.back-to-map-button {
    display: none;
    visibility: hidden;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.back-to-map-button.show {
    display: block;
    visibility: visible;
}

.world-map-section.visible #country-links,
.world-map-section.visible #map {
    opacity: 1;
    transform: translateY(0);
}

.world-map-section.visible .container h2 {
    opacity: 1;
    transform: translateY(0);
}

/* Mobil és tablet nézet */
@media (max-width: 1024px) {
    .world-map-section h2 {
        font-size: 2em !important;
        text-shadow:
            rgba(255, 255, 255, 1) 0px 2px 3px,
            rgba(255, 255, 255, 0.5) 0px 2px 5px !important;
        opacity: 1;
    }

    .country-links a {
        width: 43%;
        height: 30px;
        padding: 2px 2px;
        font-size: 10px;
    }
}

@media screen and (max-width: 840px) {
    .world-map-section {
        width: 100%;
        margin: 0px;
    }

    .world-map-section .container {
        width: 100%;
        margin: 0 auto;
    }

    .world-map-section .container h2 {
        font-size: 1.5rem !important;
        color: #C62E2E;
        -webkit-text-stroke: 0.5px white;
        text-shadow:
            rgba(255, 255, 255, 1) 0px 2px 3px,
            rgba(255, 255, 255, 0.5) 0px 2px 5px !important;
        opacity: 1;
        text-shadow: none;
    }

    .country-links a {
        width: 40%;
        height: 30px;
        padding: 5px 5px;
        font-size: 8px;
    }
}

@media (max-width: 600px) {
    .world-map-section .container {
        padding: 10px;
    }

    .world-map-section h2 {
        font-size: 2em !important;
        text-shadow:
            rgba(255, 255, 255, 1) 0px 2px 3px,
            rgba(255, 255, 255, 0.5) 0px 2px 5px !important;
        opacity: 1;
    }

    .content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .country-links {
        max-width: 100%;
        text-align: center;
    }

    .country-links a {
        font-size: 14px;
        padding: 3px 8px;
    }

    .map {
        max-width: 100%;
        padding-bottom: 56.25%;
    }

    @media screen and (max-width: 480px) {
        .world-map-section {
            width: 100%;
            margin: 0px;
        }

        .world-map-section .container {
            width: 100%;
            margin: 0 auto;
        }

        .world-map-section .container h2 {
            font-size: 1.5rem !important;
            color: #C62E2E;
            -webkit-text-stroke: 0.5px white;
            text-shadow:
                rgba(255, 255, 255, 1) 0px 2px 3px,
                rgba(255, 255, 255, 0.5) 0px 2px 5px !important;
            opacity: 1;
            text-shadow: none;
        }

        .country-links a {
            width: 28%;
            height: 30px;
            padding: 5px 5px;
            font-size: 10px;
        }
    }
}


/*--------------------------------------
CARD
----------------------------------------*/
.card-div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.card {
    width: 200px;
    height: 100px;
    border: none;
}

.card-header h2 {
    text-align: center;
    font-family: 'EthnoCentricFont', Arial, Helvetica, sans-serif;
    font-size: 42px;
    color: #C62E2E;
    -webkit-text-stroke: 1px white;
    margin-bottom: 20px;
    text-shadow:
        rgba(255, 255, 255, 1) 0px 5px 10px,
        rgba(255, 255, 255, 0.5) 0px 5px 15px;
    opacity: 1;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: box-shadow 0.5s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
}

.card:hover .card-inner {
    box-shadow: 0 0 25px 15px rgba(198, 46, 46, 1);
}

.card-front {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border: 1px solid #C62E2E;
    border-radius: 7px;
}

.card-front img {
    max-width: 150px;
    padding: 15px;
}

/* Mobil nézet */
@media (max-width: 768px) {
    .card {
        width: calc(33.33% - 20px);
    }
}

/* Kisebb mobil méret */
@media (max-width: 480px) {
    .card {
        width: calc(50% - 20px);
    }

    .card-div {
        gap: 20px;
        padding: 5px;
    }

    .card-header h2 {
        text-align: center;
        font-family: 'EthnoCentricFont', Arial, Helvetica, sans-serif;
        font-size: 1.8rem;
        color: #C62E2E;
        -webkit-text-stroke: 0.5px white;
        text-shadow:
            rgba(255, 255, 255, 1) 0px 2px 3px,
            rgba(255, 255, 255, 0.5) 0px 2px 5px !important;
        opacity: 1;
        margin-bottom: 20px;
        text-shadow: none;
    }

}

/* Alap beállítások */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.feature container a.box {
    display: block;
    text-decoration: none !important;
    /* Az aláhúzás eltávolítása */
    border-bottom: none !important;
    color: inherit;
    /* Az öröklődő szín, hogy a szöveg színe ne változzon */
}

.feature .container .box::after,
.feature .container .box::before {
    content: none;
    /* Eltünteti a pseudo-elemet */
}



/* Szekció - Feature */
.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 60vh;
    background-color: transparent;
    text-align: center;
    margin-top: -10vh;
}

/* Cím középre igazítása */
.feature h3 {
    text-align: center;
    color: #C62E2E;
    /* A szöveg belső színe */
    -webkit-text-stroke: 1px white;
    /* Külső fehér vonal */
    font-size: 52px;
    text-shadow:
        rgba(255, 255, 255, 1) 0px 5px 10px,
        rgba(255, 255, 255, 0.5) 0px 5px 15px;
    opacity: 1;
    margin-top: 1em;
}

/* Konténer - középre igazítás és rács elrendezés */
.feature .container {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    transform-style: preserve-3d;
    perspective: 500px;
    margin: auto;
    padding: 20px;
    max-width: 100%;
}

/* Box stílus */
.feature .container .box {
    position: relative;
    width: 175px;
    height: 275px;
    background: #000;
    transition: 0.5s;
    transform-style: preserve-3d;
    overflow: hidden;
    margin-top: 45px;
    border: none;
}

/* Hover effekt a boxokra */
.feature .container:hover .box {
    transform: rotateY(25deg);
}

.feature .container .box:hover~.box {
    transform: rotateY(-25deg);
}

.feature .container .box:hover {
    transform: rotateY(0deg) scale(1.25);
    z-index: 1;
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.5);
}

.feature .container .box:hover {
    box-shadow: 0 0 15px 5px rgba(198, 46, 46, 1);
}

/* Kép és árnyékolás */
.feature .container .box .imgBx {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.feature .container .box .imgBx:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #C62E2E, #000000);
    z-index: 1;
    opacity: 0;
    transition: 0.5s;
    mix-blend-mode: multiply;
}

.feature .container .box:hover .imgBx:before {
    opacity: 1;
}

.feature .container .box .imgBx img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tartalom beállítások */
.feature .container .box .content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    padding: 20px;
    align-items: flex-end;
    box-sizing: border-box;
}

.feature .container .box .content h2 {
    color: #fff;
    transition: 0.5s;
    text-transform: uppercase;
    margin-bottom: 3px;
    font-size: 16px;
    transform: translateY(200px);
    transition-delay: 0.3s;
}

.feature .container .box:hover .content h2 {
    transform: translateY(0px);
}

.feature .container .box .content p {
    color: #fff;
    transition: 0.5s;
    font-size: 12px;
    transform: translateY(200px);
    transition-delay: 0.4s;
}

.feature .container .box:hover .content p {
    transform: translateY(0px);
}



/* Mobilnézet - kártyák egymás mellett keskenyebb formában */
@media (max-width: 768px) {
    .feature h3 {
        -webkit-text-stroke: 0.5px white;
        margin-top: 70px;
        font-size: 32px;
        text-shadow:
            rgba(255, 255, 255, 1) 0px 2px 3px,
            rgba(255, 255, 255, 0.5) 0px 2px 5px;
        opacity: 1;

    }

    .feature .container {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        /* Görgethető sor mobilon */
        padding: 40px 0px 40px 0px;
        /* Kicsit növelt padding */
        min-height: 250px;
        /* Növelt magasság a nagyításhoz */
        gap: 8px;
        /* Kisebb gap a boxok között */
        width: 100%;
    }

    .feature .container .box {
        flex: 0 0 auto;
        /* Fix szélesség a görgethetőséghez */
        width: 100px;
        /* Keskenyebb box méret mobilon */
        height: 200px;
        /* Box magasság */
        margin: 0 1px;
        /* Kis távolság */
        transition: transform 0.5s ease, box-shadow 0.5s ease;
    }

    /* Hover és kattintás effektus mobilon is */
    .feature .container .box:hover {
        transform: scale(1.1);
        /* Mobilon nagyobbítás */
        z-index: 1;
        box-shadow: 0 5px 20px rgba(198, 46, 46, 0.8);
        /* Árnyék a hover állapothoz */
    }

    .feature .container .box:hover~.box {
        transform: translateY(10px);
        /* Finomabb eltolás a következő boxra */
    }

    .feature .container .box .content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Függőlegesen középre igazítás */
        align-items: center;
        /* Vízszintesen középre igazítás */
        text-align: center;
        /* Szöveg középre igazítása */
        padding: 5px;
        /* Padding a tartalomnak */
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }

    .box.tapped .content {
        transform: translateY(0);
        /* Szöveg feljövetel */
    }

    /* Megakadályozzuk, hogy az `a` elemek hover állapotban elnavigáljanak */
    .box .content a {
        pointer-events: none;
    }

    .box.tapped .content a {
        pointer-events: all;
        /* Csak a második koppintáskor aktiválható */
    }

    .feature .container .box .content h2 {
        font-size: 0.7rem;
        color: #C62E2E;
        -webkit-text-stroke: 0.2px white;
        margin-bottom: 3px;
    }

    .feature .container .box .content p {
        font-size: 10px;
        /* Kisebb betűméret */
        text-align: center;
    }
}


/* Impresszum */

.impressum .text-center .text-up {
    font-family: "EthnoCentricFont", serif !important;
    text-align: center;
    color: #C62E2E !important;
    -webkit-text-stroke: 0.5px white;
    font-size: 24px;
    text-shadow:
        rgba(255, 255, 255, 1) 0px 5px 10px,
        rgba(255, 255, 255, 0.5) 0px 5px 15px;
    opacity: 1;
    text-transform: uppercase;
}

.impressum h2 {
    text-align: center;
    color: #C62E2E;
    -webkit-text-stroke: 1px white;
    font-size: 62px;
    text-shadow:
        rgba(255, 255, 255, 1) 0px 5px 10px,
        rgba(255, 255, 255, 0.5) 0px 5px 15px;
    opacity: 1;
    margin-top: 1em;
}

.impressum .lead {
    color: #eee;
    font-family: "Montserrat", sans-serif !important;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 0px;
}

.impressum p {
    color: #eee;
    font-family: "Montserrat", sans-serif !important;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
}

@media (max-width: 1024px) {
    .impressum h2 {
        -webkit-text-stroke: 1px white;
        font-size: 48px;
    }

    .impressum .text-up {
        font-size: 18px !important;
    }

    .impressum .lead {
        color: #eee;
        font-family: "Montserrat", sans-serif !important;
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        text-transform: uppercase;
        margin-bottom: 0px;
    }

    .impressum p{
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .impressum h2 {
        -webkit-text-stroke: 1px white;
        font-size: 26px;
    }

    .impressum .text-up {
        font-size: 18px !important;
    }

    .impressum .lead {
        color: #eee;
        font-family: "Montserrat", sans-serif !important;
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        text-transform: uppercase;
        margin-bottom: 0px;
    }

    .impressum p{
        font-size: 12px;
    }
}