@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");

:root {
  --dark: #1f1f1f;
  --light: #fefefe;
  --gray: #f4f4f4;
  --main: #4094d9;
  --success: #30cb83;
  --error: #e74c3c;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-family: inherit;
  text-decoration: none;
  list-style-type: none;
  color: inherit;
}

body {
  font-family: "Rubik", sans-serif;
  font-optical-sizing: auto;
  font-weight: inherit;
  font-style: normal;
  color: var(--dark);
  background-color: var(--light);
}

.button {
  all: unset;
  background-color: var(--main);
  color: var(--dark);
  cursor: pointer;
  font-weight: 400;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-transition: all 0.25s ease-in-out;
  -o-transition: all 0.25s ease-in-out;
  transition: all 0.25s ease-in-out;
  border-radius: 0.25rem;
  padding: 13px 22px 13px 22px;

  &.gray {
    background-color: var(--gray);
  }

  &:hover {
    background-color: var(--dark);
    color: var(--light);
  }

  &.loading {
    background-color: var(--gray);
    pointer-events: none;
    width: 91px;

    & i {
      animation-name: loading;
      animation-duration: 1s;
      animation-iteration-count: infinite;
      animation-timing-function: linear;
    }
  }
}

@keyframes loading {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.container {
  width: min(1140px, 100% - 2rem);
  margin-inline: auto;
}

.grid {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;

  & img {
    width: 100%;
    height: 100%;
  }
}

#menu {
  position: relative;
  border: 1px solid #ebebeb;

  & .container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    height: 100px;
  }

  & #menu_socials {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 0.75rem;

    & i {
      font-size: 2rem;
      -webkit-transition: opacity 0.25s ease-in-out;
      -o-transition: opacity 0.25s ease-in-out;
      transition: opacity 0.25s ease-in-out;

      &:hover {
        opacity: 0.75;
      }
    }
  }

  & #menuItemContainer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    height: 100%;

    & li {
      padding-inline: 1rem;
      border-right: 1px solid #ededed;
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-align: center;
      -ms-flex-align: center;
      align-items: center;
      height: 100%;
    }

    & a {
      font-weight: 400;
      -webkit-transition: color 0.25s ease-in-out;
      -o-transition: color 0.25s ease-in-out;
      transition: color 0.25s ease-in-out;

      &:hover {
        color: var(--main);
      }
    }
  }

  & img {
    display: block;
    -webkit-transition: opacity 0.25s ease-in-out;
    -o-transition: opacity 0.25s ease-in-out;
    transition: opacity 0.25s ease-in-out;

    &:hover {
      opacity: 0.75;
    }
  }

  & #menuOpen,
  #menuClose {
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    z-index: 9999;
  }
}

#menuBackgroundOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark);
  opacity: 0;
  z-index: 999;
  -webkit-transition: opacity 0.4s ease-in-out;
  -o-transition: opacity 0.4s ease-in-out;
  transition: opacity 0.4s ease-in-out;
  pointer-events: none;
}

.form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  padding-block: 2rem;
  gap: 2rem;
  flex: 1;

  & header {
    font-weight: 400;
  }

  & h1 {
    font-size: 1.75rem;
    font-weight: 400;
  }

  & .form_container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    border-radius: 0.5rem;

    & label {
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-orient: vertical;
      -webkit-box-direction: normal;
      -ms-flex-direction: column;
      flex-direction: column;
      -webkit-box-align: start;
      -ms-flex-align: start;
      align-items: flex-start;
      -webkit-box-pack: center;
      -ms-flex-pack: center;
      justify-content: center;
      gap: 0.5rem;
      width: 100%;

      & span {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        gap: 0.25rem;
        color: #6c6c6c;

        & i {
          font-size: 1.2rem;
        }
      }
    }

    & input,
    select,
    textarea {
      border: 0;
      outline: 0;
      font-family: inherit;
      color: var(--dark);
      background-color: var(--gray);
      width: 100%;
      height: 40px;
      padding-inline: 1rem;
      border-radius: 0.25rem;
    }

    & textarea {
      height: auto;
      padding: 1rem;
    }
  }

  & #formStatus {
    color: var(--light);
    font-weight: 500;
    width: min(768px, 100%);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding-block: 1rem;
    border-radius: 0.4rem;
    transition: all 0.2s ease-in-out;
    min-height: 52px;

    &.success {
      background-color: var(--success);
    }

    &.error {
      background-color: var(--error);
    }
  }
}

