@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,700');

* {
  box-sizing: border-box;
}

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

a {
  cursor: pointer;
}

.clearfix::after,
section::after {
  content: '';
  display: block;
  clear: both;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  text-align: center;
  color: #f2f2f2;
  background-color: #f4f4f4;
  height: 100%;
  position: relative;
}


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

/* header */
.site-header {
  width: 100%;
  border: 0px;
  border-bottom: 5px;
  border-style: solid;
  background-image: url("Images/image000_fejlec.jpg");
  background-size: cover;
  background-position: center;
  background-position-y: 67%;
}

.site-header a {
  color: #f2f2f2;
  text-decoration: none;
}

.header-keeper {
  margin: 0 0.3rem 0.3rem 0.3rem;
  padding-top: 0.5rem;
}

.site-header ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header ul li {
  font-size: 0.6rem;
  margin: 0;
  padding: 1em 0rem;
  display: inline-block;
}

.site-header ul li img {
  width: 18px;
  height: 10px;
  padding-left: 0.2em;
}

.site-header h2 {
  font-size: 1.4rem;
  margin: 0;
  margin-bottom: 0.2rem;
  padding-bottom: 1rem;
  font-weight: 400;
}

@media (min-width: 550px) {
  .site-header ul li {
    font-size: 0.8rem;
    padding: 0.8em 0rem;
  }
}

@media (max-width: 360px) {
  .site-header ul li {
    font-size: 0.55rem;
    padding: 0.8em 0rem;
  }
  .site-header h2 {
    font-size: 1.2rem;
  }
  .site-header ul li img {
    width: 11px;
    height: 8px;
    padding-left: 0.1em;
  }
  .header-keeper {
    margin: 0 0.25rem;
  }
}

@media (min-width: 60rem) {
  .site-header ul li {
    font-size: 0.8rem;
  }

  .site-header ul li img {
    width: 22px;
    height: 11px;
  }

  .site-header h2 {
    font-size: 1.9rem;
  }
}
/* section one */

.container {
  position: relative;
  text-align: center;
}

.first {
  margin-bottom: 0.5rem;
}

.first h1 {
  position: absolute;
  font-weight: 400;
  top: 50%;
  left: 50%;
  margin-top: 0;
  transform: translate(-50%, -50%);
}

.first a {
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translate(-50%, -90%);
  color: #fff;
  font-weight: 400;
}

/* a hovers */

.underline:hover,
.underline:focus {
  text-decoration: none;
}

/* ends */

.desktop {
  width: 100%;
  height: auto;
  display: block;
}

.mobile {
  display: none;
}

@media (max-width: 400px) {
  .first a {
    font-size: 14px;
  }
}

@media (max-width: 340px) {
  .first a {
    font-size: 12px;
  }
  .first h1 {
    font-size: 14px;
  }
}

@media (min-width: 960px) {
  .first h1 {
    font-size: 32px;
  }
  .first a {
    font-size: 20px;
  }
}

