@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@500&display=swap");

@property --color-main-blue {
  syntax: "<color>";
  inherits: true;
  initial-value: rgba(0, 180, 250, 0.1);
}

@property --color-glow-blue {
  syntax: "<color>";
  inherits: true;
  initial-value: rgba(11, 138, 211, 0.8);
}

@property --color-background-glb {
  syntax: "<color>";
  inherits: true;
  initial-value: rgba(11, 138, 211, 0.2);
}

@property --color-active-red {
  syntax: "<color>";
  inherits: true;
  initial-value: rgba(255, 80, 80, 0.8);
}

@property --color-font {
  syntax: "<color>";
  inherits: true;
  initial-value: rgba(80, 0, 0, 0.8);
}

@property --color-white {
  syntax: "<color>";
  inherits: true;
  initial-value: rgb(255, 255, 255);
}

@property --color-white-faded {
  syntax: "<color>";
  inherits: true;
  initial-value: rgba(255, 255, 255, 0.8);
}

/* ----------------------------- */
/* A RESET beállítása            */
/* ----------------------------- */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  user-select: none;
  text-decoration: none;
}
textarea,
input {
  border: 0;
  outline: 0;
}

/* ----------------------------- */
/* A HTML elemeinek beállítása   */
/* ----------------------------- */
html,
a {
  font-family: "Quicksand", sans-serif;
  font-size: 16px;
  color: var(--color-font);
  text-shadow: 0 0 0.3em var(--color-white);
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
.body-wrapper {
  min-width: 330px;
  display: grid;
  grid-template-columns: auto 66px;
  grid-template-areas:
    "HEADER HEADER"
    "NAV ASIDE"
    "MAIN MAIN"
    "FOOTER FOOTER";
  overflow-x: clip;
}

/* ---------------------------------- */
/* Az általános stílusok beállítása   */
/* ---------------------------------- */
.box-shadow-white {
  box-shadow: 0 0 5px 3px var(--color-white);
}
.opacity_60 {
  opacity: 0.6;
}
.design-glblue {
  box-shadow: 0 0 8px 2px var(--color-glow-blue);
  background: var(--color-background-glb);
}

/* ----------------------------- */
/* A HEADER elemeinek beállítása */
/* ----------------------------- */
header {
  grid-area: HEADER;
  display: flex;
  justify-content: center;
  padding: 25px;
  background-image: url(../resources/index_images/header_background/hbg_1.png),
    url(../resources/index_images/header_background/hbg_2.png),
    url(../resources/index_images/header_background/hbg_3.png),
    url(../resources/index_images/header_background/hbg_4.png),
    url(../resources/index_images/header_background/hbg_5.png);
  background-position: center center;
  background-size: cover;
  box-shadow: 0 0 20px 20px var(--color-white) inset;
  animation-name: header_anim;
  animation-duration: 30s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
@keyframes header_anim {
  0%,
  10% {
    background-image: url(../resources/index_images/header_background/hbg_1.png);
  }
  20%,
  30% {
    background-image: url(../resources/index_images/header_background/hbg_2.png);
  }
  40%,
  50% {
    background-image: url(../resources/index_images/header_background/hbg_3.png);
  }
  60%,
  70% {
    background-image: url(../resources/index_images/header_background/hbg_4.png);
  }
  80%,
  90% {
    background-image: url(../resources/index_images/header_background/hbg_5.png);
  }
}
.header_items {
  display: grid;
  grid-template-areas:
    "LOGO"
    "INFO";
  justify-content: center;
  align-content: center;
  gap: 20px;
  padding: 20px;
  width: 300px;
  /*     background: transparent; */
  backdrop-filter: blur(3px);
  border-radius: 5px;
  & img {
    object-fit: cover;
  }
}
.logo {
  grid-area: LOGO;
  height: 150px;
}
.lhsz_info {
  grid-area: INFO;
  height: 150px;
}
.lhsz_slogan {
  grid-area: ANIM;
  display: none;
  width: 540px;
  height: 150px;
}

/* ----------------------------- */
/* A NAV elemeinek beállítása   */
/* ----------------------------- */
nav {
  grid-area: NAV;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: sticky;
  top: 1vh;
  width: 66px;
  padding: 0.5rem;
  z-index: 8;
  & .toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    align-self: normal;
    position: relative;
    height: 50px;
    width: 50px;
    backdrop-filter: blur(3px);
    border-radius: 5px;
    transition: all 0.5s linear;
    cursor: pointer;
    z-index: 10;
    &.menu-active {
      background-color: var(--color-active-red);
      box-shadow: 0 0 8px 2px var(--color-active-red);
      & li:nth-of-type(1) {
        transform: translateY(13.5px) rotate(45deg);
      }
      & li:nth-of-type(2) {
        opacity: 0;
      }
      & li:nth-of-type(3) {
        transform: translateY(-13.5px) rotate(-45deg);
      }
    }
    & li {
      list-style: none;
      position: relative;
      width: 80%;
      height: 4px;
      background: var(--color-font);
      transition: all 0.8s linear;
    }
  }
  & .menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    translate: -110%;
    list-style-type: none;
    padding: 3px;
    transition: 0.8s;
    backdrop-filter: blur(3px);
    border-radius: 5px;
    &.menu-active {
      translate: 0;
    }
    & li {
      list-style: none;
      position: relative;
      width: 200px;
      text-align: left;
      & a {
        text-decoration: none;
        display: block;
      }
    }
  }
}

