@import 'init';


@b_deg: 80deg;

header {
  background: linear-gradient(to right, @black, @black 18%, @yellow 18%);
  .container {
    display: flex;
    justify-content: space-between;
  }
  .navbar-brand {
    &.brand-mobile {
      display: none;
    }
    display: inline-flex;
    align-items: center;
    width: 340px;
    background-color: @black;
    position: relative;
    &::after {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      right: 0;
      width: 20px;
      background: @black;
      transform: skew(~"calc(90deg - @{b_deg})");
      transform-origin:top;
      z-index: -1;
    }
    h1.logo {
      margin-bottom: 0;
    }
  }
  .socials-mobile {
    display: none;
    a {
      background-color: @black;
      width: 38px;
      display: inline-block;
      text-align: center;
    }
    .fa {
      padding: 8px;
    }
  }
  .socials, .socials-mobile {
    .fa {
      font-size: 2em;
      color: white;
    }
  }
  .socials {
    a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: 110px;
      background-color: @black;
      width: 50px;
      position: relative;
      margin-right: 20px;
      &::before, &::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 20px;
        background: @black;
        transform: skew(~"calc(90deg - @{b_deg})");
        transform-origin:top;
      }
      &::before {
        left: -20px;
      }
      &::after {
        right: 0;
      }
      &:not(:last-of-type)::after {
        -webkit-box-shadow: 3px 0px 0px 0px #000f,6px 0px 0px 0px #000a,9px 0px 0px 0px #0006,12px 0px 0px 0px #0000;
        box-shadow: 3px 0px 0px 0px #000f,6px 0px 0px 0px #000a,9px 0px 0px 0px #0006,12px 0px 0px 0px #0000;
      }
    }
  }
}

