/* barlow-100 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 100;
  src: url('../fonts/barlow-v13-latin_latin-ext-100.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* barlow-100italic - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Barlow';
  font-style: italic;
  font-weight: 100;
  src: url('../fonts/barlow-v13-latin_latin-ext-100italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* barlow-200 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 200;
  src: url('../fonts/barlow-v13-latin_latin-ext-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* barlow-200italic - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Barlow';
  font-style: italic;
  font-weight: 200;
  src: url('../fonts/barlow-v13-latin_latin-ext-200italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* barlow-300 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/barlow-v13-latin_latin-ext-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* barlow-300italic - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Barlow';
  font-style: italic;
  font-weight: 300;
  src: url('../fonts/barlow-v13-latin_latin-ext-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* barlow-regular - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/barlow-v13-latin_latin-ext-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* barlow-italic - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Barlow';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/barlow-v13-latin_latin-ext-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* barlow-500 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/barlow-v13-latin_latin-ext-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* barlow-500italic - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Barlow';
  font-style: italic;
  font-weight: 500;
  src: url('../fonts/barlow-v13-latin_latin-ext-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* barlow-600 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/barlow-v13-latin_latin-ext-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* barlow-600italic - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Barlow';
  font-style: italic;
  font-weight: 600;
  src: url('../fonts/barlow-v13-latin_latin-ext-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* barlow-700 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/barlow-v13-latin_latin-ext-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* barlow-700italic - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Barlow';
  font-style: italic;
  font-weight: 700;
  src: url('../fonts/barlow-v13-latin_latin-ext-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* barlow-800 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/barlow-v13-latin_latin-ext-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* barlow-800italic - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Barlow';
  font-style: italic;
  font-weight: 800;
  src: url('../fonts/barlow-v13-latin_latin-ext-800italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* barlow-900 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 900;
  src: url('../fonts/barlow-v13-latin_latin-ext-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* barlow-900italic - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Barlow';
  font-style: italic;
  font-weight: 900;
  src: url('../fonts/barlow-v13-latin_latin-ext-900italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* Globális változók */