/* ------------------------------ */
/* Az ASIDE rész elemeinek beállítása */
/* ------------------------------ */
aside {
  grid-area: ASIDE;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 10px;
  position: sticky;
  width: 66px;
  padding: 0.5rem;
  top: 1vh;
  left: calc(100% - 66px);
  z-index: 8;
  & .aside_toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 50px;
    width: 50px;
    backdrop-filter: blur(3px);
    border-radius: 5px;
    transition: all 0.8s linear;
    cursor: pointer;
    z-index: 10;
    &.aside-active {
      background-color: var(--color-active-red);
      box-shadow: 0 0 8px 2px var(--color-active-red);
      & img {
        opacity: 0;
      }
      &::before {
        opacity: 1;
        transform: translateY(22.5px) rotate(45deg);
      }
      &::after {
        opacity: 1;
        transform: translateY(-22.5px) rotate(-45deg);
      }
    }
    & img {
      width: 42px;
      height: 42px;
      transition: all 0.8s linear;
    }
    &::before {
      opacity: 0;
      content: "";
      width: 80%;
      height: 4px;
      background: var(--color-font);
      transition: all 0.8s linear;
    }
    &::after {
      opacity: 0;
      content: "";
      width: 80%;
      height: 4px;
      background: var(--color-font);
      transition: all 0.8s linear;
    }
  }
  & .aside_content {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    position: absolute;
    top: 72px;
    translate: 120%;
    backdrop-filter: blur(3px);
    border-radius: 5px;
    transition: all 0.8s ease;
    z-index: 8;
    &.aside-active {
      translate: 0;
    }
    & .aside_content_items {
      display: flex;
      flex-direction: column;
      justify-content: center;
      width: 110px;
      padding: 5px;
    }
    & a {
      font-size: 0.8rem;
      font-weight: 600;
      text-align: center;
    }
  }
  & img {
    object-fit: cover;
  }
}

/* ------------------------------ */
/* A MAIN rész elemeinek beállítása */
/* ------------------------------ */
main {
  grid-area: MAIN;
  position: relative;
  z-index: 0;
  min-height: 60vh;
  & section {
    margin: 2rem auto 8rem;
    &.actualsection {
      display: flex;
    }
    & > h2 {
      font-size: 2.5rem;
      font-weight: 800;
      text-align: center;
      text-transform: uppercase;
      padding: 1.3rem 0;
    }
  }
}

/* -------------------------------------- */
/* A MAIN/INDEX rész elemeinek beállítása */
/* -------------------------------------- */
main .index-content {
  display: none;
  flex-direction: column;
  align-items: center;
  /*   background-image: url(../resources/index_images/index_bg.png);
  background-position: center center;
  background-attachment: fixed;
  background-size: cover; */
  box-shadow: 0 0 20px 20px var(--color-white) inset;
  & .news {
    width: 80%;
    margin: 10%;
    & .news-headline {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    & h3,
    & h4 {
      font-size: 1.8rem;
      font-weight: 800;
      text-align: center;
      text-transform: uppercase;
      padding: 1.1rem 0;
    }
    & h4 {
      font-size: 1.3rem;
    }
    & p {
      margin: 1.1rem 0;
    }
    & ul {
      margin: 0 1.1rem;
    }
  }
}

/* -------------------------------------- */
/* A MAIN/ABOUT rész elemeinek beállítása */
/* -------------------------------------- */
main .about-content {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 80%;
  & h3 {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    padding: 1.5rem 0;
  }
  & p {
    margin: 1.1rem 0;
  }
  & table td {
    font-size: 0.8rem;
    padding: 0.3rem;
    border: 1px solid var(--color-glow-blue);
  }
  & ul li {
    margin-left: 3rem;
  }
  & .memo-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
  }
  & .memo-card {
    display: grid;
    justify-content: center;
    align-items: center;
    grid-template-areas:
      "IMAGE"
      "CONTENT";
    width: clamp(270px, 70vw, 900px);
    & img {
      grid-area: IMAGE;
    }
    & ul {
      grid-area: CONTENT;
      width: clamp(270px, 70%, 450px);
      & li:first-child {
        font-size: 1.3rem;
        font-weight: 800;
        text-transform: uppercase;
        padding: 1.3rem 0;
      }
    }
  }
}

