.bounce {
    animation: bounce 3s;
  }
  @keyframes bounce { 
        0%, 
        20%, 
        50%, 
        80%, 
        100% { 
            transform: translateY(0); 
        } 

        40% { 
            transform: translateY(-30px); 
        } 

        60% { 
            transform: translateY(-15px); 
        } 
    } 

/* @keyframes bounce {
0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
}
40% {
    transform: translateY(-20px);
}
60% {
    transform: translateY(-10px);
}
} */

    /* .navbart-bounce { 
        animation: bounce 2s infinite; 
    }  */
    nav {
      /* animation: bounce 2s ease-in-out; */
      position: sticky;
      top: 0;
      background-color: #fff;
      color: green;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 3px 20px;
      box-shadow: 0 1px 8px 0 #025102, 0 1px 20px 0 #025102;
      z-index: 2;
      /* transition: transform 0.5s; */
      /* transition: top 0.3s; */
    }
    
    .logo {
      /* width: 20%; */
      font-size: 1.5rem;
    }
    
    .nav ul {
      display: flex;
      list-style: none;
      padding: 0;
      margin: 0;
    }
    
    .nav ul li {
      margin-right: 20px;
    }
    
    .nav ul li a {
      font-size: large;
      color: green;
      text-decoration: none;
      transition: color 0.3s;
    }
    
    .nav ul li a:hover {
      /* font-weight: bold; */
      /* font-size: large; */
      color: #025102;
    }
    .hactive {
      font-weight: bold;
      /* font-size: large; */
      color: #025102;
      /* text-decoration: underline; */
    }
    .act{
      color: goldenrod;
      text-decoration: underline !important;
    }
    
    .checkbtn {
      font-size: 30px;
      color: green;
      cursor: pointer;
      display: none;
    }
    
    #check {
      display: none;
    }
    @media (max-width: 460px) {
      #check:checked ~ ul {
        top: 35px !important;
      }
    }
    @media (max-width: 664px) {
      #check:checked ~ ul {
        /* top: 50px !important; */
      }
    }
    @media (max-width: 768px) {
      .checkbtn {
        display: block;
        order: 1;
        margin-right: 20px;
      }
    
      .nav ul {
        position: fixed;
        /* right: 0; */
        /* top: 60px; */
        top: -1000%;
        background-color: #ecfff0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: all 0.5s;
        z-index: 2;
        /* border-bottom: 1px solid #025102;
        box-shadow: 0 0 5px #025102; */
      }
    
      .nav ul li {
        margin: 5px 0;
      }
    
      .nav ul li a {
        font-size: 24px;
      }
    
      #check:checked ~ ul {
        top: 60px;
      }
    }
    .nav ul li a {
      display: inline-block;
      position: relative;
      color: #025102;
    }

  .nav ul li a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: goldenrod;
    /* background-color: #c4e37d; */
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
  }

  .nav ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
  }