:root {
    --nav-text-color: #a99387;
    --nav-hover-text-color: #8d7a70;

    --light-background-color: #efe1d9;
    --dark-background-color: #6e6967;

    --primary-title-text-color: #8b7979;
    --secondary-title-text-color: #afaca8;

    --primary-text-color: #8b7979;
    --secondary-text-color: #c8bdb7;

    --btn-background-color: #6e6967;
    --btn-hover-background-color: #88817e;
    --btn-text-color: #c2adad;
    --btn-hover-text-color: #c7c0c0;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* 600px and down */
body {
    display: grid;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    background-color: var(--light-background-color);
    min-height: 100vh;
    height: 100%;
}

/* Navigation általános beállítások */
nav {
    grid-area: nav;
    background-color:transparent;
    position: fixed;
    z-index: 100;
    top: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: center;
    width: 100%;
}

nav.transparent {
    background-color: transparent;
}

nav.solid {
    background-color: rgba(0, 0, 0, 0.61); 
}

nav .logo-container {
    width: 5.5em;
    height: 5.5em;
}

nav .logo-container img {
    width: 100%;
    height: 100%;
}

/* Normál menü mobil nézetben */
.navbar {
    display: none;
}

/* Mobil menü */
.hamburger {
    display: block;
    position: relative;
    padding: 20px;
}

.dropdown-menu {
    background-color: transparent;
    backdrop-filter: blur(30px);
    width: 100%;
    height: 0;
    position: absolute;
    top: 100%;
    right: 0;
    overflow: hidden;
    list-style: none;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, height 0.3s ease-in-out;
}

.dropdown-menu.open {
    height: auto; 
    opacity: 1;
    visibility: visible;
    padding: 10px;
}

.toggle-btn {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

.toggle-btn i {
    display: inline-block;
    width: 24px;              
    height: 24px;             
    background-image: url('../webfonts/bars-solid-full.svg');
    filter: brightness(0) saturate(100%) invert(65%) sepia(8%) saturate(752%) hue-rotate(337deg) brightness(92%) contrast(90%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.toggle-btn .fa-xmark {
    display: inline-block;
    width: 24px;              
    height: 24px;             
    background-image: url('../webfonts/xmark-solid-full.svg');
    filter: brightness(0) saturate(100%) invert(65%) sepia(8%) saturate(752%) hue-rotate(337deg) brightness(92%) contrast(90%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.dropdown-menu li {
    padding: 15px;
    position: relative;
    
}

.dropdown-menu li a {
    text-decoration: none;
    color: var(--nav-text-color);
    display: block;
    font-size: 22px;
}

.dropdown-menu > li:hover > a  {
    color: var(--nav-hover-text-color);
}

/* Header */
header {
    grid-area: header;
}

/* Main */
main {
    grid-area: main;
    display: grid;
    background-color: var(--light-background-color);
}

/* Footer */
footer {
    grid-area: footer;
    background-color: var(--dark-background-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
    padding: 20px 0;
}

footer .footer-nav {
    padding: 20px 0;
}

footer .footer-nav ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

footer .footer-nav a {
    color: var(--secondary-text-color);
    text-decoration: none;
}

footer .footer-nav a:hover {
    color: var(--btn-hover-text-color);
}

footer .social-media {
    list-style-type: none;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-evenly;
    gap: 20px;
}

.social-media li i {
    display: inline-block;
    filter: brightness(0) saturate(100%) invert(76%) sepia(12%) saturate(186%) hue-rotate(337deg) brightness(98%) contrast(94%);
    width: 32px;
    height: 32px;
    background-repeat: no-repeat;
    background-position: center center; 
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

.social-media .fa-facebook {
    background-image: url('../webfonts/facebook-brands-solid-full.svg');
}

.social-media .fa-square-instagram {
    background-image: url('../webfonts/square-instagram-brands-solid-full.svg');
}

.social-media .fa-tiktok {
    background-image: url('../webfonts/tiktok-brands-solid-full.svg');
}

.social-media li i:hover {
    cursor: pointer;
    filter: brightness(0) saturate(100%) invert(90%) sepia(11%) saturate(87%) hue-rotate(316deg) brightness(86%) contrast(88%);
    transform: scale(1.2);
}

#top {
    position: fixed;
    bottom: 30px; 
    right: 30px;  
    padding: 10px;
    cursor: pointer;
    display: none; 
    z-index: 1000; 
}

#top button {
    background-color: transparent;
    padding: 5px;
    border: none;
}

#top button i {
    display: inline-block;
    filter: brightness(0) saturate(100%) invert(8%) sepia(30%) saturate(346%) hue-rotate(5deg) brightness(94%) contrast(86%);
    background-image: url('../webfonts/angle-up-solid-full.svg');
    width: 32px;
    height: 32px;
    background-repeat: no-repeat;
    background-position: center center;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

#top button:hover i {
    cursor: pointer;
    filter: brightness(0) saturate(100%) invert(87%) sepia(4%) saturate(266%) hue-rotate(314deg) brightness(91%) contrast(87%);
    transform: scale(1.2);
    border-radius: 50%;
    border: 3px solid var(--btn-hover-text-color);
}

/* 600px and up */
@media only screen and (min-width: 600px) {
    body {
        font-size: 16px;
    }
}

/* 768px and up */
@media only screen and (min-width: 768px) {
    body {
        font-size: 18px;
    }
}

/* (992px and up) */
@media only screen and (min-width: 992px) {
    body {
        font-size: 16px;
    }
    /* Navigation */
    .hamburger {
        display: none;
    }

    .toggle-btn {
        display: none;
    }

    nav {
        display: flex;
        flex-direction: row;
        justify-content: center;
        height: 88px;
    }

    nav a {
        font-size: 20px;
        padding: 20px;
    }

    .navbar {
        display: flex;
    }

    .main-menu {
        display: flex;
        list-style: none;
        gap: 2em;
        justify-content: space-around;
        align-items: center;
    }

    .main-menu > li {
        position: relative;
    }

    .main-menu li a {
        text-decoration: none;
        color: var(--nav-text-color);
        font-size: 20px;
        padding: 10px;
        display: block;
    }

    .main-menu > li:hover > a {
        color: var(--nav-hover-text-color);
    }

    .main-menu li:focus-within > .sub-menu,
    .main-menu li:hover > .sub-menu {
        display: initial;
    }

    nav a {
        text-decoration: none;
        color: var(--primary-color);
        display: block;
        padding: 20px;
        font-size: 20px;
    }

    .sub-menu {
        display: none;
        position: absolute;
        z-index: 1000;
        top: 51px;
        left: 0;
        background-color: var(--background-color);
        border-radius: 14px;
        box-shadow: 2px 2px 25px rgba(0, 0, 0, 0.2);
        list-style: none;
        padding: 0;
        min-width: 200px;
    }

    .sub-menu > li {
        width: 100%;
        padding: 10px;
    }

    .sub-menu a {
        text-decoration: none;
        color: var(--primary-color);
    }

    .sub-menu >li:hover > a {
        color: var(--hover-text-color);
    }

    /* Footer */
    footer {
        flex-direction: row;
    }
}

/* 1200px and up) */
@media only screen and (min-width: 1200px) { }