/* --------------------------------------- */
/* A MAIN/EVENTS rész elemeinek beállítása */
/* --------------------------------------- */
main .events-content {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 80%;
  & .event-grid {
    display: grid;
    justify-items: center;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  & article {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    margin: 1rem 0;
    & h3 {
      font-size: 1.8rem;
      font-weight: 800;
      text-align: center;
      text-transform: uppercase;
      padding: 1.5rem 0;
      margin: 0 auto;
    }
    & img {
      width: clamp(270px, 90%, 750px);
      margin: 1rem auto;
    }
  }
}

/* -------------------------------------- */
/* A MAIN/SERVICES rész elemeinek beállítása */
/* -------------------------------------- */
main .services-content {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 80%;
  & .service-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  & article {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    margin: 1rem 0;
    & h3 {
      font-size: 1.8rem;
      font-weight: 800;
      text-align: center;
      text-transform: uppercase;
      padding: 1.5rem 0;
      margin: 0 auto;
    }
    & .services-element {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
      row-gap: 1rem;
      column-gap: 3rem;
      width: clamp(270px, 100%, 900px);
      & img {
        width: clamp(270px, 40%, 450px);
        border-radius: 1rem;
      }
      & .services-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 2rem;
        width: clamp(270px, calc(60% - 3rem), calc(60% - 3rem));
      }
    }
  }
}

/* ------------------------------------------ */
/* A MAIN/DOCUMENTS rész elemeinek beállítása */
/* ------------------------------------------ */
main .documents-content {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 80%;
  & article {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    margin: 1rem 0;
    & h3 {
      font-size: 1.8rem;
      font-weight: 800;
      text-align: center;
      text-transform: uppercase;
      padding: 1.5rem 0;
      margin: 0 auto;
    }
    & .documents-element {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      align-items: center;
      gap: 3rem;
      width: clamp(270px, 100%, 900px);
      margin: 1rem 0;
    }
  }
}

/* ------------------------------------- */
/* A MAIN/CONTACT elemeinek beállítása   */
/* ------------------------------------- */
main .contact-content {
  grid-area: CONTACT;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background-image: url(../resources/contact_images/contact_bg.png);
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  box-shadow: 0 0 20px 20px var(--color-white) inset;
}
.contact {
  grid-area: FORM;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: transparent;
  backdrop-filter: blur(3px);
  & h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-font);
    text-align: center;
    padding: 0 4rem;
    margin: 1rem;
  }
  & form {
    width: clamp(300px, 45vw, 800px);
    text-align: center;
    & .field input.form-item,
    & .field textarea.form-item {
      width: 100%;
      padding: 0.5rem;
      background: transparent;
      border: 2px solid var(--color-glow-blue);
      border-radius: 5px;
      font-family: inherit;
      font-size: 0.8rem;
      margin-top: 11px;
    }
    & .field input.form-item.blank,
    & .field input.form-item.error,
    & .field textarea.form-item.blank {
      border: 2px solid var(--color-active-red);
      box-shadow: 0 0 8px 2px var(--color-active-red);
    }
    & .field .form-item::placeholder {
      color: var(--color-font);
    }
    & .field div.blank-txt,
    & .field div.error-txt {
      display: none;
      font-size: 0.8rem;
      color: var(--color-active-red);
      text-align: left;
      margin-top: 3px;
      margin-bottom: 8px;
    }
    & .field.blank .blank-txt {
      display: block;
    }
    & .field.error .error-txt {
      display: block;
    }
    & .textarea-field .blank-txt {
      margin-top: -1px;
    }
    & .textarea-field .form-item {
      resize: none;
    }
    & button.glowing-button {
      border: none;
      outline: none;
      padding: 8px;
      border-radius: 5px;
      color: var(--color-font);
      font-size: 1.1rem;
      text-transform: uppercase;
      letter-spacing: 0.1rem;
      font-family: inherit;
      cursor: pointer;
      margin: 10px;
    }
  }
}
.map {
  grid-area: MAP;
  text-align: center;
  margin-bottom: 25svh;
  & iframe {
    width: clamp(300px, 60vw, 800px);
  }
}

/* ----------------------------- */
/* A FOOTER elemeinek beállítása */
/* ----------------------------- */
footer {
  grid-area: FOOTER;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 0.5rem;
  position: fixed;
  bottom: 0;
}

