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

/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3rem;

  /*========== Colors ==========*/
  --first-color: #7f5539ff;
  --first-color-alt: #9c6644ff;
  --title-color: #9c6644ff;
  --text-color: #393939;
  --text-color-light: #e6ccb2ff;
  --body-color: white;
  --container-color: #FFFFFF;

  --almond: #ede0d4ff;
  --desert-sand: #e6ccb2ff;
  --burlywood: #ddb892ff;
  --cafe-au-lait: #b08968ff;
  --coffee: #7f5539ff;
  --brown-sugar: #9c6644ff;

  /*========== Font and typography ==========*/
  --body-font: 'Poppins', sans-serif;
  --biggest-font-size: 2.25rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== Margenes ==========*/
  --mb-1: .5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;

  /*=========== box shadow ==========*/
  --box-shadow: 0 2px 4px rgba(3,74,40,.55);
}

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

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

html{
  scroll-behavior: smooth;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  -o-hyphens: auto;
  hyphens: auto;
}

/*========== Variables Dark theme ==========*/
body.dark-theme{
  --title-color: #F1F3F2;
  --text-color: #C7D1CC;
  --body-color: #1D2521;
  --container-color: #27302C;
  --box-shadow: 0 2px 4px rgba(219, 228, 224, 0.15);
}

/*========== Button Dark/Light ==========*/
.change-theme{
  position: absolute;
  right: 1rem;
  top: 1.8rem;
  color: var(--text-color);
  font-size: 1rem;
  cursor: pointer;
}

body{
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
}

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

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

a{
  text-decoration: none;
}

img{
  max-width: 100%;
  height: auto;
  border-radius: 2px;
}

/*========== CLASS CSS ==========*/
.section{
  padding: 4rem 0 2rem;
}

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

.section-title{
  font-size: var(--h1-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-3);
  width: 100%;
}
.about-title2 {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-3);
  text-align: center;
  margin-top: 0;
}

.section-subtitle{
  display: block;
  color: var(--first-color);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-1);
}

/*========== LAYOUT ==========*/
.bd-container{
  max-width: 960px;
  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);
  background-color: var(--body-color);
}

/*========== NAV ==========*/
#title_img {
  width: 50%;
}
.nav{
  max-width: 1024px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media screen and (max-width: 768px){
  .nav__menu{
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    padding: 1.5rem 0 1rem;
    text-align: center;
    background-color: var(--body-color);
    transition: .4s;
    box-shadow: 0 4px 4px rgba(0,0,0,.1);
    border-radius: 0 0 1rem 1rem;
    z-index: var(--z-fixed);
  }
}

.nav__item{
  margin-bottom: var(--mb-2);
}

.nav__link, .nav__logo, .nav__toggle{
  color: var(--text-color);
  font-weight: var(--font-medium);
}

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

.nav__link{
  transition: .3s;
}
.nav__link:hover{
  color: var(--first-color);
}

.nav__toggle{
  font-size: 1.3rem;
  cursor: pointer;
}
@media screen and (min-width: 900px) {
  .nav__link {
    font-size: var(--h4-font-size);
  }
  .home {
    max-width: 1400px;
    margin: auto;
  }
}
/* Show menu */
.show-menu{
  top: var(--header-height);
}

/* Active menu */
.active-link{
  color: var(--first-color);
}
/* Change background header */
.scroll-header{
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* Scroll top */
.scrolltop{
  position: fixed;
  right: 1rem;
  bottom: -20%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: .3rem;
  background: var(--first-color-alt);
  border-radius: .4rem;
  z-index: var(--z-tooltip);
  transition: .4s;
  visibility: hidden;
}

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

.scrolltop__icon{
  font-size: 1.8rem;
  color: var(--body-color);
}

/* Show scrolltop */
.show-scroll{
  visibility: visible;
  bottom: 1.5rem;
}

#faforgacs {
  width: 20%;
  max-width: 100px;
}

/*========== HOME ==========*/
.home {
  background-repeat: no-repeat;
  background-image: url(/assets/img/background_forest_edited.jpeg);
  width: 100%;
  height: 100vh;
  background-size: cover;
  position: relative;
}
.home__container{
  height: calc(100vh - var(--header-height));
  align-content: center;
}

.home__title{
  font-size: var(--biggest-font-size);
  color: white;
  margin-bottom: var(--mb-1);
  font-weight: bold;
  text-shadow:1px 1px 10px black, 1px 1px 10px black;
}

.home__subtitle{
  font-size: var(--h3-font-size);
  color: whitesmoke;
  text-align: justify;
  font-weight: 500;
  text-shadow:1px 1px 10px black, 1px 1px 10px black;
}

.home__img{
  width: 300px;
  justify-self: center;
}

/* =========  PALYAZAT ========= */
.palyazat__container {
  display: flex;
  flex-direction: row;
  gap: 4%;
  position: absolute;
  justify-content: flex-end;
  bottom: 0;
  right: 0;
}
.palyazat__item {
  max-width: 30%;
}
/*========== BUTTONS ==========*/
.button{
  display: inline-block;
  background-color: var(--first-color);
  color: #FFF;
  padding: .75rem 1rem;
  border-radius: .5rem;
  transition: .3s;
}

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

/*========== ABOUT ==========*/
.about__container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 5%;
}
.about__item {
  max-width: 40%;
  text-align: center;
  background-color: var(--container-color);
  border-radius: .5rem;
  box-shadow: var(--box-shadow);
  padding: .75rem; 
  margin-bottom: var(--mb-5);
  min-height: 156px;
}
.about__description {
  text-align: center  ;
}
ion-icon {
  font-size: 25px;
  color: var(--first-color);
}

