body,h1,h2,h3,h4,h5,h6 {font-family:'Open Sans', sans-serif;}
body, html {
  height: 100%;
  color: #777;
  line-height: 1.8;
}

/* Create a Parallax Effect */
.bgimg-1, .bgimg-2, .bgimg-3 {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* First image (Logo. Full height) 
.bgimg-1 {
  background-image: url('image/hatter_nagy.jpg');
  min-height: 100%;
} */

.bgimg-1 {
  position: relative; /* referencia a belső abszolút elemeknek */
  display: flex;
  flex-direction: column;
  justify-content: center; /* függőleges középre */
  align-items: center;     /* vízszintes középre */
  min-height: 100vh;       /* teljes képernyő magasság */
  background-image: url('image/hatter_nagy.jpg'); /* háttérkép */
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #008080;
  text-align: center;
  padding: 20px; /* opcionális, ha kell */
  z-index: 1; /* hogy a háttér alatt legyen a tartalom */
}

.imagePlaceholder {
  width: 166px;
  height: 250px;
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* border: 1px solid red; */
}

/* eredeti w3school
.welcomeText {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  /*border: 2px solid #008080; 
  color: #008080; 
} */

.welcomeText {
  margin-bottom: 20px;
  font-family: 'Candara', sans-serif;
  font-weight: bold;
  font-size: 3em;
  letter-spacing: 2px;
  z-index: 2;
}

.welcomeTextStyle {
  font-family: 'CANDARA', sans-serif;
  font-size: 3em;
  font-weight: bolder;
  letter-spacing: 2px;
}

#logoImage {
  max-width: 166px;
  height: auto;
  z-index: 2;
  animation: animate-top 0.6s ease-in-out;
  position: relative; /* Kell a top-hoz, hogy működjön az animáció */
}

.animationTop {
  animation:animate-top 0.4s;
}  

.borderRed {
  border: 2px solid red;
}

.borderYellow {
  border: 2px solid yellow;
}

/* Aktív menüpont kiemelése */
.menu-active {
  background-color: teal !important;
  color: white !important;
}

.keywords {
  background-color: #008080;
  border: 2px solid #008080;
  font-family: 'CANDARA', sans-serif;
  font-size: 32px;
  font-weight: bold;
  color: white;
  letter-spacing: 1px;
}

.keywordsNeg {
  font-family: 'CANDARA', sans-serif;
  font-size: 32px;
  font-weight: bold;
  color: #008080;
  letter-spacing: 1px;
}


/* Tooltip container */
.tooltip {
  position: relative;  
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 220px;
  top: 90%;
  left: 50%;
  margin-left: -110px;
  background-color: #777;
  color: #fff;
  font-size: 16px;
  font-weight: normal;
  text-align: center;
  padding: 5px 0;
  position: absolute; /* Position the tooltip text */
  z-index: 1;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #777 transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
}

#home {
  padding-top: 60px; /* vagy a header magassága */
  margin-top: -60px; /* hogy ne nyomja le a tartalmat */
}

.quoteContainer {
  width: 62%;
  margin: auto;
}

/* Second image (Workflow) */
.bgimg-2 {
  background-image: url("image/parallax_2.jpg");
  /* background-color: teal; */
  min-height: 400px;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: contain;
}

/* Third image (Contact) */
.bgimg-3 {
  background-image: url("Images/Parallax_3.jpg");
  min-height: 400px;
}

.w3-wide {letter-spacing: 10px;}
.w3-hover-opacity {cursor: pointer;}

/* Turn off parallax scrolling for tablets and phones */
@media only screen and (max-width: 1024px) {
  .bgimg-1, .bgimg-2, .bgimg-3 {
    background-attachment: scroll;
    min-height: 400px;
  }
}

.no-top-margin {
  margin-top: 0;
}

.colorTeal {
  color: #008080;
}

.flip-card-container {
  display: -ms-flexbox; /* IE10 */
  display: flex;
  -ms-flex-wrap: wrap; /* IE10 */
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.flip-card {
  width: 300px;
  height: 300px;
  margin-top: 20px;
  perspective: 1000px; /* Remove this if you don't want the 3D effect */
}

.flip-card-A4 {
  width: 300px;
  height: 424px;
  margin-top: 20px;
  perspective: 1000px; /* Remove this if you don't want the 3D effect */
}

/* This container is needed to position the front and back side */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

/* Do a horizontal flip when you move the mouse over the flip box container */
.flip-card:hover .flip-card-inner, .flip-card-A4:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* Position the front and back side */
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
}

/* Style the front side */
.flip-card-front {
  background-color: #bbb;
  color: black;
}

