
/**** Nav ***/

.nav {
  z-index: 10001;
    top: 0;
    width: 100%;
    height: 77px;
    position: fixed;
    line-height: 65px;
    text-align: center;
    background-color: var(--nav-background) ;
    padding-top: 10px;
    padding-bottom: 50px;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
  }

  
  .nav div.logo {
  /*  float: right;*/
    width: auto;
    height: auto;
    float: left;
    padding-left: 3rem;
    padding-top: 10px
    
  }

  .nav div.logo img {
      width: 250px;
      height: 38px;      
    }
 
  [dir=rtl] .nav div.logo {
    float: right;
    padding-right: 3rem;
  } 
  
  .nav div.main_list {
    height: 65px;
    float: right;
  }
  
  [dir=rtl] .nav div.main_list {
    float: left;
  }

  .main_list_search{
    background-color: transparent !important;
  }

  /*.main_list_search_item{
    background-color: var(--input-text-background);
  }*/
  
  
  .nav div.main_list ul {
    width: 100%;
    height: 65px;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .nav div.main_list ul li {
    width: auto;
    height: 65px;
    padding: 0;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  

  .nav div.main_list ul li:hover{border-radius: 15px; background-color: var(--nav-main-list-background)}

  
  .main_list_item {
    text-decoration: none;
    color: var(--nav-main-list-item-title);
    line-height: 65px;
    font-size: 1rem;
  }
  
 

 .main_list_item_language {
    text-decoration: none;
    
    line-height: 65px;
    font-size: 1.2rem;
    
  }

  [dir=rtl] .main_list_item_language {
    font-size: 1rem;
  }
  

  
.affix {
    /* padding: 0;*/
     background-color: var(--affix-background);
   }

  
  
  .navTrigger {
    display: none;
  }
  
  .navTrigger:dir(ltr) {
    right: 30px;
  }

  .navTrigger:dir(rtl) {
    left: 30px;
  }





.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color:var(--nav-main-list-background);
  min-width: 140px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 15px;
 
  
}

.dropdown-content:dir(ltr) {
  margin-left: -50px;
}

.dropdown-content:dir(rtl) {
  margin-right: -50px;
}


.dropdown-content-item {
  color: var(--nav-main-list-item-title) !important;
  text-decoration: none;
  display: block;
  line-height: 45px;
  
}

.dropdown-content-item:hover {border-radius: 15px; background-color: var(--secondary-color)}


.dropdown-content-item-icon {
  color: var(--nav-main-list-item-title) !important;
  text-decoration: none;
  display: block;
}

.dropdown-content-item-icon:hover {border-radius: 15px;}

.dropdown:hover .dropdown-content {display: block;}



  
  
  /* Media qurey section */
  
  @media screen and (min-width: 768px) and (max-width: 1024px) {
    .navContainer {
        margin: 0;
    }
  }
  
  @media screen and (max-width:903px) {
    .navTrigger {
        display: block;
    }
    .nav div.logo {
        margin-left: 15px;
    }
    .nav div.main_list {
        width: 100%;
        height: 0;
        overflow: hidden;
    }
    .nav div.show_list {
        height: auto;
        display: none;
        position: relative;
        top: 20px;
    }
    .nav div.main_list ul {
        flex-direction: column;
        width: 100%;
        height: 100vh;
        right: 0;
        left: 0;
        bottom: 0;
        background-color: var(--nav-main-list-background);
        /*same background color of navbar*/
        background-position: center top;
    }
    .nav div.main_list ul li {
        width: 100%;
        text-align: center;
    }
    .nav div.main_list ul li a {
        text-align: center;
        width: 100%;
        font-size: 2rem;
        padding: 20px;
    }
    .nav div.media_button {
        display: block;
    }
  }
  
  
  /* navTrigger */
  /* Inspiration taken from Dicson https://codemyui.com/simple-hamburger-menu-x-mark-animation/ */
  
  .navTrigger {
    cursor: pointer;
    width: 30px;
    height: 25px;
    margin: auto;
    position: absolute;
  /*  right: 30px;*/
    top: 0;
    bottom: 0;
  }
  
  .navTrigger i {
    background-color: var(--nav-trigger-background);
    border-radius: 2px;
    content: '';
    display: block;
    width: 100%;
    height: 4px;
  }
  
  .navTrigger i:nth-child(1) {
    -webkit-animation: outT 0.8s backwards;
    animation: outT 0.8s backwards;
    -webkit-animation-direction: reverse;
    animation-direction: reverse;
  }
  
  .navTrigger i:nth-child(2) {
    margin: 5px 0;
    -webkit-animation: outM 0.8s backwards;
    animation: outM 0.8s backwards;
    -webkit-animation-direction: reverse;
    animation-direction: reverse;
  }
  
  .navTrigger i:nth-child(3) {
    -webkit-animation: outBtm 0.8s backwards;
    animation: outBtm 0.8s backwards;
    -webkit-animation-direction: reverse;
    animation-direction: reverse;
  }
  
  .navTrigger.active i:nth-child(1) {
    -webkit-animation: inT 0.8s forwards;
    animation: inT 0.8s forwards;
  }
  
  .navTrigger.active i:nth-child(2) {
    -webkit-animation: inM 0.8s forwards;
    animation: inM 0.8s forwards;
  }
  
  .navTrigger.active i:nth-child(3) {
    -webkit-animation: inBtm 0.8s forwards;
    animation: inBtm 0.8s forwards;
  }
  
   /* navTrigger animation*/

  @-webkit-keyframes inM {
    50% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(45deg);
    }
  }
  
  @keyframes inM {
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(45deg);
    }
  }
  
  @-webkit-keyframes outM {
    50% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(45deg);
    }
  }
  
  @keyframes outM {
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(45deg);
    }
  }
  
  @-webkit-keyframes inT {
    0% {
        -webkit-transform: translateY(0px) rotate(0deg);
    }
    50% {
        -webkit-transform: translateY(9px) rotate(0deg);
    }
    100% {
        -webkit-transform: translateY(9px) rotate(135deg);
    }
  }
  
  @keyframes inT {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(9px) rotate(0deg);
    }
    100% {
        transform: translateY(9px) rotate(135deg);
    }
  }
  
  @-webkit-keyframes outT {
    0% {
        -webkit-transform: translateY(0px) rotate(0deg);
    }
    50% {
        -webkit-transform: translateY(9px) rotate(0deg);
    }
    100% {
        -webkit-transform: translateY(9px) rotate(135deg);
    }
  }
  
  @keyframes outT {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(9px) rotate(0deg);
    }
    100% {
        transform: translateY(9px) rotate(135deg);
    }
  }
  
  @-webkit-keyframes inBtm {
    0% {
        -webkit-transform: translateY(0px) rotate(0deg);
    }
    50% {
        -webkit-transform: translateY(-9px) rotate(0deg);
    }
    100% {
        -webkit-transform: translateY(-9px) rotate(135deg);
    }
  }
  
  @keyframes inBtm {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-9px) rotate(0deg);
    }
    100% {
        transform: translateY(-9px) rotate(135deg);
    }
  }
  
  @-webkit-keyframes outBtm {
    0% {
        -webkit-transform: translateY(0px) rotate(0deg);
    }
    50% {
        -webkit-transform: translateY(-9px) rotate(0deg);
    }
    100% {
        -webkit-transform: translateY(-9px) rotate(135deg);
    }
  }
  
  @keyframes outBtm {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-9px) rotate(0deg);
    }
    100% {
        transform: translateY(-9px) rotate(135deg);
    }
  }
  
 
  
  
  