::selection {
    background-color: #B287FB; /* A kijelölt szöveg háttérszíne */
    color: white; /* A kijelölt szöveg színe */
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #222;
}

img {
    user-select: none; /* Megakadályozza a szöveg kijelölését */
    pointer-events: none; /* Megakadályozza az egér eseményeket */
}

.trend-line ~ * {
    background-color: #fff;
}

.trend-line ~ footer {
    background-color: initial; /* Visszaállítja az eredeti háttérszínt */
}


 /*Smooth scroll*****************/
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: clip;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/*töltőképernyő*/
.overlay{
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 1002;
    display: flex;
}

.loading-bar{
    width: 10vw;
    height: 105vh;
    background: #222;
}

.counter{
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    z-index: 10000;
    color: #fff;
    padding-right: 0.2em;
    padding-bottom: 0.4em;
    font-size: 20vw;
}

/* A navigációs sáv stílusa */

nav {
    font-size: 0;
    position: fixed;
    background-color: rgba(34, 34, 34, 0.9); /* Átlátszó fekete háttér */
    backdrop-filter: blur(10px);
    color: #fff;
    display: flex;
    height: 65px;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    border-bottom: solid 1px #fff;
    z-index: 1000;
}

nav .menu a {
    display: inline-block;
    font-size: medium;
    color: #fff;
    text-decoration: none;
    border-left: solid 1px #fff;
    padding: 24px;
    flex-wrap: wrap;
    transition: background-color 0.5s ease;
}

nav .menu a:hover {
    text-decoration: underline;
    color: #000;
    background-color: #FFF;
}

.menu a.kapcsolat {
    display: inline-flex;      /* Flexbox elrendezés, hogy a tartalom egymás mellett legyen */
    align-items: center;       /* Függőleges középre igazítás */
    padding: 16px 24px;
}

.menu a.kapcsolat img {
    margin-left: 5px;          /* Kis távolság a szöveg és a nyíl között */
    transform: rotate(270deg); /* Biztosítja, hogy a nyíl jobbra mutasson */
    filter: invert(1);         /* Fehérre változtatja a nyíl színét */
}

nav a.kapcsolat:hover img {
    filter: invert(0); /* Fekete szín */
}

.logo {
    padding: 20px;
}

.logo:hover {
    cursor: pointer;
}

.hamburger{
    display: none;
}

/* Szöveg stílusa */

h1{
    font-family: Inter;
    font-size: 3rem;
    font-style: normal;
    font-weight: 700;
    line-height: 100%; /* 3rem */
    text-transform: uppercase;
    margin: 0;
}

h2{
    font-family: Montserrat;
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 700;
    line-height: 150%; /* 1.875rem */
}

p, ul, li{
    font-family: Montserrat;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; /* 1.5rem */
}

.sötét{
    color: #000;
}

.vilagos{
    color: #fff;
}

.sötétp{
    color: #1F1F22;
}

.vilagosp{
    color: #B5B5B5;
}

canvas {
    display: block;
    background-color: #e0e0e0;
}



/*Hero********************************/

.hero-section {
    position: relative;
    height: 150vh; /* 180% magasságú */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.hero-section h1, .hero-section p{
    text-align: center;
    width: 600px;
}


.iranyitastachnika_image-container {
    position: absolute;
    width: 100%;
    height: 150vh; /* A kép is 200vh */
    top: -25vh; /* Középen induljon */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Alatta legyen a szöveg */
}

.iranyitastachnika_image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    pointer-events: none;
}

.grid {
    width: 90vw;
}

.caption {
    position: absolute;;
    top: 40vh; /* Magasabbra állítva */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
    pointer-events: none;
    will-change: transform;
    z-index: 2; /* Mindig a kép fölött legyen */
}

.caption .grid {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover;
    border-radius: 0;
    pointer-events: none;
}

.scroll-down {
    position: relative;
    top: 30px;
    max-width: 80px;
    max-height: 80px;
    z-index: 1;
}


/*Megtakarítás****************/