.navbar-nav > .nav-item {
  margin-right: 16px;
  &.active {
    .nav-link {
      position: relative;
      &::before {
        position: absolute;
        content: '';
        width: 40px;
        left: 50%;
        transform: translateX(-50%);
        bottom: 0;
        border: transparent;
        border-top: 3px solid @black;
      }
    }
  }
}
a {
  &.nav-link, &.dropdown-item {
    text-decoration: none !important;
  }
}
.nav-link, .dropdown-item {
  .f-teko;
  font-weight: 400;
  font-size: 1.5em;
  text-transform: uppercase;
}
.navbar-light .navbar-nav {
  .active, .show {
    > .nav-link {
      color: @black;
    }
  }
  .nav-link {
    color: @black;
    &.active, &.show {
      color: @black;
    }
  }
}
.dropdown-menu {
  background-color: @yellow;
}
.dropdown-item {
  &:focus, &:hover, &.active, &:active {
    color: @yellow;
    text-decoration: none;
    background-color: @black;
  }
}
footer {
  background-color: @black;
  color: white;
  padding: 36px 0;
  a {
    color: white;
  }
  .nav-item {
    a {
      text-decoration: none;
      font-size:2em;
    }
    &.active {
      a {
        text-decoration: underline !important;
      }
    }
  }
  .title, ul a {
    .f-teko;
  }
  .title {
    font-size: 2.25em;
  }
  ul a {
    font-size: 2em;
  }
  .logo {
    margin-bottom: 1rem;
  }
  .socials {
    a {
      font-size: 30px;
      color: @black;
      display: inline-block;
      background-color: @yellow;
      width: 50px;
      padding: 8px;
      text-align: center;
      &:not(:last-of-type) {
        margin-right: 14px;
      }
    }
  }
  ul {
    padding-inline-start: 0;
    list-style-type: none;
  }
  li, .title {
    margin-bottom: 6px;
  }
  .title {
    color: @yellow;
  }
  .content {
    margin-bottom: 16px;
    span.yellow {
      color: @yellow;
      font-weight: 700;
    }
  }
  .copyright {
    text-align: center;
    border-top: 3px solid @yellow;
    padding-top: 22px;
    margin-top: 8px;
  }
}
@media only screen and (min-width: 992px) {
  .col-lg-27p {
    -ms-flex: 0 0 27%;
    flex: 0 0 27%;
    max-width: 27%;
  }
  .col-lg-13p {
    -ms-flex: 0 0 13.5%;
    flex: 0 0 13.5%;
    max-width: 13.5%;
  }
  .col-lg-23p {
    -ms-flex: 0 0 23%;
    flex: 0 0 23%;
    max-width: 23%;
  }
}
@media only screen and (max-width: 1599px) {
  .nav-link, .dropdown-item {
    font-size: 1.3em;
  }
  footer {
    .title {
      font-size: 1.7em;
    }
    ul a {
      font-size: 1.5em;
    }
  }
}
@media only screen and (min-width: 1200px) and (max-width: 1599px) {
  header {
    .navbar-brand {    
      width: 240px;
    }
  }
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
  header {
    .navbar-brand {    
/*      width: 220px;*/
      width: 198px;
    }
    .navbar {
      padding: .5rem;
    }
    .socials {
       a {
         width: 22px;
       }
       .fa {
         font-size: 1.5em;
         z-index: 1;
       }
    }
  }
  .navbar-nav > .nav-item {
    margin-right: 0;
  }
  
}
@media only screen and (max-width: 991px) {
  header {
    background: linear-gradient(to right, #252525, #252525 50%, #fdc30e 18%);
    .navbar {
      width: 100%;
      text-align: right;
    }
    .navbar-brand {
      width: 300px;
      h1.logo {
        text-align: left;
      }
      &.brand-desktop {
        display: none;
      }
      &.brand-mobile {
        display: inline-block;
      }
      &::after {
        display: none;
      }
    }
    .socials-mobile {
      display: block;
    }
    .socials {
      display: none;
    }
    .socials-mobile {
      margin-bottom: 1rem;
      .fa {
        font-size: 1.4em;
      }
    }
  }              
  .navbar-nav > .nav-item {
    margin-right: 0;
  }
  .navbar-light .navbar-toggler {
    border-color: @black;
      .fa {
        color: @black;
        font-size: 28px;
      }
  }
  .navbar-nav .dropdown-menu {
    margin-bottom: 8px;
  }
  .dropdown-item {
    text-align: right;
  }
  footer .socials {
    margin-bottom: 1rem;
    a {
      font-size: 24px;
      width: 37px;
      padding: 4px;
    }
  }
  footer {
    .title, ul a {
      font-size: 1.3em;
    }
  }
}

@media only screen and (min-width: 576px) and (max-width: 991px) {
  header {
    .navbar-nav > .nav-item {
      margin-left: auto
    }
  }
  .dropdown-menu {
    background-color: @black;
  }
  .dropdown-item {
    color: @yellow;
    &:focus, &:hover {
      color: @black;
      background-color: @yellow;
    }
  }
}
@media only screen and (max-width: 575px) {
  header {
    background: @black;   
    .navbar {
      padding: 0;
    }
    .navbar-brand {
      width: 200px;
    }
    .socials-mobile {
      a {
        background-color: @yellow;
        width: 26px;
      }
      .fa {
        color: @black;
        font-size: 1em;
        padding: 5px;
      }
    }
  }
  .navbar-light {
    .navbar-nav {
      .nav-link {
        color: @yellow;
        line-height: 1;
        padding-top: 0;
        &:focus, &:hover {
          color: @yellow;
        }
      }
      .active, .show {
        > .nav-link {
          color: @yellow;
          text-decoration: underline;
        }
      }
    }
    .navbar-toggler {
      border-color: @yellow;
        .fa {
          color: @yellow;
        }
    }
  }
  .nav-link, .dropdown-item {
    font-size: 1.2em;
  }
  footer {
    .socials {
      a {
        font-size: 18px;
        width: 30px;
        &:not(:last-of-type) {
          margin-right: 3px;
        }
      }
    }
  }
}