@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}
/*!!!*/
.sh {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}


body {
    height: 100vh;
    /*background-image: url(/Images/a.png);*/
    background-color: #f4f4f4;
    overflow: hidden;
    background-size: cover;
    transition: 0.3s;
}
body.blur section {
    filter: blur(5px);
    pointer-events: none; /* Ne lehessen kattintani a blur alatt */
}
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: inherit; /* Az alap háttérkép átvétele */
    filter: blur(4px); /* Blur effekt */
    z-index: -1; /* Háttérben maradjon */
}

/* HEADER ANIMÁCIÓ */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.active-box {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column; /* Elemeket oszlopba rendezi */
    align-items: center;
    justify-content: flex-start; /* Címke fent marad */
    background-color: #cfcfcfb8;
    backdrop-filter: blur(10px); /* Blur effekt */
    width: 120px; 
    height: 60px;
    padding: 12px 20px;
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    z-index: 1000;
}

.active-box .title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: center;
}

.active-box.active {
    height: 500px; /* Növekedés lefelé */
    border-radius: 20px;
}


.active-box .login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1; /* Középre húzza a formot */
    width: 100%;
    opacity: 0; /* Alapból rejtett */
    transition: opacity 0.3s ease-in-out;
}

.active-box.active .login-form {
    opacity: 1; /* Megjelenik, ha az active-box aktív */
}

.login-form input {
    width: 80%;
    padding: 10px;
    margin: 15px 0;
    border: 1px solid #000000;
    border-radius: 15px;
}

.login-form button {
    width: 80%;
    padding: 10px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    margin: 15px 0;
}

.active-box.loaded {
    width: 500px;
}

.logo {
    display: flex;
    margin-top: 0;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
}

.logo img {
    height: 35px;
    border-radius: 10px;
}

.active-text {
    font-size: 16px;
    font-weight: 550;
    color: black;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.5s ease-in-out 0.5s; /* Késleltetés */
    transition: 0.3s;
}

.active-box.loaded .active-text {
    opacity: 1;
}

/* SECTION ANIMÁCIÓ */
.animated-section {
    position: relative;
    display: block;
    padding: 0 20px;
    margin-top: 0;
    height: calc(100vh - 100px);
    opacity: 0; /* Kezdetben láthatatlan */
    transform: translateY(100px); /* Lentről indul */
    transition: filter 0.5s ease-in-out;
}

.active-box.active ~ .animated-section {
    filter: blur(10px);
    pointer-events: none; /* Ne lehessen kattintani a blur alatt */
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.cent-text {
    position: relative;
    height: 200px;
    width: 100%;
    display: flex;
    flex-direction: column; /* Több sor támogatása */
    align-items: center;
    justify-content: center;
    font-size: 80px;
    line-height: 90px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    padding: 10px;
    margin: 150px 0 30px 0;
}

#typewriter {
    width: 100%;
}

/* Villogó kurzor animáció */
#typewriter::after {
    content: "|";
    display: inline-block;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.animated-section .butt {
    display: flex;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

/* Fekete gomb (elsődleges) */
.primary-btn {
    position: relative;
    background-color: black;
    color: white;
    font-weight: bold;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    margin: 10px;
}

.primary-btn:hover {
    background-color: #333;
}

/* Fehér gomb (másodlagos) */
.secondary-btn {
    background-color: white;
    color: black;
    font-weight: bold;
    border: 2px solid #ccc;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s, border 0.3s;
    margin: 10px;
}

.secondary-btn:hover {
    background-color: #f5f5f5;
    border-color: black;
}


/* Boxok konténere */
.box-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin: 70px auto;
}

/* Egyes boxok stílusa */
.content-box {
    color: white;
    background: #cfcfcfb8;
    padding: 20px;
    border-radius: 10px;
    width: 250px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);

}

/* Címek */
.content-box h2 {
    border-radius: 5px;
    text-align: left;
    color: rgb(0, 0, 0);
}

/* Leírás */
.content-box p {
    color: #000000;
    margin: 5px 0 20px 0;
    text-align: left;
}

/* Gomb */
.box-btn {
    background-color: rgb(0, 0, 0);
    color: #f4f4f4;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.box-btn:hover {
    background-color: #f4f4f4;
    color: #000000;
}