/* Basic styling */

html:not([data-scroll='0']) nav {
  -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  background: #f4f5ff;
  color: #000;
}

html:not([data-scroll="0"]) body {
    padding-top: 3em;
}

html:not([data-scroll="0"]) .logo img{
	content: url("/img/logo-1.webp");
        width: 155px;
        height: 55px;
}

nav {
    text-align: left;
    font-weight: 600;
    user-select: none;
	color: #fff;
}

nav .fa-brands, nav .fa-solid {
    color: #FFF;
    margin-right: 10px;
}

.menu {
    padding: 0 15px;
}

.menu.active {
    background: #f4f5ff;
}

.menu,
.submenu {
    list-style-type: none;
}

.logo {
    padding: 0;
}

.item {
    padding: 10px;
}

.item.button {
    padding: 9px 5px;
}

/* Mobile menu */
.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.menu.active {
    color: #000;
}

.menu.active .toggle a::before{
    content: "\f00d";
}
.menu.active .logo img {
  content: url("/img/logo-1.png");
}
.menu li a {
    display: block;
    padding: 15px 5px;
} 

.menu li.subitem a {
    padding: 15px;
}

.toggle {
    order: 1;
    font-size: 20px;
}

.toggle a::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: "\f0c9";
}

.item.button {
    padding: 9px 5px;
    order: 3;
}

.item {
    order: 3;
    width: 100%;
    display: none;
}

.cursor-pointer {
    cursor: pointer;
}

.active .item {
    display: block;
}

.button.secondary {
    /* divider between buttons and menu links */
    border-bottom: 1px #444 solid;
}

/* Submenu up from mobile screens */
.submenu {
  color: #000;
  display: none;
}

.submenu-active .submenu {
  display: block;
}

.has-submenu i {
  font-size: 12px;
}

.has-submenu h2 {
  font-size: 16px;
}

.has-submenu > h2::after {
  font-family: "Font Awesome 5 Free";
  font-size: 12px;
  line-height: 16px;
  font-weight: 900;
  content: "\f078";
  padding-left: 5px;
}

.has-submenu.submenu-active > h2::after {
  content: "\f077";
}

.subitem a {
  padding: 10px 15px;
}

.submenu-active {
  border-radius: 3px;
}

/* Tablet menu */
@media all and (min-width: 700px) {
  .menu {
    justify-content: center;
  }

  .logo {
    flex: 1;
    display: flex;
  }

  /* Button up from tablet screen */
  .menu li.button a {
    padding: 10px 15px;
    margin: 5px 0;
  }

  .button.secondary {
    border: 0;
  }

  .button.secondary a {
    background: transparent;
    border: 1px #0080ff solid;
  }

  .button a:hover {
    text-decoration: none;
  }
}
/* Desktop menu */
@media all and (min-width: 960px) {
    .menu {
        align-items: flex-start;
        flex-wrap: nowrap;
        background: none;
        align-items: center;
    }

    html:not([data-scroll="0"]) .button a {
        border-radius: 100px!important;
        border: 1px solid #000;
    }
	
	.button a {
        border-radius: 100px!important;
        border: 1px solid #fff;
    }

    .button a::before {
        font-family: "Font Awesome 5 Free";
        margin-right: 10px;
        content: "\f007";
    }

    .logo {
        order: 0;
    }

    .item {
        order: 1;
        position: relative;
        display: block;
        width: auto;
    }

    .button {
        order: 2;
    }

    .submenu-active .submenu {
        display: block;
        position: absolute;
        top: 80px;
        width: 250px;
        background: #f4f5ff;
    }

    .submenu-active:nth-child(2) .submenu {
        left: -38%;
    }

    .submenu-active:nth-child(3) .submenu {
        left: -18%;
    }

    .submenu-active:nth-child(4) .submenu {
        left: -90%;
    }

    .submenu-active .submenu::before {
        content: "";
        position: absolute;
        top: -7px;
        left: 50%;
        width: 17px;
        height: 17px;
        -webkit-transform: translate(-50%,0) rotate(-315deg);
        transform: translate(-50%,0) rotate(-315deg);
        border-radius: 3px;
        background-color: #f4f5ff;
        z-index: -1;
    }

    .toggle {
        display: none;
    }

    .submenu-active {
        border-radius: 0;
    }
}

/* Desktop menu 2 */
@media all and (min-width: 1200px) {

    .menu{
      padding-left: calc((100% - 1140px)/2);
      padding-right: calc((100% - 1140px)/2);
    }
  
}