html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #222;
}

.section-space {
    padding: 100px 0;
}

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: center;
    align-items: center;
    z-index: 10000;
    color: #fff;
    padding-right: 0.2em;
    padding-bottom: 0.4em;
    font-size: 20vw;
}

/* Szöveg */
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;
}

/* A navigációs sáv stílusa */
nav {
    width: 100%;
    backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.5); /* Átlátszó fekete háttér */
    border-bottom: solid 1px #fff;
    z-index: 1000;
    position: fixed;
}

nav ul {
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
}

nav li {
    height: 50px;
}

nav a {
    height: 100%;
    padding: 0 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: #fff;
}

nav a:hover {
    color: lightgray;
    text-decoration: underline;
}

nav li:first-child {
    margin-right: auto; /* Balra igazítja az első elemet */
}

.menu-button {
    display: none; /* Alapértelmezésben elrejti a menü gombot */
    a {
        width: 50px;
        justify-content: center;
        padding-right: 15px;
    }
    
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    display: none;
}

.sidebar li {
    width: 100%;
}

.sidebar li:first-child {
    position: fixed;
    top: 0;
    right: 15px;
    width: 50px;
    

    a{
        justify-content: center;
        padding: 0;
    }
}

.sidebar .second-child {
    margin-top: 100px;
}

.sidebar a {
    justify-content: flex-end;
}

.Kapcsolat{
    background-color: #FFFFF9;
    color: #000;
}

.Kapcsolat:hover{
    color: #222;
}

/*kapcsolat********************************/
.kapcsolat-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    width: 100%;
    text-align: center;
    background-color: white;
    overflow: hidden;
}

.kapcsolat-section img {
    position: absolute;
    width: 100%;
    height: 100%;
}

.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;
}

.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;
}

/* Reszponzív design */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    /*Navigáció*/
    .desktopMenu {
        display: none;
    }

    .menu-button {
        display: block;
    }
    
    /*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: 425px) { /*Mobile*/
    .sidebar {
        width: 100%;
        align-items: center;
        justify-content: flex-end;
        a {
            justify-content: center;
        }
    }

    p, ul, li {
        font-size: 0.8rem;
    }

    .kapcsolat-section {
        height: 50vh;
    }
}