body{
    color: black;
    margin: 0%;
    padding: 0%;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}   
nav {
    /* animation: bounce 2s ease-in-out; */
    position: sticky;
    /* top: 0; */
    /* top: 61px; */
    top: 58px;
    background-color: #fff;
    /* color: black; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 20px;
    box-shadow: 0 1px 8px 0 gainsboro, 0 1px 20px 0 gainsboro;
    z-index: 1;
    /* 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 {
    /* width: 40%; */
    margin-right: 20px;
}

.nav ul li a {
    font-size: large;
    color: black;
    text-decoration: none;
    transition: color 0.3s;
}

.nav ul li a:hover {
    /* font-weight: bold; */
    /* font-size: large; */
    color: maroon;
}
.hactive {
    font-weight: bold;
    color: maroon !important;
    /* text-decoration: underline; */
}
.act{
    color: goldenrod;
    text-decoration: underline !important;
}

.checkbtn {
    font-size: 30px;
    /* color: black; */
    cursor: pointer;
    display: none;
}

#check {
    display: none;
}
@media (max-width: 768px) {
    .checkbtn {
    display: block;
    order: 1;
    margin-right: 20px;
    }
    .nav {
        top: 50px;
    }
    .nav p {
        margin-right: 2%;
    }
    .nav ul {
    position: fixed;
    /* right: 0; */
    /* top: 60px; */
    top: -1000%;
    background-color: floralwhite;
    /* background-color: #ecfff0; */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 5%;
    /* 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; */
    top: 145px;
    }
}
@media (max-width: 700px) {
    #check:checked ~ ul {
    top: 140px !important;
    }
}
@media (max-width: 674px) {
    #check:checked ~ ul {
    top: 120px !important;
    /* top: 135px !important; */
    }
}
@media (max-width: 460px) {
    #check:checked ~ ul {
    top: 115px !important;
    /* top: 135px !important; */
    }
}
@media (max-width: 400px) {
    #check:checked ~ ul {
    top: 100px !important;
    /* top: 135px !important; */
    }
}
.nav ul li a {
    /* display: inline-block; */
    position: relative;
    /* color: black; */
}

.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;
}