@import 'menu';
@import 'functions';

header {
  &.sticky {
    transition: unset;
  }

  &.elision-header-replacement {
    display: inline-block;
    position: fixed !important;
    top: 0;
    height: auto;
    max-height: 50px;
    overflow: hidden;
    z-index: 1000;
    color: black;
    -moz-transition: max-height .5s         ease-in-out;
    -webkit-transition: max-height .5s      ease-in-out;
    -o-transition: max-height .5s           ease-in-out;
    -ms-transition: max-height .5s          ease-in-out;
    transition: max-height .5s              ease-in-out;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    position: -webkit-sticky;

    .admin-bar & {
      top: 32px;
      @include media(0, 783px) {
        top: 46px;
      }
    }

    @include media(0, large) {
      transition: unset;
    }
  }

  a {
    color: black;
  }

  &.elision-header-replacement.opened {
    max-height: 100%;
    z-index: 1001;
  }
}

.header_bottom_ie {
  padding: 0 0 4rem 0;
}

.header_inner_right_ie, .header_inner_left_ie {
  position: absolute;
  top: 0;
  font-size: 12pt;

  height: 50px;

  .menu-top-menu-container ul li {
    @include media(0, very-large) {
      margin: 0;
      padding: .5em;
    }
  }
}

.header_inner_right_ie {
  right: 0;
  margin: 0;
}

.header_inner_left_ie {
  margin: 0 0 0 1rem;
}

.header_inner_right_ie > div {
  height: 100%;
  display: inline-block;
  margin: 0;
  vertical-align: middle;
}

.header_inner_left_ie > div {
  height: 100%;
  display: inline-block;
  margin: 0;
  vertical-align: middle;

  > div > * {
    /*position: relative;*/
    /*top: 50%;*/
    /*transform: translateY(-50%);*/
  }
}

.header_inner_right_ie > div ul, .header_inner_left_ie > div ul {
  list-style: none;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

.header_inner_right_ie > {
  .menu-top-menu-container > ul > li {
    margin: .65em .25em;
    padding: .1em .25em;

    &.button {
      transition: margin .4s ease-in-out, padding .4s ease-in-out, background-color .4s ease-in-out;

      &:hover {
        margin: .65em .4em;
        padding: .1em .6em;
      }
    }
  }

  div > ul > li {
    display: inline-block;
  }
}

.header_inner_left_ie > div ul {
  font-size:0;

  li {
    display: inline-block;
    margin-left: 1rem;
    font-size: 24px;
  }

  #menu-top-left-menu {
    display: inline-block;
  }
}

.header_inner_left_ie {
  & > div  ul {
    height: 80%;
    > li {
      //padding: 0 1rem;
      display: inline-block;
      height: 100%;

      > a {
        display: inline-block;
        position: relative;
        top: 50%;
        transform: translateY(-50%);
        //font-size: 12pt;
        svg {
        font-size: 24px;
      }
      }
    }
  }
}

.header_inner_right_ie > div {
  &.menu-top-menu-container {
    font-size: 12pt;

    > ul > li:not(:last-child):after {
      content: "";
    }
  }
  &.menu-social-media-top-container > ul {

    height: 80%;
    > li {
      padding: 0 .5rem;
      //border-left: 1px solid black;
      display: inline-block;
      height: 100%;

      > a {
        display: inline-block;
        position: relative;
        top: 50%;
        transform: translateY(-50%);
        //font-size: 1.6rem;

        svg.menu_icon {
          font-size: 24px;
          width: 24px;
          block-size: auto;
        }
      }

      //&:last-child {
      //  border-right: 1px solid black;
      //}
    }
  }
}

.button-list {
  font-size: 20pt;
  max-height: 32px;

  > li {
    min-width: 25px;
    text-align: center;
  }

  button::-moz-focus-inner {
    border: 0;
  }
}

#search-button {
  cursor: pointer;
}


.search-box {
  line-height: 14px;
  font-size: 12px;
  background: white;
  padding: 6px 2px;
  margin: -7px 0;
  max-width: 0;

  transition: max-width .5s ease-in-out;

  .opened & {
    max-width: 100%;
  }

  border: 1px solid black;
  border-radius: 4px;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}

header i.fa {
  line-height: 32px;
}


header.centered_logo .header_inner_left {
  margin: 0 !important;
}

.header_inner_ie {
  font-size: 12pt;
}


.header_inner_left_ie > div ul li.search-box-container {
  //display: none;
  min-width: 0;
  max-width: 0;
  transition: max-width .5s ease-in-out, opacity .5s ease-in-out, margin .5s ease-in-out;
  overflow: visible;
  opacity: 0;
  height: auto;
  margin: 0;
  text-align: left;

  &.opened {
    display: inline-block;
    max-width: 300px;
    opacity: 1;
    margin-left: 1rem;
  }
}

.search-box-mobile {
  width: calc(100% - 20px);
  line-height: 30px;
  padding: 0 10px;
}

#wpadminbar {

  /* Wordpress defined de mobile version of the adminbar at max-width: 782px */
  @include media(0, 783px) {
      position: fixed;
  }

}


.ls-layers {
  & img.shadow-filter {
    filter: drop-shadow(0 0 7px) !important;
    -webkit-filter: drop-shadow(0 0 7px) !important;
    color: black;

    @each $size in (1,2,3,4,5,6,7,8,9,10) {
      &-#{$size} {
        filter: drop-shadow(0 0 #{$size}px) !important;
        -webkit-filter: drop-shadow(0 0 #{$size}) !important;
        color: black;
      }
    }

    &.narrow {
      filter: drop-shadow(0 0 3px) !important;
      -webkit-filter: drop-shadow(0 0 3px) !important;
    }

    &.wide {
      filter: drop-shadow(0 0 12px black) !important;
      -webkit-filter: drop-shadow(0 0 12px black) !important;
    }

  }
}