body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Montserrat', sans-serif;
}

.menu-blade {
    font-family: 'Montserrat', sans-serif;
    height: 100px;
    margin: 0;
    padding: 0;
    z-index: 10; 
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    background-color: white;
    height: 100px;
}

.navbar .logo {
    position: absolute; 
    left: 20px; 
}

.navbar ul {
    list-style-type: none;
    display: flex;
    margin: 0;
    padding: 0;
    z-index: 10; 
}

.navbar ul li {
    margin-left: 20px;
}

.navbar ul li a {
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    color: black;
    font-size: 18px;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #007BFF; 
}

.hamburger {
    display: none;
    margin-left: auto;
    flex-direction: column;
    cursor: pointer;
    z-index: 10; 
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: black;
    margin: 4px 0;
    z-index: 10; 
}

@media (max-width: 768px) {
    .navbar ul {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: white;
        border: 1px solid #ccc;
    }

    .navbar ul.show {
        display: flex; 
    }

    .navbar ul li {
        margin: 10px 0;
        text-align: center;
    }

    .hamburger {
        display: flex; 
    }
}

.top-banner {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background: radial-gradient(circle at top left, #698FC7, #000000 50%);
    color: white;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wrapper {
    display: flex;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    justify-content: space-between;
}

.text-content {
    text-align: left;
    flex: 1;
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: min(6vw, 50px);
    margin: 0;
}

p {
    font-family: 'Montserrat', sans-serif;
    font-size: min(3vw, 25px);}

.image-container {
    display: flex;
    gap: 20px;
    flex: 1;
    z-index: 1;
}

.image-box {
    width: 100%;
    position: relative;
    height: 300px;
    overflow: hidden;
}

.image-box:first-child {
    width: 30%; 
}

.image-box:nth-child(2) {
    width: 25%; 
}

.image-box:nth-child(3) {
    width: 20%; 
}

.image-box img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.image-box img.active {
    opacity: 1;
}
.video-player {
    background-color: #E9E9E9; 
    width: 100%;
    max-height: 500px;
    height: auto;
    margin: 0;
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 800px;
    max-height: calc(100% - 40px);
    margin: 0 auto;
    padding-top: 56.25%;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.flexbox3-as {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    padding: 20px;
    margin-bottom: 40px;
    position: relative;
    box-sizing: border-box;
}

.flexbox3-as-item {
    flex: 1 1 calc(33% - 20px); 
    background-color: #FFFFFF;
    color: black;
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
    justify-content: flex-start; 
    padding: 20px; 
    height: 410px; 
    max-width: 500px;
    border: 1px solid black; 
    box-sizing: border-box;
    transition: background-color 0.3s ease; 
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    margin: 10px; 
}

.flexbox3-as-item h4 {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 10px 0 10px 0; 
}

.flexbox3-as-item p {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    text-align: justify;
}

.flexbox3-as-item:nth-child(1) {
    background-color: #FFFFFF;
}
.flexbox3-as-item:nth-child(2) {
    background-color: #FFFFFF; 
}
.flexbox3-as-item:nth-child(3) {
    background-color: #FFFFFF; 
}

.flexbox3-as-item:nth-child(1):hover {
    background-color: #011989; 
    color: #FFFFFF;
}
.flexbox3-as-item:nth-child(2):hover {
    background-color: #D32E22;
    color: #FFFFFF;
}
.flexbox3-as-item:nth-child(3):hover {
    background-color: #043C36;
    color: #FFFFFF;
}

@media (max-width: 800px) {
    .flexbox3-as-item {
        flex: 1 1 100%;
        margin-bottom: 20px;
    }
}
    
.custom-button {
display: inline-flex;
align-items: center;
background-color: #EAEB5B;
color: black;
font-family: 'Montserrat', sans-serif;
font-size: 18px;
padding: 10px 20px; 
border: none; 
border-radius: 50px; 
cursor: pointer; 
text-decoration: none; 
transition: background-color 0.3s ease; 
position: relative; 
bottom: 10px;
left: 10px;
}

.custom-button:hover {
    background-color: #d6cb3f;
}

.custom-button .icon {
    margin-left: 10px; 
}

.flexbox2-as-blade {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #E9E9E9;
    margin-bottom: 20px;
}

.text-above h1, .text-below h1 {
    font-size: 36px;
    text-align: center; 
    margin-bottom: 20px; 
}

.text-above, .text-below {
    display: block;
    width: 100%;
    padding: 20px 10px;
    background-color: #E9E9E9;
    margin: 0;
    box-sizing: border-box;
}

.text-above p, .text-below p {
    font-size: 18px;
    text-align: justify;
    margin: 0 auto;
    padding: 0 10px;
    max-width: 1600px;
    font-weight: 400;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .text-above, .text-below {
        padding: 10px 5px;
    }

    .text-above p, .text-below p {
        font-size: 16px;
        padding: 0 5px;
    }
}

.flexbox2-as {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    padding: 20px 0;
    box-sizing: border-box;
    background-color: #E9E9E9;
}

.flexbox2-as-item {
    flex: 1 1 calc(50% - 20px);
    background: radial-gradient(circle at top left, #698FC7, #000000 50%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start; 
    padding: 20px;
    max-width: 800px;
    box-sizing: border-box;
    margin: 10px; 
}

.flexbox2-as-item h2 {
    margin: 0;
    font-size: min(4vw, 25px);
    padding: 10px 0 10px 0;
}

.flexbox2-as-item p {
    margin: 0;
    font-size: min(3vw, 18px);
    text-align: justify;
}

@media (max-width: 800px) {
    .flexbox2-as-item {
        flex: 1 1 100%;
    }
}

.content-table {
    width: 100%;
    border-collapse: collapse;
}

.text-column {
    vertical-align: top;
    padding-right: 20px;
    width: 60%;
}

.image-column {
    vertical-align: top;
    width: 40%;
}

.image-column img {
    max-width: 300px;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .text-column, .image-column {
        width: 100%;
        display: block;
        text-align: center;
    }

    .image-column img {
        max-width: 100%;
    }
}

.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.cookie-notice p {
    margin: 0;
    padding-right: 10px;
}

.cookie-notice a {
    color: #ffdd57;
    text-decoration: underline;
}

.cookie-notice button {
    background-color: #ffdd57;
    color: #333;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    font-size: 16px;
}

.cookie-notice button:hover {
    background-color: #ffcc33;
}

.footer {
    background: radial-gradient(circle at top left, #698FC7, #000000 50%);
    color: white;
    padding: 20px 0;
    font-family: 'Montserrat', sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo img {
    max-width: 100px;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    margin: 0;
    font-size: 14px;
}

.footer-info p:first-child {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-info {
        text-align: center;
        margin-top: 10px;
    }
}





/* 2x2 elrendezés szülő div */
.parent-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 oszlop */
    grid-template-rows: auto auto auto auto; /* Négy sor, mindegyik automatikusan a tartalomhoz igazítva */
    gap: 20px;
    width: 85%; /* Maximális szélesség */
    max-width: 1300px; /* A szülő konténer maximális szélessége */
    margin: 0 auto; /* Biztosítja a középre igazítást nagyobb képernyőkön */
}

/* Dobozok és szöveg alapstílus */
.box {
    background-color: #fff;
    padding: 10px 20px;
    text-align: justify;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    align-self: start;
    height: auto; /* A magasság automatikusan igazodik a tartalomhoz */
}

/* Felső és alsó dobozok magassága automatikus */
.box1, .box6 {
    grid-column: 1 / span 2; /* A teljes szélességet foglalja el */
    background-color: #f0f0f0;
    height: auto; /* Automatikus magasság */
}

/* Középső dobozok (box2 - box5) */
.box2, .box3, .box4, .box5 {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 200px;
    margin-bottom: 20px;
}

/* Hullócsillag animáció a középső dobozokban */
.box2 h1, .box3 h1, .box4 h1, .box5 h1 {
    font-size: 28px;
    position: relative;
    z-index: 10;
    color: #333;
}

/* Hullócsillag */
.shooting-star {
    position: absolute;
    top: -50px;
    left: -150px;
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffcc00, #ff6600);
    z-index: 5;
    border-radius: 50%;
    box-shadow: 0px 0px 10px 5px rgba(255, 102, 0, 0.5);
    animation: shooting 3s ease-in-out infinite;
}

/* Hullócsillag animáció */
@keyframes shooting {
    0% {
        transform: translate(0, 0) rotate(45deg);
        opacity: 1;
    }
    70% {
        transform: translate(300px, 150px) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: translate(400px, 200px) rotate(45deg);
        opacity: 0;
    }
}

/* Responsive beállítások kisebb képernyőkhöz */
@media (max-width: 768px) {
    .parent-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto auto; /* Minden sor külön lesz */
    }

    .box {
        grid-column: 1 / span 1; /* Minden elem egy oszlopot foglal el kisebb képernyőkön */
    }
}

/* Szülő div, amely a térképet és a kapcsolati adatokat tartalmazza */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    width: 85%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Térkép és kapcsolati információk elrendezése */
.map-container, .contact-info {
    flex: 1 1 45%; /* Mindkét elem 45%-ot foglal el a szülőből */
    background-color: #f0f0f0;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Kapcsolati információk stílusa */
.contact-info h2 {
    margin-top: 0;
    font-family: 'Montserrat', sans-serif;
}

.contact-info p {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}

/* Reszponzív beállítások kisebb képernyőkhöz */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column; /* Kis képernyőn a térkép és az információk egymás alá kerülnek */
    }

    .map-container, .contact-info {
        flex: 1 1 100%; /* Mindkét elem teljes szélességet vesz fel kisebb képernyőn */
        margin-bottom: 20px;
    }
}
