:root {
    --red-munsell: #f40c42ff;
    --process-cyan: #08b2e3ff;
    --magnolia: #efe9f4ff;
    --jade: #57a773ff;
    --night: #0f110cff;
}

html {
	font-family: "Outfit", serif;
	font-optical-sizing: auto;
	font-weight: 300;
	font-style: normal;
	font-size: clamp(12px, 1.6vw, 20px);;
	min-width: 675px;
	padding: 0;
}
body {
    margin: 0;
    background-color: var(--magnolia);
    color: var(--night);
	padding: 0;
}

p {
	text-align: left;
}
strong{
		font-weight: 600;
}
header {
    padding: 1.2rem; /* Belső térköz */
    background-color: white; /* Ha háttérszínre szükség van */
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: height 0.3s ease, padding 0.3s ease;
}
header.min {
    padding: 0.5rem 1rem; /* Kisebb belső térköz */
    transition: height 0.3s ease, padding 0.3s ease;
}
.addieKeret {
    position: sticky;
    top: 0;
    z-index: 999;
	justify-content: center;
    align-items: center;
	background-color: var(--magnolia);
	margin: 0;
}

header h2 {
    flex: 1 1 60%;
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
	flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
.logo-container {
    display: flex;
}
.logo-container img{
	width: 5.5rem; 
	height: 5.5rem;
	margin: auto 0;
}
.divider {
    width: 0.3rem;
    height: 6rem;
    background-color: var(--process-cyan);
    margin: 0 1.8rem;
}
.intro-text{
	margin: auto 0;
}
.intro-text span {
	font-family: "Outfit", serif;
	font-optical-sizing: auto;
	font-weight: 500;
	font-style: normal;
	font-size: 1rem;
	text-align: 'left';
	color: var(--red-munsell);
	text-transform: uppercase;
	max-width: 20rem;
	display: flex;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
header.min .intro-text span {
    display: none; /* Eltünteti az elemet */
}

header.min h1 {
    font-size: 2rem; /* Kisebb betűméret */
    transition: font-size 0.3s ease; /* Simább átmenet */
}

header.min .logo-container img {
    width: 3rem; /* Kisebb kép szélesség */
    height: 3rem; /* Kisebb kép magasság */
    transition: width 0.3s ease, height 0.3s ease; /* Simább átmenet */
}

header.min .divider {
    height: 3rem; /* Divider kisebb magassága */
    transition: height 0.3s ease; /* Simább átmenet */
}

/* Navigációs menü alapstílusok */
nav {
	display: flex;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 3ch;
	display: flex;
    flex-wrap: nowrap;
	white-space: nowrap;
}

nav ul li {
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeIn 0.4s ease-in forwards;
	flex-wrap: nowrap;
	display: flex;
	flex-shrink: 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--night);
    font-size: 1.2em;
    font-family: "Outfit", serif;
	font-optical-sizing: auto;
	font-weight: 600;
	font-style: normal;
    transition: color 0.3s, transform 0.3s;
	flex-wrap: nowrap;
	white-space: nowrap;
}

nav ul li a:hover {
    color: var(--red-munsell);
    transform: scale(1.3);
}
nav ul li a.active {
    color: var(--process-cyan);
    font-weight: 900;
}

/* Animáció definíció */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


main{
	max-width: 1200px;
	margin: 0 auto;
	padding: 0.4rem;
}
canvas {
    position: relative;
    z-index: 10;
	width: 100%
}
.content-grid {
    display: grid;	
	width: 100%;
    margin: 0 0;
	position:relative;
	grid-auto-flow: row;
    grid-template-columns: repeat(6, 1fr);
	grid-template-rows: auto;
    gap: 0.4rem;
}
.content-grid.addie {
    margin: 0 auto;
	grid-template-columns: repeat(14, 1fr);
	gap: 0.1rem;
	position: relative;
	width: 100%;
	align-items: center;
	justify-items: center;

}
.cbox {
    background-color: white;
    border-radius: 0.5rem;
    text-align: center;
    padding: 1vw 2vw;
	grid-column: span 2;
}
.cbox a {
    text-decoration: none;
	color: inherit;  
}
.cbox.hasab {
    grid-column: 1 / -1;
    padding: 0 0 0.7rem 0;
}
.cbox ul{
	text-align: left;
	padding: 0 0 0 1rem;
}
.kepf{
	font-size: 0.8rem;
    margin: 0;
	font-weight: 600;
	font-style: normal;
	text-align: center;
	
}
.abox {
	background: #fff;
	border: 0.15rem solid var(--process-cyan);
	border-radius: 0.5rem;
	padding: 0.5rem;
	text-align: center;
	width: 7.73rem;
	height: 1rem;
	align-items: center;
	cursor: pointer;
	transition: transform 0.3s ease;
	position: relative;
	display: flex;
	justify-content: center;
	font-size: 1em;
}

.abox.active {
    background-color: var(--red-munsell);
    color: white;
	border-color: var(--red-munsell);
}
.abox.active .nagyb {
    color: white;
}

.nagyb {
    color: var(--red-munsell);
    font-weight: 900;
    display: inline-block;
}

.nybox {
	height: 1.5rem;
	position: relative;
	display: flex;
	font-size: 1em;
	width: 100%;
}
.anyil {
    width: 2rem;
    height: 1rem;
    position: relative;
    background-color: transparent;
    display: flex;
    align-items: center;
    opacity: 0; /* Alapállapot */
    /* Az animációt eltávolítjuk */
}

.anyil.animate {
    animation: fadeInArrow 0.5s ease forwards;
}

.anyil.le{
	transform: rotate(90deg);
}

.line {
	height: 0.25rem; 
	width: 80%; 
	background-color: black;
	position: relative;
}

.arrow {
	width: 0;
	height: 0;
	border-top: 0.4rem solid transparent;
	border-bottom: 0.4rem solid transparent;
	border-left: 0.8rem solid black; /* Nyíl színe */
	position: absolute;
	right: 0; /* A nyíl a doboz jobb szélén helyezkedik el */
}

.cbox:has(a):hover {
    transform: scale(1.02);
    box-shadow: 0 0.5rem 0.7rem rgba(0, 0, 0, 0.2);
	transition: transform 0.3s, box-shadow 0.3s;

}

.cbox img {
    width: 100%;
    border-radius: 0.5rem;
	max-width: 20rem; 
	display: block; 
	margin: 0 auto;
}

h1 {
    font-size: 3.23rem;
    color: var(--process-cyan);
    font-family: "Outfit", serif;
	font-optical-sizing: auto;
	font-weight: 800;
	font-style: normal;
	margin: 0; 
	text-align: left;
	padding: 0;
	
}

h2 {
    font-size: 1.6em;
    margin: 0.7rem 0 0 0;
    color: var(--red-munsell);
    font-family: "Outfit", serif;
	font-optical-sizing: auto;
	font-weight: 800;
	font-style: normal;
	text-align: center;
}
h3 {
    font-size: 1.1em;
    margin: 1em 0 0 0;
    color: var(--night);
    font-family: "Outfit", serif;
	font-optical-sizing: auto;
	font-weight: 800;
	font-style: normal;
	text-align: center;
}
.h2b {
    color: var(--night);
    font-family: "Outfit", serif;
	font-optical-sizing: auto;
	font-weight: 800;
	font-style: normal;
	width: 100%; 
	text-align: center; 
	padding: 0;
	margin: 0;
}

footer {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--jade);
    color: var(--night);
	margin: 6rem 0 0 0;
}
@keyframes fadeInArrow {
    0% {
        opacity: 0;
        transform: translateX(-0.7rem);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
/* Modal alapstílusok */
.modal {
    display: none; /* Kezdetben rejtve */
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); /* Halvány háttér */
}

.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    width: 80%; /* Szélesség */
    max-width: 800px; /* Maximum szélesség */
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #000;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}