/*========== SERVICES ==========*/
.services__container{
  row-gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.services__content{
  text-align: center;
  background-color: var(--container-color);
  border-radius: .5rem;
  box-shadow: var(--box-shadow);
  padding: .75rem;  
}

.services__img{
  width: 64px;
  height: 64px;
  fill: var(--first-color);
  margin-bottom: var(--mb-2);
}

.services__title{
  font-size: var(--h3-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-1);
}

.services__description{
  padding: 0 1.5rem;
}

/*========== product ==========*/
.product__listing__container {
  display: flex;
  justify-content: center;
  gap: 15%;
  flex-wrap: wrap;
  margin-bottom: 4%;
}
.product__listing {
  position: relative;
  width: 350px;
  min-height: 300px;
  background: var(--body-color);
  border-radius: 2%;
  padding: 0 50px;
  box-shadow: var(--box-shadow);
}
.product__listing .list {
  position: relative;
  display: flex;
  align-items: center;
  margin: 20px 0;
  cursor: pointer;
}
.product__listing .list::before {
  content: '';
  position: absolute;
  left: 0px;
  width: 45px;
  height: 45px;
  background: var(--cafe-au-lait);
  border-radius: 22.5px;
  box-shadow: var(--box-shadow);
  transition: 0.5s;
}
.product__listing .list:hover::before {
  width: 100%;
}
.product__listing .list .rank {
  position: relative;
  min-width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  margin-right: 10px;
}
.product__listing .list .rank::before {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  background: #fff;
  border-radius: 30px;
  transform: scale(0);
  transition: 0.5s;
}
.product__listing .list:hover .rank::before {
  transform: scale(1);
}
.product__listing .list .rank span {
  position: relative;
  font-weight: 600;
  font-size: 1em;
  color: #fff;
  transition: 0.5s;
}
.product__listing .list .creator {
  position: relative;
  line-height: 1.15em;
}
.product__listing .list .creator h4 {
  font-weight: 600;
  color: var(--coffee);
  transition: 0.5s;
  font-size: var(--h3-font-size);
}
.product__listing .list:hover .creator h4{
  color: #fff;
}
/*======= PRODUCT GALLERY ===============*/
.container{
	max-width: 1170px;
	margin:auto;
}
.row{
	display: flex;
	flex-wrap: wrap;
  justify-content: center;
}
img{
	max-width: 100%;
	vertical-align: middle;
}
h2 {
	margin: 60px 15px 0;
	padding: 0;
	font-weight: 300;
}
h2 span {
	margin-left: 1em;
	color: #aaa;
	font-size: 85%;
}

/* ========== */

/* .gallery-item-inner{
	height:250px;
	width: 350px;
	border: 10px solid #fff;
	overflow: hidden;
}
.gallery-item-inner img {
	height: 100%;
	width: 100%;
	object-fit: cover;
	transition: .2s linear;
} */

.gallery-item-inner:hover img {
	transform: scale(1.1);
  transition: .2s;
}
.popup-image {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	z-index: 100;
	display: none;
	background: rgba(0, 0, 0, 0.9);
}
.popup-image span {
	position: absolute;
	top: 0;
	right: 10px;
	font-size: 40px;
	color: #fff;
	z-index: 100;
	cursor: pointer;
}
.popup-image img {
	position: absolute;
	top: 50%;
	left:50%;
	transform: translate(-50%, -50%);
	border: 5px solid var(--first-color);
	width: 750px;
	object-fit: cover;

}
@media screen and (max-width: 768px) {
	.popup-image img {
		width: 95%;
	}
}
/* =========== */
.gallery-item-inner {
	position: relative;
}

.gallery-item-inner span {
	position: absolute;
	bottom: -20px;
  left: 0;
  z-index: -1;
	display: block;
	margin: 0;
	padding: 0;
	color: #444;
	font-size: 18px;
	text-decoration: none;
	text-align: center;
	-webkit-transition: .2s ease-in-out;
	transition: .3s ease-in-out;
	opacity: 0;
}
figure {
	margin: 0;
	padding: 0;
	background: #fff;
	overflow: hidden;
  border: 3px solid var(--first-color);
  border-radius: 5%;
}

figure:hover+span {
	bottom: -30px;
	opacity: 1;
}

.gallery{
	width: 90%;
	display: block;
	min-height: 100vh;
  margin: 0 auto;
  box-shadow: var(--box-shadow);
	padding: 100px 0;
}
.gallery-filter{
	padding: 0 15px;
	width: 100%;
	text-align: center;
	margin-bottom: 40px;
}
.filter-item{
	color: var(--first-color);
	font-size: 17px;
  border: 2px solid white;
	text-transform: uppercase;
	display: inline-block;
  border-radius: 20px;
  margin-right: 8px;
	cursor: pointer;
  padding: 8px 20px 8px 20px;
	line-height: 1.2;
	transition: all 0.3s ease;
}

.gallery .gallery-filter .filter-item.active {
	color: white;
  background: var(--first-color);
}
.gallery .gallery-item{
	width: calc(100% / 3);
	padding: 20px 15px;
  display: flex;
  justify-content: center;
}

.gallery .gallery-item-inner img{
	width: 100%;
}
.gallery .gallery-item.show{
	animation: fadeIn 0.5s ease;
}
.gallery__item__img {
  max-width: 250px;
}
@keyframes fadeIn{
	0%{
		opacity: 0;
	}
	100%{
		opacity: 1;
	}
}
.gallery .gallery-item.hide{
	display: none;
}
@media(max-width: 491px){
	.gallery .gallery-item{
		width: 50%;
	}
  .product__listing {
    margin-bottom: 5%;
  }
}
@media(max-width: 467px){
    .gallery .gallery-item{
		width: 100%;
	}
	.gallery .gallery-filter .filter-item{
		margin-bottom: 10px;
    font-size: var(--small-font-size);
	}
}
.gallery__title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-3);
  width: 100%;
  padding-top: 8%;
  text-align: center;
}