@media (min-width: 1420px) {
  .first h1 {
    font-size: 38px;
  }
  .first a {
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .desktop {
    display: none;
  }

  .first h1 {
    font-size: 23px;
  }

  .mobile {
    display: block;
    filter: brightness(70%);
    width: 100%;
    height: auto;
  }

  .first h1 {
    top: 45%;
    left: 50%;
    transform: translate(-50%, -45%)
  }
}

/* grid-layout-one */
.ikon {
  max-width: 230px;
  max-height: 95px;
  width: auto;
  height: auto;
}

.grid-layout-one {
  color: #166ba2;
}

.card {
  width: 100%;
  padding: 0.5rem;
}

.list {
  display: grid;
  grid-template-columns: 1fr 1fr
}

.grid-layout-one h3 {
  font-size: 16px
}

.grid-layout-one p {
  font-size: 12px
}

@media (min-width: 600px) {
  .grid-layout-one h3 {
    font-size: 17px
  }
  .grid-layout-one p {
    font-size: 13px
  }
}

@media (max-width: 400px) {
  .grid-layout-one h3 {
    font-size: 12px
  }

  .grid-layout-one p {
    font-size: 10px
  }
}

@media (min-width: 1440px) {
  .list {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    background-color: #fff;
    margin: 0.5em 15rem 0.65em 15rem;
  }
  .card {
    width: 100%;
  }
  .grid-layout-one p {
    font-size: 13px
  }
  .grid-layout-one h3 {
    font-size: 15px
  }

  .ikon {
    max-width: 300px;
    max-height: 125px;
    width: auto;
    height: auto;
  }
}

@media (min-width: 1800px) {
  .grid-layout-one p {
    font-size: 16px
  }
  .grid-layout-one h3 {
    font-size: 18px
  }
  .ikon {
    max-width: 330px;
    max-height: 135px;
    width: auto;
    height: auto;
  }
}

/* section three */

.third {
  color: #fff;
}

.big-one {
  margin: 0;
  position: relative;
}

.not-showing {
  display: none;
}

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

.big-one-desc {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 1em 0em;
}

@media (min-width: 641px) {
  .big-one-desc {
    padding-top: 1em;
  }

  .big-one-desc h1 {
    font-size: 22px
  }
  .big-one-desc img {
    max-width: 180px;
    max-height: 75px;
    width: auto;
    height: auto;
  }
  .big-one-desc h3 {
    font-size: 16px;
  }
  .big-one-desc p {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .not-showing {
    display: block;
    filter: brightness(70%);
  }

  .cover-img {
    display: none;
  }

  .big-one-desc h1 {
    font-size: 22px
  }
  .big-one-desc img {
    max-width: 220px;
    max-height: 95px;
    width: auto;
    height: auto;
  }
  .big-one-desc h3 {
    font-size: 18px;
  }
  .big-one-desc p {
    font-size: 14px;
  }
}

@media (max-width: 450px) {
  .big-one-desc h1 {
    font-size: 15px
  }
  .big-one-desc img {
    max-width: 170px;
    max-height: 70px;
    width: auto;
    height: auto;
  }
  .big-one-desc h3 {
    font-size: 13px;
  }
  .big-one-desc p {
    font-size: 11px;
  }
}

@media (min-width: 900px) {
  .big-one-desc {
    padding-top: 1em;
  }

  .big-one-desc h1 {
    font-size: 26px
  }
  .big-one-desc img {
    max-width: 240px;
    max-height: 100px;
    width: auto;
    height: auto;
  }
  .big-one-desc h3 {
    font-size: 22px;
  }
  .big-one-desc p {
    font-size: 18px;
  }
}

@media (min-width: 1300px) {
  .big-one-desc {
    padding-top: 1em;
  }

  .big-one-desc h1 {
    font-size: 40px
  }
  .big-one-desc img {
    max-width: 350px;
    max-height: 145px;
    width: auto;
    height: auto;
  }
  .big-one-desc h3 {
    font-size: 32px;
  }
  .big-one-desc p {
    font-size: 26px;
  }
}

/* fourth section */

.fourth-container {
  background-color: #fff;
  color: #166ba2;
  text-align: left;
}

.fourth-container img {
  max-width: 100%;
  padding: 0;
  margin: 0;
  display: block;
}

.fourth-container figure {
  margin: 0;
  position: relative;
}

.fourth-container a {
  font-size: 15px;
  color: #166ba2;
}

.reftop {
  margin-bottom: 2.4em;
}

.button {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-decoration: none;
  background-color: #166ba2;
  border-width: 1px;
  border-style: solid;
  border-color: #fff;
  padding: .5em 1rem;
  display: inline-block;
  color: #fff;
  border-radius: 7px;
  font-size: 14px;
  cursor: pointer;
}

.text-container h3 {
  margin-top: 0;

}

.text-container {
  padding: 2rem 3rem;
}

.text-container h3 {
  font-size: 16px;
}

.text-container p {
  font-size: 13px;
}

@media (min-width: 700px) {
  .text-container h3 {
    font-size: 20px;
  }

  .text-container p {
    font-size: 15px;
  }

  .button {
    font-size: 16px;
    padding: .5em 1.25rem;
  }

  .text-container h2 {
    text-align: center;
  }
}

@media (min-width: 1000px) {
  .fourth-container {
    margin: 0 8rem;
  }

  .text-container h3 {
    font-size: 20px;
  }

  .text-container p {
    font-size: 15px;
  }

  .button {
    font-size: 20px;
    padding: .5em 1.4rem;
  }
}

@media (min-width: 1300px) {
  .fourth-container {
    margin: 0 12rem;
  }

  .text-container h3 {
    font-size: 24px;
  }

  .text-container p {
    font-size: 17px;
  }

  .button {
    font-size: 24px;
    padding: .5em 1.6rem;
  }
  .reftop {
    margin-bottom: 2.8em;
  }
  .text-container a {
    font-size: 20px;
  }
}

@media (min-width: 1500px) {
  .fourth-container {
    margin: 0 15rem;
  }

  .text-container {
    padding: 4rem 8rem;
  }

  .text-container h3 {
    font-size: 24px;
  }

  .text-container p {
    font-size: 17px;
  }

  .button {
    font-size: 28px;
    padding: .6em 1.8rem;
    border-radius: 13px;
  }
}

@media (min-width: 1800px) {
  .text-container {
    padding: 4rem 8rem;
  }

  .text-container h3 {
    font-size: 30px;
  }

  .text-container p {
    font-size: 22px;
  }

  .button {
    font-size: 30px;
    padding: .6em 1.8rem;
    border-radius: 13px;
  }
}

/* portfolio */

.portfolio {
  margin: 3em 0 0 0;
}

.portfolio h2 {
  color: #166ba2;
}

.port-desc h4 {
  font-size: 20px;
}

.port-item {
  margin: 0;
  position: relative;
  margin-top: 1rem;
  overflow: hidden;
}

.port-item img {
  display: block;
  filter: brightness(60%);
  width: 100%;
  height: auto;
}

.port-item:hover img,
.port-item:focus img {
  transform: scale(1.15);
  transition: .5s ease-in-out;
}

.port-desc {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

.port-desc h4 {
  margin: 1em;
}

@media (min-width: 37rem) {
  .portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 1rem;
    margin-left: 3rem;
    margin-right: 3rem;
  }

  .portfolio {
    margin-bottom: 2rem;
  }

  .port-item {
    width: 100%;
    margin-top: 0;
  }
  .portfolio h2 {
    font-size: 26px;
  }
  .port-desc h4 {
    font-size: 18px;
  }
}

@media (min-width: 60rem) {
  .portfolio-grid {
    margin-left: 6rem;
    margin-right: 6rem;
  }
  .portfolio h2 {
    font-size: 30px;
  }
  .port-desc h4 {
    font-size: 20px;
  }
  .portfolio {
    margin-bottom: 3rem;
  }
}

@media (min-width: 1150px) {
  .portfolio-grid {
    margin-left: 10rem;
    margin-right: 10rem;
  }
  .portfolio h2 {
    font-size: 32px;
  }
  .port-desc h4 {
    font-size: 22px;
  }
}

@media (min-width: 1400px) {
  .portfolio-grid {
    margin-left: 14rem;
    margin-right: 14rem;
  }
  .portfolio h2 {
    font-size: 36px;
  }
  .port-desc h4 {
    font-size: 24px;
  }
  .portfolio {
    margin-bottom: 4rem;
  }
}

@media (min-width: 1700px) {
  .portfolio-grid {
    margin-left: 14rem;
    margin-right: 14rem;
  }
  .portfolio h2 {
    font-size: 40px;
  }
  .port-desc h4 {
    font-size: 30px;
  }
}

/* reference */
.reference {
  color: #166ba2;
  background-color: #f2f2f2;
  margin: 3rem 2.5rem;
}

.reference h3 {
  font-weight: 400;
  font-size: 20px;
}

.reference-grid {
  margin-top: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1.5px;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-style: solid;
  border-color: #166ba2;
  padding-left: 1rem;
  padding-right: 1rem;
}

.reference a {
  color: #166ba2;
}

.reference h4 {
  font-size: 14px;
  margin-top: 2.5rem;
}

#text-card {
  text-align: left;
  font-size: 14px;
}

@media (min-width: 500px) {
  .reference h3 {
    font-size: 22px;
  }
  #text-card {
    font-size: 16px;
  }
  .reference h4 {
    font-size: 18px;
  }

}

