:root {
  --navbar-active: #ffcde2;
  --navbar-item1: #ffb2a7;
  --navbar-item2: #fa9383;
  --navbar-item3: #ff83a8;
  --navbar-item4: #e2598e;
  --navbar-item5: #df11a4a8;
  --navbar-item6: #aa097cbe;
  --navbar-submenu1: #fc1f95;
  --navbar-submenu2: #e7007b;
  --navbar-poza-submenu: #b6cdf9;
  --navbar-mobile-uniform:#ff5500;
}


#navbar {
  display: flex;
  justify-content: center;
  height: 10vh;
  padding: 0px;
  margin: 0px;
  overflow: hidden;
  font-family: "FiraSans", sans-serif;
  /* perspective: 700px; */
  /* background: rgb(41, 37, 37); */
}

#navbar-index {
  display: flex;
  justify-content: center;
  height: 20vh;
  padding: 0px;
  margin: 0px;
  overflow: hidden;
  font-family: "FiraSans", sans-serif;
}

header *{
  box-sizing: border-box;
  transform-style: preserve-3d;
  z-index: 999;
}

 .active{
  background-color: var(--navbar-active); 
}


/* ---- Media 660 --- */

@media (min-width: 910px) {
   nav {
    width: 100%;
    position: absolute;
    background: #ffffff;
    margin: 0px;
    max-width: 100%;
    z-index: 2;
  }
   nav ol {
    width: 100%;
    display: flex;
    justify-content: space-around;
    padding: 0px;
    margin: 0px;
    transition: all 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
   nav ol li {
    display: inline-block;
    padding: 30px;
    flex-grow: 1;
    text-align: center;
    position: relative;
    transition: all 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
   nav ol li:nth-of-type(4) ol::after {
    content: "[]";
    /* font-family: FontAwesome; */
  }
   nav ol li:hover ol::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    display: block;
    bottom: -30px;
    left: -15px;
    transform: rotate(45deg) scale(0.5);
    border: 3px solid orange;
    border-color: orange transparent transparent orange;
    background: linear-gradient(45deg, transparent -50%, transparent 45%, orange 45%, orange 55%, transparent 55%, transparent 125%);
    background-repeat: no-repeat;
    animation: clipin 0.4s ease-in 1 forwards;
    animation-delay: 0.2s;
    -webkit-clip-path: polygon(35% 35%, 35% 0, 35% 0, 35% 35%, 0 35%, 0 35%);
    clip-path: polygon(35% 35%, 35% 0, 35% 0, 35% 35%, 0 35%, 0 35%);
  }
   nav ol li:hover li {
    position: relative;
  }
   nav ol li:hover li:first-of-type::before {
    display: none;
  }
   nav ol li:hover li::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    display: block;
    right: -30px;
    top: -15px;
    left: auto;
    transform: rotate(-45deg) scale(0.5);
    border: 3px solid red;
    border-color: red transparent transparent red;
    background: linear-gradient(45deg, transparent -50%, transparent 45%, red 45%, red 55%, transparent 55%, transparent 125%);
    background-repeat: no-repeat;
    animation: clipin 0.4s ease-in 1 forwards;
    -webkit-clip-path: polygon(35% 35%, 35% 0, 35% 0, 35% 35%, 0 35%, 0 35%);
    clip-path: polygon(35% 35%, 35% 0, 35% 0, 35% 35%, 0 35%, 0 35%);
  }
  @keyframes clipin {
    0% {
      -webkit-clip-path: polygon(35% 35%, 35% 0, 35% 0, 35% 35%, 0 35%, 0 35%);
      clip-path: polygon(35% 35%, 35% 0, 35% 0, 35% 35%, 0 35%, 0 35%);
    }
    50% {
      -webkit-clip-path: polygon(35% 35%, 35% 0, 35% 0, 35% 35%, 0 35%, 0 35%);
      clip-path: polygon(35% 35%, 35% 0, 35% 0, 35% 35%, 0 35%, 0 35%);
    }
    75% {
      -webkit-clip-path: polygon(35% 35%, 35% 0, 100% 0, 100% 100%, 0 100%, 0 35%);
      clip-path: polygon(35% 35%, 35% 0, 100% 0, 100% 100%, 0 100%, 0 35%);
    }
    100% {
      -webkit-clip-path: polygon(100% 100%, 100% 0, 100% 0, 100% 100%, 0 100%, 0 100%);
      clip-path: polygon(100% 100%, 100% 0, 100% 0, 100% 100%, 0 100%, 0 100%);
    }
  }

  nav ol li ol::after {
    /* font-family: FontAwesome; */
    font-weight: 900;
    /* content: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' fill='blue' width='150' height='150' viewBox='0 0 15 15'><path d='M4 6a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm2.625.547a3 3 0 0 0-5.584.953H.5a.5.5 0 0 0 0 1h.541A3 3 0 0 0 7 8a1 1 0 0 1 2 0 3 3 0 0 0 5.959.5h.541a.5.5 0 0 0 0-1h-.541a3 3 0 0 0-5.584-.953A1.993 1.993 0 0 0 8 6c-.532 0-1.016.208-1.375.547zM14 8a2 2 0 1 1-4 0 2 2 0 0 1 4 0z'/></svg>"); */
    content: url("../images/logo-opticelite.png");
    vertical-align: center;
    font-size: 150px;
    color: #2b3d89;
    position: absolute;
    padding-top: 40px;
    height: calc(100% - 40px);
    width: 100%;
    left: -100%;
    top: 0;
    background: var(--navbar-poza-submenu);
    transform: rotate(-90deg);
    transform-origin: 0% 0%;
    transition: all 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
   nav ol li:nth-of-type(1):hover a {
    color: #222;
  }
   nav ol li:nth-of-type(1):hover ol li a {
    color: #fff;
  }
   nav ol li:nth-of-type(1):hover::before {
    transform: translateY(0) rotate(0deg);
  }
   nav ol li:nth-of-type(1)::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--navbar-item1);
    top: 0;
    left: 0;
    z-index: -1;
    transition: all 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(-125%) rotate(-5deg);
  }
   nav ol li:nth-of-type(2):hover a {
    color: #222;
  }
   nav ol li:nth-of-type(2):hover ol li a {
    color: #fff;
  }
   nav ol li:nth-of-type(2):hover::before {
    transform: translateY(0) rotate(0deg);
  }
   nav ol li:nth-of-type(2)::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--navbar-item2);
    top: 0;
    left: 0;
    z-index: -1;
    transition: all 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(-125%) rotate(-5deg);
  }
   nav ol li:nth-of-type(3):hover a {
    color: #222;
  }
   nav ol li:nth-of-type(3):hover ol li a {
    color: #fff;
  }
   nav ol li:nth-of-type(3):hover::before {
    transform: translateY(0) rotate(0deg);
  }
   nav ol li:nth-of-type(3)::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--navbar-item3);
    top: 0;
    left: 0;
    z-index: -1;
    transition: all 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(-125%) rotate(-5deg);
  }

  nav ol li:nth-of-type(4):hover a {
    color: #222;
  }
   nav ol li:nth-of-type(4):hover ol li a {
    color: #fff;
  }
   nav ol li:nth-of-type(4):hover::before {
    transform: translateY(0) rotate(0deg);
  }
   nav ol li:nth-of-type(4)::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--navbar-item4);
    top: 0;
    left: 0;
    z-index: -1;
    transition: all 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(-125%) rotate(-5deg);
  }

  nav ol li:nth-of-type(5):hover a {
    color: #222;
  }
   nav ol li:nth-of-type(5):hover ol li a {
    color: #fff;
  }
   nav ol li:nth-of-type(5):hover::before {
    transform: translateY(0) rotate(0deg);
  }
   nav ol li:nth-of-type(5)::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--navbar-item5);
    top: 0;
    left: 0;
    z-index: -1;
    transition: all 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(-125%) rotate(-5deg);
  }

  nav ol li:nth-of-type(6):hover a {
    color: #222;
  }
   nav ol li:nth-of-type(6):hover ol li a {
    color: #fff;
  }
   nav ol li:nth-of-type(6):hover::before {
    transform: translateY(0) rotate(0deg);
  }
   nav ol li:nth-of-type(6)::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--navbar-item6);
    top: 0;
    left: 0;
    z-index: -1;
    transition: all 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(-125%) rotate(-5deg);
  }



   nav ol li:hover ol {
    transform: translateY(0) translateZ(-1px);
  }
   nav ol li:hover ol::after {
    transform: rotate(0deg);
  }
   nav ol li:hover ol li:nth-of-type(1n) {
    transform: none;
    margin: 0px;
  }
   nav ol li:hover ol li:nth-of-type(1n):hover::after {
    opacity: 1;
    top: 0vh;
  }
   nav ol li a {
    color: #000000;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900;
  }
   nav ol li ol {
    display: block;
    position: absolute;
    top: 100%;
    transform: translateY(-110%) translateZ(-5px);
    transform-origin: top right;
    z-index: -1;
    width: 120%;
    left: 0;
  }
   nav ol li ol:hover li:nth-of-type(1n):hover {
    padding: 40px 30px;
  }
   nav ol li ol li {
    display: block;
    margin: 20px 0;
  }
   nav ol li ol li a {
    font-size: 20px;
  }
   nav ol li ol li::before {
    display: none;
  }
   nav ol li ol li:nth-of-type(1) {
    transition-delay: 0.1s;
    background: var(--navbar-submenu1);
  }
   nav ol li ol li:nth-of-type(1)::before {
    animation-delay: 0.05s;
    background: linear-gradient(45deg, transparent -50%, transparent 45%, #ff2b00 45%, #ff2b00 55%, transparent 55%, transparent 125%);
    background-repeat: no-repeat;
    border-color: #ff2b00 transparent transparent #ff2b00;
  }
   nav ol li ol li:nth-of-type(2) {
    transition-delay: 0.2s;
    background: var(--navbar-submenu2);
  }
   nav ol li ol li:nth-of-type(2)::before {
    animation-delay: 0.1s;
    background: linear-gradient(45deg, transparent -50%, transparent 45%, #ff5500 45%, #ff5500 55%, transparent 55%, transparent 125%);
    background-repeat: no-repeat;
    border-color: #ff5500 transparent transparent #ff5500;
  }
   nav ol li ol li:nth-of-type(3) {
    transition-delay: 0.3s;
    background: #ff8000;
  }
   nav ol li ol li:nth-of-type(3)::before {
    animation-delay: 0.15s;
    background: linear-gradient(45deg, transparent -50%, transparent 45%, #ff8000 45%, #ff8000 55%, transparent 55%, transparent 125%);
    background-repeat: no-repeat;
    border-color: #ff8000 transparent transparent #ff8000;
  }

   nav ol li ol li:first-of-type {
    margin-top: 0;
  }
   nav ol li ol li:nth-of-type(even) {
    transform-origin: top left;
    transform: rotate(5deg);
  }
   nav ol li ol li:nth-of-type(odd) {
    transform-origin: top right;
    transform: rotate(-5deg);
  }
}

@media (max-width: 909px) {
   nav {
    position: absolute;
    top: 0;
    height: 45px;
    left: 0;
    background: #222;
    width: 100%;
  }
   nav:hover ol li:nth-of-type(1n) {
    transform: rotate(0deg);
    margin: 0px;
    transition: all 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
   nav:hover ol li:nth-of-type(1) {
    transition-delay: 0.0666666667s;
  }
   nav:hover ol li:nth-of-type(1):hover a {
    color: var(--navbar-item3);
  }
   nav:hover ol li:nth-of-type(2) {
    transition-delay: 0.1333333333s;
  }
   nav:hover ol li:nth-of-type(2):hover a {
    color: var(--navbar-item4);
  }
   nav:hover ol li:nth-of-type(3) {
    transition-delay: 0.2s;
  }
   nav:hover ol li:nth-of-type(3):hover a {
    color: var(--navbar-item3);
  }

  nav:hover ol li:nth-of-type(4) {
    transition-delay: 0.2s;
  }
   nav:hover ol li:nth-of-type(4):hover a {
    color: var(--navbar-item4);
  }

  nav:hover ol li:nth-of-type(5) {
    transition-delay: 0.2s;
  }
   nav:hover ol li:nth-of-type(5):hover a {
    color: var(--navbar-item3);
  }

  nav:hover ol li:nth-of-type(6) {
    transition-delay: 0.2s;
  }
   nav:hover ol li:nth-of-type(6):hover a {
    color: var(--navbar-item4);
  }



   nav:hover::before {
    transform: rotate(45deg);
    box-shadow: 0 0 0 0;
  }
   nav:hover::after {
    transform: rotate(-45deg);
  }
   nav::before,  nav::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 3px;
    background: #fff;
    top: 10px;
    left: calc(50% - 15px);
    border-radius: 5px;
    box-shadow: 0 10px 0 0 #fff;
    transition: transform 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 100ms ease-in-out;
    transition-delay: 0.1s, 0s;
    transform-origin: 0% 50%;
  }
   nav::after {
    box-shadow: none;
    top: 30px;
    transform-origin: 0% 50%;
  }
   nav:hover ol {
    transform: translateY(0) translateZ(-1px);
  }
   nav:hover ol ol {
    transform: none;
  }
   nav ol {
    position: absolute;
    width: 60%;
    top: 0px;
    display: table;
    left: 0;
    margin: 0px;
    transform: translateY(calc(-100% - 45px)) translateZ(-1px);
    text-align: center;
    transition: all 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(0, 0, 0, 0.80);
    padding: 60px 0 50px;
    height: auto;
  }
  .active {
    background-color: var(--navbar-item6);
    z-index: auto;
  }
   nav ol li {
    position: relative;
    display: inline-block;
    width: 100%;
    clear: both;
    height: 80px;
    padding: 10px 0;
    margin: 10px 0;
    letter-spacing: 2px;
    transition: all 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(0, 0, 0, 0);
    /* z-index: 99999; */
  }
   nav ol li:nth-of-type(even) {
    transform: rotate(-5deg);
  }
   nav ol li:nth-of-type(odd) {
    transform: rotate(5deg);
  }
   nav ol li:hover ol {
    height: auto;
    transition: opacity 0.2s ease-in-out;
    opacity: 1;
  }
   nav ol li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    line-height: 30px;
    align-items: center;
    vertical-align: -20px;
    }
   nav ol ol {
    position: fixed;
    transform: none;
    background: #000000;
    display: inline-block;
    left:auto;
    width: 90%;
    height: 0;
    top: auto;
    padding: 0;
    overflow: auto;
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
  }
   nav ol ol li a{
    font-size: .8rem;
    text-transform: uppercase;
    height: auto;
  }
   nav ol ol li:first-of-type {
    padding-top: 20px;
  }
}

@media (max-width: 430px) {

  nav ol li {
    height: 75px;
    padding: 0;
  }

  nav ol li a {
  font-size: 1rem;
  line-height: 0px;
  vertical-align: -20px;
  }

  nav ol ol li a{
    font-size: .6rem;
    line-height: 0px;
    line-height: 1px;
  }
 
  nav ol ol li:first-of-type {
    padding-top: 10px;
  }

}