/*========== CONTACT ==========*/
iframe {
  width: 100%;
  height: 100%;
  border-radius: .5rem;
  justify-self: center;
}
.map {
  width: 100%;
  height: 100%;
}

.contact__info {
  display: flex;
  flex-direction: row;
  gap: 25px;
}
/*========== FOOTER ==========*/
.footer__container{
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  row-gap: 2rem;
}

.footer__logo{
  font-size: var(--h3-font-size);
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
}

.footer__description{
  display: block;
  font-size: var(--small-font-size);
  margin: .25rem 0 var(--mb-3);
}

.footer__social{
  font-size: 1.5rem;
  color: var(--title-color);
  margin-right: var(--mb-2);
}

.footer__title{
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-2);
}

.footer__link, .contact__description{
  display: inline-block;
  color: var(--text-color);
  margin-bottom: var(--mb-1);
}

.footer__link:hover, .contact__description:hover{
  color: var(--first-color);
  cursor: pointer ;
}

.footer__copy{
  text-align: center;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  margin-top: 3.5rem;
}

/*========== MEDIA QUERIES ==========*/
@media screen and (min-width: 576px){
  .home__container,
  .about__container{
    grid-template-columns: repeat(2,1fr);
    align-items: center;
  }

  .about__data, .about__initial,
  .contact__container, .contact__initial{
    text-align: initial;
  }

  .about__img{
    width: 380px;
    order: -1;
  }

  .contact__container{
    grid-template-columns: 1.75fr 1fr;
    align-items: center;
  }
  .contact__button{
    justify-self: center;
  }
  .about__description {
    text-align: left;
  }
  .about__data {
    margin-left: var(--mb-2);
  }
  .product__name{
    font-size: var(--normal-font-size);
  }
}

