
li {
    list-style: none;
}
a{
    color: #fff;
    text-decoration: none;
}
/*Top Header*/
.main-header {
    width: 80%;
    margin: auto;
    overflow: hidden;
}
.main-header #navbar {
    position: absolute;
    width: 80%;
    z-index: 2;
    top: 0;
}

.main-header #header-logo {
    padding-top: 8px; /*old*/
    float: left;
    height: 3.125rem; /*old*/
    width: 3.125rem; /*old*/
    display: flex;
}

#navbar {
    min-height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.nav-links {
    display: flex;
    margin-left: auto;
    align-items: center;
    gap: 2rem;
    overflow: hidden;
}

.nav-links li a{
    display: block;
    padding: 0.5em;
    font-size: 1rem;
    transition: 0.7s ease;
}

.nav-links li a:hover{
    color: #64ffda;
}

.line {
    display: none;
}

/*For devices like tab*/
@media screen and (max-width: 768px){
    #header-logo{
        float: none;
        width: auto;
        justify-content: center;
    }

    .main-header #navbar {
        position: fixed;
    }


    .line {
        display: block;
        border-radius: 3px;
        width: 30px;
        height: 5px;
        margin: 5px;
        margin-right: 2rem;
        -webkit-transition:  all 0.3s ease-in-out;
        transition:  all 0.3s ease-in-out;
        background-color: #fff;
    }

    .hamburger {
        display: block;

    }

    .hamburger.active .line:nth-child(2){
        opacity: 0;
    }

    .hamburger.active .line:nth-child(1){
        transform: translateY(10px) rotate(225deg);
    }

    .hamburger.active .line:nth-child(3){
        transform: translateY(-10px) rotate(-225deg);
    }

    .nav-links {
        z-index: 3;
        position: fixed;
        left: -100%;
        top: 60px;
        gap: 0;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.9);
        justify-content: space-evenly;
        width: 100%;
        text-align: center;
        transition: 0.3s;
    }

    .nav-links li{
        margin: 1rem 0;
    }

    #navbar .nav-links li a{
        font-size: 20px;
    }

    .nav-links.active{
        left: 0;
    }



}