/* Style the back side */
.flip-card-back {
  background-color: #008080;
  color: white;
  transform: rotateY(180deg);
}


/* Style the buttons that are used to open and close the accordion panel */
.accordion {
  background-color: white;
  color: #008080;
  font-size: medium;
  cursor: pointer;
  padding: 8px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.4s;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active, .accordion:hover {
  background-color: #ccc;
}

/* Add a symbol to each button to indicate whether the collapsible content is open or closed: */
.accordion:after {
  content: '\002B'; /* 02795 Unicode character for "plus" sign (+) */
  font-size: medium;
  color: #008080;
  float: right;
  margin-left: 5px;
}

.active:after {
  content: "\2212"; /* \2796 Unicode character for "minus" sign (-) */
}

/* Style the accordion panel. Note: hidden by default */
.panel {
  /*padding: 0 18px;
  background-color: white;
  display: none;
  overflow: hidden;*/
  padding: 0 18px;
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

/*Ügyfél logók elhelyezése*/
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 16px;
  padding: 0 10px;
}

.logo-item {
  flex: 1 1 calc(25% - 16px);
  max-width: calc(25% - 16px);
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px; /* vagy ami jól mutat */
  padding: 10px;
}

.logo-item img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
}


@media (max-width: 800px) {
  .logo-item {
    flex: 1 1 calc(50% - 16px);
    max-width: calc(50% - 16px);
  }
}

@media (max-width: 600px) {
  .logo-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* Opcióként logó képek stílusa */
.logo-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain; /* hogy a logók ne torzuljanak */
}

/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 800px) {
  .column {
    flex: 50%;
    max-width: 50%;
  }
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .column {
    flex: 100%;
    max-width: 100%;
  }
}

.footerGrey {
  background-color: lightgrey;
}

.borvizsgWrapper {
  width: 250px;
  height: 354px;
  margin: 50px auto;
}

.hoverTeal:hover {
  color:#fff;
  background-color:#008080;
  opacity: 1;
}

.suruSorkoz {
  line-height: 1.1;
}

/* Devices in portrait mode 
@media only screen and (orientation: portrait) {
  .imagePlaceholder {
    transform: scale(0.6, 0.6) translate(-50%, -50%);
    transform-origin: top left;
  }
  .fontSize {font-size: 50px;}
  .animationTop {
    animation:animate-top 0.4s;
  }
  @keyframes animate-top {from{top:-300px;opacity:0} to{top:0;opacity:1}}
  .bgimg-2 {
    background-image: url("image/infografika.png");}
  } */

/* Extra small devices (phones, 479px and down) */
@media only screen and (max-width: 479px) {
  .imagePlaceholder {
    transform: scale(0.5, 0.5) translate(-50%, -50%);
    transform-origin: top left;
  }
  .fontSize {font-size: 40px;}
  .animationTop {animation: animate-top 0.6s;}
}

/* Small devices (480px - 575px) */
@media only screen and (min-width: 480px) and (max-width: 575px) {
  .imagePlaceholder {
    transform: scale(0.7, 0.7) translate(-50%, -50%);
    transform-origin: top left;
  }
  .fontSize {font-size: 40px;}
  .animationTop {animation: animate-top 0.6s;}
}

/* Medium devices (576px - 767px) */
@media only screen and (min-width: 576px) and (max-width: 767px) {
  .imagePlaceholder {
    transform: scale(0.6, 0.6) translate(-50%, -50%);
    transform-origin: top left;
  }
  .fontSize {font-size: 40px;}
  .animationTop {animation: animate-top 0.6s;}
}

/* Tablets (768px - 1023px) */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
  .imagePlaceholder {
    transform: scale(0.6, 0.6) translate(-50%, -50%);
    transform-origin: top left;
  }
  .fontSize {font-size: 40px;}
  .animationTop {animation: animate-top 0.6s;}
}

/* Small laptops (1024px - 1279px) */
@media only screen and (min-width: 1024px) and (max-width: 1279px) {
  .imagePlaceholder {
    transform: scale(0.6, 0.6) translate(-50%, -50%);
    transform-origin: top left;
  }
  .fontSize {font-size: 3vw;}
  .animationTop {animation: animate-top 0.6s;}
}

/* Large desktops (1280px and up) */
@media only screen and (min-width: 1280px) {
  .imagePlaceholder {
    transform: scale(0.7, 0.7) translate(-50%, -50%);
    transform-origin: top left;
  }
  .fontSize {font-size: 3vw;}
  .animationTop {animation: animate-top 0.2s;}
}

@keyframes animate-top {
  from {top: -300px; opacity: 0;}
  to {top: 0; opacity: 1;}
}