@media screen and (min-width: 769px){
  body{
    margin: 0;
  }
  .product {
    padding-top: 8rem;
  }

  .section{
    padding-top: 8rem;
  }

  .nav{
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__list{
    display: flex;
  }
  .nav__item{
    margin-left: var(--mb-3);
    margin-bottom: 0;
  }
  .nav__toggle{
    display: none;
  }
  #title_img {
    width: 100%;
  }
  #faforgacs {
    max-width: 70px;
  }

  .change-theme{
    position: initial;
    margin-left: var(--mb-2);
  }

  .home__container{
    height: 100vh;
    justify-items: center;
  }

  .services__container,
  .product__container{
    margin-top: var(--mb-6);
  }

  .product__container{
    grid-template-columns: repeat(3, 210px);
    column-gap: 4rem;
    justify-content: center;
  }
  .product__content{
    padding: 1rem;
  }
  .product__img{
    width: 180px;
  }
  .product__name{
    font-size: var(--normal-font-size);
  }
  #title_img {
    width: 180px;
  }
}
@media screen and (max-width: 850px) {
  .active-link, .nav__link {
    font-size: var(--small-font-size);
  }
}
@media screen and (min-width: 503px) and (max-width: 768px) {
  #faforgacs {
    max-width: 90px;
  }
  #title_img {
    max-width: 400px;
  }  
}
@media screen and (min-width: 960px){
  .bd-container{
    margin-left: auto;
    margin-right: auto;
  }
  .home {
    margin-bottom: 3%;
  }

  .home__img{
    width: 500px;
  }

  .about__container{
    column-gap: 7rem;
  }
  .about__item {
    max-width: 25%;
  }
  .product__name{
    font-size: var(--normal-font-size);
  }
  .product__container{
    grid-template-columns: repeat(3, 280px);
  }
  .nav__item {
    margin-left: var(--mb-3);
  }
  #title_img {
    width: 60%;
    width: 260px;
  }
}

/* For tall screens on mobiles y desktop*/
@media screen and (min-height: 721px) {
  .home__container {
    height: 550px;
}
.product__name{
  font-size: var(--normal-font-size);
}
}

/* ======= PÁLYÁZAT HTML, ABOUT HTML ============= */
.palyazat_oldal__container, .about_us__container {
  display: flex;
  align-items: center;
  flex-direction: column;
  flex-wrap: nowrap;
  margin: 0 10%;
}
.palyazat__title{
  font-size: var(--h1-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-3);
  width: 100%;
  margin-top: 2%;
}

.first__palyazat {
  margin-bottom: 1%;
  padding-top: 8%;
}
.second__palyazat {
  padding-top: 6%;
}
.palyazat__text, .about_us__text {
  text-align: justify;
}
hr {
  width: 100%;
  height: 5px;
  background: var(--first-color);
  border: 3px solid var(--first-color);
  border-radius: 5px;
}
.palyazat__footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
}
.palyazat__icon {
  font-size: 35px;
}
.back__tomain {
  position: relative;
  right: 0;
  bottom: 0;
}
.palyazat__img:hover {
  transform: scale(1.5);
  transition: 1s;
}

/*====== ABOUT =========*/
.about__btn {
  display: flex;
  justify-content: flex-end;
  margin-right: 3%;
}
.about__link {
  font-weight: normal;
  color: var(--title-color);
  font-size: var(--h3-font-size);
  box-shadow:inset 0px 1px 0px 0px #fff6af;
	background-color: var(--body-color);
	border-radius:6px;
	border:1px solid #7f5539;
	display:inline-block;
	cursor:pointer;
	padding:7px 10px;
	text-decoration:none;
	text-shadow:0px 1px 0px #ffee66;
}
.about__link:hover {
  background-color: var(--first-color);
  transition: 2s all ease-out;
  color: #fff;
}
.about_us__text {
  line-height: 1.6;
}
.about-title {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  width: 100%;
  text-align: left;
}
.about_us__title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-3);
  width: 100%;
  margin-top: 15%;
  text-align: center;
}
.about_past__img {
  float: right;
  border: 5px inset #7f5539;
}
#past__img_first {
  margin-left: 2%;
  transform: rotateY(3.142rad);
  width: 150px;
}
#past__img_second {
  float: left;
  margin-right: 2%;
  width: 220px;
}
@media screen and (max-width: 760px) {
  #past__img_first {
    width: 100px;
  }
  #past__img_second {
    width: 140px;
  }
  .first__palyazat, .second__palyazat {
    padding-top: 11%;
  }
  .about__btn {
    margin-top: 2%;
  }
}