@media (min-width: 760px) {
  #text-card {
    padding-left: 2rem;
  }
}

@media (min-width: 830px) {
  .reference-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .reference-grid {
    border-bottom: 0;
  }
  .grid-card {
    padding: 1rem 1.5rem;
  }
  .reference {
    margin-left: 2.5rem;
    margin-right: 2.5rem;
  }

  #text-card {
    text-align: left;
    font-size: 11px;
    border-left: 2px;
    border-style: solid;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
  }
}

@media (min-width: 900px) {
  #text-card {
    font-size: 12px;
  }
  .reference {
    margin-left: 3rem;
    margin-right: 3rem;
  }
}

@media (min-width: 1050px) {
  #text-card {
    font-size: 13px;
  }

  .reference {
    margin-left: 6rem;
    margin-right: 6rem;
  }
}

@media (min-width: 1200px) {
  .reference {
    margin-left: 8rem;
    margin-right: 8rem;
  }
  .reference h3 {
    font-size: 24px;
  }
  #text-card {
    font-size: 14px;
  }
}

@media (min-width: 1400px) {
  .reference {
    margin-left: 12rem;
    margin-right: 12rem;
  }
  .reference h3 {
    font-size: 26px;
  }
  #text-card {
    font-size: 15px;
  }
}

@media (min-width: 1600px) {
  .reference {
    margin-left: 14rem;
    margin-right: 14rem;
  }
  #text-card {
    font-size: 17px;
  }
}

@media (min-width: 1800px) {
  .reference {
    margin-left: 17rem;
    margin-right: 17rem;
  }
  #text-card {
    font-size: 20px;
  }
  .reference h4 {
    font-size: 22px;
    margin: 6rem 0;
  }
}



/* footer */
footer {
  background-color: #166ba2;
  bottom: 0;
  width: 100%;
}

.not__showing {
  display: none;
}

footer ul {
  list-style: none;
  padding: 2rem;
}

.footerref {
  color: #f2f2f2;
  font-size: 18px;
}

footer ul li {
  padding: 0.6rem 0;
}

footer p {
  padding: 1rem;
}

footer img {
  max-width: 230px;
  max-height: 95px;
  width: auto;
  height: auto;
}

@media (min-width: 1000px) {
  footer ul li {
    display: inline-block;
    font-size: 16px;
    padding: 0 0.4em 0 0.4em;
  }
  .not__showing {
    display: inline-block;
  }
  .footerref {
    font-size: 22px;
  }
}

@media (min-width: 1700px) {
  footer ul li {
    font-size: 20px;
  }

  footer p {
    font-size: 20px;
  }

  footer img {
    max-width: 260px;
    max-height: 110px;
    width: auto;
    height: auto;
  }
}
