nav, .nav {
  width: 100%;
  z-index: 1;
  // Fixed Navbar properties
  &.fixed {
    position: fixed;
  }

  ul {
    background-color: $meshki-black-darker;
    border-bottom: 2px solid $meshki-black;
    list-style-type: none;
    margin: 0;
    overflow: hidden;
    padding: 0;
    width: 100%;
    height: 100%;
    z-index: 1;

    // Elements in the navbar start from the left side
    li {
      float: left;
      margin-bottom: 0;

      // Anchors inside lists' attributes
      & > a {
        color: $text-color;
        display: inline-block;
        padding: 14px 16px;
        text-align: center;
        text-decoration: none;
        transition: background-color .2s ease-in-out;
      }

       // Change the link color to #111 (black) on hover
       // Only direct children are affected, which means it excludes dropdowns
      & > a:hover {
        background-color: $navbar-color-button-active;
      }

      // Buttons positioning on navbar
      & > a.button,
      & > button,
      & > input {
        margin: 5px 5px !important;
      }

      // Active navbar button
      & > a.active {
        background-color: $navbar-color-button-active;
      }

      // Logo of the website, it must be the first child of navbar
      &:first-child a.logo {
        background-color: $navbar-color-logo;
        color: $text-color;
      }

      // Lighten the logo when the mouse is over it
      &:first-child a.logo:hover {
        background-color: $navbar-color-logo-hover;
        color: $normal-black;
      }

      /* Send the elements to the right side with nav-right */
      &.nav-right {
        float: right !important;
        position: inherit;
      }

      /* Send the elements to the left side with nav-left */
      &.nav-left {
        float: left !important;
        position: inherit;
      }

      /* Fix for #2 issue, where nav-dropdown-content would go off the screen. */
      &.nav-dropdown.nav-right .nav-dropdown-content {
        right: 0;
      }

      &.nav-dropdown.nav-right ~ .nav-dropdown .nav-dropdown-content {
        right: auto;
      }

      /* Navigation Dropdown Button */
      &.nav-dropdown {
        display: inline-block;

        &:hover {
          /* When the dropdown is open, change the color of dropdown's button */
          .nav-dropdown-button {
            background-color: $navbar-color-button-active;
          }
      
          /* Display the content when the mouse is on dropdown's button */
          .nav-dropdown-content {
            opacity: 1;
            visibility: visible;
          }
        }

        /* Dropdown content attributes */
        .nav-dropdown-content {
          background-color: $navbar-color-button-active;
          box-shadow: 0 8px 16px 0 rgba(0, 0, 0, .2);
          display: block;
          min-width: 160px;
          opacity: 0;
          position: absolute;
          transition: visibility .2s, opacity .2s ease-in-out;
          visibility: hidden;
          z-index: 1;
        }

        /* Each link in dropdown's content */
        .nav-dropdown-content a {
          color: $text-color;
          display: block;
          padding: 12px 16px;
          text-align: left;
          text-decoration: none;
        }

        /* When the mouse is on each option */
        .nav-dropdown-content a:hover {
          background-color: $navbar-color-dropdown-button-bg;
        }
      }
    }
  }
}
