@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
*{

    margin: 0;

    padding: 0;
    box-sizing: border-box;
}
.topBar h1{
    color: #161a20;
    font-size: 29px;
}

.navbar{
    background: #ff000000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 40px;
    list-style-type: none;
    overflow: hidden;
    top: 0;
    position: fixed;
    width: 100%;
    z-index: 1;
}

li{
    float: left;
    list-style-type: none;
}

li a{
    color: #eee;
    text-decoration: none;
    padding: 10px 20px;
    margin: 2px;
    transition: .5s linear;
    font-size: 17px;
}

li a:hover{
    background: #fff;
    color: #222831;
    border-radius: 50px;
}

.topBar .toggle{
    display: none;
     border-radius: 5px; 
}

@media (max-width: 740px) {
    .navbar{
        flex-direction: column;
        text-align: center;
    }

    li{
        float: none;
        margin: 30px;
        animation: slide .5s linear 1;
    }

    @keyframes slide {
        0%{
            transform: translateX(50px);
            opacity: 0;
        }
        100%{
            transform: translateX(0px);
            opacity: 1;
        }
    }

    li a{
        font-size: 20px;
    }

    .navMenu{
        background: #161a20;
        width: 100%;
        margin-top: 30px;
        border-radius: 10px;
        display: none;
    }

    .topBar{
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .topBar .toggle{
        font-size: 30px;
        display: block;
        color: #161a20;
    }
}