/* https://www.codingnepalweb.com/responsive-dropdown-menu-bar-html-css/ */

.wrapper {
  /* position: fixed; */
  width: 100%;
  top: 0;
  background: hsla(221.333, 23%, 61%, 1);
  /* nav bar color */
}

.wrapper nav {
  position: relative;
  display: flex;
  max-width: calc(100% - 200px);
  margin: 0 auto;
  height: 70px;
  align-items: center;
  justify-contents: space-between;
  /* border: 1px solid blue; */
}

nav .contents {
  display: flex;
  align-items: center;
}

nav .contents .links {
  margin-left: 80px;
  display: flex;
}

.contents .logo a {
  color: #fff;
  font-size: 30px;
  font-weight: 700; 
  white-space: nowrap; 
}


.contents .links li {
  list-style: none;
  line-height: 70px;
}

.contents .links li a,
.contents .links li label {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  padding: 9px 17px;
  border-radius: 5px;
  /* radius for top level menu selection */
  transition: all 0.3s ease;
}

.contents .links li label {
  display: none;
}

.contents .links li a:hover,
.contents .links li label:hover {
  background: hsla(221.333 23% 71% / 1);
  /* hover button color pc */
}

/* hamburger */
.wrapper .menu-icon {
  display:block;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  line-height: 70px;
  width: 100%;
  /* text-align: center; */
  text-align: right;
}

.wrapper .menu-icon {
  display: none;
}


.wrapper input[type="checkbox"] {
  display: none;
}

/* Dropdown Menu code start */
.contents .links ul {
  position: absolute;
  background: hsla(221.333, 23%, 61%, 1);
  /* drop down menu background color */
  top: 80px;
  z-index: -1;
  opacity: 0;
  visibility: hidden;
}

.contents .links li:hover>ul {
  top: 70px;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease;
}

.contents .links ul li a {
  display: block;
  width: 100%;
  line-height: 30px;
  border-radius: 5px !important;
  /* raduis for pc drop menu selections was 0 */
}

.contents .links ul ul {
  position: absolute;
  top: 0;
  right: calc(-100% + 8px);
}

.contents .links ul li {
  position: relative;
}

.contents .links ul li:hover ul {
  top: 0;
}

/* Responsive code start */
@media screen and (max-width: 1250px) {
  .wrapper nav {
    max-width: 100%;
    padding: 0 20px;
  }

  nav .contents .links {
    margin-left: 30px;
  }

  .contents .links li a {
    padding: 8px 13px;
  }

}

@media screen and (max-width: 900px) {
  .wrapper .menu-icon {
    display: block;
  }

  .wrapper #show-menu:checked~.menu-icon i::before {
    content: "\f00d";
  }

  nav .contents .links {
    display: block;
    position: fixed;
    background: #14181f;
    height: 100%;
    width: 100%;
    top: 70px;
    left: -100%;
    margin-left: 0;
    max-width: 100%; /* <- mobile box */
    overflow-y: auto;
    padding-bottom: 100px;
    transition: all 0.3s ease;
  }

  nav #show-menu:checked~.contents .links {
    left: 0%;
  }

  .contents .links li {
    margin: 15px 20px;
  }

  .contents .links li a,
  .contents .links li label {
    line-height: 40px;
    font-size: 20px;
    display: block;
    padding: 8px 18px;
    cursor: pointer;
  }

  .contents .links li a.desktop-link {
    display: none;
  }

  /* dropdown responsive code start */
  .contents .links ul,
  .contents .links ul ul {
    position: static;
    opacity: 1;
    visibility: visible;
    background: none;
    max-height: 0px;
    overflow: hidden;
  }

  .contents .links #show-features:checked~ul,
  .contents .links #show-services:checked~ul,
  .contents .links #show-servicess:checked~ul,
  .contents .links #show-items:checked~ul {
    max-height: 100vh;
  }

  .contents .links ul li {
    margin: 7px 20px;
  }

  .contents .links ul li a {
    font-size: 18px;
    line-height: 30px;
    border-radius: 5px !important;
    /* radius for mobile drop menu selections */
  }
}

@media screen and (max-width: 400px) {
  .wrapper nav {
    padding: 0 10px;
  }

  .contents .logo a {
    font-size: 27px;
  }

 

}