#registration_wrapper {
  display: flex;
  align-items: flex-start;
  gap: 2rem;

  & #idopontDetails {
    padding-block: 2rem;
    flex: 1;

    & h2 {
      font-weight: 400;
    }
  }
}

section#hero {
  background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.21)), to(rgba(0, 0, 0, 0.53))), url("../images/hero.png");
  background-image: -o-linear-gradient(top, rgba(0, 0, 0, 0.21), rgba(0, 0, 0, 0.53)), url("../images/hero.png");
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.21), rgba(0, 0, 0, 0.53)), url("../images/hero.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--light);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  gap: 8rem;
  padding-top: 8rem;

  & .container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 0.5rem;
    height: 100%;
  }

  & span {
    font-size: 1.25rem;
    text-transform: uppercase;
    color: var(--main);
  }

  & h1 {
    font-size: 4rem;
  }

  & #hero_blocks {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

    & .hero_block {
      background-color: black;
      padding: 3rem;
      text-align: center;
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-orient: vertical;
      -webkit-box-direction: normal;
      -ms-flex-direction: column;
      flex-direction: column;
      gap: 1rem;

      & i {
        font-size: 2rem;
      }

      & .hero_block_title,
      .hero_block_description {
        color: var(--light);
      }

      & .hero_block_description {
        text-transform: initial;
        font-size: 1rem;
      }

      &.--purple {
        background: rgb(88, 21, 72);
        background: -o-linear-gradient(225deg, rgba(88, 21, 72, 1) 0%, rgba(144, 33, 118, 1) 100%);
        background: linear-gradient(225deg, rgba(88, 21, 72, 1) 0%, rgba(144, 33, 118, 1) 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#581548",endColorstr="#902176",GradientType=1);
      }

      &.--pink {
        background: rgb(152, 47, 107);
        background: -o-linear-gradient(225deg, rgba(152, 47, 107, 1) 0%, rgba(206, 65, 148, 1) 100%);
        background: linear-gradient(225deg, rgba(152, 47, 107, 1) 0%, rgba(206, 65, 148, 1) 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#982f6b",endColorstr="#ce4194",GradientType=1);
      }

      &.--red {
        background: rgb(251, 52, 94);
        background: -o-linear-gradient(225deg, rgba(251, 52, 94, 1) 0%, rgba(254, 86, 62, 1) 100%);
        background: linear-gradient(225deg, rgba(251, 52, 94, 1) 0%, rgba(254, 86, 62, 1) 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#fb345e",endColorstr="#fe563e",GradientType=1);
      }

      &.--yellow {
        background: rgb(255, 125, 37);
        background: -o-linear-gradient(225deg, rgba(255, 125, 37, 1) 0%, rgba(255, 189, 10, 1) 100%);
        background: linear-gradient(225deg, rgba(255, 125, 37, 1) 0%, rgba(255, 189, 10, 1) 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff7d25",endColorstr="#ffbd0a",GradientType=1);
      }
    }
  }

  &.paddingbottom {
    padding-bottom: 8rem;
  }
}

section#calendar {
  margin-block: 3rem;

  & .idopontCustom {
    cursor: pointer;
    transition: all 0.2s ease-in-out;

    &:hover {
      background-color: #6fa5db;
    }
  }
}

section#map {
  & .map_wrapper {
    width: 100%;
    height: 500px;

    & iframe {
      height: 100%;
      width: 100%;
    }
  }
}

