body {
  background: url(assets/body_bg.png);
  font-family: "Hind", sans-serif;
  margin: 0;
}

h2 {
  font-size: 3.5rem;
}

/*Header----------------------------------------------------*/
header {
  background: url(assets/hatter11.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  height: 100vh;
}

nav {
  text-align: right;
}

nav ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

nav li {
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 2.2rem;
  padding: 0.2rem;
  margin: 1%;
  height: 3rem;
  display: inline-block;
}

nav a {
  text-decoration: none;
  color: #fff;
  display: block;
  padding: 0 10px;
}

nav a:hover {
  font-size: 1.33rem;
  transition: font-size 0.3s;
  color: grey;
}

nav a.active {
  background-color: grey;
  color: #eee;
}

#ajanlat {
  background-color: #0b4599;
}

#logo {
  position: absolute;
  top: 1rem;
  left: 1rem;
  height: 60px;
  padding: 0.3rem;
  border-radius: 20%;
}

.kezdo {
  margin: 7% 2%;
  padding: 2%;
  font-size: 1.8rem;
  color: white;
  width: 50rem;
  background-color: rgba(12, 54, 92, 0.5);
}

/*Button----------------------------------------------------------*/
.button-k,
.button-k:after {
  width: 15rem;
  line-height: 60px;
  font-size: 20px;
  border: 0;
  letter-spacing: 3px;
  outline: transparent;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  background-image: linear-gradient(144deg, #071427, #1141bd 50%, #32fefd);
  border-radius: 0%;
  color: white;
  margin-right: 10%;
}

.button-k:after {
  --slice-0: inset(50% 50% 50% 50%);
  --slice-1: inset(80% -6px 0 0);
  --slice-2: inset(50% -6px 30% 0);
  --slice-3: inset(10% -6px 85% 0);
  --slice-4: inset(40% -6px 43% 0);
  --slice-5: inset(80% -6px 5% 0);

  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 3%, rgba(12, 54, 92, 0.5) 3%, rgba(12, 54, 92, 0.5) 5%, #0b4599 5%);
  clip-path: var(--slice-0);
}

.button-k:hover:after {
  animation: 1s glitch;
  animation-timing-function: steps(2, end);
}

.button-k:hover {
  transform: scale(1.05);
}

@keyframes glitch {
  0% {
    clip-path: var(--slice-1);
    transform: translate(-20px, -10px);
  }

  10% {
    clip-path: var(--slice-3);
    transform: translate(10px, 10px);
  }

  20% {
    clip-path: var(--slice-1);
    transform: translate(-10px, 10px);
  }

  30% {
    clip-path: var(--slice-3);
    transform: translate(0px, 5px);
  }

  40% {
    clip-path: var(--slice-2);
    transform: translate(-5px, 0px);
  }

  50% {
    clip-path: var(--slice-3);
    transform: translate(5px, 0px);
  }

  60% {
    clip-path: var(--slice-4);
    transform: translate(5px, 10px);
  }

  70% {
    clip-path: var(--slice-2);
    transform: translate(-10px, 10px);
  }

  80% {
    clip-path: var(--slice-5);
    transform: translate(20px, -10px);
  }

  90% {
    clip-path: var(--slice-1);
    transform: translate(-10px, 0px);
  }

  100% {
    clip-path: var(--slice-1);
    transform: translate(0);
  }
}

/*Szolgaltatasok-----------------------------------------------------------------------------*/

.highlight {
  color: #005cdd;
  text-decoration: underline;
}

.szolgaltatas {
  text-align: center;
}

.szolgaltatas h3 {
  font-size: 1.9rem;
  margin-bottom: 20px;
}

.szolgaltatas ul {
  font-size: 1.3rem;
  list-style-type: none;
  padding: 0;
}

.box {
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
  display: inline-block;
  width: calc(33.33% - 60px);
  height: 450px;
  margin: 20px 10px;
  vertical-align: top;
  position: relative;
  overflow: hidden;
}

.box::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #005cdd;
  /* Kékes háttér */
  transition: left 0.3s ease;
  z-index: -1;
}

.box:hover::after {
  left: 0;
}

/* Az ikon színének fehérre változtatása */
.box i {
  transition: filter 0.3s ease;
  /* Átmenet az ikon színének változásához */
}

.box:hover h3,
.box:hover li,
.box:hover i {
  filter: brightness(0) invert(1);
  /* Az ikon színe fehér lesz */
}

.box:hover h3 p {
  filter: brightness(0) invert(1);
  /* Az ikon színe fehér lesz */
}

.box .fa {
  font-size: 8rem;
  color: #005cdd;
  padding: 2rem;
  border-bottom: 2px solid black;
}

.sz_btn {
  float: right;
  margin: 3.2%;
}

/*Projekktek---------------------------------------------------*/
.projekt {
  margin-top: 10%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  background: url(assets/hatter10_c.jpg) no-repeat;
  background-size: cover;
  color: white;
}

.p_box {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 4%;
}

.p_box iframe {
  width: 500px;
  /* Állítsd be az iframe szélességét az igényeid szerint */
  height: 500px;
  /* Állítsd be az iframe magasságát az igényeid szerint */
}

/*Footer---------------------------------------------------*/

footer ul {
  list-style: none;
  text-align: center;
  margin: 1.5%;
}

footer li {
  display: inline;
  padding: 4%;
  font-size: 2.5rem;
}

.footer-d {
  text-align: center;
  width: 100%;
  height: 3rem;
  background-color: rgb(240, 240, 240);
  padding: 0.2rem;
}

footer i:hover {
  color: #005cdd;
  font-size: 2.9rem;
  transition: font-size 0.3s
}




@media (max-width: 767px) {

  header {
    background-size: cover;
    height: auto;
  }

  nav {
    text-align: center;
    padding-top: 20%;
    font-size: 1rem;
  }

  nav ul {
    display: block;
    margin: 0 auto;
  }

  nav li {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }

  .kezdo {
    margin: 10% auto;
    padding: 5%;
    font-size: 1rem;
    width: 80%;
  }

  h2 {
    font-size: 40px;
    margin: 3%;
  }

  .button-k {
    width: calc(100% - 100px);
    margin: 3%;
    margin-left: 15%;
  }

  .projekt iframe {
    width: 270px;
    height: 270px;
  }

  #logo {
    width: 30%;
    height: auto;
  }

  .box {
    width: calc(100% - 40px);
  }

  .social-icons {
    padding: 0;
  }
}