/* Google Fonts - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
  }
.nav {
    position: fixed;
    top: 0px;
    left: 0;
    width: 100%;
    padding: 15px 200px;
    background: #3d6d40;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
  }
  .nav,
  .nav .nav-links {
    display: flex;
    align-items: center;

  }
  .nav {
    justify-content: space-between;
    
  }
  .nav-links li a {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: 5s;
  }
  .nav-links li a:hover{
    font-size: 20px;
    font-weight: bold;
  }
  .nav .logo {
    font-size: 22px;
    font-weight: 500;
    margin-top: -10px;

  }
  .nav .nav-links {
    column-gap: 50px;
    list-style: none;
    font-size: 14px;
    font-family: "Poppins", sans-serif;
  }

  
  .nav .nav-links a {
    transition: all 0.2s linear;
  }

  .nav.openSearch .nav-links a {
    opacity: 0;
    pointer-events: none;
  }
  .nav .search-icon {
    color: #fff;
    font-size: 20px;
    cursor: pointer;
  }
  .nav .search-box {
    position: absolute;
    right: 250px;
    height: 45px;
    max-width: 555px;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s linear;
  }
  .nav.openSearch .search-box {
    opacity: 1;
    pointer-events: auto;
  }
  .search-box .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    left: 15px;
    color: #3d6d40;
    transform: translateY(-50%);
  }
  .search-box input {
    height: 100%;
    width: 100%;
    border: none;
    outline: none;
    border-radius: 6px;
    background-color: #fff;
    padding: 0 15px 0 45px;
  }
  
  .nav .navOpenBtn,
  .nav .navCloseBtn {
    display: none;
  }

  .nav {
    transition: all 0.3s ease;
  }
  
  
  /* responsive */
  @media screen and (max-width: 1760px) {
    .nav .logo img {
      width: 15rem;
  
    }
  }
  @media screen and (max-width: 1160px) {
    .nav {
      padding: 15px 100px;
    }
    .nav .search-box {
      right: 150px;
    }
  }
  @media screen and (max-height: 720px){
    .nav .nav-links {
      column-gap: 30px;
      list-style: none;
      font-size: 12px;
    }
  }
  @media screen and (max-width: 950px) {
    .nav {
      padding: 15px 50px;
    }
    .nav .search-box {
      right: 100px;
      max-width: 400px;
    }
  }
  @media screen and (max-width: 840px) {
    .nav .navOpenBtn,
    .nav .navCloseBtn {
      display: block;
    }
    .nav {
      padding: 15px 20px;
    }
    .nav .nav-links {
      position: fixed;
      top: 0;
      left: -100%;
      height: 100%;
      max-width: 280px;
      width: 100%;
      padding-top: 100px;
      row-gap: 30px;
      flex-direction: column;
      background-color: #11101d;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      transition: all 0.4s ease;
      z-index: 100;
    }
    .nav.openNav .nav-links {
      left: 0;
    }
    .nav .navOpenBtn {
      color: #fff;
      font-size: 20px;
      cursor: pointer;
    }
    .nav .navCloseBtn {
      position: absolute;
      top: 20px;
      right: 20px;
      color: #fff;
      font-size: 20px;
      cursor: pointer;
    }
    .nav .search-box {
      top: calc(100% + 10px);
      max-width: calc(100% - 20px);
      right: 50%;
      transform: translateX(50%);
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
  }