/* Alap beállítások */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #6A4E23; /* Sötét barna szöveg szín */
    background: #F7F1E1; /* Krémes háttér szín */
    overflow-x: hidden;
}

/* Fejléc */
header {
    background: url('background.jpg') no-repeat center center; /* Háttérkép középre igazítva */
    background-size: cover; /* Kép méretezése, hogy kitöltse a területet */
    color: #fff;
    padding: 3rem 1rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* LOGO bal oldalon */
header .logo-container {
    position: absolute;
    right: 150px; /* A logó fix bal oldali pozíciója */
    flex: 0 0 600px; /* A logó fix szélessége */
    margin-right: 20px; /* Térköz a logó és a szöveg között */
}

header .logo-container img {
    width: 180px; /* Maximális szélesség */
    height: 180px; /* Maximális magasság */
    object-fit: cover; /* Kép illesztése a téglalap alakhoz */
    border: 5px solid #C28E2F; /* Arany színű körvonal */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}	

header .logo-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Cím és mottó középen */
header .header-text {
    text-align: center; /* A cím és a mottó középre igazítása */
    display: flex;
    flex-direction: column; /* Cím és mottó egymás alatt */
    justify-content: center;
    align-items: center;
}

header h1 {
    font-size: 3rem;
    font-weight: bold;
    animation: title-animation 3s ease-in-out infinite; /* Végtelen animáció */
	font-style: italic; /* Dőlt betűs stílus */
}

header .motto {
    font-size: 1.2rem;
    margin-top: 5px; /* Térköz a cím és a mottó között */
	font-style: italic; /* Dőlt betűs stílus */
}

/* Title Animáció */
@keyframes title-animation {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    25% {
        opacity: 1;
        transform: translateY(0px);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-10px);
    }
    75% {
        opacity: 1;
        transform: translateY(0px);
    }
    100% {
        opacity: 0.8;
        transform: translateY(-5px);
    }
}
/* Menü */
nav {
    background: #C28E2F; /* Arany szín */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}



.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 1rem;
}

.nav-menu a {
    text-decoration: none;
    color: #C28E2F; /* Alapszín: arany */
    font-weight: bold;
    font-size: 1rem;
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #FFF8DB; /* Alap szín */
    border-radius: 8px;
    transition: background 0.3s ease, color 0.3s ease;
}

.nav-menu a:hover {
    background: #FFFFFF; /* Hover szín */
    color: #C28E2F; /* Hover színnél arany szín */
}

/* Termékek rácsos elrendezés */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.product-item {
    background-color: #fff;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #FAEBD7; /* Krémszínű háttér a termékekhez */
}

.product-item img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.product-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #C28E2F; /* Arany szín */
}

.product-item p {
    font-size: 1rem;
    color: #6A4E23; /* Sötétebb barna szín */
}

/* Hover effekt a termékek kockáján */
.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid #C28E2F; /* Arany szegély a hover effektushoz */
}

/* Szöveges szekciók */
section {
    margin-bottom: 3rem;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #FAEBD7; /* Krémszínű háttér a szekciókhoz */
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #C28E2F;
    text-align: center;
}

section p {
    font-size: 1rem;
    text-align: center;
    margin: 0.5rem 0;
    color: #6A4E23;
}

/* Lábléc */
footer {
    background: #C28E2F; /* Sötétbarna háttér */
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* Reszponzív tervezés */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-item h3 {
        font-size: 1.2rem;
    }

    .product-item p {
        font-size: 0.9rem;
    }
}

main {
    padding: 20px;
}

.error-message {
    color: red;
    font-size: 14px;
}

