@import "font.css";

body {
    font-family: Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F7F7F5;
    color: #333;
}

* {
    box-sizing: border-box;
    line-height: 1.4;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    font-family: BaskervvilleSCRegular, serif;
}
h1 {
    font-size: 2em;
}
h2 {
    font-size: 1.75em;
}

.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    overflow: hidden;
}

/* Fejléc (header) */
header {
    background-color: #D0CAB4;
    position: fixed;
    width: 100%;
    max-width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

section {
    scroll-margin-top: 40px; /* Állítsd be a megfelelő magasságot */
}

.logo {
    mix-blend-mode: multiply;
    background-color: rgba(255, 255, 255, 0.1); /* Biztosítás Safarihoz */
}

/* Navigációs sáv */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Menü elemei */
.nav-links {
    list-style: none;
    display: flex;
    gap: 16px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    padding: 8px 15px;
    position: relative;
    transition: .2s ease all;
    font-weight: bold;
}

.nav-links a::after {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    transition: .2s ease all;
    transform: scale(0);
    transform-origin: center;
}

.nav-links a:hover {
    /*color: #8e8a7c;*/
}

.nav-links a:hover::after {
    transform: scale(1);
    background-color: #fff;
}

/* Hamburger menü */
.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    color: black;
    fill: black;
    position: relative;
}

/* Tartalom */
main {
    padding-top: 65px;
    /*max-width: 900px;*/
    margin: 0 auto;
}

/* Lábléc (footer) */
footer {
    background-color: #D0CAB4;
    padding: 10px 20px;
    text-align: center;
}

footer p {
    margin: 0;
}

footer a{
	color: #4e4a3c; transition: color 0.2s ease;
}

.image-container {
    display: flex;
    gap: 32px; /* Távolság a képek között */
    overflow-x: auto; /* Vízszintes görgetés engedélyezése */
    overflow-y: hidden; /* Függőleges görgetés letiltása (opcionális) */
    scroll-snap-type: x mandatory; /* X tengelyen, kötelező csatolás */
    scroll-behavior: smooth; /* Sima görgetési animáció */
}

.image-container img {
    height: 300px; /* Vagy más méret */
    scroll-snap-align: center;
}

#home {
     height: 240px; 
	 position: relative;
}

.bg {
    background-color: #D0CAB4;
    height: 400px;
    position: absolute;
    width: 100%;
    z-index: -1;
}

.profile-img {
    width: 300px; 
}

.topics-list {
    list-style-type: none;
    padding-left: 0;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.topics-list li {
    flex: 1 1 0;
    font-weight: bold;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-left: 4px solid;
    max-width: 200px;
    min-width: 200px;
}

.topics-list li span {
    display: none;
}

.contact-list {
    list-style-type: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-list li span {
    font-size: x-large;
}

.contact-list li a {
    color: #8e8a7c;
    transition: color 0.2s ease;
}

.contact-list li a:hover {
    color: black;
}

.errorPage {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: Arial, sans-serif;
	background: #f9f9f9;
	color: #333;
}

.errorPage main {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.errorPage a {
	color: #8e8a7c; transition: color 0.2s ease;
}

/* Mobilnézet */
@media (max-width: 768px) {
    nav {
        position: relative;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 50%;
        right: 30px;
        transform: translateY(-50%);
        font-size: 24px;
        cursor: pointer;
        color: black;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: absolute;
        background: #D0CAB4;
        top: 50px;
        right: 0;
        width: 100%;
        padding: 0;
        height: 0;
        margin: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        height: 160px;
    }

	#home {
		height: 300px !important;
	}
	#home > .bg {
		height: 300px !important;
	}
}

@media (max-width: 680px) {
	#home {
		height: auto !important;
	}
	#home > .bg {
		top: 0;
		bottom: 0;
		height: unset !important;
	}

	#about .content > div {
		width: auto !important;
	}
	
	#process img {
		width: 60% !important;
	}
}
@media (max-width: 400px) {
	#process img {
		width: 100% !important;
		padding: 15px 0 !important;
	}
	#home .content > div > div {
		min-width: unset !important;
	}
}