:root {
  --main-color: #2a4209;
  --light-bg: rgba(255, 255, 255, 0.772);
  --dark-bg: #1d1d22e3;
  --text-color: #ced5db;
  --overlay-bg: rgba(0, 0, 0, 0.5);
}

#bgVideo {
  z-index: -1;
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%; 
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  /*background-image: url("./pictures/background.jpg");*/
  color: var(--text-color);
  display: grid;
  grid-template-rows: auto 1fr auto;
  scroll-behavior: smooth;
}


/*Fejléc*/
.custom-navbar {
  background-color: var(--dark-bg);
  padding: 0.5rem 1rem;
  height: 7rem;
  a {
    margin-left: 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 0.1rem;
  }
  img {
    margin-left: 10px;
    border-radius: 20%;
  }
}

:hover .custom-navbar a {
  color: var(--text-color);
}

.custom-navbar img {
  transform-style: preserve-3d;
  animation: spin 4s linear infinite;
  backface-visibility: hidden;
}
@keyframes spin {
  from {
    transform: rotatey(0deg);
  }
  to {
    transform: rotatey(360deg);
  }
}

.call-button {
  margin-right: 1rem;
  border-radius: 50px;
  padding: 1.4rem 1.2rem;
  font-weight: bold;
  color: var(--text-color);
  border: 1px solid var(--main-color);
  background-color: var(--main-color);
  cursor: pointer;
  animation: background-color 2s infinite,pulse 2s infinite;
  box-shadow: var(--text-color) 0px 0px 20px;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--main-color); }
  70% { box-shadow: 0 0 0 10px rgba(255, 71, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}
@keyframes background-color {
  0% { background-color: transparent; }
  50% { background-color: var(--main-color); }
  100% { background-color: transparent; }
}

.call-button:hover {
  background-color: var(--text-color);
  color: var(--main-color);
  box-shadow: var(--main-color) 0px 0px 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
  transform: scale(1.05);
  cursor: pointer;
  
}

.content {
  padding: 6rem 1rem 3rem;
  text-align: center;
}

h1,
h2 {
  margin-bottom: 1.5rem;
  font-weight: bold;
  color: var(--main-color);
  border-bottom: 2px solid var(--main-color);
  display: inline-block;
  padding-bottom: 0.3rem;
}

section {
  max-width: 1100px;
  margin: 3rem auto;
  background-color: var(--light-bg);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 5px 15px var(--dark-bg);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2rem;
}

article {
  flex: 1 1 300px;
  font-size: 1.1rem;
  margin: auto;
}

article a {
  color: var(--main-color);
  text-decoration: underline;
}

.thumbnail {
  max-width: 100%;
  border-radius: 15px;
  filter: grayscale(100%);
  transition: all 0.3s ease;
  cursor: pointer;
}

.thumbnail:hover {
  filter: grayscale(0%);
  transform: scale(1.02);
}

figcaption {
  margin-top: 0.8rem;
  font-weight: 500;
  font-size: 1rem;
}

.gallery {
  display: flex;
  justify-content: space-evenly;
  justify-items: center;
  figure img {
    width: 80%;
  }
}

.gale > figure:nth-child(2)

/*Gyik szakasz*/
.faq-section,
.cta-section,
.map-section {
  padding: 40px 20px;
}

.faq-section {
  background-color: var(--text-color);
}

.faq-section h2,
.cta-section h2,
.map-section h2 {
  text-align: center;
  margin: auto;
}

.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-question {
  font-weight: bold;
}

/*Google térkép*/
.map-iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border: 3px solid var(--accent-color);
}

/*Lábléc*/
footer {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.95rem;
  background-color: var(--dark-bg);
}

footer a {
  color: var(--accent-color);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Modal */
#imageModal .modal-content {
  background-color: transparent;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

#imageModal img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 10px;
}

#imageModal .btn-close {
  background-color: var(--accent-color);
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

@media (max-width: 768px) {
  .content {
    padding-top: 8rem;
  }
  section {
    flex-direction: column;
    padding: 1.5rem;
  }
  .container-fluid {
    margin: 0%;
    padding: 0%;
    justify-content: center;
    flex-direction: column;
  }
  .custom-navbar {
    height: 10rem;
    .call-button {
      margin: 1rem auto;
    }
  }
  .thumbnail {
    filter: grayscale(0);
  }
  article {
    flex: 1 1 100px;
  }
  .gallery {
    flex-direction: column;
    figure {
      margin: 0 auto;
    }
  }

}