section#kapcsolat {
  padding-block: 3rem;

  & .kapcsolat_heading {
    color: #464849;
    text-align: center;
    font-weight: 400;
  }

  & .form_wrapper {
    border-top: 2px solid #ebebeb;
    margin-top: 2rem;
    position: relative;

    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 50%;
      width: 2rem;
      height: 0.5rem;
      background-color: var(--main);
      transform: translate(-50%, -100%);
    }
  }

  & .contacts {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    & h2 {
      font-weight: 400;
    }

    & > span {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 0.5rem;

      & i {
        color: var(--main);
      }
    }
  }
}

footer {
  background-color: #464849;
  color: var(--light);
  padding-block: 3rem 0;

  & #footer_navs {
    margin-block: 4.5rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: unset;

    & span {
      display: block;
      margin-bottom: 1rem;
      font-size: 1.25rem;
      font-weight: 500;
    }

    & ul {
      list-style-type: none;
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-orient: vertical;
      -webkit-box-direction: normal;
      -ms-flex-direction: column;
      flex-direction: column;
      -webkit-box-align: start;
      -ms-flex-align: start;
      align-items: flex-start;
      -webkit-box-pack: start;
      -ms-flex-pack: start;
      justify-content: flex-start;
      gap: 0.75rem;

      & li a {
        color: #ebebeb;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        gap: 0.5rem;
        -webkit-transition: color 0.25s ease-in-out;
        -o-transition: color 0.25s ease-in-out;
        transition: color 0.25s ease-in-out;

        & .bxs-map {
          font-size: 1.2rem;
        }

        &:hover {
          color: var(--main);
        }
      }
    }
  }

  & #footer_social {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    gap: 1rem;
    padding-block: 2rem;

    & i {
      font-size: 2rem;
      -webkit-transition: color 0.25s ease-in-out;
      -o-transition: color 0.25s ease-in-out;
      transition: color 0.25s ease-in-out;

      &:hover {
        color: var(--main);
      }
    }

    & a {
      background-color: white;
      border-radius: 50%;
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-align: center;
      -ms-flex-align: center;
      align-items: center;
      -webkit-box-pack: center;
      -ms-flex-pack: center;
      justify-content: center;
      padding: 0.5rem;
    }
  }

  & #footer_copyright {
    margin-top: 3rem;
    background-color: var(--main);
    color: var(--dark);
    padding-block: 1rem;
    font-weight: 400;
    text-align: left;
  }
}

.bxl-facebook-circle {
  color: #5472d2;
}

.bxl-youtube {
  color: #e52d27;
}

.bxl-linkedin-square {
  color: #0a66c2;
}

.bxl-instagram {
  color: #f14e42;
}

.bxl-tiktok {
  color: #fe2c55;
}

@media screen and (max-width: 768px) {
  #menu #menuItemContainer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    position: absolute;
    left: -100%;
    top: 0px;
    background-color: var(--gray);
    height: 100vh;
    width: 75vw;
    z-index: 999;
    padding-inline: 2rem;
    padding-top: 5rem;
    -webkit-transition: left 0.4s ease-in-out;
    -o-transition: left 0.4s ease-in-out;
    transition: left 0.4s ease-in-out;
    gap: 3rem;

    &.active {
      left: 0;
    }

    & #menuClose {
      display: block;
      position: absolute;
      top: 0;
      right: 0;
      padding: 1rem;
      cursor: pointer;
      font-size: 1.5rem;
    }

    & li {
      height: auto;
      border: 0;
    }

    & li:first-of-type {
      -webkit-box-ordinal-group: 2;
      -ms-flex-order: 1;
      order: 1;
    }

    & a {
      font-size: 1.25rem;
    }
  }

  #menu #menuOpen {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-line-pack: center;
    align-content: center;
  }

  #menu img {
    width: 60px;
    height: 60px;
  }

  section#hero {
    & h1 {
      font-size: 2.35rem;
    }
  }

  footer #footer_navs {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    gap: 5rem;
  }

  footer #footer_navs ul {
    font-size: 0.9rem;
    gap: 1.2rem;
  }

  footer #footer_social {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    gap: 1.5rem;
  }

  footer #footer_copyright {
    font-size: 0.85rem;
  }
}

#idopontLogo {
  max-width: 200px;
  height: auto;
}