.product-upload {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.back-button {
    background-color: #C28E2F; /* Arany szín */
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 15px;
    display: block;
}

.back-button:hover {
    background-color: #F6D4AE; /* Világosabb arany szín */
    transform: scale(1.05);
}

a {
    text-decoration: none;  /* Eltávolítja az aláhúzást */
    color: inherit;         /* Megőrzi az öröklődő színt (pl. a szöveg színét) */
}

/* A social-links div elhelyezése a jobb felső sarokba */
.social-links1 {
    position: fixed;
    top: 0px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.social-links2 {
    position: fixed;
    top: 0px;
    right: 75px;  /* A második div 5px-től távolabbra kerül az elsőtől */
    display: flex;
    gap: 10px;
}

/* Alapértelmezett ikon stílus */
/* Alap szín beállítása a kockáknak */
.social-icon1 {
    display: inline-block;
    width: 50px;  /* Kocka szélesség */
    height: 50px; /* Kocka magasság */
    background-color: #ccc;  /* Alap szürke háttér */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;  /* Animáció a színváltásra */
}

/* Hover állapot (amikor az egér a képre kerül) */
.social-icon1:hover {
    background-color: #3b5998;  /* Facebook kocka színe kék */
    color: white;  /* Fehér szín az ikonra */
}

/* Facebook szín (kék-fehér) */
.social-icon1 i.fa-facebook-f:hover {
    background-color: #3b5998;  /* Facebook kék */
    color: white;  /* Fehér szín az ikonra */
}


.social-icon2 {
    display: inline-block;
    width: 50px;  /* Kocka szélesség */
    height: 50px; /* Kocka magasság */
    background-color: #ccc;  /* Alap szürke háttér */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;  /* Animáció a színváltásra */
}

/* Hover állapot (amikor az egér a képre kerül) */
.social-icon2:hover {
    background-color: #e1306c;  /* Facebook kocka színe kék */
    color: white;  /* Fehér szín az ikonra */
}

/* Instagram szín (piros-fehér) */
.social-icon2 i.fa-instagram:hover {
    background-color: #E1306C;  /* Instagram rózsaszín */
    color: white;  /* Fehér szín az ikonra */
}


@media (max-width: 768px) {
    .nav-menu a {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr; /* Egy oszlopos elrendezés */
    }
}

@media (max-width: 768px) {
    .social-icon1, .social-icon2 {
        width: 40px;
        height: 40px;
    }
}

/* Adatkezelési feltételek link aláhúzása */
.privacy-policy-link {
    text-decoration: underline; /* Aláhúzott szöveg */
    color: #FFFF; /* Arany szín */
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.privacy-policy-link:hover {
    color: #F6D4AE; /* Világosabb arany szín hover esetén */
}


/* Facebook pattogás és kék villogás */
@keyframes bounceFacebook {
    0%, 100% {
        transform: translateY(0);
        background-color: #3b5998; /* Facebook kék */
    }
    50% {
        transform: translateY(-10px);
        background-color: #2d4373; /* Sötétebb Facebook kék */
    }
}

/* Instagram pattogás és rózsaszín villogás */
@keyframes bounceInstagram {
    0%, 100% {
        transform: translateY(0);
        background-color: #E1306C; /* Instagram rózsaszín */
    }
    50% {
        transform: translateY(-10px);
        background-color: #C2185B; /* Sötétebb Instagram rózsaszín */
    }
}

.social-icon1 {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #3b5998; /* Facebook alap kék */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounceFacebook 2s infinite;
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin-top: 20px; /* Eltolás a felső résztől */
}

.social-icon2 {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #E1306C; /* Instagram alap rózsaszín */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounceInstagram 2s infinite;
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin-top: 20px; /* Eltolás a felső résztől */
}

/* Mobil eszközökre kisebb méret */
@media (max-width: 768px) {
    .social-icon1, .social-icon2 {
        width: 40px;
        height: 40px;
    }
}

/* Hover effekt a termékek kockáján */
.product-item:hover {
    transform: translateY(-5px) scale(1.05); /* Enyhe eltolás és nagyítás */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Árnyék erősítése */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animáció */
}

/* Hover effekt a képekre külön */
.product-item img {
    transition: transform 0.3s ease; /* Animáció a képhez */
}

.product-item img:hover {
    transform: scale(1.1); /* Kép nagyítása hover közben */
}

/* Szövegre vonatkozó effekt */
.product-item h3:hover, .product-item p:hover {
    color: #C28E2F; /* Arany szín a szövegre hover közben */
    transition: color 0.3s ease; /* Színváltozás animáció */
}

/* Szövegek dizájnja és animációk */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.animated-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #C28E2F; /* Arany szín */
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease-in-out forwards;
}

.animated-description {
    font-size: 1.2rem;
    color: #6A4E23; /* Sötétebb barna */
    font-style: italic;
    animation: fadeInUp 1.5s ease-in-out forwards;
}

/* Fade-in és felcsúszás animáció */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Címsor alatti dekoratív vonal */
.section-header::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;
    background: #C28E2F; /* Arany szín */
    margin: 1rem auto 0;
    animation: growLine 1.5s ease-in-out forwards;
}

@keyframes growLine {
    0% {
        width: 0;
    }
    100% {
        width: 100px;
    }
}

@media (max-width: 768px) {
    /* A logó eltüntetése mobil nézetben */
    header .logo-container {
        display: none; /* Eltünteti a logót */
    }

    /* Navigáció optimalizálás */
    .nav-menu {
        flex-direction: column; /* A menüelemek oszloposan jelenjenek meg */
        align-items: center; /* Középre igazítás */
        width: 100%; /* A teljes szélesség biztosítása */
    }

    .nav-menu li {
        margin: 0.5rem auto; /* Automatikus margó a középre igazításhoz */
        width: 80%; /* Mindegyik menüpont azonos szélességű */
    }

    .nav-menu a {
        font-size: 1rem;
        text-align: center;
        display: block;
        padding: 0.8rem 0; /* Egyforma magasság */
        background: #FFF8DB; /* Háttérszín */
        border: 2px solid #C28E2F; /* Vékony arany keret */
        box-sizing: border-box; /* Szegélyek beszámítása */
        width: 100%; /* Az `li` által definiált szélesség kitöltése */
    }

    .nav-menu a:hover {
        background: #FFFFFF; /* Hover effekt */
        color: #C28E2F; /* Szöveg szín hover alatt */
    }
}