/*===== GOOGLE FONTS =====*/

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");
/*===== VARIABLES CSS =====*/

:root {
    --header-height: 5rem;
    /*===== Colors =====*/
    --first-color: #3E0E12;
    --first-color-dark: #2F0A0D;
    --text-color: #524748;
    --first-color-light: #7B6F71;
    --first-color-lighten: #FBF9F9;
    --premium-color: #78b249;
    --scroll-bar-color: #d5fdb4;
    --scroll-thumb-color: #78b249;
    /*===== Font and typography =====*/
    --body-font: 'Roboto', sans-serif;
    --biggest-font-size: 2rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1.125rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;
    /*===== Font weight =====*/
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;
    /*===== Margenes =====*/
    --mb-1: .5rem;
    --mb-2: 1rem;
    --mb-3: 1.5rem;
    --mb-4: 2rem;
    --mb-5: 2.5rem;
    --mb-6: 3rem;
    /*===== z index =====*/
    --z-normal: 1;
    --z-tooltip: 10;
    --z-fixed: 100;
}

@media screen and (min-width: 768px) {
    :root {
        --biggest-font-size: 3.5rem;
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;
    }
}

/*===== BASE =====*/

*, ::before, ::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3, ul, p {
    margin: 0;
}

h2, h3 {
    font-weight: var(--font-semi-bold);
}

ul {
    padding: 0;
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/*===== CLASS CSS =====*/

.section {
    padding: 4rem 0 2rem;
}

.section-title, .section-subtitle {
    text-align: center;
}

.section-title {
    font-size: var(--h1-font-size);
    color: var(--premium-color);
    margin-bottom: var(--mb-3);
}

.section-subtitle {
    display: block;
    font-size: var(--smaller-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--first-color-light);
    text-transform: uppercase;
}

/*===== LAYOUT =====*/

.bd-container {
    max-width: 1560px;
    width: calc(100% - 2rem);
    margin-left: var(--mb-2);
    margin-right: var(--mb-2);
}

.bd-grid {
    display: grid;
    gap: 1.5rem;
}

.l-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    transition-duration: 500ms;
}

@media screen and (max-width: 768px) {
    .l-header {
        background-color: #79aa51;
    }
}

/*===== NAV =====*/

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo img {
    width: 230px;
    height: auto;
}

.l-header.sticky {
    background-color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    height: 80px;
    position: fixed;
    top: 0;
    z-index: 999;
}

/* Change background header */

.scroll-header {
    background-color: var(--first-color-lighten);
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

.scroll-header .nav__logo, .scroll-header .nav__toggle, .scroll-header .nav__link {
    color: var(--first-color-dark);
}

.scroll-header .nav__menu {
    background-color: var(--first-color-lighten);
}

/*===== SCROLL TOP =====*/

.scrolltop {
    position: fixed;
    right: 1rem;
    bottom: -20%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .5rem;
    background: rgba(123, 111, 113, .7);
    border-radius: .5rem;
    z-index: var(--z-tooltip);
    transition: .4s;
    visibility: hidden;
}

.scrolltop:hover {
    background-color: var(--first-color);
}

.scrolltop__icon {
    font-size: 2rem;
    color: var(--first-color-lighten);
}

/* Show scroll top */

.show-scroll {
    visibility: visible;
    bottom: 1.5rem;
}

/*===== HOME =====*/

.home {
    overflow: hidden;
}

.home__container {
    position: relative;
    grid-template-rows: repeat(2, max-content);
    align-content: space-around;
    row-gap: 2rem;
    padding-top: 5rem;
}

.home__data {
    border-left: 4px solid var(--first-color-lighten);
    color: var(--first-color-lighten);
    padding-left: 1.5rem;
    z-index: var(--z-tooltip);
    margin-bottom: 100px;
}

.home__name {
    font-size: var(--biggest-font-size);
    color: var(--first-color-lighten);
}

.home__img {
    height: 500px;
    width: 100%;
    position: relative;
    background-size: cover !important;
}

/*BUTTONS*/

.button {
    display: inline-block;
    background-color: var(--first-color);
    color: var(--first-color-lighten);
    padding: .75rem 1rem;
    border-radius: .25rem;
    transition: .3s;
}

.button:hover {
    background-color: var(--first-color-dark);
}

.button-light {
    background-color: var(--first-color-light);
}

.button-white {
    background-color: var(--first-color-lighten);
    color: var(--first-color-dark);
}

.button-white:hover {
    background-color: var(--first-color-lighten);
}

.button-link {
    background: none;
    color: var(--first-color);
    padding: 0;
}

.button-link:hover {
    background: none;
}

/* ÁSZF ALOLDAL */

.aszf {
    padding: 60px;
}

.aszf h3 {
    font-size: 1.3rem;
    margin-top: 10px;
}

.aszf h2,
.aszf h3 {
    color: var(--first-color);
}

.aszf .current__pdf {
    display: flex;
    align-items: center;
}

.aszf .current__pdf img {
    margin-left: 30px;
}

.aszf .old__pdf {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.aszf .old__pdf img {
    margin-left: 30px;
}

.aszf .old {
    margin-top: 50px;
}

/*========== SCROLL BAR ==========*/

::-webkit-scrollbar {
    width: .60rem;
    background-color: var(--scroll-bar-color);
    border-radius: .5rem;
}

::-webkit-scrollbar-thumb {
    background-color: var(--scroll-thumb-color);
    border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-color);
}

/*===== MEDIA QUERIES =====*/

@media screen and (min-width: 768px) {
    body {
        margin: 0;
    }
    .section {
        padding-top: 6rem;
    }
    .section-title {
        margin-bottom: var(--mb-5);
    }
    .home__container {
        grid-template-rows: max-content .5fr;
        align-content: center;
        padding-top: 10rem;
    }
}

@media screen and (min-width: 1024px) {
    .bd-container {
        margin-left: auto;
        margin-right: auto;
    }
}