*,
*::after,
*::before{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
:root{
    --main-bg:#020420;
    --text-white:#fff

}
.html{
    font-size: 62.5%;
}

.navbar input[type="checkbox"],
.navbar .hamburger-lines{
    display: none;
}

.container-navbar{
    max-width: 1200px;
    width: 90%;
    margin: auto;
}

.navbar{
    position: fixed;
    width: 100%;
    background: var( --main-bg);
    color: #000;
    opacity: 0.85;
    z-index: 100;
    height: 65px;
    padding: 5px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-container{
    display: flex;
    justify-content: space-between;
    height: 65px;
    align-items: center;
}
.active-menu {
    position: relative;
    color: var(--main-green) !important;
}
.active-menu::after {
    position: absolute;
    content: "";
    background-color: var(--main-green);
    width: 100%;
    height: 2px;
    left: 0;
    top: 25px;
    border-radius: 20px;
}

.menu-items{
    order: 2;
    display: flex;
   
}
.logo{
    order: 1;
    font-size: 1.2rem;
    font-size: kyrial-sans-pro;

}

.menu-items li{
    list-style: none;
    margin-left: 1.5rem;
    font-size: 1rem;
    margin-bottom: 0;

}

.navbar a{
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

.navbar a:hover{
    color: #ffffff;
}

@media (max-width: 772px){
    .navbar{
        opacity: 0.95;
    }

    .navbar-container input[type="checkbox"],
    .navbar-container .hamburger-lines{
        display: block;
    }

    .navbar-container{
        display: block;
        position: relative;

    }

    .navbar-container input[type="checkbox"]{
        position: absolute;
        display: block;
        height: 32px;
        width: 30px;
        top: 10px;
        left: -30px;
        z-index: 5;
        opacity: 0;
        cursor: pointer;

    }

    .navbar-container .hamburger-lines{
        display: block;
        height: 28px;
        width: 35px;
        position: absolute;
        top: 12px;
        left: 20px;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        margin-left: -50px;
    }

    .navbar-container .hamburger-lines .line{
        display: block;
        height: 3px;
        width: 100%;
        border-radius: 10px;
        background: #ffffff;
    }
    
    .navbar-container .hamburger-lines .line1{
        transform-origin: 0% 0%;
        transition: transform 0.3s ease-in-out;
    }

    .navbar-container .hamburger-lines .line2{
        transition: transform 0.2s ease-in-out;
    }

    .navbar-container .hamburger-lines .line3{
        transform-origin: 0% 100%;
        transition: transform 0.3s ease-in-out;
    }

    .navbar .menu-items{
        padding-top: 100px;
        background: var(--main-bg);
        height: 100vh;
        max-width: 300px;
        transform: translate(-150%);
        display: flex;
        flex-direction: column;
        margin-left: -50px;
        padding-left: 40px;
        transition: transform 0.5s ease-in-out;
        position: absolute;
        width: 290px;
        top: -7px;
        z-index: 1;

    }

    .navbar .menu-items li{
        margin-bottom: 1.8rem;
        font-size: 1.1rem;
        font-weight: 500;
        margin-left: -0.5rem;
    }

    .logo{
        position: absolute;
        right: -35px;
        font-size: 1.5rem;
    }

    .navbar-container input[type="checkbox"]:checked ~ .menu-items{
        transform: translateX(0);
    }

    .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line1{
        transform: rotate(45deg);
    }

    .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line2{
        transform: scaleY(0);
    }

    .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line3{
        transform: rotate(-45deg);
    }

}

@media (max-width: 500px){
    .navbar-container input[type="checkbox"]:checked ~ .logo{
        display: none;
    }
}