.megtakarítás{
    padding: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.kep{
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}
/*BLOKK*/
.hug {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    
    padding: 20px;
    border-radius: 10px;
    max-width: 1200px;
    margin-top: 25px;
    margin-left: auto;
    margin-right: auto;
}

.megtakarítás .hug{
    background-color: #353535;
}

.control-section .hug {
    background-color: #efefef;
}

.blokk {
    display: flex;
    align-items: top;
    border-radius: 10px;
    flex: 1;
    min-width: 300px;
}


.control-section .blokk{
    background-color: none;
}

.blokk h2 {
    margin: 0 0 10px 0;
}


/**********/

.blokk img.icon {
    width: 50px;
    height: 50px;
    margin-right: 20px;
    top: 0;
}

.feutere h2 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.feutere p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}
.feature1 .icon {
    background-color: #000;
}

/*Mitől működik************************/
.mitol-mukodik {
    display: flex;
    flex-wrap: wrap;
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
    align-items: stretch;
}

.mitol-mukodik p{
    width: 60%;
    max-width: 450px;
}

.left {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 300px;
}

.header, .diagram{
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header{
    margin-bottom: 10px;
    height: 40%;
    background-color: #C8FF35;
}

.diagram{
    margin-top: 10px;
    height: 60%;
    padding-bottom: 30px;
    background-color: #161616;
}

.diagram p{
    margin: 0;
    font-size: 1.5rem;
    font-weight: lighter;
}

.right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 300px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #161616;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    gap: 20px;
    padding: 15px;
    position: relative;
    overflow: hidden;
}


.feature .kep3, .feature .kep2, .feature .kep1{
    position: absolute;
    height: auto;
    border-radius: 8px;
    opacity: 0.8;
    z-index: 0;
    margin-top: 10px;
}

.kep3{
    width: 350px;
    top: -70px;
    right: -130px;
}

.kep1{
    width: 350px;
    top: -90px;
    right: -110px;
}

.kep2{
    width: 200px;
    top: 30px;
    right: -60px;
}

.feature div {
    z-index: 1;
}

.control-section img {
    max-width: 100%;
    height: auto;
    display: block; 
}

.bars {
    display: flex;
    margin-top: 10px;
    align-items: flex-end;
}

.bar {
    height: 90px;
    background-color: #3498db;
    text-align: center;
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
}

.magyarazatok {
    margin-top: 15px;
    display: flex;
    font-size: 14px;
    align-items: top;
}

.grid-off {
    background-color: #0A3C23;
}

.szolgaltato {
    background-color: #B287FB;
}

.generator {
    background-color: #C8FF35;
}

.circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 1;
}

span {
    position: relative;
    top: -2px;
    left: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: lighter;
}

h6 {
    font-size: 1rem;
    font-weight: lighter;
    margin-top: 2px;
}

/*TrendLine****************************/

.trend-line {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-height: 70vh;
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px;
    gap: 20px;
}

.trend-line .left, .trend-line .right {
    flex: 1;
    min-width: 0px;
}

.trend-line .right svg {
    width: 100%;
    height: auto;
}

/*Mindent irányíts egy helyről*********/

