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/AYIG_Banner_1.png');
  width: 100%;
  /* min-height: 100%; */
}

.imagePlaceholder {
  width: 213px;
  height: 320px;
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* border: 1px solid red; */
}

/* Second image (Portfolio) */
.bgimg-2 {
  background-image: url("image/parallax_2.jpg");
  min-height: 400px;
}

/* 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-device-width: 1600px) {
  .bgimg-1, .bgimg-2, .bgimg-3 {
    background-attachment: scroll;
    min-height: 400px;
  }
}

.no-top-margin {
  margin-top: 0;
}

.colorOrange {
  color: #eb671d;
}

.padding-top-64 {
  padding-top: 64px;
}

.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: 450px;
  margin-top: 20px;
  perspective: 1000px; /* Remove this if you don't want the 3D effect */
}

.flip-card-A4 {
  width: 300px;
  height: 450px;
  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 an 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: #eb671d;
  color: white;
  transform: rotateY(180deg);
}

.footerGrey {
  background-color: lightgrey;
}

.borvizsgWrapper {
  width: 250px;
  height: 354px;
  margin: 50px auto;
}

.hoverOrange:hover {
  color:#fff;
  background-color:#eb671d;
  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}}
  }

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  .imagePlaceholder {
    transform: scale(0.5, 0.5) translate(-50%, -50%);
    transform-origin: top left;
  }
  .fontSize {font-size: 40px;}
  .animationTop {
    animation:animate-top 0.4s;
  }
  @keyframes animate-top {from{top:-300px;opacity:0} to{top:0;opacity:1}}
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (min-width: 600px) {
  .imagePlaceholder {
    transform: scale(0.5, 0.5) translate(-50%, -50%);
    transform-origin: top left;
  }
  .fontSize {font-size: 40px;}
  .animationTop {
    animation:animate-top 0.4s;
  }
  @keyframes animate-top {from{top:-300px;opacity:0} to{top:0;opacity:1}}
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  .imagePlaceholder {
    transform: scale(0.7, 0.7) translate(-50%, -50%);
    transform-origin: top left;
  }
  .fontSize {font-size: 40px;}
  .animationTop {
    animation:animate-top 0.4s;
  }
  @keyframes animate-top {from{top:-300px;opacity:0} to{top:0;opacity:1}}
}

/* Large devices (laptops/desktops, 1024) */
@media only screen and (min-width: 1000px) {
  .imagePlaceholder {
    transform: scale(0.6, 0.6) translate(-50%, -50%);
    transform-origin: top left;
  }
  .welcomeText {transform: translate(-50%, -30%);}
  .fontSize {font-size: 50px;}
  .animationTop {
    animation:animate-top 0.4s;
  }
  @keyframes animate-top {from{top:-300px;opacity:0} to{top:0;opacity:1}}
}

/* Extra large devices (large laptops and desktops, 1280px and up) */
@media only screen and (min-width: 1200px) {
  .imagePlaceholder {
    transform: scale(0.6, 0.6) translate(-50%, -50%);
    transform-origin: top left;
  }
    /* .welcomeText {transform: translate(-50%, -50%);} */
  .fontSize {font-size: 3vw;}
  .animationTop {
    animation:animate-top 0.4s;
  }
  @keyframes animate-top {from{top:-300px;opacity:0} to{top:0;opacity:1}}
}

/* Extra large devices (large laptops and desktops, 1366px and up) */
@media only screen and (min-width: 1350px) {
  .imagePlaceholder {
    transform: scale(0.7, 0.7) translate(-50%, -50%);
    transform-origin: top left;
  }
  /* .welcomeText {transform: translate(-50%, -50%);} */
  .fontSize {font-size: 3vw;}
  .animationTop {
    animation:animate-top 0.2s;
  }
  @keyframes animate-top {from{top:-300px;opacity:0} to{top:0;opacity:1}}
  
}

/* HD */
@media only screen and (min-width: 1900px) {
  .imagePlaceholder {
    transform: translate(-50%, -50%);
    transform-origin: top left;
  }
  /* .welcomeText {transform: translate(-50%, -50%);} */
  .fontSize {font-size: 3vw;}
  .animationTop {
    animation:animate-top 0.4s;
  }
  @keyframes animate-top {from{top:-300px;opacity:0} to{top:0;opacity:1}}
}

/* Appla tablets */
@media only screen and (min-width: 2040px) {
  .imagePlaceholder {
    transform: scale(0.7, 0.7) translate(-50%, -50%);
    transform-origin: top left;
  }
    /* .welcomeText {transform: translate(-50%, -50%);} */
  .fontSize {font-size: 2vw;}
  .animationTop {
    animation:animate-top 0.4s;
  }
  @keyframes animate-top {from{top:-300px;opacity:0} to{top:0;opacity:1}}
}