/* ------------------------------ */
/* A FLIGHTINFO rész elemeinek beállítása */
/* ------------------------------ */
.flightinfo {
  position: absolute;
  top: -8vh;
  z-index: 8;
  & .flightinfo-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    height: 50px;
    width: 50px;
    color: var(--color-font);
    backdrop-filter: blur(3px);
    border-radius: 5px;
    transition: all 0.8s linear;
    cursor: pointer;
    z-index: 10;
    &.flightinfo-active {
      background-color: var(--color-active-red);
      box-shadow: 0 0 8px 2px var(--color-active-red);
      & img {
        opacity: 0;
      }
      &::before {
        opacity: 1;
        transform: translateY(22.5px) rotate(45deg);
      }
      &::after {
        opacity: 1;
        transform: translateY(-22.5px) rotate(-45deg);
      }
    }
    & img {
      width: 42px;
      height: 42px;
      transition: all 0.8s linear;
    }
    &::before {
      opacity: 0;
      content: "";
      width: 80%;
      height: 4px;
      background: var(--color-font);
      transition: all 0.8s linear;
    }
    &::after {
      opacity: 0;
      content: "";
      width: 80%;
      height: 4px;
      background: var(--color-font);
      transition: all 0.8s linear;
    }
  }
  & .flightinfo-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: -24svh;
    list-style-type: none;
    padding: 3px;
    translate: -110%;
    transition: 0.8s;
    backdrop-filter: blur(3px);
    border-radius: 5px;
    z-index: 8;
    &.flightinfo-active {
      translate: 0;
    }
    & li {
      list-style: none;
      position: relative;
      width: 200px;
      text-align: left;
      & a {
        text-decoration: none;
        display: block;
      }
    }
  }
}

/* ------------------------------ */
/* A CLICKTOCALL rész elemeinek beállítása */
/* ------------------------------ */
.clicktocall {
  position: absolute;
  top: -8vh;
  left: calc(100% - 58px);
}
.clicktocall-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  height: 50px;
  width: 50px;
  color: var(--color-font);
  backdrop-filter: blur(3px);
  border-radius: 5px;
  z-index: 10;
}

/* ----------------------------- */
/* A FOOTER ITEMS elemeinek beállítása */
/* ----------------------------- */
.footer_items {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 10px;
  column-gap: 1%;
  width: 100%;
  min-width: 330px;
  z-index: 1;
  padding: 5px;
  backdrop-filter: blur(3px);
  border-radius: 5px;
  & .social_media {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 5px;
    width: fit-content;
    & .social_media_items {
      padding: 0 10px;
      & img {
        height: 1.5rem;
        object-fit: cover;
        transition: all 0.3s linear;
        &:hover {
          background-color: var(--color-white);
          box-shadow: 0 0 5px 5px var(--color-white);
        }
      }
    }
  }
  & .icons8,
  & .copyright {
    position: relative;
    width: auto;
    height: auto;
    margin: 3px;
    white-space: nowrap;
  }
  & .copyright p,
  & .icons8 p {
    padding: 2px;
    font-size: 0.75rem;
    color: var(--color-font);
  }
}

@media screen and (min-width: 768px) {
  .header_items {
    grid-template-areas:
      "LOGO INFO"
      "ANIM ANIM";
    width: 600px;
    height: 380px;
  }
  .lhsz_slogan {
    display: block;
  }
  main .events-content .event-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact form .input-box {
    display: flex;
    justify-content: space-between;
  }
  .input-box .input-field {
    width: 48%;
  }
}

@media screen and (min-width: 992px) {
  .body-wrapper {
    grid-template-areas:
      "HEADER HEADER"
      "NAV NAV"
      "MAIN ASIDE"
      "FOOTER FOOTER";
  }
  nav {
    display: block;
    width: auto;
    height: auto;
  }
  nav ul {
    margin: auto;
  }
  nav ul.toggle {
    display: none;
  }
  nav ul.menu {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    position: static;
    translate: 0;
  }
  nav ul.menu li {
    display: inline;
    width: auto;
  }
  aside {
    top: 72px;
  }
  aside .aside_toggle {
    display: none;
  }
  aside .aside_content {
    position: sticky;
    translate: 0;
    height: calc(100vh - 80px);
  }
  main {
    margin-top: 0;
    width: calc(100vw - 150px);
  }
  main .about-content .memo-card {
    grid-template-columns: 330px 1fr;
    grid-template-areas: "IMAGE CONTENT";
    justify-content: start;
  }
  footer {
    width: calc(100vw - 140px);
  }
  div.clicktocall-toggle {
    display: none;
  }
}

@media screen and (min-width: 1200px) {
  header {
    background-size: contain;
    background-repeat: repeat-x;
  }
  .header_items {
    grid-template-areas: "LOGO INFO ANIM";
    justify-content: space-evenly;
    width: auto;
    height: auto;
  }
}