.control-section {
    padding: 75px;
    padding-bottom: 125px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.control-section_image-container {
    border-radius: 16px;
    width: 100%;
    height: 392px; /* Fix magasság */
    /*padding: 17px 17px 0px 17px;*/
    justify-content: left;
    align-items: center;
    flex-shrink: 0;
    /*align-self: flex-start;*/
    overflow: hidden; /* Rejtse el a túlcsorduló tartalmat */
    background-color: #3498db;
}

.control-image {
    width: 100%;
    height: 100%;
    min-height: 392px;
    object-fit: cover;
    object-position: center;
    bottom: 0;
    margin: 0;
}

.svg-icons {
    /*top: 10px;
    right: 10px;
    padding: 17px;*/
    display: flex;
    gap: 10px;
    fill: #fff;
}

.control-title {
    margin-top: -20px;
    text-align: left;
    width: 100%;
    max-width: 600px;
    margin-left: 0; /* Add this line to start the title from the left edge of the image */
    align-self: flex-start;
}

.icons-title {
    text-align: center;
    font-size: 1.5rem;
}

.icons-container {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.icons-container .icon {
    width: 50px;
    height: 50px;
}

/*Csomagok***************************/
.Csomagok {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    background-color: #FFF;
}

.Csomagok h1 {
    margin-bottom: 20px;
}

.container {
    height: fit-content;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: row;
    /*flex-wrap: wrap;*/
    justify-content: center;
}

.container :hover {
    transform: scale(1.025);
    box-shadow: #222 0 0 10px;
}

.container .card {
    height: fit-content;
    width: 33%;
}

.container .card-egyedi {
    width: calc(33% - 48px);
}

.container .card, .container .card-egyedi {
    color: #fff;
    background-color: #222;
    margin: 6px;
    padding: 20px;
    border-radius: 16px;
    
    text-align: left;
    transition: all 0.5s ease;
}

.card :hover , .card-egyedi :hover{
    transform: none;
}



.Csomagok h3 {
    font-family: Montserrat;
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 600;
    line-height: 150%; /* 30px */
    margin-bottom: 10px;
}
  
.Csomagok p , .pályázat-section p{
    font-size: 2rem;
    font-weight: 100;
    margin: 10px 0;
}
  
.Csomagok .description , .pályázat-section .description {
    font-size: 20px;
}
  
.Csomagok .additional , .pályázat-section .additional{
    font-size: 14px;
    margin-top: 10px;
    color: #B5B5B5;
}

.card.green .additional {
    color: #353535;
    font-weight: 400;
}
  
.Csomagok .btn {
    background: #FFF;
    color: black;
    padding: 10px 18px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin: 50px auto 20px auto; /* módosítva */
    font-size: 14px;
    text-align: center;
    display: block; /* hozzáadva */
    font-size: 1.2rem;
}

.Csomagok .btn:hover {
    background-color: #9f9f9f;
}

.Csomagok a , .pályázat-section .feher-a{
    color: #fff;
    text-decoration: underline;
    font-size: 20px;
    margin-top: 10px;
    display: inline-block;
    cursor: pointer;
}

.pályázat-section a :hover{
    color: #808080;
}

.card.green {
    /*background: radial-gradient(circle at top center, #2A4D38, #222);*/
    background: #C8FF35;
    color: #000;
    scale: 1.025;
    box-shadow: #C8FF35 0 0 10px;
}

.card.green :hover {
    transform: none;
    box-shadow: #C8FF35 0 0 10px;
}

.card.green p {
    font-weight: 200;
}

.card.green .description {
    font-weight: 400;
}

.card.green a{
    color: #000;
}

.card.green .btn {
    background-color: #fff;
}

.card.green .btn:hover {
    background-color: #9f9f9f;
}

/*faq*********************************/

/* Reset default margins and paddings for all elements */
/** {
box-sizing: border-box;
margin: 0;
padding: 0;
}*/

/* Style for the main FAQ container */
.faq-container {
    /*height: 100vh; /* Full viewport height */
    max-width: 800px; /* Limit the width for better readability */
    margin: 0px auto; /* Center the container and add vertical spacing */
    padding: 100px 20px 100px 20px;
}

.faq-container h1 {
    text-align: center; /* Center the heading */
    padding-bottom: 20px; /* Add some space below the heading */
}

/* Style for each FAQ item */
.faq-item {
    border-bottom: 2px solid #000; /* Light gray border between items */
    overflow: hidden; /* Hide overflowing content */
    word-wrap: break-word;
}

/* Style for the question buttons */
.faq-question {
    background-color: #fff; /* fehér background */
    width: 100%;
    padding: 20px 45px 20px 20px;
    text-align: left;
    font-size: 1.1rem;
    border: none;
    border-radius: 0 0 10px 10px; /* Rounded corners on the bottom */
    outline: none;
    cursor: pointer;
    position: relative;
    transition: background-color 0.5s ease; /* Smooth background transition on hover */
}

/* Hover effect for question buttons */
.faq-question:hover {
    background-color: #e0e0e0; /* Slightly darker gray on hover */
}

/* Style for the arrow icon */
.faq-question .arrow {
    position: absolute;
    right: 15px;
    top: 15px;
    transition: transform 0.3s ease; /* Smooth rotation transition */
}

/* Rotate the arrow when the question is active (expanded) */
.faq-question.active .arrow {
    transform: rotate(180deg); /* Rotate arrow 180 degrees */
}

/* Style for the answer sections */
.faq-answer {
    max-height: 0; /* Initially hide the answer */
    overflow: hidden;
    transition: max-height 0.3s ease; /* Smooth transition for expanding */
    background-color: #fff; /* White background for answers */
}

/* Style for the answer text */
.faq-answer p, .faq-answer ul {
    padding: 20px;
    font-size: 16px;
    line-height: 1.5; /* Increase line height for better readability */
    color: #555; /* Slightly lighter text color for answers */
}

/*kapcsolat********************************/
.kapcsolat-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    text-align: center;
    background-color: #FFFFF9;
    overflow: hidden;
}

.kapcsolat-section img {
    position: absolute;
    height: 100%;
    width: auto;
}

.kapcsolat-section h1, .kapcsolat-section a {
    position: relative;
    top: 300px;
    z-index: 2; /* A szöveg és link a háttér felett maradjon */
}

.kapcsolat-section a {
    font-size: 10vw;
    color: #000;
    text-decoration: none;
    transition: all 0.3s;
}

.kapcsolat-section a:hover {
    color: #535353;
    text-decoration: underline;
}

/*footer********************************/
footer {
    border-top: solid 1px #808080;
    background-color: #FFF;
    align-items: center;
}

.footer-container {
    position: relative;
    padding: 45px 50px;
    display: flex;
    justify-content: space-between;
    background-color: #FFF;
}

.footer-logo{
    background-color: #FFF;
    width: 100vw;
    height: auto;
    justify-content: center;
    align-items: center;
    margin: auto;
}

.footer-logo img {
    filter: invert(1);
    width: 100%;
    height: auto;
}

footer h6 {
    color: #808080;
    font-size: 14px;
    font-family: Inter;
    font-weight: 400;
    line-height: 21px;
    word-wrap: break-word;
    margin-bottom: 14px;
}

footer a {
    display: block;
    color: black;
    text-decoration: none;
    font-size: 14px;
    font-family: Inter;
    font-weight: 400;
    line-height: 21px;
    word-wrap: break-word;
}

.footer-contact a {
    font-size: 40px;
    text-decoration: underline;
    padding: 30px 0;
}

footer a:hover {
    color: #808080;
    text-decoration: underline;
}

.footer-container p {
    padding-top: 30px;
    font-size: small;
    color: #808080;
}

/*Palyazat******************/

.pályázat-section {
    background: white;
    padding: 100px 10px;
}

.pályázat-section .container {
    padding: 100px 0;
    margin: auto;
}

.pályázat-section h1 {
    margin-bottom: 50px;
}

.pályázat-section p{
    line-height: 150%;
    font-weight: normal;
}

.frame {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 20px;
}

.felsorolás{
    display: flex;
    align-items: center;
    gap: 17px;
}

.felsorolás img {
    width: 24px;
    height: 24px;
    aspect-ratio: 1/1;
}

.card .vagy{
    align-self: stretch;
    color: #858585;
    text-align: center;
    font-family: Inter;
    font-size: 12px ;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.card.green .vagy {
    color: #353535;
}

.pályázati-feltételek {
    display: flex;
}

.pályázati-feltételek .fekete-a {
    color: #000 !important;
}

.pályázati-feltételek-jobb {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding-bottom: 20px;
    max-width: 1200px;
    margin: auto;
}
.dobozka {
    padding: 16px;
    width: 33%;
}

.feltételek-kapcsolat {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.fekete-a {
    color: #000;
}

@media screen and (min-width: 1024px){
    .control-section_image-container {
        height: 580px;

    }
}
  
@media screen and (max-width: 840px) {
    /*Megtakaítás*/
    .megtakarítás {
        padding: 20px;
    }

    /*Csomagok*/
    .container {
        flex-direction: column;
        align-items: center;
    }

    .container .card {
        width: 90%;
        max-width: 400px;
        margin: 6px 4px;
    }

    .container .card-egyedi {
        width: 90%;
        max-width: 400px;
        margin: 6px 4px;
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    /*NAV*/
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex: 1 0 0;
        height: 30px;
        padding: 10px;
    }

    .logo {
        padding: 0;
        left: 0;
    }

    .menu {
        display: none; /* Alapértelmezett rejtett állapot */
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: rgba(34, 34, 34, 0.9);
        position: absolute;
        top: 50px;
        left: 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s ease, visibility 0.5s ease;
    }

    .menu a {
        padding: 20px;
        border: none;
        display: block;
        align-items: center;
        justify-content: center;
    }

    .menu.show {
        display: flex; /* Megjelenítés ha aktív */
        opacity: 1;
        visibility: visible;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        width: 24px;
        height: 8px;
        padding: 10px 20px;
    }

    .hamburger.active .menu-icon {
        content: url('icons/close_icon.svg'); /* Az "X" ikon URL-je */
    }

    /*HERO*/
    .hero-section {
        padding: 20px;
        text-align: center;
        justify-content: center;
        align-items: center;
    }

    .hero-section h1 {
        font-size: 2rem;
        width: auto;
        margin: auto;
        padding-bottom: 20px;
    }

    .hero-section p {
        font-size: 1rem;
        width: 90vw;
        margin: auto;
    }

    /*Megtakarítás*/
    .mitol-mukodik {
        flex-direction: column;
        align-items: center;
    }

    .left, .right {
        flex: unset;
        min-width: 100%;
    }

    .hug {
        flex-direction: column;
        gap: 15px;
        width: auto;
    }

    .blokk {
        flex-direction: row; /* Ikonok és szöveg egymás mellett maradjanak */
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .blokk img.icon {
        margin-bottom: 0; /* Ikonok ne legyenek a szöveg fölött */
        margin-right: 10px; /* Ikonok és szöveg közötti távolság */
    }

    .blokk .feature1 {
        flex: 1;
        max-width: calc(100% - 50px); /* Szöveg szélessége csökkenjen */
    }

    .trend-line {
        flex-direction: column;
        align-items: center;
    }

    .trend-line .left, .trend-line .right {
        min-width: 100%;
    }

    .control-section {
        padding: 5px;
    }

    /*Mindent irányíts egy helyről*/

    .control-section{
        padding-bottom: 100px;
    }

    .hug {
        max-width: 90%;
    }

    .hug .blokk {
        flex-direction: column;
        align-items: flex-start;
    }

    .hug .blokk img.icon {
        width: 40px;
        height: 40px;
    }

    /*Kapcsolat*/

    #backgroundGrid {
        display: none;
    }

    /*FAQ*/
    .faq-container {
        padding: 50px 10px;
    }

    .faq-question {
        font-size: 1rem;
        padding: 40px;
        justify-content: center;
        align-items: center;
    }

    .faq-question .arrow {
        top: 30px;
        right: 5px;
    }

    .faq-answer {
        font-size: 0.9rem;
    }

    /*Kapcsolat*/
    .kapcsolat-section h1 {
        font-size: 1.8rem;
    }

    /*Footer*/
    .footer-container {
        height: 400px;
        flex-direction: row;
        align-items: center;
        padding: 20px;
    }

    .footer-contact a {
        font-size: 30px;
        padding: 15px 0;
    }
    
}

@media screen and (max-width: 540px) {
    /*Footer*/
    .footer-container {
        height: auto;
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .footer-contact a {
        font-size: 30px;
        padding: 15px 0;
    }

    .footer-menu {
        display: none;
    }
}

@media screen and (max-width: 375px) {
    p, ul, li {
        font-size: 0.8rem;
    }

    .faq-answer p, .faq-answer ul {
        font-size: 0.8rem;
    }   

    .kapcsolat-section {
        height: 50vh;
    }

    
}