@import './../../styles/variables/index.scss';

@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0px rgba(39, 102, 196, 0.25);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(39, 102, 196, 0);
  }
}

.header {
  position: fixed;
  display: flex;
  align-items: center;
  z-index: 10111;
  background-color: $white;
  width: 100%;
  height: 78px;
  top: 0;

  .container {
    max-width: 1366px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    padding: 0 16px;
    align-items: center;

    @media (min-width: 560px) {
      padding: 0 32px;
    }

    @media (min-width: 900px) {
      padding: 0 43px;
    }

    .logo {
      padding: 20px 0;
      flex: 1;
      a {
        display: table;
        padding: 0;

        &::after {
          display: none;
        }
      }

      img {
        max-width: 91px;
        display: block;
      }
    }

    .hamb {
      width: 44px;
      height: 44px;
      padding: 8px;
      background: transparent;
      border: 0;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      justify-content: center;
      cursor: pointer;
      position: relative;
      z-index: 100;

      @media (min-width: 900px) {
        display: none;
      }

      span {
        display: block;
        height: 2px;
        width: 100%;
        background: $medium-blue;
        margin-bottom: 4px;
        &:last-child {
          width: 60%;
        }
      }
    }

    .menuMobile {
      position: fixed;
      top: 0;
      left: 0;
      height: 100vh;
      width: 100%;
      transform: translateY(-100%);
      background: $main-blue;
      display: flex;
      overflow-y: auto;
      .menuMobileContainer {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 38px;
        width: 100%;
        min-height: 540px;
        @media (min-width: 560px) {
          min-height: 770px;
          gap: 70px;
        }
        > div {
          width: 50%;
          text-align: center;
          &.menuMobileLanguages {
            position: fixed;
            top: 32px;
            left: 22px;
            text-align: left;
            width: auto;
          }
        }
      }
      a {
        font-family: $font-family-atak-light;
        color: $white;
        font-size: 17px;
        line-height: 20px;
        &.activeHeader {
          font-size: $font-size-xxdefault;
        }
        @media (min-width: 560px) {
          font-size: 20px;
          line-height: 20px;
          &.activeHeader {
            font-size: 22px;
          }
        }
      }
    }

    .topMenus {
      display: none;

      @media (min-width: 900px) {
        flex: 1;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 0 20px;
      }
    }
    a {
      color: $main-blue;
      font-family: $font-family-atak;
      font-size: $font-size-default;
      font-weight: 300;
      letter-spacing: 0;
      line-height: 16px;
      text-align: right;
      padding: 5px 10px;
      position: relative;
      transition: color 0.3s;

      &.activeHeader {
        font-family: $font-family-newsreader;
        font-size: $font-size-xdefault;
        font-style: italic;
        pointer-events: none;

        &::after {
          transform: scale(1);
          top: calc(100% - 13px);
        }
      }

      &:after {
        content: '';
        display: block;
        position: absolute;
        top: calc(100% - 13px);
        right: 4px;
        background: #2766c4;
        height: 8px;
        line-height: 0px;
        transform: scale(0);
        transition: transform 0.3s;
        width: 4px;
        height: 4px;
        border-radius: 4px;
        /* transform-origin: bottom; */
      }
    }

    &:not(.logo) {
      a {
        &:hover {
          position: relative;
          color: #2766c4;
          &::after {
            transform: scale(1);
          }
        }
      }
    }

    .dotContainer {
      height: 28px;
      width: 28px;
      margin: 0 -9.5px;
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;

      a {
        text-align: center;
        padding: 10px;

        &:hover {
          position: absolute;
          color: $white;
          &::before {
            background: $medium-blue;
          }
          &::after {
            transform: scale(0);
          }
        }
      }
    }

    .dot {
      height: 7px;
      width: 7px;
      position: absolute;
      top: 50%;
      right: 50%;
      background-color: $medium-blue;
      border-radius: 82px;
      transform: translate(-50%, -50%);
      transform: translateZ(1px);
      display: flex;

      &[style*='width: 7px;'],
      &[style*='width:7px;'] {
        animation: pulse-animation 2s infinite;
      }
    }

    .text {
      opacity: 0;
      color: $white;
      position: absolute;
      top: 50%;
      left: 50%;
      z-index: 111;
      width: 132px;
      text-align: center;
      display: none;
      transform: translate(-50%, -50%);
    }
  }

  & + div[class*='HighLights'] {
    margin-top: 70px;
    @media (min-width: 900px) {
      margin-top: 80px;
    }
  }

  & + div[class*='imageContainer'] {
    margin-bottom: 24px;
    /* @media (min-width: 900px) {
      margin-top: 80px;
    } */
  }
}
